/external/libaom/libaom/av1/encoder/ |
D | aq_cyclicrefresh.h | 73 static INLINE int cyclic_refresh_segment_id_boosted(int segment_id) { in cyclic_refresh_segment_id_boosted() argument 74 return segment_id == CR_SEGMENT_ID_BOOST1 || in cyclic_refresh_segment_id_boosted() 75 segment_id == CR_SEGMENT_ID_BOOST2; in cyclic_refresh_segment_id_boosted() 78 static INLINE int cyclic_refresh_segment_id(int segment_id) { in cyclic_refresh_segment_id() argument 79 if (segment_id == CR_SEGMENT_ID_BOOST1) in cyclic_refresh_segment_id() 81 else if (segment_id == CR_SEGMENT_ID_BOOST2) in cyclic_refresh_segment_id()
|
D | segmentation.c | 36 void av1_disable_segfeature(struct segmentation *seg, int segment_id, in av1_disable_segfeature() argument 38 seg->feature_mask[segment_id] &= ~(1 << feature_id); in av1_disable_segfeature() 41 void av1_clear_segdata(struct segmentation *seg, int segment_id, in av1_clear_segdata() argument 43 seg->feature_data[segment_id][feature_id] = 0; in av1_clear_segdata() 52 int segment_id; in count_segs() local 57 segment_id = xd->mi[0]->segment_id; in count_segs() 62 no_pred_segcounts[segment_id]++; in count_segs() 72 const int pred_flag = pred_segment_id == segment_id; in count_segs() 81 if (!pred_flag) t_unpred_seg_counts[segment_id]++; in count_segs()
|
D | segmentation.h | 25 void av1_disable_segfeature(struct segmentation *seg, int segment_id, 27 void av1_clear_segdata(struct segmentation *seg, int segment_id,
|
D | tokenize.h | 63 static INLINE int av1_get_tx_eob(const struct segmentation *seg, int segment_id, in av1_get_tx_eob() argument 66 return segfeature_active(seg, segment_id, SEG_LVL_SKIP) ? 0 : eob_max; in av1_get_tx_eob()
|
D | av1_quantize.c | 679 int segment_id) { in av1_init_plane_quantizers() argument 688 const int qindex = av1_get_qindex(&cm->seg, segment_id, current_qindex); in av1_init_plane_quantizers() 690 int qmlevel = (xd->lossless[segment_id] || cm->using_qmatrix == 0) in av1_init_plane_quantizers() 702 memcpy(&xd->plane[0].seg_qmatrix[segment_id], cm->gqmatrix[qmlevel][0], in av1_init_plane_quantizers() 704 memcpy(&xd->plane[0].seg_iqmatrix[segment_id], cm->giqmatrix[qmlevel][0], in av1_init_plane_quantizers() 709 qmlevel = (xd->lossless[segment_id] || cm->using_qmatrix == 0) in av1_init_plane_quantizers() 720 memcpy(&xd->plane[1].seg_qmatrix[segment_id], cm->gqmatrix[qmlevel][1], in av1_init_plane_quantizers() 722 memcpy(&xd->plane[1].seg_iqmatrix[segment_id], cm->giqmatrix[qmlevel][1], in av1_init_plane_quantizers() 728 qmlevel = (xd->lossless[segment_id] || cm->using_qmatrix == 0) in av1_init_plane_quantizers() 739 memcpy(&xd->plane[2].seg_qmatrix[segment_id], cm->gqmatrix[qmlevel][2], in av1_init_plane_quantizers() [all …]
|
D | aq_cyclicrefresh.c | 219 if (cyclic_refresh_segment_id_boosted(mbmi->segment_id)) { in av1_cyclic_refresh_update_segment() 220 mbmi->segment_id = refresh_this_block; in av1_cyclic_refresh_update_segment() 222 if (skip) mbmi->segment_id = CR_SEGMENT_ID_BASE; in av1_cyclic_refresh_update_segment() 229 if (cyclic_refresh_segment_id_boosted(mbmi->segment_id)) { in av1_cyclic_refresh_update_segment() 247 cpi->segmentation_map[map_offset] = mbmi->segment_id; in av1_cyclic_refresh_update_segment()
|
D | encodemb.c | 106 const int segment_id = xd->mi[0]->segment_id; in av1_optimize_b() local 108 if (eob == 0 || !cpi->optimize_seg_arr[segment_id] || in av1_optimize_b() 109 xd->lossless[segment_id]) { in av1_optimize_b() 147 int seg_id = mbmi->segment_id; in av1_xform_quant() 169 txfm_param.lossless = xd->lossless[mbmi->segment_id]; in av1_xform_quant() 442 txfm_param.lossless = xd->lossless[xd->mi[0]->segment_id]; in encode_block_pass1() 474 cpi->optimize_seg_arr[mbmi->segment_id] }; in av1_encode_sb()
|
D | bitstream.c | 217 int segment_id, const MB_MODE_INFO *mi, aom_writer *w) { in write_skip() argument 218 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) { in write_skip() 230 int segment_id, const MB_MODE_INFO *mi, in write_skip_mode() argument 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() 255 int segment_id, aom_writer *w, const int is_inter) { in write_is_inter() argument 256 if (!segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) { in write_is_inter() 257 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_GLOBALMV)) { in write_is_inter() 417 int mi_col, int segment_id) { in set_spatial_segment_id() argument [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_seg_common.h | 53 int segment_id, in segfeature_active() argument 55 return seg->enabled && (seg->feature_mask[segment_id] & (1 << feature_id)); in segfeature_active() 60 void vp9_enable_segfeature(struct segmentation *seg, int segment_id, 67 void vp9_set_segdata(struct segmentation *seg, int segment_id, 70 static INLINE int get_segdata(const struct segmentation *seg, int segment_id, in get_segdata() argument 72 return seg->feature_data[segment_id][feature_id]; in get_segdata()
|
D | vp9_seg_common.c | 34 void vp9_enable_segfeature(struct segmentation *seg, int segment_id, in vp9_enable_segfeature() argument 36 seg->feature_mask[segment_id] |= 1 << feature_id; in vp9_enable_segfeature() 47 void vp9_set_segdata(struct segmentation *seg, int segment_id, in vp9_set_segdata() argument 55 seg->feature_data[segment_id][feature_id] = seg_data; in vp9_set_segdata()
|
D | vp9_pred_common.h | 30 int x, y, segment_id = MAX_SEGMENTS; in get_segment_id() local 34 segment_id = in get_segment_id() 35 VPXMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in get_segment_id() 37 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in get_segment_id() 38 return segment_id; in get_segment_id()
|
D | vp9_quant_common.c | 196 int vp9_get_qindex(const struct segmentation *seg, int segment_id, in vp9_get_qindex() argument 198 if (segfeature_active(seg, segment_id, SEG_LVL_ALT_Q)) { in vp9_get_qindex() 199 const int data = get_segdata(seg, segment_id, SEG_LVL_ALT_Q); in vp9_get_qindex()
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decodemv.c | 93 int x, y, segment_id = INT_MAX; in dec_get_segment_id() local 97 segment_id = in dec_get_segment_id() 98 VPXMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in dec_get_segment_id() 100 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in dec_get_segment_id() 101 return segment_id; in dec_get_segment_id() 105 int segment_id) { in set_segment_id() argument 108 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in set_segment_id() 112 cm->current_frame_seg_map[mi_offset + y * cm->mi_cols + x] = segment_id; in set_segment_id() 131 int segment_id; in read_intra_segment_id() local 141 segment_id = read_segment_id(r, seg); in read_intra_segment_id() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_aq_cyclicrefresh.h | 130 static INLINE int cyclic_refresh_segment_id_boosted(int segment_id) { in cyclic_refresh_segment_id_boosted() argument 131 return segment_id == CR_SEGMENT_ID_BOOST1 || in cyclic_refresh_segment_id_boosted() 132 segment_id == CR_SEGMENT_ID_BOOST2; in cyclic_refresh_segment_id_boosted() 135 static INLINE int cyclic_refresh_segment_id(int segment_id) { in cyclic_refresh_segment_id() argument 136 if (segment_id == CR_SEGMENT_ID_BOOST1) in cyclic_refresh_segment_id() 138 else if (segment_id == CR_SEGMENT_ID_BOOST2) in cyclic_refresh_segment_id()
|
D | vp9_segmentation.c | 39 void vp9_disable_segfeature(struct segmentation *seg, int segment_id, in vp9_disable_segfeature() argument 41 seg->feature_mask[segment_id] &= ~(1 << feature_id); in vp9_disable_segfeature() 44 void vp9_clear_segdata(struct segmentation *seg, int segment_id, in vp9_clear_segdata() argument 46 seg->feature_data[segment_id][feature_id] = 0; in vp9_clear_segdata() 123 int segment_id; in count_segs() local 128 segment_id = xd->mi[0]->segment_id; in count_segs() 133 no_pred_segcounts[segment_id]++; in count_segs() 141 const int pred_flag = pred_segment_id == segment_id; in count_segs() 150 if (!pred_flag) t_unpred_seg_counts[segment_id]++; in count_segs()
|
D | vp9_segmentation.h | 24 void vp9_disable_segfeature(struct segmentation *seg, int segment_id, 26 void vp9_clear_segdata(struct segmentation *seg, int segment_id,
|
D | vp9_aq_cyclicrefresh.c | 190 if (cyclic_refresh_segment_id_boosted(mi->segment_id)) { in vp9_cyclic_refresh_update_segment() 191 mi->segment_id = refresh_this_block; in vp9_cyclic_refresh_update_segment() 193 if (skip) mi->segment_id = CR_SEGMENT_ID_BASE; in vp9_cyclic_refresh_update_segment() 200 if (cyclic_refresh_segment_id_boosted(mi->segment_id)) { in vp9_cyclic_refresh_update_segment() 218 cpi->segmentation_map[map_offset] = mi->segment_id; in vp9_cyclic_refresh_update_segment() 242 mi->segment_id <= CR_SEGMENT_ID_BOOST2) { in vp9_cyclic_refresh_update_sb_postencode() 244 clamp(cm->base_qindex + cr->qindex_delta[mi->segment_id], 0, MAXQ); in vp9_cyclic_refresh_update_sb_postencode() 246 mi->segment_id <= CR_SEGMENT_ID_BOOST2) { in vp9_cyclic_refresh_update_sb_postencode() 248 clamp(cm->base_qindex + cr->qindex_delta[mi->segment_id], 0, MAXQ), in vp9_cyclic_refresh_update_sb_postencode()
|
D | vp9_bitstream.c | 99 int segment_id, const MODE_INFO *mi, vpx_writer *w) { in write_skip() argument 100 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) { in write_skip() 192 int segment_id) { in write_segment_id() argument 194 vp9_write_tree(w, vp9_segment_tree, seg->tree_probs, segment_id, 3, 0); in write_segment_id() 202 const int segment_id = mi->segment_id; in write_ref_frames() local 206 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) { in write_ref_frames() 209 get_segdata(&cm->seg, segment_id, SEG_LVL_REF_FRAME)); in write_ref_frames() 244 const int segment_id = mi->segment_id; in pack_inter_mode_mvs() local 256 if (!pred_flag) write_segment_id(w, seg, segment_id); in pack_inter_mode_mvs() 258 write_segment_id(w, seg, segment_id); in pack_inter_mode_mvs() [all …]
|
D | vp9_rd.c | 281 int i, bsize, segment_id; in set_block_thresholds() local 283 for (segment_id = 0; segment_id < MAX_SEGMENTS; ++segment_id) { in set_block_thresholds() 285 clamp(vp9_get_qindex(&cm->seg, segment_id, cm->base_qindex) + in set_block_thresholds() 298 rd->threshes[segment_id][bsize][i] = rd->thresh_mult[i] < thresh_max in set_block_thresholds() 303 rd->threshes[segment_id][bsize][i] = in set_block_thresholds()
|
/external/libaom/libaom/av1/common/ |
D | seg_common.h | 63 int segment_id, in segfeature_active() argument 65 return seg->enabled && (seg->feature_mask[segment_id] & (1 << feature_id)); in segfeature_active() 83 void av1_enable_segfeature(struct segmentation *seg, int segment_id, 92 void av1_set_segdata(struct segmentation *seg, int segment_id, 95 static INLINE int get_segdata(const struct segmentation *seg, int segment_id, in get_segdata() argument 97 return seg->feature_data[segment_id][feature_id]; in get_segdata()
|
D | seg_common.c | 55 void av1_enable_segfeature(struct segmentation *seg, int segment_id, in av1_enable_segfeature() argument 57 seg->feature_mask[segment_id] |= 1 << feature_id; in av1_enable_segfeature() 79 void av1_set_segdata(struct segmentation *seg, int segment_id, in av1_set_segdata() argument 88 seg->feature_data[segment_id][feature_id] = seg_data; in av1_set_segdata()
|
D | pred_common.h | 32 int x, y, segment_id = MAX_SEGMENTS; in get_segment_id() local 36 segment_id = in get_segment_id() 37 AOMMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in get_segment_id() 39 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in get_segment_id() 40 return segment_id; in get_segment_id()
|
D | quant_common.c | 228 int av1_get_qindex(const struct segmentation *seg, int segment_id, in av1_get_qindex() argument 230 if (segfeature_active(seg, segment_id, SEG_LVL_ALT_Q)) { in av1_get_qindex() 231 const int data = get_segdata(seg, segment_id, SEG_LVL_ALT_Q); in av1_get_qindex()
|
/external/libaom/libaom/av1/decoder/ |
D | decodemv.c | 273 const int segment_id = in read_segment_id() local 276 if (segment_id < 0 || segment_id > seg->last_active_segid) { in read_segment_id() 280 return segment_id; in read_segment_id() 285 int segment_id = INT_MAX; in dec_get_segment_id() local 289 segment_id = in dec_get_segment_id() 290 AOMMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]); in dec_get_segment_id() 292 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in dec_get_segment_id() 293 return segment_id; in dec_get_segment_id() 297 int segment_id) { in set_segment_id() argument 298 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in set_segment_id() [all …]
|
/external/libvpx/libvpx/vp8/common/ |
D | vp8_loopfilter.c | 183 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_normal() 236 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_simple() 303 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame() 353 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame() 424 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame_yonly() 522 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_partial_frame()
|