We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4124

Summary: Add interface to set BT.709 as YUV to RGB conversion
Product: SDL Reporter: hongruichen <chraac>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.8   
Hardware: x86_64   
OS: Windows (All)   

Description hongruichen 2018-04-03 13:48:44 UTC
Thera are two YUV to RGB conversions:
  1.BT.601 which is use for SDTV
  2.BT.709 which is use for HDTV (720p or 1080p etc.)

Can we add some switch to change the conversion in shader?



https://en.wikipedia.org/wiki/YUV#Full_swing_for_BT.601
http://www.equasys.de/colorconversion.html
Comment 1 Sam Lantinga 2018-04-09 18:30:34 UTC
You mean something like SDL_SetYUVConversionMode()? :)
https://hg.libsdl.org/SDL/file/default/include/SDL_surface.h#l526
Comment 2 hongruichen 2018-04-10 02:46:45 UTC
Yes, and which release wil include this change?
Comment 3 Sam Lantinga 2018-04-10 14:26:02 UTC
2.0.8 already has this change.