cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
boeck
Contributor
Contributor
1,902 Views
Registered: ‎09-25-2008

XAPP931 Color-Space Converter: YCrCb to RGB: found Bug?

Hello!

 

I think I found a bug within the XAPP931 Implementation or Documentation. In der Documentation the Green Value of RGB is calculated with the following equation:

 

G = [(BCOEF * Cb +CCOEF * Cr + GOFFSET)/2CWIDTH-2]OWIDTH + Y

 

But within the Implementation the Green Value is calculated with:

 

G = [(CCOEF * Cb +BCOEF  * Cr + GOFFSET)/2CWIDTH-2]OWIDTH + Y

 

As you can see the CCOEF and BCOEF is switched.

 

I hope someone can help me and know which equation is the correct one?

 

Thanks!

 

Best regards,

Stefan

0 Kudos
Reply
0 Replies