25 # define MCFUNC(n) FUNC(n ## _420)
27 # define MCFUNC(n) FUNC(n ## _422)
29 # define MCFUNC(n) FUNC(n ## _444)
33 #define mc_part MCFUNC(mc_part)
39 int x_offset,
int y_offset,
52 x_offset, y_offset, qpix_put, chroma_put,
53 weight_op[0], weight_op[1], weight_avg[0],
56 mc_part_std(h, n, square, height, delta, dest_y, dest_cb, dest_cr,
57 x_offset, y_offset, qpix_put, chroma_put, qpix_avg,
71 const int mb_xy = h->mb_xy;
81 mc_part(h, 0, 1, 16, 0, dest_y, dest_cb, dest_cr, 0, 0,
82 qpix_put[0], chroma_put[0], qpix_avg[0], chroma_avg[0],
83 weight_op, weight_avg,
86 mc_part(h, 0, 0, 8, 8 <<
PIXEL_SHIFT, dest_y, dest_cb, dest_cr, 0, 0,
87 qpix_put[1], chroma_put[0], qpix_avg[1], chroma_avg[0],
88 weight_op, weight_avg,
90 mc_part(h, 8, 0, 8, 8 <<
PIXEL_SHIFT, dest_y, dest_cb, dest_cr, 0, 4,
91 qpix_put[1], chroma_put[0], qpix_avg[1], chroma_avg[0],
92 weight_op, weight_avg,
95 mc_part(h, 0, 0, 16, 8 * h->mb_linesize, dest_y, dest_cb, dest_cr, 0, 0,
96 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
97 &weight_op[1], &weight_avg[1],
99 mc_part(h, 4, 0, 16, 8 * h->mb_linesize, dest_y, dest_cb, dest_cr, 4, 0,
100 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
101 &weight_op[1], &weight_avg[1],
108 for (i = 0; i < 4; i++) {
111 int x_offset = (i & 1) << 2;
112 int y_offset = (i & 2) << 1;
115 mc_part(h, n, 1, 8, 0, dest_y, dest_cb, dest_cr,
117 qpix_put[1], chroma_put[1], qpix_avg[1], chroma_avg[1],
118 &weight_op[1], &weight_avg[1],
123 qpix_put[2], chroma_put[1], qpix_avg[2], chroma_avg[1],
124 &weight_op[1], &weight_avg[1],
127 dest_y, dest_cb, dest_cr, x_offset, y_offset + 2,
128 qpix_put[2], chroma_put[1], qpix_avg[2], chroma_avg[1],
129 &weight_op[1], &weight_avg[1],
132 mc_part(h, n, 0, 8, 4 * h->mb_linesize,
133 dest_y, dest_cb, dest_cr, x_offset, y_offset,
134 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
135 &weight_op[2], &weight_avg[2],
137 mc_part(h, n + 1, 0, 8, 4 * h->mb_linesize,
138 dest_y, dest_cb, dest_cr, x_offset + 2, y_offset,
139 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
140 &weight_op[2], &weight_avg[2],
145 for (j = 0; j < 4; j++) {
146 int sub_x_offset = x_offset + 2 * (j & 1);
147 int sub_y_offset = y_offset + (j & 2);
149 dest_y, dest_cb, dest_cr, sub_x_offset, sub_y_offset,
150 qpix_put[2], chroma_put[2], qpix_avg[2], chroma_avg[2],
151 &weight_op[2], &weight_avg[2],
static av_always_inline void mc_part_weighted(H264Context *h, int n, int square, int height, int delta, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int x_offset, int y_offset, qpel_mc_func *qpix_put, h264_chroma_mc_func chroma_put, h264_weight_func luma_weight_op, h264_weight_func chroma_weight_op, h264_biweight_func luma_weight_avg, h264_biweight_func chroma_weight_avg, int list0, int list1, int pixel_shift, int chroma_idc)
#define IS_DIR(a, part, list)
void(* qpel_mc_func)(uint8_t *dst, uint8_t *src, int stride)
Picture current_picture
copy of the current picture structure.
void(* h264_biweight_func)(uint8_t *dst, uint8_t *src, int stride, int height, int log2_denom, int weightd, int weights, int offset)
int active_thread_type
Which multithreading methods are in use by the codec.
void(* h264_chroma_mc_func)(uint8_t *dst, uint8_t *src, int srcStride, int h, int x, int y)
static const uint8_t scan8[16 *3+3]
static av_always_inline void prefetch_motion(H264Context *h, int list, int pixel_shift, int chroma_idc)
uint32_t * mb_type
macroblock type table mb_type_base + mb_width + 2
int implicit_weight[48][48][2]
static void MCFUNC() hl_motion(H264Context *h, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, qpel_mc_func(*qpix_put)[16], h264_chroma_mc_func(*chroma_put), qpel_mc_func(*qpix_avg)[16], h264_chroma_mc_func(*chroma_avg), h264_weight_func *weight_op, h264_biweight_func *weight_avg)
static void await_references(H264Context *h)
Wait until all reference frames are available for MC operations.
void(* h264_weight_func)(uint8_t *block, int stride, int height, int log2_denom, int weight, int offset)
struct AVCodecContext * avctx
int8_t ref_cache[2][5 *8]
static void mc_part_std(AVSContext *h, int chroma_height, int delta, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int x_offset, int y_offset, qpel_mc_func *qpix_put, h264_chroma_mc_func chroma_put, qpel_mc_func *qpix_avg, h264_chroma_mc_func chroma_avg, cavs_vector *mv)