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 - Add interface to set BT.709 as YUV to RGB conversion
Summary: Add interface to set BT.709 as YUV to RGB conversion
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.8
Hardware: x86_64 Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-03 13:48 UTC by hongruichen
Modified: 2018-04-10 14:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.