/external/libvpx/libvpx/vp9/common/ |
D | vp9_alloccommon.c | 20 void vp9_set_mb_mi(VP9_COMMON *cm, int width, int height) { in vp9_set_mb_mi() argument 24 cm->mi_cols = aligned_width >> MI_SIZE_LOG2; in vp9_set_mb_mi() 25 cm->mi_rows = aligned_height >> MI_SIZE_LOG2; in vp9_set_mb_mi() 26 cm->mi_stride = calc_mi_size(cm->mi_cols); in vp9_set_mb_mi() 28 cm->mb_cols = (cm->mi_cols + 1) >> 1; in vp9_set_mb_mi() 29 cm->mb_rows = (cm->mi_rows + 1) >> 1; in vp9_set_mb_mi() 30 cm->MBs = cm->mb_rows * cm->mb_cols; in vp9_set_mb_mi() 33 static int alloc_seg_map(VP9_COMMON *cm, int seg_map_size) { in alloc_seg_map() argument 37 cm->seg_map_array[i] = (uint8_t *)vpx_calloc(seg_map_size, 1); in alloc_seg_map() 38 if (cm->seg_map_array[i] == NULL) return 1; in alloc_seg_map() [all …]
|
D | vp9_postproc.c | 284 static void swap_mi_and_prev_mi(VP9_COMMON *cm) { in swap_mi_and_prev_mi() argument 286 MODE_INFO *temp = cm->postproc_state.prev_mip; in swap_mi_and_prev_mi() 287 cm->postproc_state.prev_mip = cm->mip; in swap_mi_and_prev_mi() 288 cm->mip = temp; in swap_mi_and_prev_mi() 291 cm->mi = cm->mip + cm->mi_stride + 1; in swap_mi_and_prev_mi() 292 cm->postproc_state.prev_mi = cm->postproc_state.prev_mip + cm->mi_stride + 1; in swap_mi_and_prev_mi() 295 int vp9_post_proc_frame(struct VP9Common *cm, YV12_BUFFER_CONFIG *dest, in vp9_post_proc_frame() argument 297 const int q = VPXMIN(105, cm->lf.filter_level * 2); in vp9_post_proc_frame() 299 YV12_BUFFER_CONFIG *const ppbuf = &cm->post_proc_buffer; in vp9_post_proc_frame() 300 struct postproc_state *const ppstate = &cm->postproc_state; in vp9_post_proc_frame() [all …]
|
D | vp9_entropymode.c | 340 void vp9_adapt_mode_probs(VP9_COMMON *cm) { in vp9_adapt_mode_probs() argument 342 FRAME_CONTEXT *fc = cm->fc; in vp9_adapt_mode_probs() 343 const FRAME_CONTEXT *pre_fc = &cm->frame_contexts[cm->frame_context_idx]; in vp9_adapt_mode_probs() 344 const FRAME_COUNTS *counts = &cm->counts; in vp9_adapt_mode_probs() 376 if (cm->interp_filter == SWITCHABLE) { in vp9_adapt_mode_probs() 383 if (cm->tx_mode == TX_MODE_SELECT) { in vp9_adapt_mode_probs() 425 void vp9_setup_past_independence(VP9_COMMON *cm) { in vp9_setup_past_independence() argument 428 struct loopfilter *const lf = &cm->lf; in vp9_setup_past_independence() 431 vp9_clearall_segfeatures(&cm->seg); in vp9_setup_past_independence() 432 cm->seg.abs_delta = SEGMENT_DELTADATA; in vp9_setup_past_independence() [all …]
|
/external/libaom/libaom/av1/common/ |
D | tile_common.c | 17 void av1_tile_init(TileInfo *tile, const AV1_COMMON *cm, int row, int col) { in av1_tile_init() argument 18 av1_tile_set_row(tile, cm, row); in av1_tile_init() 19 av1_tile_set_col(tile, cm, col); in av1_tile_init() 30 void av1_get_tile_limits(AV1_COMMON *const cm) { in av1_get_tile_limits() argument 31 int mi_cols = ALIGN_POWER_OF_TWO(cm->mi_cols, cm->seq_params.mib_size_log2); in av1_get_tile_limits() 32 int mi_rows = ALIGN_POWER_OF_TWO(cm->mi_rows, cm->seq_params.mib_size_log2); in av1_get_tile_limits() 33 int sb_cols = mi_cols >> cm->seq_params.mib_size_log2; in av1_get_tile_limits() 34 int sb_rows = mi_rows >> cm->seq_params.mib_size_log2; in av1_get_tile_limits() 36 int sb_size_log2 = cm->seq_params.mib_size_log2 + MI_SIZE_LOG2; in av1_get_tile_limits() 37 cm->max_tile_width_sb = MAX_TILE_WIDTH >> sb_size_log2; in av1_get_tile_limits() [all …]
|
D | alloccommon.c | 35 static int alloc_loop_filter_mask(AV1_COMMON *cm) { in alloc_loop_filter_mask() argument 36 aom_free(cm->lf.lfm); in alloc_loop_filter_mask() 37 cm->lf.lfm = NULL; in alloc_loop_filter_mask() 43 cm->lf.lfm_stride = (cm->mi_cols + (MI_SIZE_64X64 - 1)) >> MIN_MIB_SIZE_LOG2; in alloc_loop_filter_mask() 44 cm->lf.lfm_num = ((cm->mi_rows + (MI_SIZE_64X64 - 1)) >> MIN_MIB_SIZE_LOG2) * in alloc_loop_filter_mask() 45 cm->lf.lfm_stride; in alloc_loop_filter_mask() 46 cm->lf.lfm = in alloc_loop_filter_mask() 47 (LoopFilterMask *)aom_calloc(cm->lf.lfm_num, sizeof(*cm->lf.lfm)); in alloc_loop_filter_mask() 48 if (!cm->lf.lfm) return 1; in alloc_loop_filter_mask() 51 for (i = 0; i < cm->lf.lfm_num; ++i) av1_zero(cm->lf.lfm[i]); in alloc_loop_filter_mask() [all …]
|
D | onyxc_int.h | 433 int (*alloc_mi)(struct AV1Common *cm, int mi_size); 434 void (*free_mi)(struct AV1Common *cm); 435 void (*setup_mi)(struct AV1Common *cm); 579 static INLINE YV12_BUFFER_CONFIG *get_ref_frame(AV1_COMMON *cm, int index) { in get_ref_frame() argument 581 if (cm->ref_frame_map[index] == NULL) return NULL; in get_ref_frame() 582 return &cm->ref_frame_map[index]->buf; in get_ref_frame() 585 static INLINE int get_free_fb(AV1_COMMON *cm) { in get_free_fb() argument 586 RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs; in get_free_fb() 589 lock_buffer_pool(cm->buffer_pool); in get_free_fb() 614 unlock_buffer_pool(cm->buffer_pool); in get_free_fb() [all …]
|
/external/python/cpython2/Tools/pybench/ |
D | With.py | 18 cm = self.ContextManager() 21 with cm: pass 22 with cm: pass 23 with cm: pass 24 with cm: pass 25 with cm: pass 26 with cm: pass 27 with cm: pass 28 with cm: pass 29 with cm: pass [all …]
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decoder.c | 51 static void vp9_dec_setup_mi(VP9_COMMON *cm) { in vp9_dec_setup_mi() argument 52 cm->mi = cm->mip + cm->mi_stride + 1; in vp9_dec_setup_mi() 53 cm->mi_grid_visible = cm->mi_grid_base + cm->mi_stride + 1; in vp9_dec_setup_mi() 54 memset(cm->mi_grid_base, 0, in vp9_dec_setup_mi() 55 cm->mi_stride * (cm->mi_rows + 1) * sizeof(*cm->mi_grid_base)); in vp9_dec_setup_mi() 59 VP9_COMMON *cm, int num_sbs) { in vp9_dec_alloc_row_mt_mem() argument 65 CHECK_MEM_ERROR(cm, row_mt_worker_data->dqcoeff[plane], in vp9_dec_alloc_row_mt_mem() 68 CHECK_MEM_ERROR(cm, row_mt_worker_data->eob[plane], in vp9_dec_alloc_row_mt_mem() 72 CHECK_MEM_ERROR(cm, row_mt_worker_data->partition, in vp9_dec_alloc_row_mt_mem() 75 CHECK_MEM_ERROR(cm, row_mt_worker_data->recon_map, in vp9_dec_alloc_row_mt_mem() [all …]
|
D | vp9_decodeframe.c | 99 static REFERENCE_MODE read_frame_reference_mode(const VP9_COMMON *cm, in read_frame_reference_mode() argument 101 if (vp9_compound_reference_allowed(cm)) { in read_frame_reference_mode() 110 static void read_frame_reference_mode_probs(VP9_COMMON *cm, vpx_reader *r) { in read_frame_reference_mode_probs() argument 111 FRAME_CONTEXT *const fc = cm->fc; in read_frame_reference_mode_probs() 114 if (cm->reference_mode == REFERENCE_MODE_SELECT) in read_frame_reference_mode_probs() 118 if (cm->reference_mode != COMPOUND_REFERENCE) in read_frame_reference_mode_probs() 124 if (cm->reference_mode != SINGLE_REFERENCE) in read_frame_reference_mode_probs() 786 static MODE_INFO *set_offsets_recon(VP9_COMMON *const cm, MACROBLOCKD *const xd, in set_offsets_recon() argument 789 const int offset = mi_row * cm->mi_stride + mi_col; in set_offsets_recon() 791 xd->mi = cm->mi_grid_visible + offset; in set_offsets_recon() [all …]
|
D | vp9_decodemv.c | 31 static PREDICTION_MODE read_intra_mode_y(VP9_COMMON *cm, MACROBLOCKD *xd, in read_intra_mode_y() argument 34 read_intra_mode(r, cm->fc->y_mode_prob[size_group]); in read_intra_mode_y() 40 static PREDICTION_MODE read_intra_mode_uv(VP9_COMMON *cm, MACROBLOCKD *xd, in read_intra_mode_uv() argument 44 read_intra_mode(r, cm->fc->uv_mode_prob[y_mode]); in read_intra_mode_uv() 50 static PREDICTION_MODE read_inter_mode(VP9_COMMON *cm, MACROBLOCKD *xd, in read_inter_mode() argument 53 vpx_read_tree(r, vp9_inter_mode_tree, cm->fc->inter_mode_probs[ctx]); in read_inter_mode() 64 static TX_SIZE read_selected_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd, in read_selected_tx_size() argument 68 const vpx_prob *tx_probs = get_tx_probs(max_tx_size, ctx, &cm->fc->tx_probs); in read_selected_tx_size() 80 static INLINE TX_SIZE read_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd, in read_tx_size() argument 82 TX_MODE tx_mode = cm->tx_mode; in read_tx_size() [all …]
|
/external/libaom/libaom/av1/decoder/ |
D | decoder.c | 48 static void dec_setup_mi(AV1_COMMON *cm) { in dec_setup_mi() argument 49 cm->mi = cm->mip; in dec_setup_mi() 50 cm->mi_grid_visible = cm->mi_grid_base; in dec_setup_mi() 51 memset(cm->mi_grid_base, 0, in dec_setup_mi() 52 cm->mi_stride * cm->mi_rows * sizeof(*cm->mi_grid_base)); in dec_setup_mi() 55 static int av1_dec_alloc_mi(AV1_COMMON *cm, int mi_size) { in av1_dec_alloc_mi() argument 56 cm->mip = aom_calloc(mi_size, sizeof(*cm->mip)); in av1_dec_alloc_mi() 57 if (!cm->mip) return 1; in av1_dec_alloc_mi() 58 cm->mi_alloc_size = mi_size; in av1_dec_alloc_mi() 59 cm->mi_grid_base = in av1_dec_alloc_mi() [all …]
|
D | decodeframe.c | 79 AV1_COMMON *const cm = &pbi->common; in av1_check_trailing_bits() local 84 cm->error.error_code = AOM_CODEC_CORRUPT_FRAME; in av1_check_trailing_bits() 120 static void loop_restoration_read_sb_coeffs(const AV1_COMMON *const cm, 125 static void setup_compound_reference_mode(AV1_COMMON *cm) { in setup_compound_reference_mode() argument 126 cm->comp_fwd_ref[0] = LAST_FRAME; in setup_compound_reference_mode() 127 cm->comp_fwd_ref[1] = LAST2_FRAME; in setup_compound_reference_mode() 128 cm->comp_fwd_ref[2] = LAST3_FRAME; in setup_compound_reference_mode() 129 cm->comp_fwd_ref[3] = GOLDEN_FRAME; in setup_compound_reference_mode() 131 cm->comp_bwd_ref[0] = BWDREF_FRAME; in setup_compound_reference_mode() 132 cm->comp_bwd_ref[1] = ALTREF2_FRAME; in setup_compound_reference_mode() [all …]
|
D | obu.c | 87 static int byte_alignment(AV1_COMMON *const cm, in byte_alignment() argument 91 cm->error.error_code = AOM_CODEC_CORRUPT_FRAME; in byte_alignment() 120 AV1_COMMON *const cm = &pbi->common; in read_sequence_header_obu() local 128 SequenceHeader sh = cm->seq_params; in read_sequence_header_obu() 133 cm->error.error_code = AOM_CODEC_UNSUP_BITSTREAM; in read_sequence_header_obu() 142 cm->error.error_code = AOM_CODEC_UNSUP_BITSTREAM; in read_sequence_header_obu() 147 cm->timing_info_present = 0; in read_sequence_header_obu() 153 cm->error.error_code = AOM_CODEC_UNSUP_BITSTREAM; in read_sequence_header_obu() 157 cm->op_params[0].decoder_model_param_present_flag = 0; in read_sequence_header_obu() 158 cm->op_params[0].display_model_param_present_flag = 0; in read_sequence_header_obu() [all …]
|
/external/libvpx/libvpx/vp8/decoder/ |
D | onyxd_if.c | 44 extern void vp8_init_loop_filter(VP8_COMMON *cm); 45 static int get_free_fb(VP8_COMMON *cm); 126 VP8_COMMON *cm = &pbi->common; in vp8dx_get_reference() local 130 ref_fb_idx = cm->lst_fb_idx; in vp8dx_get_reference() 132 ref_fb_idx = cm->gld_fb_idx; in vp8dx_get_reference() 134 ref_fb_idx = cm->alt_fb_idx; in vp8dx_get_reference() 141 if (cm->yv12_fb[ref_fb_idx].y_height != sd->y_height || in vp8dx_get_reference() 142 cm->yv12_fb[ref_fb_idx].y_width != sd->y_width || in vp8dx_get_reference() 143 cm->yv12_fb[ref_fb_idx].uv_height != sd->uv_height || in vp8dx_get_reference() 144 cm->yv12_fb[ref_fb_idx].uv_width != sd->uv_width) { in vp8dx_get_reference() [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | encoder.c | 315 const AV1_COMMON *const cm = &cpi->common; in select_sb_size() local 320 if (cm->options && cm->options->ext_partition) in select_sb_size() 329 if (cm->options && !cm->options->ext_partition) return BLOCK_64X64; in select_sb_size() 340 return (cm->width >= 480 && cm->height >= 360) ? BLOCK_128X128 in select_sb_size() 348 AV1_COMMON *const cm = &cpi->common; in setup_frame() local 355 if (frame_is_intra_only(cm) || cm->error_resilient_mode || in setup_frame() 357 av1_setup_past_independence(cm); in setup_frame() 360 if (cm->current_frame.frame_type == KEY_FRAME && cm->show_frame) { in setup_frame() 361 set_sb_size(&cm->seq_params, select_sb_size(cpi)); in setup_frame() 362 } else if (frame_is_sframe(cm)) { in setup_frame() [all …]
|
D | aq_cyclicrefresh.c | 138 const AV1_COMMON *const cm = &cpi->common; in av1_cyclic_refresh_estimate_bits_at_q() local 141 int mbs = cm->MBs; in av1_cyclic_refresh_estimate_bits_at_q() 150 av1_estimate_bits_at_q(cm->current_frame.frame_type, in av1_cyclic_refresh_estimate_bits_at_q() 151 cm->base_qindex, mbs, correction_factor, in av1_cyclic_refresh_estimate_bits_at_q() 152 cm->seq_params.bit_depth) + in av1_cyclic_refresh_estimate_bits_at_q() 154 cm->current_frame.frame_type, in av1_cyclic_refresh_estimate_bits_at_q() 155 cm->base_qindex + cr->qindex_delta[1], mbs, in av1_cyclic_refresh_estimate_bits_at_q() 156 correction_factor, cm->seq_params.bit_depth) + in av1_cyclic_refresh_estimate_bits_at_q() 158 cm->current_frame.frame_type, in av1_cyclic_refresh_estimate_bits_at_q() 159 cm->base_qindex + cr->qindex_delta[2], mbs, in av1_cyclic_refresh_estimate_bits_at_q() [all …]
|
D | bitstream.c | 63 static void loop_restoration_write_sb_coeffs(const AV1_COMMON *const cm, 216 static int write_skip(const AV1_COMMON *cm, const MACROBLOCKD *xd, in write_skip() argument 218 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) { in write_skip() 229 static int write_skip_mode(const AV1_COMMON *cm, const MACROBLOCKD *xd, in write_skip_mode() argument 232 if (!cm->current_frame.skip_mode_info.skip_mode_flag) return 0; in write_skip_mode() 233 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) { in write_skip_mode() 241 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME) || in write_skip_mode() 242 segfeature_active(&cm->seg, segment_id, SEG_LVL_GLOBALMV)) { in write_skip_mode() 254 static void write_is_inter(const AV1_COMMON *cm, const MACROBLOCKD *xd, in write_is_inter() argument 256 if (!segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) { in write_is_inter() [all …]
|
D | aq_complexity.c | 49 AV1_COMMON *const cm = &cpi->common; in av1_setup_in_frame_q_adj() local 50 struct segmentation *const seg = &cm->seg; in av1_setup_in_frame_q_adj() 52 cm->prev_frame && (cm->width != cm->prev_frame->width || in av1_setup_in_frame_q_adj() 53 cm->height != cm->prev_frame->height); in av1_setup_in_frame_q_adj() 59 memset(cpi->segmentation_map, 0, cm->mi_rows * cm->mi_cols); in av1_setup_in_frame_q_adj() 65 if (frame_is_intra_only(cm) || cm->error_resilient_mode || in av1_setup_in_frame_q_adj() 70 get_aq_c_strength(cm->base_qindex, cm->seq_params.bit_depth); in av1_setup_in_frame_q_adj() 73 memset(cpi->segmentation_map, DEFAULT_AQ2_SEG, cm->mi_rows * cm->mi_cols); in av1_setup_in_frame_q_adj() 96 &cpi->rc, cm->current_frame.frame_type, cm->base_qindex, in av1_setup_in_frame_q_adj() 97 aq_c_q_adj_factor[aq_strength][segment], cm->seq_params.bit_depth); in av1_setup_in_frame_q_adj() [all …]
|
D | encode_strategy.c | 136 static void set_additional_frame_flags(const AV1_COMMON *const cm, in set_additional_frame_flags() argument 138 if (frame_is_intra_only(cm)) *frame_flags |= FRAMEFLAGS_INTRAONLY; in set_additional_frame_flags() 139 if (frame_is_sframe(cm)) *frame_flags |= FRAMEFLAGS_SWITCH; in set_additional_frame_flags() 140 if (cm->error_resilient_mode) *frame_flags |= FRAMEFLAGS_ERROR_RESILIENT; in set_additional_frame_flags() 194 AV1_COMMON *const cm = &cpi->common; in check_show_existing_frame() local 199 if (cm->show_existing_frame == 1) { in check_show_existing_frame() 209 ? get_ref_frame_map_idx(cm, ALTREF_FRAME) in check_show_existing_frame() 210 : get_ref_frame_map_idx(cm, BWDREF_FRAME); in check_show_existing_frame() 221 AV1_COMMON *const cm = &cpi->common; in set_ext_overrides() local 228 cm->refresh_frame_context = cpi->ext_refresh_frame_context; in set_ext_overrides() [all …]
|
D | segmentation.c | 46 static void count_segs(const AV1_COMMON *cm, MACROBLOCKD *xd, in count_segs() argument 54 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs() 59 set_mi_row_col(xd, tile, mi_row, bh, mi_col, bw, cm->mi_rows, cm->mi_cols); in count_segs() 65 if (cm->current_frame.frame_type != KEY_FRAME) { in count_segs() 69 cm->last_frame_seg_map in count_segs() 70 ? get_segment_id(cm, cm->last_frame_seg_map, bsize, mi_row, mi_col) in count_segs() 85 static void count_segs_sb(const AV1_COMMON *cm, MACROBLOCKD *xd, in count_segs_sb() argument 91 const int mis = cm->mi_stride; in count_segs_sb() 96 if (mi_row >= cm->mi_rows || mi_col >= cm->mi_cols) return; in count_segs_sb() 99 count_segs(cm, xd, tile, mi + mis * (cs_rowoff) + (cs_coloff), \ in count_segs_sb() [all …]
|
/external/libvpx/libvpx/vp8/encoder/ |
D | picklpf.c | 132 VP8_COMMON *cm = &cpi->common; in vp8cx_pick_filter_level_fast() local 136 int min_filter_level = get_min_filter_level(cpi, cm->base_qindex); in vp8cx_pick_filter_level_fast() 137 int max_filter_level = get_max_filter_level(cpi, cm->base_qindex); in vp8cx_pick_filter_level_fast() 140 YV12_BUFFER_CONFIG *saved_frame = cm->frame_to_show; in vp8cx_pick_filter_level_fast() 143 cm->frame_to_show = &cpi->pick_lf_lvl_frame; in vp8cx_pick_filter_level_fast() 145 if (cm->frame_type == KEY_FRAME) { in vp8cx_pick_filter_level_fast() 146 cm->sharpness_level = 0; in vp8cx_pick_filter_level_fast() 148 cm->sharpness_level = cpi->oxcf.Sharpness; in vp8cx_pick_filter_level_fast() 151 if (cm->sharpness_level != cm->last_sharpness_level) { in vp8cx_pick_filter_level_fast() 152 vp8_loop_filter_update_sharpness(&cm->lf_info, cm->sharpness_level); in vp8cx_pick_filter_level_fast() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encoder.c | 108 VP9_COMMON *const cm = &cpi->common; in is_spatial_denoise_enabled() local 112 frame_is_intra_only(cm); in is_spatial_denoise_enabled() 118 const VP9_COMMON *const cm = &cpi->common; in compute_context_model_thresh() local 120 const int frame_size = (cm->width * cm->height) >> 10; in compute_context_model_thresh() 122 const int qindex_factor = cm->base_qindex + (MAXQ >> 1); in compute_context_model_thresh() 141 static int compute_context_model_diff(const VP9_COMMON *const cm) { in compute_context_model_diff() argument 143 &cm->frame_contexts[cm->frame_context_idx]; in compute_context_model_diff() 144 const FRAME_CONTEXT *const cur_fc = cm->fc; in compute_context_model_diff() 145 const FRAME_COUNTS *counts = &cm->counts; in compute_context_model_diff() 443 VP9_COMMON *const cm = &cpi->common; in is_psnr_calc_enabled() local [all …]
|
D | vp9_aq_cyclicrefresh.c | 106 const VP9_COMMON *const cm = &cpi->common; in vp9_cyclic_refresh_estimate_bits_at_q() local 109 int mbs = cm->MBs; in vp9_cyclic_refresh_estimate_bits_at_q() 118 vp9_estimate_bits_at_q(cm->frame_type, cm->base_qindex, mbs, in vp9_cyclic_refresh_estimate_bits_at_q() 119 correction_factor, cm->bit_depth) + in vp9_cyclic_refresh_estimate_bits_at_q() 121 vp9_estimate_bits_at_q(cm->frame_type, in vp9_cyclic_refresh_estimate_bits_at_q() 122 cm->base_qindex + cr->qindex_delta[1], in vp9_cyclic_refresh_estimate_bits_at_q() 123 mbs, correction_factor, cm->bit_depth) + in vp9_cyclic_refresh_estimate_bits_at_q() 125 vp9_estimate_bits_at_q(cm->frame_type, in vp9_cyclic_refresh_estimate_bits_at_q() 126 cm->base_qindex + cr->qindex_delta[2], in vp9_cyclic_refresh_estimate_bits_at_q() 127 mbs, correction_factor, cm->bit_depth)); in vp9_cyclic_refresh_estimate_bits_at_q() [all …]
|
D | vp9_bitstream.c | 83 static void write_selected_tx_size(const VP9_COMMON *cm, in write_selected_tx_size() argument 89 get_tx_probs(max_tx_size, get_tx_size_context(xd), &cm->fc->tx_probs); in write_selected_tx_size() 98 static int write_skip(const VP9_COMMON *cm, const MACROBLOCKD *const xd, in write_skip() argument 100 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) { in write_skip() 104 vpx_write(w, skip, vp9_get_skip_prob(cm, xd)); in write_skip() 109 static void update_skip_probs(VP9_COMMON *cm, vpx_writer *w, in update_skip_probs() argument 114 vp9_cond_prob_diff_update(w, &cm->fc->skip_probs[k], counts->skip[k]); in update_skip_probs() 117 static void update_switchable_interp_probs(VP9_COMMON *cm, vpx_writer *w, in update_switchable_interp_probs() argument 122 cm->fc->switchable_interp_prob[j], in update_switchable_interp_probs() 198 static void write_ref_frames(const VP9_COMMON *cm, const MACROBLOCKD *const xd, in write_ref_frames() argument [all …]
|
/external/aac/libAACenc/src/ |
D | channel_map.cpp | 228 CHANNEL_MAPPING* cm) { in FDKaacEnc_InitChannelMapping() argument 237 FDKmemclear(cm, sizeof(CHANNEL_MAPPING)); in FDKaacEnc_InitChannelMapping() 244 cm->encMode = channelModeConfig[i].encMode; in FDKaacEnc_InitChannelMapping() 245 cm->nChannels = channelModeConfig[i].nChannels; in FDKaacEnc_InitChannelMapping() 246 cm->nChannelsEff = channelModeConfig[i].nChannelsEff; in FDKaacEnc_InitChannelMapping() 247 cm->nElements = channelModeConfig[i].nElements; in FDKaacEnc_InitChannelMapping() 276 FDKaacEnc_initElement(&cm->elInfo[0], ID_SCE, &count, &mapDescr, mapIdx, in FDKaacEnc_InitChannelMapping() 281 FDKaacEnc_initElement(&cm->elInfo[0], ID_CPE, &count, &mapDescr, mapIdx, in FDKaacEnc_InitChannelMapping() 287 FDKaacEnc_initElement(&cm->elInfo[0], ID_SCE, &count, &mapDescr, mapIdx, in FDKaacEnc_InitChannelMapping() 289 FDKaacEnc_initElement(&cm->elInfo[1], ID_CPE, &count, &mapDescr, mapIdx, in FDKaacEnc_InitChannelMapping() [all …]
|