File: utils.hh

package info (click to toggle)
exactimage 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,040 kB
  • sloc: cpp: 35,940; ansic: 1,952; xml: 1,447; makefile: 338; perl: 138; sh: 110; python: 45; php: 37; ruby: 12
file content (10 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10

inline void ycbcr_to_rgb( int ycbcr[3], int* const ret )
{
	int dummy[3] = {
		(int)((1/1.772) * (ycbcr[0] + 1.402 * ycbcr[2])),
		(int)((1/1.772) * (ycbcr[0] - 0.34413 * ycbcr[1] - 0.71414 * ycbcr[2])),
		(int)((1/1.772) * (ycbcr[0] + 1.772 * ycbcr[1])) };
	for( int k = 0; k < 3; ++k )
		ret[k] = dummy[k];
}