/external/libaom/libaom/test/ |
D | comp_mask_variance_test.cc | 55 void RunCheckOutput(comp_mask_pred_func test_impl, BLOCK_SIZE bsize, int inv); 56 void RunSpeedTest(comp_mask_pred_func test_impl, BLOCK_SIZE bsize); 106 BLOCK_SIZE bsize, int inv) { in RunCheckOutput() argument 107 const int w = block_size_wide[bsize]; in RunCheckOutput() 108 const int h = block_size_high[bsize]; in RunCheckOutput() 109 const int wedge_types = get_wedge_types_lookup(bsize); in RunCheckOutput() 111 const uint8_t *mask = av1_get_contiguous_soft_mask(wedge_index, 1, bsize); in RunCheckOutput() 123 BLOCK_SIZE bsize) { in RunSpeedTest() argument 124 const int w = block_size_wide[bsize]; in RunSpeedTest() 125 const int h = block_size_high[bsize]; in RunSpeedTest() [all …]
|
D | blend_a64_mask_test.cc | 196 int bsize = rng_.Rand8() % BLOCK_SIZES_ALL; in TEST_P() local 208 RunTest(bsize, 1); in TEST_P() 214 int bsize = rng_.Rand8() % BLOCK_SIZES_ALL; in TEST_P() local 225 RunTest(bsize, 1); in TEST_P() 230 for (int bsize = 0; bsize < BLOCK_SIZES_ALL; ++bsize) { in TEST_P() local 242 RunOneTest(bsize, 1, 1, kRunTimes); in TEST_P() 243 RunOneTest(bsize, 1, 0, kRunTimes); in TEST_P() 244 RunOneTest(bsize, 0, 1, kRunTimes); in TEST_P() 245 RunOneTest(bsize, 0, 0, kRunTimes); in TEST_P() 310 int bsize = rng_.Rand8() % BLOCK_SIZES_ALL; in TEST_P() local [all …]
|
D | av1_round_shift_array_test.cc | 49 void RunCheckOutput(comp_round_shift_array_func test_impl, BLOCK_SIZE bsize, 51 void RunSpeedTest(comp_round_shift_array_func test_impl, BLOCK_SIZE bsize, 60 comp_round_shift_array_func test_impl, BLOCK_SIZE bsize, int bit) { in RunCheckOutput() argument 61 const int w = block_size_wide[bsize]; in RunCheckOutput() 62 const int h = block_size_high[bsize]; in RunCheckOutput() 78 BLOCK_SIZE bsize, int bit) { in RunSpeedTest() argument 79 const int w = block_size_wide[bsize]; in RunSpeedTest() 80 const int h = block_size_high[bsize]; in RunSpeedTest()
|
/external/libaom/libaom/av1/encoder/ |
D | compound_type.c | 21 const AV1_COMP *const cpi, MACROBLOCK *x, const BLOCK_SIZE bsize, 121 const BLOCK_SIZE bsize, const uint8_t *pred0, in estimate_wedge_sign() argument 145 const int bw = block_size_wide[bsize]; in estimate_wedge_sign() 146 const int bh = block_size_high[bsize]; in estimate_wedge_sign() 152 const BLOCK_SIZE f_index = split_qtr[bsize]; in estimate_wedge_sign() 184 const BLOCK_SIZE bsize, const uint8_t *const p0, in pick_wedge() argument 191 const int bw = block_size_wide[bsize]; in pick_wedge() 192 const int bh = block_size_high[bsize]; in pick_wedge() 200 const int8_t wedge_types = get_wedge_types_lookup(bsize); in pick_wedge() 227 mask = av1_get_contiguous_soft_mask(wedge_index, 0, bsize); in pick_wedge() [all …]
|
D | partition_strategy.c | 35 int mi_col, BLOCK_SIZE bsize, float *features, int features_to_get); 38 static INLINE int convert_bsize_to_idx(BLOCK_SIZE bsize) { in convert_bsize_to_idx() argument 39 switch (bsize) { in convert_bsize_to_idx() 57 int bsize, int quad_tree_idx, in av1_intra_mode_cnn_partition() argument 65 const int bsize_idx = convert_bsize_to_idx(bsize); in av1_intra_mode_cnn_partition() 67 if (bsize == BLOCK_128X128) { in av1_intra_mode_cnn_partition() 72 if (bsize == BLOCK_64X64 && !x->cnn_output_valid) { in av1_intra_mode_cnn_partition() 156 if (bsize == BLOCK_64X64) { in av1_intra_mode_cnn_partition() 169 } else if (bsize == BLOCK_32X32) { in av1_intra_mode_cnn_partition() 181 } else if (bsize == BLOCK_16X16) { in av1_intra_mode_cnn_partition() [all …]
|
D | partition_strategy.h | 37 int bsize, int label_idx, 49 int mi_col, BLOCK_SIZE bsize, int *partition_none_allowed, 58 int mi_col, BLOCK_SIZE bsize, 73 BLOCK_SIZE bsize, 90 PC_TREE *const pc_tree, BLOCK_SIZE bsize, 104 const MACROBLOCK *const x, BLOCK_SIZE bsize, 111 void av1_ml_prune_ab_partition(BLOCK_SIZE bsize, int part_ctx, int var_ctx, 121 BLOCK_SIZE bsize, int part_ctx, int64_t best_rd, 130 int av1_ml_predict_breakout(const AV1_COMP *const cpi, BLOCK_SIZE bsize, 141 BLOCK_SIZE bsize) { in set_offsets_for_motion_search() argument [all …]
|
D | encodeframe.c | 79 BLOCK_SIZE bsize, int *rate); 250 const BLOCK_SIZE bsize, const int mi_row, in set_ssim_rdmult() argument 259 const int num_bcols = (mi_size_wide[bsize] + num_mi_w - 1) / num_mi_w; in set_ssim_rdmult() 260 const int num_brows = (mi_size_high[bsize] + num_mi_h - 1) / num_mi_h; in set_ssim_rdmult() 286 const BLOCK_SIZE bsize, const int mi_row, in get_hier_tpl_rdmult() argument 306 const int num_bcols = (mi_size_wide[bsize] + num_mi_w - 1) / num_mi_w; in get_hier_tpl_rdmult() 307 const int num_brows = (mi_size_high[bsize] + num_mi_h - 1) / num_mi_h; in get_hier_tpl_rdmult() 326 if (bsize == cm->seq_params.sb_size) { in get_hier_tpl_rdmult() 347 int mi_col, BLOCK_SIZE bsize, in setup_block_rdmult() argument 355 const int energy = bsize <= BLOCK_16X16 in setup_block_rdmult() [all …]
|
D | intra_mode_search.c | 159 static void prune_intra_mode_with_hog(const MACROBLOCK *x, BLOCK_SIZE bsize, in prune_intra_mode_with_hog() argument 164 const int bh = block_size_high[bsize]; in prune_intra_mode_with_hog() 165 const int bw = block_size_wide[bsize]; in prune_intra_mode_with_hog() 196 BLOCK_SIZE bsize, int mode_cost) { in intra_model_yrd() argument 204 TX_SIZE tx_size = tx_size_from_tx_mode(bsize, x->tx_mode_search_type); in intra_model_yrd() 207 const int max_blocks_wide = max_block_wide(xd, bsize, 0); in intra_model_yrd() 208 const int max_blocks_high = max_block_high(xd, bsize, 0); in intra_model_yrd() 219 cpi, bsize, x, xd, 0, 0, &this_rd_stats.rate, &this_rd_stats.dist, in intra_model_yrd() 221 if (av1_is_directional_mode(mbmi->mode) && av1_use_angle_delta(bsize)) { in intra_model_yrd() 244 MACROBLOCK *x, BLOCK_SIZE bsize, in model_intra_yrd_and_prune() argument [all …]
|
D | tx_search.h | 36 static AOM_INLINE int tx_size_cost(const MACROBLOCK *const x, BLOCK_SIZE bsize, in tx_size_cost() argument 38 assert(bsize == x->e_mbd.mi[0]->sb_type); in tx_size_cost() 39 if (x->tx_mode_search_type != TX_MODE_SELECT || !block_signals_txsize(bsize)) in tx_size_cost() 42 const int32_t tx_size_cat = bsize_to_tx_size_cat(bsize); in tx_size_cost() 43 const int depth = tx_size_to_depth(tx_size, bsize); in tx_size_cost() 55 RD_STATS *rd_stats, BLOCK_SIZE bsize, 63 BLOCK_SIZE bsize, int64_t ref_best_rd); 71 int av1_txfm_search(const AV1_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bsize,
|
D | interp_search.c | 131 MACROBLOCK *const x, const AV1_COMP *const cpi, BLOCK_SIZE bsize, in interp_model_rd_eval() argument 143 av1_enc_build_inter_predictor(cm, xd, mi_row, mi_col, orig_dst, bsize, in interp_model_rd_eval() 150 cpi, bsize, x, xd, plane_from, plane_to, &tmp_rd_stats.rate, in interp_model_rd_eval() 160 const TileDataEnc *tile_data, BLOCK_SIZE bsize, in interpolation_filter_rd() argument 213 interp_model_rd_eval(x, cpi, bsize, orig_dst, AOM_PLANE_Y, AOM_PLANE_Y, in interpolation_filter_rd() 218 av1_pick_recursive_tx_size_type_yrd(cpi, x, &rd_stats_y, bsize, in interpolation_filter_rd() 220 PrintPredictionUnitStats(cpi, tile_data, x, &rd_stats_y, bsize); in interpolation_filter_rd() 233 interp_model_rd_eval(x, cpi, bsize, orig_dst, plane, plane, in interpolation_filter_rd() 275 const AV1_COMP *const cpi, MACROBLOCKD *xd, BLOCK_SIZE bsize, in is_pred_filter_search_allowed() argument 280 const int bsl = mi_size_wide_log2[bsize]; in is_pred_filter_search_allowed() [all …]
|
D | nonrd_pickmode.c | 119 BLOCK_SIZE bsize, int mi_row, int mi_col, in combined_motion_search() argument 159 av1_make_default_fullpel_ms_params(&full_ms_params, cpi, x, bsize, ¢er_mv, in combined_motion_search() 177 av1_make_default_subpel_ms_params(&ms_params, cpi, x, bsize, &ref_mv, in combined_motion_search() 198 BLOCK_SIZE bsize, int mi_row, int mi_col, in search_new_mv() argument 209 if (bsize < BLOCK_16X16) return -1; in search_new_mv() 212 cpi, x, bsize, mi_row, mi_col, in search_new_mv() 216 if (tmp_sad + (num_pels_log2_lookup[bsize] << 4) > best_pred_sad) return -1; in search_new_mv() 231 av1_make_default_subpel_ms_params(&ms_params, cpi, x, bsize, &ref_mv, in search_new_mv() 238 } else if (!combined_motion_search(cpi, x, bsize, mi_row, mi_col, in search_new_mv() 251 struct buf_2d yv12_mb[8][MAX_MB_PLANE], BLOCK_SIZE bsize, in find_predictors() argument [all …]
|
D | motion_search_facade.h | 33 BLOCK_SIZE bsize, int ref_idx, int *rate_mv, 38 BLOCK_SIZE bsize, int_mv *cur_mv, 45 const BLOCK_SIZE bsize, 49 const AV1_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bsize, int_mv *cur_mv, 53 BLOCK_SIZE bsize, MV *this_mv, 62 int mi_row, int mi_col, BLOCK_SIZE bsize, 68 int mi_row, int mi_col, BLOCK_SIZE bsize,
|
D | motion_search_facade.c | 41 BLOCK_SIZE bsize, int ref_idx, int *rate_mv, in av1_single_motion_search() argument 83 if (cpi->sf.mv_sf.adaptive_motion_search && bsize < cm->seq_params.sb_size) { in av1_single_motion_search() 86 AOMMIN(mi_size_high_log2[bsize], mi_size_wide_log2[bsize])); in av1_single_motion_search() 91 int bwl = mi_size_wide_log2[bsize]; in av1_single_motion_search() 92 int bhl = mi_size_high_log2[bsize]; in av1_single_motion_search() 141 const int nw = mi_size_wide[bsize] / tplw; in av1_single_motion_search() 142 const int nh = mi_size_high[bsize] / tplh; in av1_single_motion_search() 212 av1_make_default_fullpel_ms_params(&full_ms_params, cpi, x, bsize, &ref_mv, in av1_single_motion_search() 303 av1_make_default_subpel_ms_params(&ms_params, cpi, x, bsize, &ref_mv, in av1_single_motion_search() 350 BLOCK_SIZE bsize, int_mv *cur_mv, in av1_joint_motion_search() argument [all …]
|
/external/libvpx/libvpx/test/ |
D | vp9_subtract_test.cc | 42 void SetupBlocks(BLOCK_SIZE bsize) { in SetupBlocks() argument 43 block_width_ = 4 * num_4x4_blocks_wide_lookup[bsize]; in SetupBlocks() 44 block_height_ = 4 * num_4x4_blocks_high_lookup[bsize]; in SetupBlocks() 65 for (BLOCK_SIZE bsize = BLOCK_4X4; bsize < BLOCK_SIZES; in TEST_P() local 66 bsize = static_cast<BLOCK_SIZE>(static_cast<int>(bsize) + 1)) { in TEST_P() 67 SetupBlocks(bsize); in TEST_P() 86 for (BLOCK_SIZE bsize = BLOCK_4X4; bsize < BLOCK_SIZES; in TEST_P() local 87 bsize = static_cast<BLOCK_SIZE>(static_cast<int>(bsize) + 1)) { in TEST_P() 88 SetupBlocks(bsize); in TEST_P() 106 << ", bs = " << static_cast<int>(bsize); in TEST_P() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodeframe.c | 63 BLOCK_SIZE bsize, PICK_MODE_CONTEXT *ctx); 194 int mi_col, BLOCK_SIZE bsize, int segment_index) { in set_segment_index() argument 212 mi->segment_id = get_segment_id(cm, map, bsize, mi_row, mi_col); in set_segment_index() 222 if (bsize >= BLOCK_32X32) { in set_segment_index() 223 vp9_get_sub_block_energy(cpi, x, mi_row, mi_col, bsize, &min_energy, in set_segment_index() 226 min_energy = bsize <= BLOCK_16X16 ? x->mb_energy in set_segment_index() 227 : vp9_block_energy(cpi, x, bsize); in set_segment_index() 231 mi->segment_id = get_segment_id(cm, map, bsize, mi_row, mi_col); in set_segment_index() 238 mi->segment_id = get_segment_id(cm, map, bsize, mi_row, mi_col); in set_segment_index() 242 mi->segment_id = get_segment_id(cm, map, bsize, mi_row, mi_col); in set_segment_index() [all …]
|
D | vp9_non_greedy_mv.h | 31 BLOCK_SIZE bsize; member 51 static INLINE int get_square_block_idx(BLOCK_SIZE bsize) { in get_square_block_idx() argument 52 if (bsize == BLOCK_4X4) { in get_square_block_idx() 55 if (bsize == BLOCK_8X8) { in get_square_block_idx() 58 if (bsize == BLOCK_16X16) { in get_square_block_idx() 61 if (bsize == BLOCK_32X32) { in get_square_block_idx() 88 Status vp9_alloc_motion_field(MotionField *motion_field, BLOCK_SIZE bsize, 107 int cols, BLOCK_SIZE bsize, 112 BLOCK_SIZE bsize);
|
D | vp9_pickmode.c | 155 BLOCK_SIZE bsize, int mi_row, int mi_col, in combined_motion_search() argument 212 cpi, x, bsize, &mvp_full, step_param, cpi->sf.mv.search_method, sadpb, in combined_motion_search() 248 x->errorperbit, &cpi->fn_ptr[bsize], subpel_force_stop, in combined_motion_search() 349 static TX_SIZE calculate_tx_size(VP9_COMP *const cpi, BLOCK_SIZE bsize, in calculate_tx_size() argument 362 tx_size = VPXMIN(max_txsize_lookup[bsize], in calculate_tx_size() 373 bsize <= BLOCK_16X16 && ((var >> 5) > (unsigned int)ac_thr)) in calculate_tx_size() 376 tx_size = VPXMIN(max_txsize_lookup[bsize], in calculate_tx_size() 382 static void compute_intra_yprediction(PREDICTION_MODE mode, BLOCK_SIZE bsize, in compute_intra_yprediction() argument 392 const TX_SIZE tx_size = max_txsize_lookup[bsize]; in compute_intra_yprediction() 393 const int num_4x4_w = num_4x4_blocks_wide_lookup[bsize]; in compute_intra_yprediction() [all …]
|
/external/mksh/src/ |
D | shf.c | 54 ssize_t bsize = in shf_open() local 60 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_open() 63 shf->bsize = bsize; in shf_open() 131 ssize_t bsize = in shf_fdopen() local 137 if (bsize) { in shf_fdopen() 138 shf->buf = alloc(bsize, ATEMP); in shf_fdopen() 143 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_fdopen() 151 shf->rbsize = bsize; in shf_fdopen() 153 shf->wbsize = sflags & SHF_UNBUF ? 0 : bsize; in shf_fdopen() 156 shf->bsize = bsize; in shf_fdopen() [all …]
|
/external/libaom/libaom/av1/common/ |
D | blockd.h | 57 static INLINE int is_comp_ref_allowed(BLOCK_SIZE bsize) { in is_comp_ref_allowed() argument 58 return AOMMIN(block_size_wide[bsize], block_size_high[bsize]) >= 8; in is_comp_ref_allowed() 352 const BLOCK_SIZE bsize = mbmi->sb_type; in is_global_mv_block() local 354 AOMMIN(block_size_wide[bsize], block_size_high[bsize]) >= 8; in is_global_mv_block() 686 static INLINE int get_sqr_bsize_idx(BLOCK_SIZE bsize) { in get_sqr_bsize_idx() argument 687 switch (bsize) { in get_sqr_bsize_idx() 705 static INLINE BLOCK_SIZE get_partition_subsize(BLOCK_SIZE bsize, in get_partition_subsize() argument 710 const int sqr_bsize_idx = get_sqr_bsize_idx(bsize); in get_partition_subsize() 742 static INLINE int block_signals_txsize(BLOCK_SIZE bsize) { in block_signals_txsize() argument 743 return bsize > BLOCK_4X4; in block_signals_txsize() [all …]
|
D | av1_common_int.h | 982 const BLOCK_SIZE bsize = xd->mi[0]->sb_type; in set_entropy_context() local 983 if (pd->subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1)) in set_entropy_context() 985 if (pd->subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1)) in set_entropy_context() 1099 BLOCK_SIZE bsize) { in update_partition_context() argument 1104 const int bw = mi_size_wide[bsize]; in update_partition_context() 1105 const int bh = mi_size_high[bsize]; in update_partition_context() 1110 static INLINE int is_chroma_reference(int mi_row, int mi_col, BLOCK_SIZE bsize, in is_chroma_reference() argument 1112 assert(bsize < BLOCK_SIZES_ALL); in is_chroma_reference() 1113 const int bw = mi_size_wide[bsize]; in is_chroma_reference() 1114 const int bh = mi_size_high[bsize]; in is_chroma_reference() [all …]
|
D | reconinter.c | 111 void av1_init_mask_comp(InterPredParams *inter_pred_params, BLOCK_SIZE bsize, in av1_init_mask_comp() argument 113 inter_pred_params->sb_type = bsize; in av1_init_mask_comp() 534 BLOCK_SIZE bsize; in init_wedge_masks() local 536 for (bsize = BLOCK_4X4; bsize < BLOCK_SIZES_ALL; ++bsize) { in init_wedge_masks() 537 const wedge_params_type *wedge_params = &av1_wedge_params_lookup[bsize]; in init_wedge_masks() 541 const int bw = block_size_wide[bsize]; in init_wedge_masks() 542 const int bh = block_size_high[bsize]; in init_wedge_masks() 545 mask = get_wedge_mask_inplace(w, 0, bsize); in init_wedge_masks() 551 mask = get_wedge_mask_inplace(w, 1, bsize); in init_wedge_masks() 731 static bool is_sub8x8_inter(const MACROBLOCKD *xd, int plane, BLOCK_SIZE bsize, in is_sub8x8_inter() argument [all …]
|
/external/ltp/testcases/kernel/fs/doio/ |
D | datapid.c | 84 int datapidgen(int pid, char *buffer, int bsize, int offset) in datapidgen() argument 97 num_full_words = bsize / NBPW; in datapidgen() 118 for (; boff < (NBPW - cnt) && boff < bsize; boff++, chr++) { in datapidgen() 127 num_full_words = (bsize - boff) / NBPW; in datapidgen() 153 if (cnt = ((bsize - boff) % NBPW)) { in datapidgen() 163 for (tmp = 0; tmp < cnt && boff < bsize; tmp++, chr++) { in datapidgen() 168 return bsize; in datapidgen() 181 int datapidchk(int pid, char *buffer, int bsize, int offset, char **errmsg) in datapidchk() argument 198 num_full_words = bsize / NBPW; in datapidchk() 213 for (; boff < (NBPW - cnt) && boff < bsize; boff++, chr++) { in datapidchk() [all …]
|
D | databin.c | 44 void databingen(int mode, char *buffer, int bsize, int offset) in databingen() argument 51 memset(buffer, 0x55, bsize); in databingen() 55 memset(buffer, 0xf0, bsize); in databingen() 59 for (ind = 0; ind < bsize; ind++) in databingen() 65 memset(buffer, 0xff, bsize); in databingen() 69 memset(buffer, 0x0, bsize); in databingen() 73 for (ind = 0; ind < bsize; ind++) in databingen() 83 int databinchk(int mode, char *buffer, int bsize, int offset, char **errmsg) in databinchk() argument 106 for (cnt = 0; cnt < bsize; cnt++) { in databinchk() 116 sprintf(Errmsg, "all %d bytes match desired pattern", bsize); in databinchk() [all …]
|
/external/freetype/src/bdf/ |
D | bdfdrivr.c | 449 FT_Bitmap_Size* bsize = bdfface->available_sizes; in BDF_Face_Init() local 454 FT_ZERO( bsize ); in BDF_Face_Init() 470 bsize->height = (FT_Short)( font->font_ascent + font->font_descent ); in BDF_Face_Init() 482 bsize->width = 0x7FFF; in BDF_Face_Init() 484 bsize->width )); in BDF_Face_Init() 487 bsize->width = FT_ABS( (FT_Short)( ( prop->value.l + 5 ) / 10 ) ); in BDF_Face_Init() 492 bsize->width = (FT_Short)FT_MulDiv( bsize->height, 2, 3 ); in BDF_Face_Init() 506 bsize->size = 0x7FFF; in BDF_Face_Init() 508 bsize->size )); in BDF_Face_Init() 511 bsize->size = FT_MulDiv( FT_ABS( prop->value.l ), in BDF_Face_Init() [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_blockd.h | 208 static INLINE BLOCK_SIZE get_subsize(BLOCK_SIZE bsize, in get_subsize() argument 210 return subsize_lookup[partition][bsize]; in get_subsize() 247 get_plane_block_size(BLOCK_SIZE bsize, const struct macroblockd_plane *pd) { in get_plane_block_size() argument 248 return ss_size_lookup[bsize][pd->subsampling_x][pd->subsampling_y]; in get_plane_block_size() 251 static INLINE void reset_skip_context(MACROBLOCKD *xd, BLOCK_SIZE bsize) { in reset_skip_context() argument 255 const BLOCK_SIZE plane_bsize = get_plane_block_size(bsize, pd); in reset_skip_context() 278 const MACROBLOCKD *const xd, BLOCK_SIZE bsize, int plane, 282 BLOCK_SIZE bsize, 301 static INLINE int get_block_width(BLOCK_SIZE bsize) { in get_block_width() argument 302 const int num_4x4_w = num_4x4_blocks_wide_lookup[bsize]; in get_block_width() [all …]
|