Home
last modified time | relevance | path

Searched refs:bsize (Results 1 – 25 of 33) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_encodeframe.c77 int mi_row, int mi_col, BLOCK_SIZE bsize);
172 BLOCK_SIZE bsize) { in is_block_in_mb_map() argument
178 const int mb_width = num_8x8_blocks_wide_lookup[bsize] >> 1; in is_block_in_mb_map()
179 const int mb_height = num_8x8_blocks_high_lookup[bsize] >> 1; in is_block_in_mb_map()
181 if (bsize <= BLOCK_16X16) { in is_block_in_mb_map()
199 BLOCK_SIZE bsize) { in check_active_map() argument
201 return is_block_in_mb_map(cpi, mi_row, mi_col, bsize); in check_active_map()
208 int mi_row, int mi_col, BLOCK_SIZE bsize) { in set_offsets() argument
213 const int mi_width = num_8x8_blocks_wide_lookup[bsize]; in set_offsets()
214 const int mi_height = num_8x8_blocks_high_lookup[bsize]; in set_offsets()
[all …]
Dvp9_pickmode.c31 BLOCK_SIZE bsize, int mi_row, int mi_col, in full_pixel_motion_search() argument
91 &cpi->fn_ptr[bsize], 1, in full_pixel_motion_search()
96 &cpi->fn_ptr[bsize], 1, in full_pixel_motion_search()
101 &cpi->fn_ptr[bsize], 1, in full_pixel_motion_search()
106 &cpi->fn_ptr[bsize], 1, in full_pixel_motion_search()
111 &cpi->fn_ptr[bsize], 1, in full_pixel_motion_search()
118 &cpi->fn_ptr[bsize], in full_pixel_motion_search()
135 BLOCK_SIZE bsize, int mi_row, int mi_col, in sub_pixel_motion_search() argument
160 &cpi->fn_ptr[bsize], in sub_pixel_motion_search()
179 static void model_rd_for_sb_y(VP9_COMP *cpi, BLOCK_SIZE bsize, in model_rd_for_sb_y() argument
[all …]
Dvp9_encodemb.h23 void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize);
24 void vp9_encode_sby_pass1(MACROBLOCK *x, BLOCK_SIZE bsize);
29 void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
35 void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
Dvp9_rdopt.h56 int *r, int64_t *d, BLOCK_SIZE bsize,
64 BLOCK_SIZE bsize,
73 BLOCK_SIZE bsize,
79 void vp9_get_entropy_contexts(BLOCK_SIZE bsize, TX_SIZE tx_size,
Dvp9_rdopt.c247 int i, bsize, segment_id; in set_block_thresholds() local
255 for (bsize = 0; bsize < BLOCK_SIZES; ++bsize) { in set_block_thresholds()
258 const int t = q * rd_thresh_block_size_factor[bsize]; in set_block_thresholds()
262 cpi->rd_threshes[segment_id][bsize][i] = in set_block_thresholds()
267 cpi->rd_thresh_sub8x8[segment_id][bsize][i] = in set_block_thresholds()
426 static void model_rd_for_sb(VP9_COMP *cpi, BLOCK_SIZE bsize, in model_rd_for_sb() argument
441 const BLOCK_SIZE bs = get_plane_block_size(bsize, pd); in model_rd_for_sb()
477 static void model_rd_for_sb_y_tx(VP9_COMP *cpi, BLOCK_SIZE bsize, in model_rd_for_sb_y_tx() argument
486 const int width = 4 * num_4x4_blocks_wide_lookup[bsize]; in model_rd_for_sb_y_tx()
487 const int height = 4 * num_4x4_blocks_high_lookup[bsize]; in model_rd_for_sb_y_tx()
[all …]
Dvp9_aq_cyclicrefresh.c96 BLOCK_SIZE bsize, int use_rd) { in candidate_refresh_aq() argument
107 else if (bsize < cr->min_block_size || in candidate_refresh_aq()
116 if (bsize < cr->min_block_size || in candidate_refresh_aq()
131 BLOCK_SIZE bsize, int use_rd) { in vp9_cyclic_refresh_update_segment() argument
134 const int bw = num_8x8_blocks_wide_lookup[bsize]; in vp9_cyclic_refresh_update_segment()
135 const int bh = num_8x8_blocks_high_lookup[bsize]; in vp9_cyclic_refresh_update_segment()
139 const int refresh_this_block = candidate_refresh_aq(cr, mbmi, bsize, use_rd); in vp9_cyclic_refresh_update_segment()
Dvp9_tokenize.h43 int vp9_is_skippable_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane);
48 BLOCK_SIZE bsize);
Dvp9_bitstream.c83 TX_SIZE tx_size, BLOCK_SIZE bsize, in write_selected_tx_size() argument
85 const TX_SIZE max_tx_size = max_txsize_lookup[bsize]; in write_selected_tx_size()
238 const BLOCK_SIZE bsize = mbmi->sb_type; in pack_inter_mode_mvs() local
261 if (bsize >= BLOCK_8X8 && cm->tx_mode == TX_MODE_SELECT && in pack_inter_mode_mvs()
264 write_selected_tx_size(cpi, mbmi->tx_size, bsize, w); in pack_inter_mode_mvs()
268 if (bsize >= BLOCK_8X8) { in pack_inter_mode_mvs()
269 write_intra_mode(w, mode, cm->fc.y_mode_prob[size_group_lookup[bsize]]); in pack_inter_mode_mvs()
272 const int num_4x4_w = num_4x4_blocks_wide_lookup[bsize]; in pack_inter_mode_mvs()
273 const int num_4x4_h = num_4x4_blocks_high_lookup[bsize]; in pack_inter_mode_mvs()
289 if (bsize >= BLOCK_8X8) { in pack_inter_mode_mvs()
[all …]
Dvp9_tokenize.c300 int vp9_is_skippable_in_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { in vp9_is_skippable_in_plane() argument
303 vp9_foreach_transformed_block_in_plane(&x->e_mbd, bsize, plane, is_skippable, in vp9_is_skippable_in_plane()
309 BLOCK_SIZE bsize) { in vp9_tokenize_sb() argument
321 reset_skip_context(xd, bsize); in vp9_tokenize_sb()
329 vp9_foreach_transformed_block(xd, bsize, tokenize_b, &arg); in vp9_tokenize_sb()
331 vp9_foreach_transformed_block(xd, bsize, set_entropy_context_b, &arg); in vp9_tokenize_sb()
Dvp9_segmentation.c146 const BLOCK_SIZE bsize = mi_8x8[0]->mbmi.sb_type; in count_segs() local
149 bsize, mi_row, mi_col); in count_segs()
170 BLOCK_SIZE bsize) { in count_segs_sb() argument
174 const int bs = num_8x8_blocks_wide_lookup[bsize], hbs = bs / 2; in count_segs_sb()
198 const BLOCK_SIZE subsize = subsize_lookup[PARTITION_SPLIT][bsize]; in count_segs_sb()
Dvp9_pickmode.h25 BLOCK_SIZE bsize);
Dvp9_encodemb.c54 void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { in vp9_subtract_plane() argument
57 const BLOCK_SIZE plane_bsize = get_plane_block_size(bsize, pd); in vp9_subtract_plane()
446 void vp9_encode_sby_pass1(MACROBLOCK *x, BLOCK_SIZE bsize) { in vp9_encode_sby_pass1() argument
447 vp9_subtract_plane(x, bsize, 0); in vp9_encode_sby_pass1()
448 vp9_foreach_transformed_block_in_plane(&x->e_mbd, bsize, 0, in vp9_encode_sby_pass1()
452 void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize) { in vp9_encode_sb() argument
461 vp9_subtract_plane(x, bsize, plane); in vp9_encode_sb()
466 vp9_get_entropy_contexts(bsize, tx_size, pd, in vp9_encode_sb()
470 vp9_foreach_transformed_block_in_plane(xd, bsize, plane, encode_block, in vp9_encode_sb()
609 void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { in vp9_encode_intra_block_plane() argument
[all …]
Dvp9_aq_cyclicrefresh.h36 BLOCK_SIZE bsize, int use_rd);
Dvp9_block.h200 BLOCK_SIZE bsize) { in get_block_context() argument
201 switch (bsize) { in get_block_context()
Dvp9_firstpass.c365 static vp9_variance_fn_t get_block_variance_fn(BLOCK_SIZE bsize) { in get_block_variance_fn() argument
366 switch (bsize) { in get_block_variance_fn()
399 const BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type; in first_pass_motion_search() local
400 vp9_variance_fn_ptr_t v_fn_ptr = cpi->fn_ptr[bsize]; in first_pass_motion_search()
413 v_fn_ptr.vf = get_block_variance_fn(bsize); in first_pass_motion_search()
584 const BLOCK_SIZE bsize = get_bsize(cm, mb_row, mb_col); in vp9_first_pass() local
592 xd->mi[0]->mbmi.sb_type = bsize; in vp9_first_pass()
595 mb_row << 1, num_8x8_blocks_high_lookup[bsize], in vp9_first_pass()
596 mb_col << 1, num_8x8_blocks_wide_lookup[bsize], in vp9_first_pass()
600 const int energy = vp9_block_energy(cpi, x, bsize); in vp9_first_pass()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Dvp9_subtract_test.cc40 for (BLOCK_SIZE bsize = BLOCK_4X4; bsize < BLOCK_SIZES; in TEST_P() local
41 bsize = static_cast<BLOCK_SIZE>(static_cast<int>(bsize) + 1)) { in TEST_P()
42 const int block_width = 4 * num_4x4_blocks_wide_lookup[bsize]; in TEST_P()
43 const int block_height = 4 * num_4x4_blocks_high_lookup[bsize]; in TEST_P()
68 << ", bs = " << bsize; in TEST_P()
81 << ", bs = " << bsize; in TEST_P()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_decodemv.c79 BLOCK_SIZE bsize, int allow_select, vp9_reader *r) { in read_tx_size() argument
80 const TX_SIZE max_tx_size = max_txsize_lookup[bsize]; in read_tx_size()
81 if (allow_select && tx_mode == TX_MODE_SELECT && bsize >= BLOCK_8X8) in read_tx_size()
87 static void set_segment_id(VP9_COMMON *cm, BLOCK_SIZE bsize, in set_segment_id() argument
90 const int bw = num_8x8_blocks_wide_lookup[bsize]; in set_segment_id()
91 const int bh = num_8x8_blocks_high_lookup[bsize]; in set_segment_id()
107 const BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type; in read_intra_segment_id() local
117 set_segment_id(cm, bsize, mi_row, mi_col, segment_id); in read_intra_segment_id()
125 const BLOCK_SIZE bsize = mbmi->sb_type; in read_inter_segment_id() local
132 bsize, mi_row, mi_col); in read_inter_segment_id()
[all …]
Dvp9_decodeframe.c298 BLOCK_SIZE bsize, int mi_row, int mi_col) { in set_offsets() argument
299 const int bw = num_8x8_blocks_wide_lookup[bsize]; in set_offsets()
300 const int bh = num_8x8_blocks_high_lookup[bsize]; in set_offsets()
308 xd->mi[0]->mbmi.sb_type = bsize; in set_offsets()
339 vp9_reader *r, BLOCK_SIZE bsize) { in decode_block() argument
340 const int less8x8 = bsize < BLOCK_8X8; in decode_block()
341 MB_MODE_INFO *mbmi = set_offsets(cm, xd, tile, bsize, mi_row, mi_col); in decode_block()
345 bsize = BLOCK_8X8; in decode_block()
348 reset_skip_context(xd, bsize); in decode_block()
357 vp9_foreach_transformed_block(xd, bsize, in decode_block()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_blockd.h245 static INLINE BLOCK_SIZE get_subsize(BLOCK_SIZE bsize, in get_subsize() argument
247 const BLOCK_SIZE subsize = subsize_lookup[partition][bsize]; in get_subsize()
275 static INLINE TX_SIZE get_uv_tx_size_impl(TX_SIZE y_tx_size, BLOCK_SIZE bsize) { in get_uv_tx_size_impl() argument
276 if (bsize < BLOCK_8X8) { in get_uv_tx_size_impl()
280 const BLOCK_SIZE plane_bsize = ss_size_lookup[bsize][1][1]; in get_uv_tx_size_impl()
289 static INLINE BLOCK_SIZE get_plane_block_size(BLOCK_SIZE bsize, in get_plane_block_size() argument
291 BLOCK_SIZE bs = ss_size_lookup[bsize][pd->subsampling_x][pd->subsampling_y]; in get_plane_block_size()
302 const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane,
307 const MACROBLOCKD* const xd, BLOCK_SIZE bsize,
Dvp9_reconinter.h22 BLOCK_SIZE bsize);
25 BLOCK_SIZE bsize);
28 BLOCK_SIZE bsize);
31 BLOCK_SIZE bsize);
Dvp9_onyxc_int.h302 BLOCK_SIZE bsize) { in update_partition_context() argument
307 const int bs = num_8x8_blocks_wide_lookup[bsize]; in update_partition_context()
318 BLOCK_SIZE bsize) { in partition_plane_context() argument
322 const int bsl = mi_width_log2(bsize); in partition_plane_context()
326 assert(b_width_log2(bsize) == b_height_log2(bsize)); in partition_plane_context()
Dvp9_reconinter.c201 static void build_inter_predictors_for_planes(MACROBLOCKD *xd, BLOCK_SIZE bsize, in build_inter_predictors_for_planes() argument
208 const BLOCK_SIZE plane_bsize = get_plane_block_size(bsize, in build_inter_predictors_for_planes()
217 assert(bsize == BLOCK_8X8); in build_inter_predictors_for_planes()
230 BLOCK_SIZE bsize) { in vp9_build_inter_predictors_sby() argument
231 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 0, 0); in vp9_build_inter_predictors_sby()
234 BLOCK_SIZE bsize) { in vp9_build_inter_predictors_sbuv() argument
235 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 1, in vp9_build_inter_predictors_sbuv()
239 BLOCK_SIZE bsize) { in vp9_build_inter_predictors_sb() argument
240 build_inter_predictors_for_planes(xd, bsize, mi_row, mi_col, 0, in vp9_build_inter_predictors_sb()
386 BLOCK_SIZE bsize) { in vp9_dec_build_inter_predictors_sb() argument
[all …]
Dvp9_blockd.c40 const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane, in vp9_foreach_transformed_block_in_plane() argument
49 const BLOCK_SIZE plane_bsize = get_plane_block_size(bsize, pd); in vp9_foreach_transformed_block_in_plane()
90 BLOCK_SIZE bsize, in vp9_foreach_transformed_block() argument
96 vp9_foreach_transformed_block_in_plane(xd, bsize, plane, visit, arg); in vp9_foreach_transformed_block()
Dvp9_entropy.h101 static INLINE void reset_skip_context(MACROBLOCKD *xd, BLOCK_SIZE bsize) { in reset_skip_context() argument
105 const BLOCK_SIZE plane_bsize = get_plane_block_size(bsize, pd); in reset_skip_context()
Dvp9_pred_common.c370 BLOCK_SIZE bsize, int mi_row, int mi_col) { in vp9_get_segment_id() argument
372 const int bw = num_8x8_blocks_wide_lookup[bsize]; in vp9_get_segment_id()
373 const int bh = num_8x8_blocks_high_lookup[bsize]; in vp9_get_segment_id()

12