VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date
    Oct 2009
    Location
    Czech Republic
    Search Comp PM
    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
    Quote Quote  
  2. 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)
    Quote Quote  
  3. 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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!