29 const size_t clut_size,
54 int r_add, g_add, b_add;
60 y = (clut[
i] >> 16) & 0xFF;
61 cr = (clut[
i] >> 8) & 0xFF;
66 y = (y - 16) *
FIX(255.0 / 219.0);
71 clut[
i] = (
r << 16) | (
g << 8) |
b;
void av_bprintf(AVBPrint *buf, const char *fmt,...)
void av_bprint_init(AVBPrint *buf, unsigned size_init, unsigned size_max)
#define i(width, name, range_min, range_max)
common internal and external API header
int ff_dvdclut_yuv_to_rgb(uint32_t *clut, const size_t clut_size)
int ff_dvdclut_palette_extradata_cat(const uint32_t *clut, const size_t clut_size, AVCodecParameters *par)
#define FF_DVDCLUT_CLUT_SIZE
#define FF_DVDCLUT_CLUT_LEN
#define FF_DVDCLUT_EXTRADATA_SIZE
Various defines for YUV<->RGB conversion.
#define YUV_TO_RGB1_CCIR(cb1, cr1)
This struct describes the properties of an encoded stream.
static double cr(void *priv, double x, double y)
static double cb(void *priv, double x, double y)