Searched defs:xd (Results 1 - 25 of 50) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
H A Dvp9_mvref_common.h25 static INLINE void clamp_mv2(MV *mv, const MACROBLOCKD *xd) { argument
26 clamp_mv(mv, xd->mb_to_left_edge - LEFT_TOP_MARGIN,
27 xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN,
28 xd->mb_to_top_edge - LEFT_TOP_MARGIN,
29 xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN);
32 void vp9_find_mv_refs(const VP9_COMMON *cm, const MACROBLOCKD *xd,
40 void vp9_find_best_ref_mvs(MACROBLOCKD *xd, int allow_hp,
43 void vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *cm, MACROBLOCKD *xd,
H A Dvp9_blockd.c40 const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane,
42 const struct macroblockd_plane *const pd = &xd->plane[plane];
43 const MB_MODE_INFO* mbmi = &xd->mi[0]->mbmi;
58 if (xd->mb_to_right_edge < 0 || xd->mb_to_bottom_edge < 0) {
64 // xd->mb_to_right_edge is in units of pixels * 8. This converts
66 if (xd->mb_to_right_edge < 0)
67 max_blocks_wide += (xd->mb_to_right_edge >> (5 + pd->subsampling_x));
69 if (xd->mb_to_bottom_edge < 0)
70 max_blocks_high += (xd
39 vp9_foreach_transformed_block_in_plane( const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane, foreach_transformed_block_visitor visit, void *arg) argument
89 vp9_foreach_transformed_block(const MACROBLOCKD* const xd, BLOCK_SIZE bsize, foreach_transformed_block_visitor visit, void *arg) argument
99 vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd, BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, int aoff, int loff) argument
141 vp9_setup_block_planes(MACROBLOCKD *xd, int ss_x, int ss_y) argument
[all...]
H A Dvp9_loopfilter.h114 struct VP9Common *cm, struct macroblockd *xd,
120 struct macroblockd xd; // TODO(jzern): most of this is unnecessary to the member in struct:LoopFilterWorkerData
H A Dvp9_pred_common.h21 static INLINE const MODE_INFO *get_above_mi(const MACROBLOCKD *const xd) { argument
22 return xd->up_available ? xd->mi[-xd->mi_stride] : NULL;
25 static INLINE const MODE_INFO *get_left_mi(const MACROBLOCKD *const xd) { argument
26 return xd->left_available ? xd->mi[-1] : NULL;
32 static INLINE int vp9_get_pred_context_seg_id(const MACROBLOCKD *xd) { argument
33 const MODE_INFO *const above_mi = get_above_mi(xd);
34 const MODE_INFO *const left_mi = get_left_mi(xd);
42 vp9_get_pred_prob_seg_id(const struct segmentation *seg, const MACROBLOCKD *xd) argument
47 vp9_get_skip_context(const MACROBLOCKD *xd) argument
55 vp9_get_skip_prob(const VP9_COMMON *cm, const MACROBLOCKD *xd) argument
64 vp9_get_intra_inter_prob(const VP9_COMMON *cm, const MACROBLOCKD *xd) argument
71 vp9_get_reference_mode_prob(const VP9_COMMON *cm, const MACROBLOCKD *xd) argument
79 vp9_get_pred_prob_comp_ref_p(const VP9_COMMON *cm, const MACROBLOCKD *xd) argument
87 vp9_get_pred_prob_single_ref_p1(const VP9_COMMON *cm, const MACROBLOCKD *xd) argument
94 vp9_get_pred_prob_single_ref_p2(const VP9_COMMON *cm, const MACROBLOCKD *xd) argument
116 get_tx_probs2(TX_SIZE max_tx_size, const MACROBLOCKD *xd, const struct tx_probs *tx_probs) argument
[all...]
H A Dvp9_entropy.h101 static INLINE void reset_skip_context(MACROBLOCKD *xd, BLOCK_SIZE bsize) { argument
104 struct macroblockd_plane *const pd = &xd->plane[i];
176 INLINE static const scan_order *get_scan(const MACROBLOCKD *xd, TX_SIZE tx_size, argument
178 const MODE_INFO *const mi = xd->mi[0];
180 if (is_inter_block(&mi->mbmi) || type != PLANE_TYPE_Y || xd->lossless) {
H A Dvp9_pred_common.c23 int vp9_get_pred_context_switchable_interp(const MACROBLOCKD *xd) { argument
28 const MB_MODE_INFO *const left_mbmi = get_mbmi(get_left_mi(xd));
31 const MB_MODE_INFO *const above_mbmi = get_mbmi(get_above_mi(xd));
52 int vp9_get_intra_inter_context(const MACROBLOCKD *xd) { argument
53 const MB_MODE_INFO *const above_mbmi = get_mbmi(get_above_mi(xd));
54 const MB_MODE_INFO *const left_mbmi = get_mbmi(get_left_mi(xd));
71 const MACROBLOCKD *xd) {
73 const MB_MODE_INFO *const above_mbmi = get_mbmi(get_above_mi(xd));
74 const MB_MODE_INFO *const left_mbmi = get_mbmi(get_left_mi(xd));
114 const MACROBLOCKD *xd) {
70 vp9_get_reference_mode_context(const VP9_COMMON *cm, const MACROBLOCKD *xd) argument
113 vp9_get_pred_context_comp_ref_p(const VP9_COMMON *cm, const MACROBLOCKD *xd) argument
195 vp9_get_pred_context_single_ref_p1(const MACROBLOCKD *xd) argument
261 vp9_get_pred_context_single_ref_p2(const MACROBLOCKD *xd) argument
350 vp9_get_tx_size_context(const MACROBLOCKD *xd) argument
[all...]
H A Dvp9_reconintra.c314 static void build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref, argument
328 const struct macroblockd_plane *const pd = &xd->plane[plane];
341 frame_width = xd->cur_buf->y_width;
342 frame_height = xd->cur_buf->y_height;
344 frame_width = xd->cur_buf->uv_width;
345 frame_height = xd->cur_buf->uv_height;
349 x0 = (-xd->mb_to_left_edge >> (3 + pd->subsampling_x)) + x;
350 y0 = (-xd->mb_to_top_edge >> (3 + pd->subsampling_y)) + y;
356 if (xd->mb_to_bottom_edge < 0) {
379 if (xd
438 vp9_predict_intra_block(const MACROBLOCKD *xd, int block_idx, int bwl_in, TX_SIZE tx_size, MB_PREDICTION_MODE mode, const uint8_t *ref, int ref_stride, uint8_t *dst, int dst_stride, int aoff, int loff, int plane) argument
[all...]
H A Dvp9_mvref_common.c118 static void clamp_mv_ref(MV *mv, const MACROBLOCKD *xd) { argument
119 clamp_mv(mv, xd->mb_to_left_edge - MV_BORDER,
120 xd->mb_to_right_edge + MV_BORDER,
121 xd->mb_to_top_edge - MV_BORDER,
122 xd->mb_to_bottom_edge + MV_BORDER);
191 static void find_mv_refs_idx(const VP9_COMMON *cm, const MACROBLOCKD *xd, argument
199 ? cm->prev_mi_grid_visible[mi_row * xd->mi_stride + mi_col]
218 const MODE_INFO *const candidate_mi = xd->mi[mv_ref->col + mv_ref->row *
219 xd->mi_stride];
238 const MB_MODE_INFO *const candidate = &xd
286 vp9_find_mv_refs(const VP9_COMMON *cm, const MACROBLOCKD *xd, const TileInfo *const tile, MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame, int_mv *mv_ref_list, int mi_row, int mi_col) argument
306 vp9_find_best_ref_mvs(MACROBLOCKD *xd, int allow_hp, int_mv *mvlist, int_mv *nearest, int_mv *near) argument
318 vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *cm, MACROBLOCKD *xd, const TileInfo *const tile, int block, int ref, int mi_row, int mi_col, int_mv *nearest, int_mv *near) argument
[all...]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
H A Dinvtrans.h40 static void vp8_inverse_transform_mby(MACROBLOCKD *xd) argument
42 short *DQC = xd->dequant_y1;
44 if (xd->mode_info_context->mbmi.mode != SPLITMV)
47 if (xd->eobs[24] > 1)
50 (&xd->block[24].dqcoeff[0], xd->qcoeff);
55 (&xd->block[24].dqcoeff[0], xd->qcoeff);
57 eob_adjust(xd->eobs, xd
[all...]
H A Dreconintra4x4.h20 static void intra_prediction_down_copy(MACROBLOCKD *xd, argument
23 int dst_stride = xd->dst.y_stride;
24 unsigned char *above_right_dst = xd->dst.y_buffer - dst_stride + 16;
H A Dfindnearmv.h37 static void vp8_clamp_mv2(int_mv *mv, const MACROBLOCKD *xd) argument
39 if (mv->as_mv.col < (xd->mb_to_left_edge - LEFT_TOP_MARGIN))
40 mv->as_mv.col = xd->mb_to_left_edge - LEFT_TOP_MARGIN;
41 else if (mv->as_mv.col > xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN)
42 mv->as_mv.col = xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN;
44 if (mv->as_mv.row < (xd->mb_to_top_edge - LEFT_TOP_MARGIN))
45 mv->as_mv.row = xd->mb_to_top_edge - LEFT_TOP_MARGIN;
46 else if (mv->as_mv.row > xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN)
47 mv->as_mv.row = xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN;
76 MACROBLOCKD *xd,
[all...]
H A Dfindnearmv.c26 MACROBLOCKD *xd,
36 const MODE_INFO *above = here - xd->mode_info_stride;
140 static void invert_and_clamp_mvs(int_mv *inv, int_mv *src, MACROBLOCKD *xd) argument
144 vp8_clamp_mv2(inv, xd);
145 vp8_clamp_mv2(src, xd);
151 MACROBLOCKD *xd,
162 vp8_find_near_mvs(xd,
172 &mode_mv_sb[sign_bias][NEARESTMV], xd);
174 &mode_mv_sb[sign_bias][NEARMV], xd);
176 &best_mv_sb[sign_bias], xd);
24 vp8_find_near_mvs( MACROBLOCKD *xd, const MODE_INFO *here, int_mv *nearest, int_mv *nearby, int_mv *best_mv, int cnt[4], int refframe, int *ref_frame_sign_bias ) argument
149 vp8_find_near_mvs_bias( MACROBLOCKD *xd, const MODE_INFO *here, int_mv mode_mv_sb[2][MB_MODE_COUNT], int_mv best_mv_sb[2], int cnt[4], int refframe, int *ref_frame_sign_bias ) argument
[all...]
H A Dreconinter.c340 static void clamp_mv_to_umv_border(MV *mv, const MACROBLOCKD *xd) argument
351 if (mv->col < (xd->mb_to_left_edge - (19 << 3)))
352 mv->col = xd->mb_to_left_edge - (16 << 3);
353 else if (mv->col > xd->mb_to_right_edge + (18 << 3))
354 mv->col = xd->mb_to_right_edge + (16 << 3);
356 if (mv->row < (xd->mb_to_top_edge - (19 << 3)))
357 mv->row = xd->mb_to_top_edge - (16 << 3);
358 else if (mv->row > xd->mb_to_bottom_edge + (18 << 3))
359 mv->row = xd->mb_to_bottom_edge + (16 << 3);
363 static void clamp_uvmv_to_umv_border(MV *mv, const MACROBLOCKD *xd) argument
574 vp8_build_inter_predictors_mb(MACROBLOCKD *xd) argument
[all...]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
H A Dencodeintra.c85 MACROBLOCKD *xd = &mb->e_mbd; local
86 intra_prediction_down_copy(xd, xd->dst.y_buffer - xd->dst.y_stride + 16);
96 MACROBLOCKD *xd = &x->e_mbd; local
98 vp8_build_intra_predictors_mby_s(xd,
99 xd->dst.y_buffer - xd->dst.y_stride,
100 xd->dst.y_buffer - 1,
101 xd
118 MACROBLOCKD *xd = &x->e_mbd; local
[all...]
H A Dethreading.c67 MACROBLOCKD *xd = &x->e_mbd; local
103 xd->above_context = cm->above_context;
104 xd->left_context = &mb_row_left_context;
108 xd->up_available = (mb_row != 0);
137 xd->mb_to_left_edge = -((mb_col * 16) << 3);
138 xd->mb_to_right_edge = ((cm->mb_cols - 1 - mb_col) * 16) << 3;
139 xd->mb_to_top_edge = -((mb_row * 16) << 3);
140 xd->mb_to_bottom_edge = ((cm->mb_rows - 1 - mb_row) * 16) << 3;
150 xd->dst.y_buffer = cm->yv12_fb[dst_fb_idx].y_buffer + recon_yoffset;
151 xd
371 MACROBLOCKD *xd = &x->e_mbd; local
443 MACROBLOCKD *const xd = & x->e_mbd; local
[all...]
H A Dtokenize.c110 MACROBLOCKD *xd = &x->e_mbd; local
121 b = xd->block + 24;
123 a = (ENTROPY_CONTEXT *)xd->above_context + 8;
124 l = (ENTROPY_CONTEXT *)xd->left_context + 8;
125 eob = xd->eobs[24];
199 MACROBLOCKD *xd = &x->e_mbd; local
212 b = xd->block;
220 a = (ENTROPY_CONTEXT *)xd->above_context + tmp1;
221 l = (ENTROPY_CONTEXT *)xd->left_context + tmp2;
295 a = (ENTROPY_CONTEXT *)xd
385 MACROBLOCKD *xd = &x->e_mbd; local
569 MACROBLOCKD *xd = &x->e_mbd; local
[all...]
H A Dquantize.c614 MACROBLOCKD *xd = &x->e_mbd; local
618 if (xd->segmentation_enabled)
621 if (xd->mb_segement_abs_delta == SEGMENT_ABSDATA)
622 QIndex = xd->segment_feature_data[MB_LVL_ALT_Q][xd->mode_info_context->mbmi.segment_id];
626 QIndex = cpi->common.base_qindex + xd->segment_feature_data[MB_LVL_ALT_Q][xd->mode_info_context->mbmi.segment_id];
643 xd->dequant_y1_dc[0] = 1;
644 xd->dequant_y1[0] = cpi->common.Y1dequant[QIndex][0];
645 xd
[all...]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
H A Dvp9_aq_variance.c117 MACROBLOCKD *xd = &x->e_mbd; local
119 int right_overflow = (xd->mb_to_right_edge < 0) ?
120 ((-xd->mb_to_right_edge) >> 3) : 0;
121 int bottom_overflow = (xd->mb_to_bottom_edge < 0) ?
122 ((-xd->mb_to_bottom_edge) >> 3) : 0;
H A Dvp9_pickmode.c33 MACROBLOCKD *xd = &x->e_mbd; local
34 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi;
56 backup_yv12[i] = xd->plane[i].pre[0];
58 vp9_setup_pre_planes(xd, 0, scaled_ref_frame, mi_row, mi_col, NULL);
74 xd->plane[i].pre[0] = backup_yv12[i];
129 xd->plane[i].pre[0] = backup_yv12[i];
137 MACROBLOCKD *xd = &x->e_mbd; local
138 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi;
152 backup_yv12[i] = xd->plane[i].pre[0];
154 vp9_setup_pre_planes(xd,
179 model_rd_for_sb_y(VP9_COMP *cpi, BLOCK_SIZE bsize, MACROBLOCK *x, MACROBLOCKD *xd, int *out_rate_sum, int64_t *out_dist_sum) argument
209 MACROBLOCKD *xd = &x->e_mbd; local
[all...]
H A Dvp9_quantize.c131 MACROBLOCKD *const xd = &x->e_mbd; local
133 struct macroblockd_plane *pd = &xd->plane[plane];
218 MACROBLOCKD *const xd = &x->e_mbd; local
220 const int segment_id = xd->mi[0]->mbmi.segment_id;
232 xd->plane[0].dequant = cm->y_dequant[qindex];
241 xd->plane[i].dequant = cm->uv_dequant[qindex];
250 xd->plane[3].dequant = cm->a_dequant[qindex];
H A Dvp9_segmentation.c130 MACROBLOCKD *const xd = &cpi->mb.e_mbd; local
136 xd->mi = mi_8x8;
137 segment_id = xd->mi[0]->mbmi.segment_id;
139 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols);
151 const int pred_context = vp9_get_pred_context_seg_id(xd);
155 xd->mi[0]->mbmi.seg_id_predicted = pred_flag;
H A Dvp9_encodemv.c244 void vp9_update_mv_count(VP9_COMMON *cm, const MACROBLOCKD *xd) { argument
245 const MODE_INFO *mi = xd->mi[0];
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
H A Dvp9_dthread.c92 VP9_COMMON *const cm, MACROBLOCKD *const xd,
110 vp9_setup_dst_planes(xd, frame_buffer, mi_row, mi_col);
114 vp9_filter_block_plane(cm, &xd->plane[plane], mi_row, &lfm);
128 loop_filter_rows_mt(lf_data->frame_buffer, lf_data->cm, &lf_data->xd,
138 MACROBLOCKD *xd,
144 (void)xd;
184 lf_data->xd = pbi->mb;
91 loop_filter_rows_mt(const YV12_BUFFER_CONFIG *const frame_buffer, VP9_COMMON *const cm, MACROBLOCKD *const xd, int start, int stop, int y_only, VP9LfSync *const lf_sync, int num_lf_workers) argument
136 vp9_loop_filter_frame_mt(VP9D_COMP *pbi, VP9_COMMON *cm, MACROBLOCKD *xd, int frame_filter_level, int y_only, int partial_frame) argument
H A Dvp9_detokenize.c82 static int decode_coefs(VP9_COMMON *cm, const MACROBLOCKD *xd, PLANE_TYPE type, argument
89 const int ref = is_inter_block(&xd->mi[0]->mbmi);
197 int vp9_decode_block_tokens(VP9_COMMON *cm, MACROBLOCKD *xd, argument
200 struct macroblockd_plane *const pd = &xd->plane[plane];
203 const scan_order *so = get_scan(xd, tx_size, pd->plane_type, block);
204 const int eob = decode_coefs(cm, xd, pd->plane_type,
207 vp9_set_contexts(xd, pd, plane_bsize, tx_size, eob > 0, x, y);
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/
H A Dthreading.c39 void vp8_mb_init_dequantizer(VP8D_COMP *pbi, MACROBLOCKD *xd);
41 static void setup_decoding_thread_data(VP8D_COMP *pbi, MACROBLOCKD *xd, MB_ROW_DEC *mbrd, int count) argument
49 mbd->subpixel_predict = xd->subpixel_predict;
50 mbd->subpixel_predict8x4 = xd->subpixel_predict8x4;
51 mbd->subpixel_predict8x8 = xd->subpixel_predict8x8;
52 mbd->subpixel_predict16x16 = xd->subpixel_predict16x16;
58 mbd->pre = xd->pre;
59 mbd->dst = xd->dst;
61 mbd->segmentation_enabled = xd->segmentation_enabled;
62 mbd->mb_segement_abs_delta = xd
92 mt_decode_macroblock(VP8D_COMP *pbi, MACROBLOCKD *xd, unsigned int mb_idx) argument
296 mt_decode_mb_rows(VP8D_COMP *pbi, MACROBLOCKD *xd, int start_mb_row) argument
638 MACROBLOCKD *xd = &mbrd->mbd; local
865 vp8mt_decode_mb_rows( VP8D_COMP *pbi, MACROBLOCKD *xd) argument
[all...]

Completed in 261 milliseconds

12