Last modified: 2012-10-16 15:39:31 UTC
Colors for an ogg theora file are wrong. Red shows up as a pale orange. I think this bug is caused by the conversion from YUV to RBG and I suggest the following patch in YUVBuffer.java : replace GFactor = UFactor * CR_DIFF_FAC + VFactor * CB_DIFF_FAC - (VAL_RANGE<<SHIFT); UFactor = UFactor * CR_FAC + (VAL_RANGE<<SHIFT); VFactor = VFactor * CB_FAC + (VAL_RANGE<<SHIFT); by GFactor = UFactor * CB_DIFF_FAC + VFactor * CR_DIFF_FAC - (VAL_RANGE<<SHIFT); UFactor = UFactor * CB_FAC + (VAL_RANGE<<SHIFT); VFactor = VFactor * CR_FAC + (VAL_RANGE<<SHIFT);
Code does not exist anymore in upstream http://git.xiph.org/?p=cortado.git;a=blob;f=src/com/fluendo/jheora/YUVBuffer.java;h=9e300650447bb56a88cd223c7b617491e47a7310;hb=HEAD Closing as obsolete.