|
|
@ -1,6 +1,6 @@ |
|
|
|
#define UV_WIDTH RGB_WIDTH / 2 |
|
|
|
#define UV_WIDTH RGB_WIDTH / 2 |
|
|
|
#define UV_HEIGHT RGB_HEIGHT / 2 |
|
|
|
#define UV_HEIGHT RGB_HEIGHT / 2 |
|
|
|
#define HDR_OFFSET 12 |
|
|
|
#define HDR_OFFSET 68 |
|
|
|
|
|
|
|
|
|
|
|
#define RGB_TO_Y(r, g, b) ((((mul24(b, 13) + mul24(g, 65) + mul24(r, 33)) + 64) >> 7) + 16) |
|
|
|
#define RGB_TO_Y(r, g, b) ((((mul24(b, 13) + mul24(g, 65) + mul24(r, 33)) + 64) >> 7) + 16) |
|
|
|
#define RGB_TO_U(r, g, b) ((mul24(b, 56) - mul24(g, 37) - mul24(r, 19) + 0x8080) >> 8) |
|
|
|
#define RGB_TO_U(r, g, b) ((mul24(b, 56) - mul24(g, 37) - mul24(r, 19) + 0x8080) >> 8) |
|
|
|