Hi,
iam using unix avifile lib to convert YV12 Divx frame to RGB.
I attach image of my outup. Left image is real frame from video and right image is my output.
If you have any suggestions to solve this problem please post.
Thx,
wydesenej
colors.png
+ Reply to Thread
Results 1 to 3 of 3
Thread: YV12 to RGB color problem
Thread
-
arithmetic without saturation - enable clamp, choose different color space coefficients
more on this http://en.wikipedia.org/wiki/Saturation_arithmetic
also problem with chroma planes (swapped Cb with Cr? looks like NOT or XOR values)
It looks like your luma channel is being multiplied by 2 and isn't being clamped -- ie, when values go above 255 they are wrapping back down to 0. It also looks like the chroma channels are reversed. Here's your left image with the chroma channels reversed, converted to RGB, then all primaries multiplied by 2 (with clamping):

Notice how all the dark areas are the same as your right image. The light areas are clamped here so they don't wrap around to black, they're just full out white.
Similar Threads
-
RGB 32 Color Output Playback Problem
By Shone in forum Software PlayingReplies: 0Last Post: 12th Nov 2009, 02:45 -
Help with captured AVI: Vdub / HCenc / RGB / YUY2 / YV12
By Rinsin in forum Video ConversionReplies: 2Last Post: 13th May 2009, 18:57 -
DVD to DVD: YV12 to RGB to YV12, color problem ???
By cd090580 in forum RestorationReplies: 9Last Post: 24th Oct 2008, 10:16 -
Using a custom RGB value for the highlight color in DLP...
By Alain2007 in forum Authoring (DVD)Replies: 1Last Post: 30th Dec 2006, 02:34 -
YUV (YV12) to RGB conversion
By burnit in forum ProgrammingReplies: 2Last Post: 15th Jan 2006, 09:38
Newest guides
Latest tool updates
New media comments
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools   



Quote