Home
last modified time | relevance | path

Searched refs:mb (Results 1 – 25 of 66) sorted by relevance

123

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/x86/
Dvp8_enc_stubs_sse2.c18 int vp8_mbblock_error_xmm(MACROBLOCK *mb, int dc) in vp8_mbblock_error_xmm() argument
20 short *coeff_ptr = mb->block[0].coeff; in vp8_mbblock_error_xmm()
21 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff; in vp8_mbblock_error_xmm()
26 int vp8_mbuverror_xmm(MACROBLOCK *mb) in vp8_mbuverror_xmm() argument
28 short *s_ptr = &mb->coeff[256]; in vp8_mbuverror_xmm()
29 short *d_ptr = &mb->e_mbd.dqcoeff[256]; in vp8_mbuverror_xmm()
Dvp8_enc_stubs_mmx.c53 int vp8_mbblock_error_mmx(MACROBLOCK *mb, int dc) in vp8_mbblock_error_mmx() argument
55 short *coeff_ptr = mb->block[0].coeff; in vp8_mbblock_error_mmx()
56 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff; in vp8_mbblock_error_mmx()
61 int vp8_mbuverror_mmx(MACROBLOCK *mb) in vp8_mbuverror_mmx() argument
63 short *s_ptr = &mb->coeff[256]; in vp8_mbuverror_mmx()
64 short *d_ptr = &mb->e_mbd.dqcoeff[256]; in vp8_mbuverror_mmx()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dethreading.c66 MACROBLOCK *x = &mbri->mb; in thread_encoding_proc()
448 MACROBLOCK *mb = & mbr_ei[i].mb; in vp8cx_init_mbrthread_data() local
449 MACROBLOCKD *mbd = &mb->e_mbd; in vp8cx_init_mbrthread_data()
455 mb->gf_active_ptr = x->gf_active_ptr; in vp8cx_init_mbrthread_data()
460 mb->partition_info = x->pi + x->e_mbd.mode_info_stride * (i + 1); in vp8cx_init_mbrthread_data()
467 mb->src = * cpi->Source; in vp8cx_init_mbrthread_data()
471 mb->src.y_buffer += 16 * x->src.y_stride * (i + 1); in vp8cx_init_mbrthread_data()
472 mb->src.u_buffer += 8 * x->src.uv_stride * (i + 1); in vp8cx_init_mbrthread_data()
473 mb->src.v_buffer += 8 * x->src.uv_stride * (i + 1); in vp8cx_init_mbrthread_data()
475 vp8_build_block_offsets(mb); in vp8cx_init_mbrthread_data()
[all …]
Donyx_if.c242 lc->zbin_over_quant = cpi->mb.zbin_over_quant; in save_layer_context()
250 cpi->mb.count_mb_ref_frame_usage, in save_layer_context()
251 sizeof(cpi->mb.count_mb_ref_frame_usage)); in save_layer_context()
280 cpi->mb.zbin_over_quant = lc->zbin_over_quant; in restore_layer_context()
287 memcpy (cpi->mb.count_mb_ref_frame_usage, in restore_layer_context()
289 sizeof(cpi->mb.count_mb_ref_frame_usage)); in restore_layer_context()
414 if ( cpi->mb.e_mbd.segmentation_enabled ) in setup_features()
416 cpi->mb.e_mbd.update_mb_segmentation_map = 1; in setup_features()
417 cpi->mb.e_mbd.update_mb_segmentation_data = 1; in setup_features()
421 cpi->mb.e_mbd.update_mb_segmentation_map = 0; in setup_features()
[all …]
Dpickinter.c43 int vp8_skip_fractional_mv_step(MACROBLOCK *mb, BLOCK *b, BLOCKD *d, in vp8_skip_fractional_mv_step() argument
58 (void) mb; in vp8_skip_fractional_mv_step()
65 int vp8_get_inter_mbpred_error(MACROBLOCK *mb, in vp8_get_inter_mbpred_error() argument
71 BLOCK *b = &mb->block[0]; in vp8_get_inter_mbpred_error()
72 BLOCKD *d = &mb->e_mbd.block[0]; in vp8_get_inter_mbpred_error()
75 int pre_stride = mb->e_mbd.pre.y_stride; in vp8_get_inter_mbpred_error()
76 unsigned char *in_what = mb->e_mbd.pre.y_buffer + d->offset ; in vp8_get_inter_mbpred_error()
183 MACROBLOCK *mb, in pick_intra4x4mby_modes() argument
188 MACROBLOCKD *const xd = &mb->e_mbd; in pick_intra4x4mby_modes()
190 int cost = mb->mbmode_cost [xd->frame_type] [B_PRED]; in pick_intra4x4mby_modes()
[all …]
Dencodeframe.c265 MACROBLOCK *const x = & cpi->mb; in build_activity_map()
609 MACROBLOCK *const x = & cpi->mb; in init_encode_frame_mb_context()
717 MACROBLOCK *const x = & cpi->mb; in vp8_encode_frame()
755 cpi->mb.skip_true_count = 0; in vp8_encode_frame()
766 vp8_zero(cpi->mb.MVcount); in vp8_encode_frame()
875 cpi->mb.skip_true_count += cpi->mb_row_ei[i].mb.skip_true_count; in vp8_encode_frame()
878 cpi->mb.ymode_count[mode_count] += in vp8_encode_frame()
879 cpi->mb_row_ei[i].mb.ymode_count[mode_count]; in vp8_encode_frame()
882 cpi->mb.uv_mode_count[mode_count] += in vp8_encode_frame()
883 cpi->mb_row_ei[i].mb.uv_mode_count[mode_count]; in vp8_encode_frame()
[all …]
Drdopt.c222 cpi->mb.sadperbit16 = sad_per_bit16lut[QIndex]; in vp8cx_initialize_me_consts()
223 cpi->mb.sadperbit4 = sad_per_bit4lut[QIndex]; in vp8cx_initialize_me_consts()
241 if (cpi->mb.zbin_over_quant > 0) in vp8_initialize_rd_consts()
249 oq_factor = 1.0 + ((double)0.0015625 * cpi->mb.zbin_over_quant); in vp8_initialize_rd_consts()
263 cpi->mb.errorperbit = (cpi->RDMULT / 110); in vp8_initialize_rd_consts()
264 cpi->mb.errorperbit += (cpi->mb.errorperbit==0); in vp8_initialize_rd_consts()
326 cpi->mb.token_costs, in vp8_initialize_rd_consts()
423 int vp8_mbblock_error_c(MACROBLOCK *mb, int dc) in vp8_mbblock_error_c() argument
432 be = &mb->block[i]; in vp8_mbblock_error_c()
433 bd = &mb->e_mbd.block[i]; in vp8_mbblock_error_c()
[all …]
Dencodemb.c224 static void optimize_b(MACROBLOCK *mb, int ib, int type, in optimize_b() argument
258 b = &mb->block[ib]; in optimize_b()
259 d = &mb->e_mbd.block[ib]; in optimize_b()
276 rdmult = mb->rdmult * err_mult; in optimize_b()
277 if(mb->e_mbd.mode_info_context->mbmi.ref_frame==INTRA_FRAME) in optimize_b()
280 rddiv = mb->rddiv; in optimize_b()
314 mb->token_costs[type][band][pt][tokens[next][0].token]; in optimize_b()
316 mb->token_costs[type][band][pt][tokens[next][1].token]; in optimize_b()
373 rate0 += mb->token_costs[type][band][pt][ in optimize_b()
379 rate1 += mb->token_costs[type][band][pt][ in optimize_b()
[all …]
Dpicklpf.c177 vp8_loop_filter_partial_frame(cm, &cpi->mb.e_mbd, filt_val); in vp8cx_pick_filter_level_fast()
188 vp8_loop_filter_partial_frame(cm, &cpi->mb.e_mbd, filt_val); in vp8cx_pick_filter_level_fast()
219 vp8_loop_filter_partial_frame(cm, &cpi->mb.e_mbd, filt_val); in vp8cx_pick_filter_level_fast()
257 MACROBLOCKD *mbd = &cpi->mb.e_mbd; in vp8cx_set_alt_lf_level()
319 vp8_loop_filter_frame_yonly(cm, &cpi->mb.e_mbd, filt_mid); in vp8cx_pick_filter_level()
344 vp8_loop_filter_frame_yonly(cm, &cpi->mb.e_mbd, filt_low); in vp8cx_pick_filter_level()
372 vp8_loop_filter_frame_yonly(cm, &cpi->mb.e_mbd, filt_high); in vp8cx_pick_filter_level()
Dbitstream.c121 Pnew, x->fc.ymode_prob, bct, (unsigned int *)cpi->mb.ymode_count in update_mbintra_mode_probs()
130 Pnew, x->fc.uv_mode_prob, bct, (unsigned int *)cpi->mb.uv_mode_count in update_mbintra_mode_probs()
496 const int *const rfct = cpi->mb.count_mb_ref_frame_usage; in vp8_convert_rfct_to_prob()
530 cpi->mb.partition_info = cpi->mb.pi; in pack_inter_mode_mvs()
542 prob_skip_false = (total_mbs - cpi->mb.skip_true_count ) * 256 / total_mbs; in pack_inter_mode_mvs()
572 MACROBLOCKD *xd = &cpi->mb.e_mbd; in pack_inter_mode_mvs()
587 if (cpi->mb.e_mbd.update_mb_segmentation_map) in pack_inter_mode_mvs()
588 write_mb_features(w, mi, &cpi->mb.e_mbd); in pack_inter_mode_mvs()
678 blockmode = cpi->mb.partition_info->bmi[j].mode; in pack_inter_mode_mvs()
679 blockmv = cpi->mb.partition_info->bmi[j].mv; in pack_inter_mode_mvs()
[all …]
Dtemporal_filter.c147 MACROBLOCK *x = &cpi->mb; in vp8_temporal_filter_find_matching_mb_c()
240 MACROBLOCKD *mbd = &cpi->mb.e_mbd; in vp8_temporal_filter_iterate_c()
264 cpi->mb.mv_row_min = -((mb_row * 16) + (16 - 5)); in vp8_temporal_filter_iterate_c()
265 cpi->mb.mv_row_max = ((cpi->common.mb_rows - 1 - mb_row) * 16) in vp8_temporal_filter_iterate_c()
278 cpi->mb.mv_col_min = -((mb_col * 16) + (16 - 5)); in vp8_temporal_filter_iterate_c()
279 cpi->mb.mv_col_max = ((cpi->common.mb_cols - 1 - mb_col) * 16) in vp8_temporal_filter_iterate_c()
Dencodeintra.c81 void vp8_encode_intra4x4mby(MACROBLOCK *mb) in vp8_encode_intra4x4mby() argument
85 MACROBLOCKD *xd = &mb->e_mbd; in vp8_encode_intra4x4mby()
89 vp8_encode_intra4x4block(mb, i); in vp8_encode_intra4x4mby()
Dratectrl.c237 vp8_copy(cc->ymode_count, cpi->mb.ymode_count); in vp8_save_coding_context()
238 vp8_copy(cc->uv_mode_count, cpi->mb.uv_mode_count); in vp8_save_coding_context()
275 vp8_copy(cpi->mb.ymode_count, cc->ymode_count); in vp8_restore_coding_context()
276 vp8_copy(cpi->mb.uv_mode_count, cc->uv_mode_count); in vp8_restore_coding_context()
302 … vp8_build_component_cost_table(cpi->mb.mvcost, (const MV_CONTEXT *) cpi->common.fc.mvc, flag); in vp8_setup_key_frame()
1134 if (cpi->mb.zbin_over_quant > 0) in vp8_update_rate_correction_factors()
1136 int Z = cpi->mb.zbin_over_quant; in vp8_update_rate_correction_factors()
1213 cpi->mb.zbin_over_quant = 0; in vp8_regulate_q()
1327 while (cpi->mb.zbin_over_quant < zbin_oqmax) in vp8_regulate_q()
1329 cpi->mb.zbin_over_quant ++; in vp8_regulate_q()
[all …]
Dencodeintra.h23 void vp8_encode_intra4x4mby(MACROBLOCK *mb);
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Dset_roi.cc48 cpi.mb.e_mbd.mb_segement_abs_delta = SEGMENT_DELTADATA; in TEST()
50 cpi.mb.e_mbd.segmentation_enabled = 0; in TEST()
51 cpi.mb.e_mbd.update_mb_segmentation_map = 0; in TEST()
52 cpi.mb.e_mbd.update_mb_segmentation_data = 0; in TEST()
114 EXPECT_EQ(1, cpi.mb.e_mbd.segmentation_enabled) in TEST()
116 EXPECT_EQ(1, cpi.mb.e_mbd.update_mb_segmentation_map) in TEST()
118 EXPECT_EQ(1, cpi.mb.e_mbd.update_mb_segmentation_data) in TEST()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/
Ddecodemv.c350 const int mis = pbi->mb.mode_info_stride; in read_mb_modes_mv()
460 mb_to_top_edge = pbi->mb.mb_to_top_edge; in read_mb_modes_mv()
461 mb_to_bottom_edge = pbi->mb.mb_to_bottom_edge; in read_mb_modes_mv()
464 mb_to_right_edge = pbi->mb.mb_to_right_edge; in read_mb_modes_mv()
466 mb_to_left_edge = pbi->mb.mb_to_left_edge; in read_mb_modes_mv()
473 vp8_clamp_mv2(&near_mvs[near_index], &pbi->mb); in read_mb_modes_mv()
516 vp8_clamp_mv2(&mbmi->mv, &pbi->mb); in read_mb_modes_mv()
523 vp8_clamp_mv2(&mbmi->mv, &pbi->mb); in read_mb_modes_mv()
597 if (pbi->mb.update_mb_segmentation_map) in decode_mb_mode_mvs()
598 read_mb_features(&pbi->mbc[8], &mi->mbmi, &pbi->mb); in decode_mb_mode_mvs()
[all …]
Derror_concealment.c497 static void interpolate_mvs(MACROBLOCKD *mb, in interpolate_mvs() argument
502 MODE_INFO * const mi = mb->mode_info_context; in interpolate_mvs()
516 int mb_to_top_edge = mb->mb_to_top_edge + ((row*4)<<3); in interpolate_mvs()
517 int mb_to_bottom_edge = mb->mb_to_bottom_edge - ((row*4)<<3); in interpolate_mvs()
520 int mb_to_left_edge = mb->mb_to_left_edge + ((col*4)<<3); in interpolate_mvs()
521 int mb_to_right_edge = mb->mb_to_right_edge - ((col*4)<<3); in interpolate_mvs()
560 void vp8_interpolate_motion(MACROBLOCKD *mb, in vp8_interpolate_motion() argument
574 find_neighboring_blocks(mb->mode_info_context, in vp8_interpolate_motion()
578 mb->mode_info_stride); in vp8_interpolate_motion()
581 interpolate_mvs(mb, neighbors, LAST_FRAME); in vp8_interpolate_motion()
[all …]
Derror_concealment.h35 void vp8_interpolate_motion(MACROBLOCKD *mb,
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ppc/
Dcsystemdependent.c36 int (*vp8_mbblock_error)(MACROBLOCK *mb, int dc);
38 int (*vp8_mbuverror)(MACROBLOCK *mb);
55 extern int vp8_mbblock_error_c(MACROBLOCK *mb, int dc);
57 extern int vp8_mbuverror_c(MACROBLOCK *mb);
/hardware/intel/bootstub/
Dbootstub.c352 static multiboot_info_t mb = { in xen_multiboot_setup() local
382 mb.cmdline = (u32)strnchr((char *)CMDLINE_OFFSET, '$', CMDLINE_SIZE) + 1; in xen_multiboot_setup()
383 dst = (char *)mb.cmdline + strnlen((const char *)mb.cmdline, CMDLINE_SIZE) - 1; in xen_multiboot_setup()
412 mb.drives_addr = IMR6_START_ADDRESS + imr6_toc.entries[IMR_TOC_ENTRY_XEN_EXTRA].start_offset; in xen_multiboot_setup()
413 mb.drives_length = imr6_toc.entries[IMR_TOC_ENTRY_XEN_EXTRA].size; in xen_multiboot_setup()
418 mb.mmap_length = i * sizeof(memory_map_t); in xen_multiboot_setup()
428 mb_info = (u32)&mb; in xen_multiboot_setup()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_encodemb.c109 TX_SIZE tx_size, MACROBLOCK *mb, in optimize_b() argument
111 MACROBLOCKD *const xd = &mb->e_mbd; in optimize_b()
112 struct macroblock_plane *p = &mb->plane[plane]; in optimize_b()
117 const int16_t *coeff = BLOCK_OFFSET(mb->plane[plane].coeff, block); in optimize_b()
141 rdmult = mb->rdmult * err_mult; in optimize_b()
142 if (!is_inter_block(&mb->e_mbd.mi[0]->mbmi)) in optimize_b()
144 rddiv = mb->rddiv; in optimize_b()
176 mb->token_costs[tx_size][type][ref][band][0][pt] in optimize_b()
179 mb->token_costs[tx_size][type][ref][band][0][pt] in optimize_b()
225 rate0 += mb->token_costs[tx_size][type][ref][band][!x][pt] in optimize_b()
[all …]
Dvp9_onyx_if.c123 MACROBLOCK *const mb = &cpi->mb; in set_high_precision_mv() local
126 mb->mvcost = mb->nmvcost_hp; in set_high_precision_mv()
127 mb->mvsadcost = mb->nmvsadcost_hp; in set_high_precision_mv()
129 mb->mvcost = mb->nmvcost; in set_high_precision_mv()
130 mb->mvsadcost = mb->nmvsadcost; in set_high_precision_mv()
553 cpi->mb.fwd_txm4x4 = vp9_fdct4x4; in set_speed_features()
554 if (cpi->oxcf.lossless || cpi->mb.e_mbd.lossless) { in set_speed_features()
555 cpi->mb.fwd_txm4x4 = vp9_fwht4x4; in set_speed_features()
628 MACROBLOCKD *const xd = &cpi->mb.e_mbd; in update_frame_size()
658 vp9_init3smotion_compensation(&cpi->mb, y_stride); in update_frame_size()
[all …]
Dvp9_temporal_filter.c131 MACROBLOCK *x = &cpi->mb; in temporal_filter_find_matching_mb_c()
205 MACROBLOCKD *mbd = &cpi->mb.e_mbd; in temporal_filter_iterate_c()
234 cpi->mb.mv_row_min = -((mb_row * 16) + (17 - 2 * VP9_INTERP_EXTEND)); in temporal_filter_iterate_c()
235 cpi->mb.mv_row_max = ((cpi->common.mb_rows - 1 - mb_row) * 16) in temporal_filter_iterate_c()
247 cpi->mb.mv_col_min = -((mb_col * 16) + (17 - 2 * VP9_INTERP_EXTEND)); in temporal_filter_iterate_c()
248 cpi->mb.mv_col_max = ((cpi->common.mb_cols - 1 - mb_col) * 16) in temporal_filter_iterate_c()
Dvp9_mbgraph.c29 MACROBLOCK *const x = &cpi->mb; in do_16x16_motion_iteration()
82 MACROBLOCK *const x = &cpi->mb; in do_16x16_motion_search()
122 MACROBLOCK *const x = &cpi->mb; in do_16x16_zerozero_search()
138 MACROBLOCK *const x = &cpi->mb; in find_best_16x16_intra()
181 MACROBLOCK *const x = &cpi->mb; in update_mbgraph_mb_stats()
236 MACROBLOCK *const x = &cpi->mb; in update_mbgraph_frame_stats()
Dvp9_encodeframe.c133 unsigned int var = get_sby_perpixel_diff_variance(cpi, &cpi->mb, in get_rd_var_based_fixed_partition()
149 unsigned int var = get_sby_perpixel_diff_variance(cpi, &cpi->mb, in get_nonrd_var_based_fixed_partition()
209 MACROBLOCK *const x = &cpi->mb; in set_offsets()
304 MACROBLOCKD *const xd = &cpi->mb.e_mbd; in set_block_size()
475 MACROBLOCK *x = &cpi->mb; in choose_partitioning()
476 MACROBLOCKD *xd = &cpi->mb.e_mbd; in choose_partitioning()
754 MACROBLOCK *const x = &cpi->mb; in build_activity_map()
841 MACROBLOCK *const x = &cpi->mb; in update_state()
991 MACROBLOCK *const x = &cpi->mb; in rd_pick_sb_modes()
1103 const MACROBLOCK *const x = &cpi->mb; in update_stats()
[all …]

123