Go to the documentation of this file.
24 #ifndef AVCODEC_V210ENC_INIT_H
25 #define AVCODEC_V210ENC_INIT_H
36 #define CLIP(v, depth) av_clip(v, 1<<(depth-8), ((1<<depth)-(1<<(depth-8))-1))
37 #define WRITE_PIXELS(a, b, c, depth) \
39 val = CLIP(*a++, depth) << (10-depth); \
40 val |= (CLIP(*b++, depth) << (20-depth)) | \
41 (CLIP(*c++, depth) << (30-depth)); \
47 const uint8_t *v, uint8_t *dst,
53 for (
int i = 0;
i <
width - 11;
i += 12) {
66 const uint16_t *v, uint8_t *dst,
71 for (
int i = 0;
i <
width - 5;
i += 6) {
83 s->sample_factor_8 = 2;
84 s->sample_factor_10 = 1;
#define u(width, name, range_min, range_max)
static double val(void *priv, double ch)
#define WRITE_PIXELS(a, b, c, depth)
#define i(width, name, range_min, range_max)
void ff_v210enc_init_x86(V210EncContext *s)
static av_cold av_unused void ff_v210enc_init(V210EncContext *s)
static void v210_planar_pack_10_c(const uint16_t *y, const uint16_t *u, const uint16_t *v, uint8_t *dst, ptrdiff_t width)
static void v210_planar_pack_8_c(const uint8_t *y, const uint8_t *u, const uint8_t *v, uint8_t *dst, ptrdiff_t width)