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
-
-
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
-
Premiere RGB exports produce bad frames - is YV12 a good alternative?
By spicediver10191 in forum Video ConversionReplies: 5Last Post: 21st Feb 2011, 17:02 -
8-bit color RGB versus 10-bit color 4:2:2
By fouronthefloor in forum Capturing and VCRReplies: 4Last Post: 9th Oct 2010, 06:20 -
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