+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date: Oct 2009
    Location: Czech Republic
    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. Member
    Join Date: Dec 2005
    Location: none
    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

  1. RGB 32 Color Output Playback Problem
    By Shone in forum Software Playing
    Replies: 0
    Last Post: 12th Nov 2009, 02:45
  2. Help with captured AVI: Vdub / HCenc / RGB / YUY2 / YV12
    By Rinsin in forum Video Conversion
    Replies: 2
    Last Post: 13th May 2009, 18:57
  3. DVD to DVD: YV12 to RGB to YV12, color problem ???
    By cd090580 in forum Restoration
    Replies: 9
    Last Post: 24th Oct 2008, 10:16
  4. Using a custom RGB value for the highlight color in DLP...
    By Alain2007 in forum Authoring (DVD)
    Replies: 1
    Last Post: 30th Dec 2006, 02:34
  5. YUV (YV12) to RGB conversion
    By burnit in forum Programming
    Replies: 2
    Last Post: 15th Jan 2006, 09:38
Slysofts AnyDVD HD removes DVD and Blu-ray encryption and region coding. More info or download trial!
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools