Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
25th March 2013, 12:41 | #1 | Link |
Registered User
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
|
How do ConvertToRGB* handle out-of-range YUV combinations?
When the input clip to ConvertToRGB*() contains pixels with out-of-range YUV combinations no error is thrown, so presumably they are processed somehow. However, I can't find any explanation in the Convert description of how this done. What exactly happens in such cases?
Thanks, Francois |
25th March 2013, 20:47 | #4 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
See the thread U and V ranges for valid RGB for a demonstration, and post #14 of the thread (and the later post #25) for a function that will identify the out-of-range pixels in a frame.
|
26th March 2013, 09:47 | #6 | Link |
Registered User
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
|
In the case where
a useful approach seems to be Code:
# Reduce number of pixels that will be clipped by RGB conversion Levels(...) ConvertToRGB(...) # RGB32 work ConvertToYV12(...) # Back in YUV complete rest of colour treatment to what's desired for aesthetics and what output can handle: # restore colour range and/or correct gamma and/or adjust dynamic range etc. |
Thread Tools | Search this Thread |
Display Modes | |
|
|