/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
H A D | invtrans.h | 40 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 D | reconintra4x4.h | 20 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 D | findnearmv.h | 37 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 D | findnearmv.c | 26 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...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
H A D | vp9_pred_common.h | 21 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 D | vp9_mvref_common.h | 25 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 D | vp9_blockd.c | 40 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 D | vp9_reconinter.h | 21 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, 24 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, 27 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, 30 void vp9_dec_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, 60 void vp9_setup_dst_planes(MACROBLOCKD *xd, const YV12_BUFFER_CONFIG *src, 63 void vp9_setup_pre_planes(MACROBLOCKD *xd, int idx,
|
H A D | vp9_onyxc_int.h | 240 static INLINE void init_macroblockd(VP9_COMMON *cm, MACROBLOCKD *xd) { 244 xd->plane[i].dqcoeff = xd->dqcoeff[i]; 245 xd->above_context[i] = cm->above_context + 249 xd->above_seg_context = cm->above_seg_context; 250 xd->mi_stride = cm->mi_stride; 259 static INLINE void set_skip_context(MACROBLOCKD *xd, int mi_row, int mi_col) { 264 struct macroblockd_plane *const pd = &xd->plane[i]; 265 pd->above_context = &xd->above_context[i][above_idx >> pd->subsampling_x]; 266 pd->left_context = &xd [all...] |
H A D | vp9_reconinter.c | 117 MV clamp_mv_to_umv_border_sb(const MACROBLOCKD *xd, const MV *src_mv, argument 134 xd->mb_to_left_edge * (1 << (1 - ss_x)) - spel_left, 135 xd->mb_to_right_edge * (1 << (1 - ss_x)) + spel_right, 136 xd->mb_to_top_edge * (1 << (1 - ss_y)) - spel_top, 137 xd->mb_to_bottom_edge * (1 << (1 - ss_y)) + spel_bottom); 142 static void build_inter_predictors(MACROBLOCKD *xd, int plane, int block, argument 146 struct macroblockd_plane *const pd = &xd->plane[plane]; 147 const MODE_INFO *mi = xd->mi[0]; 153 const struct scale_factors *const sf = &xd->block_refs[ref]->sf; 172 const MV mv_q4 = clamp_mv_to_umv_border_sb(xd, 201 build_inter_predictors_for_planes(MACROBLOCKD *xd, BLOCK_SIZE bsize, int mi_row, int mi_col, int plane_from, int plane_to) argument 229 vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col, BLOCK_SIZE bsize) argument 233 vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col, BLOCK_SIZE bsize) argument 238 vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, BLOCK_SIZE bsize) argument 246 dec_build_inter_predictors(MACROBLOCKD *xd, int plane, int block, int bw, int bh, int x, int y, int w, int h, int mi_x, int mi_y) argument 385 vp9_dec_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col, BLOCK_SIZE bsize) argument 412 vp9_setup_dst_planes(MACROBLOCKD *xd, const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col) argument 428 vp9_setup_pre_planes(MACROBLOCKD *xd, int idx, const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col, const struct scale_factors *sf) argument [all...] |
H A D | vp9_mvref_common.c | 118 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...] |
H A D | vp9_reconintra.h | 21 void vp9_predict_intra_block(const MACROBLOCKD *xd, int block_idx, int bwl_in,
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/ |
H A D | threading.c | 39 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...] |
H A D | decodeframe.c | 57 void vp8_mb_init_dequantizer(VP8D_COMP *pbi, MACROBLOCKD *xd) argument 61 MB_MODE_INFO *mbmi = &xd->mode_info_context->mbmi; 65 if (xd->segmentation_enabled) 68 if (xd->mb_segement_abs_delta == SEGMENT_ABSDATA) 69 QIndex = xd->segment_feature_data[MB_LVL_ALT_Q][mbmi->segment_id]; 74 QIndex = pc->base_qindex + xd->segment_feature_data[MB_LVL_ALT_Q][mbmi->segment_id]; 82 xd->dequant_y1_dc[0] = 1; 83 xd->dequant_y1[0] = pc->Y1dequant[QIndex][0]; 84 xd->dequant_y2[0] = pc->Y2dequant[QIndex][0]; 85 xd 96 decode_macroblock(VP8D_COMP *pbi, MACROBLOCKD *xd, unsigned int mb_idx) argument 502 MACROBLOCKD *const xd = & pbi->mb; local 905 MACROBLOCKD *const xd = & pbi->mb; local 975 MACROBLOCKD *const xd = &pbi->mb; local [all...] |
H A D | decoderthreading.h | 19 void vp8mt_decode_mb_rows(VP8D_COMP *pbi, MACROBLOCKD *xd);
|
H A D | error_concealment.h | 43 void vp8_conceal_corrupt_mb(MACROBLOCKD *xd);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
H A D | encodeintra.c | 85 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 D | encodeframe.c | 266 MACROBLOCKD *xd = &x->e_mbd; local 284 xd->up_available = (mb_row != 0); 291 xd->dst.y_buffer = new_yv12->y_buffer + recon_yoffset; 292 xd->left_available = (mb_col != 0); 320 vp8_extend_mb_row(new_yv12, xd->dst.y_buffer + 16, 321 xd->dst.u_buffer + 8, xd->dst.v_buffer + 8); 366 MACROBLOCKD *xd, 405 xd->above_context = cm->above_context; 407 xd 362 encode_mb_row(VP8_COMP *cpi, VP8_COMMON *cm, int mb_row, MACROBLOCK *x, MACROBLOCKD *xd, TOKENEXTRA **tp, int *segment_counts, int *totalrate) argument 611 MACROBLOCKD *const xd = & x->e_mbd; local 719 MACROBLOCKD *const xd = & x->e_mbd; local 1112 const MACROBLOCKD *xd = & x->e_mbd; local 1167 MACROBLOCKD *xd = &x->e_mbd; local 1214 MACROBLOCKD *const xd = &x->e_mbd; local [all...] |
H A D | ethreading.c | 67 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...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
H A D | vp9_decodemv.h | 22 void vp9_read_mode_info(VP9_COMMON *cm, MACROBLOCKD *xd,
|
H A D | vp9_detokenize.h | 22 int vp9_decode_block_tokens(VP9_COMMON *cm, MACROBLOCKD *xd,
|
H A D | vp9_dthread.h | 26 DECLARE_ALIGNED(16, struct macroblockd, xd); 55 struct macroblockd *xd,
|
H A D | vp9_decodeframe.c | 184 static void setup_plane_dequants(VP9_COMMON *cm, MACROBLOCKD *xd, int q_index) { argument 186 xd->plane[0].dequant = cm->y_dequant[q_index]; 189 xd->plane[i].dequant = cm->uv_dequant[q_index]; 192 static void inverse_transform_block(MACROBLOCKD* xd, int plane, int block, argument 195 struct macroblockd_plane *const pd = &xd->plane[plane]; 202 tx_type = get_tx_type_4x4(plane_type, xd, block); 204 xd->itxm_add(dqcoeff, dst, stride, eob); 209 tx_type = get_tx_type(plane_type, xd); 213 tx_type = get_tx_type(plane_type, xd); 239 MACROBLOCKD *xd; member in struct:intra_args 248 MACROBLOCKD *const xd = args->xd; local 274 MACROBLOCKD *xd; member in struct:inter_args 284 MACROBLOCKD *const xd = args->xd; local 296 set_offsets(VP9_COMMON *const cm, MACROBLOCKD *const xd, const TileInfo *const tile, BLOCK_SIZE bsize, int mi_row, int mi_col) argument 323 set_ref(VP9_COMMON *const cm, MACROBLOCKD *const xd, int idx, int mi_row, int mi_col) argument 336 decode_block(VP9_COMMON *const cm, MACROBLOCKD *const xd, const TileInfo *const tile, int mi_row, int mi_col, vp9_reader *r, BLOCK_SIZE bsize) argument 381 read_partition(VP9_COMMON *cm, MACROBLOCKD *xd, int hbs, int mi_row, int mi_col, BLOCK_SIZE bsize, vp9_reader *r) argument 405 decode_partition(VP9_COMMON *const cm, MACROBLOCKD *const xd, const TileInfo *const tile, int mi_row, int mi_col, vp9_reader* r, BLOCK_SIZE bsize) argument 574 setup_quantization(VP9_COMMON *const cm, MACROBLOCKD *const xd, struct vp9_read_bit_buffer *rb) argument 681 MACROBLOCKD *xd = &pbi->mb; local 1155 MACROBLOCKD *const xd = &pbi->mb; local 1256 MACROBLOCKD *const xd = &pbi->mb; local [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
H A D | vp9_mbgraph.c | 30 MACROBLOCKD *const xd = &x->e_mbd; local 64 xd->mi[0]->mbmi.mode = NEWMV; 65 xd->mi[0]->mbmi.mv[0].as_mv = *dst_mv; 67 vp9_build_inter_predictors_sby(xd, mb_row, mb_col, BLOCK_16X16); 76 xd->plane[0].dst.buf, xd->plane[0].dst.stride, 83 MACROBLOCKD *const xd = &x->e_mbd; local 90 xd->plane[0].pre[0].buf, xd->plane[0].pre[0].stride, 123 MACROBLOCKD *const xd local 139 MACROBLOCKD *const xd = &x->e_mbd; local 182 MACROBLOCKD *const xd = &x->e_mbd; local 237 MACROBLOCKD *const xd = &x->e_mbd; local [all...] |
H A D | vp9_pickmode.c | 33 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...] |