Home
last modified time | relevance | path

Searched refs:segment_id (Results 1 – 25 of 31) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_seg_common.c28 int vp9_segfeature_active(const struct segmentation *seg, int segment_id, in vp9_segfeature_active() argument
31 (seg->feature_mask[segment_id] & (1 << feature_id)); in vp9_segfeature_active()
39 void vp9_enable_segfeature(struct segmentation *seg, int segment_id, in vp9_enable_segfeature() argument
41 seg->feature_mask[segment_id] |= 1 << feature_id; in vp9_enable_segfeature()
52 void vp9_set_segdata(struct segmentation *seg, int segment_id, in vp9_set_segdata() argument
60 seg->feature_data[segment_id][feature_id] = seg_data; in vp9_set_segdata()
63 int vp9_get_segdata(const struct segmentation *seg, int segment_id, in vp9_get_segdata() argument
65 return seg->feature_data[segment_id][feature_id]; in vp9_get_segdata()
Dvp9_seg_common.h53 int segment_id,
59 int segment_id,
67 int segment_id,
72 int segment_id,
Dvp9_quant_common.c133 int vp9_get_qindex(const struct segmentation *seg, int segment_id, in vp9_get_qindex() argument
135 if (vp9_segfeature_active(seg, segment_id, SEG_LVL_ALT_Q)) { in vp9_get_qindex()
136 const int data = vp9_get_segdata(seg, segment_id, SEG_LVL_ALT_Q); in vp9_get_qindex()
Dvp9_pred_common.c376 int x, y, segment_id = INT_MAX; in vp9_get_segment_id() local
380 segment_id = MIN(segment_id, in vp9_get_segment_id()
383 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in vp9_get_segment_id()
384 return segment_id; in vp9_get_segment_id()
Dvp9_quant_common.h30 int vp9_get_qindex(const struct segmentation *seg, int segment_id,
Dvp9_blockd.h128 uint8_t segment_id; member
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_decodemv.c88 int mi_row, int mi_col, int segment_id) { in set_segment_id() argument
96 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in set_segment_id()
100 cm->last_frame_seg_map[mi_offset + y * cm->mi_cols + x] = segment_id; in set_segment_id()
108 int segment_id; in read_intra_segment_id() local
116 segment_id = read_segment_id(r, seg); in read_intra_segment_id()
117 set_segment_id(cm, bsize, mi_row, mi_col, segment_id); in read_intra_segment_id()
118 return segment_id; in read_intra_segment_id()
126 int predicted_segment_id, segment_id; in read_inter_segment_id() local
139 segment_id = mbmi->seg_id_predicted ? predicted_segment_id in read_inter_segment_id()
142 segment_id = read_segment_id(r, seg); in read_inter_segment_id()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_segmentation.c55 void vp9_disable_segfeature(struct segmentation *seg, int segment_id, in vp9_disable_segfeature() argument
57 seg->feature_mask[segment_id] &= ~(1 << feature_id); in vp9_disable_segfeature()
60 void vp9_clear_segdata(struct segmentation *seg, int segment_id, in vp9_clear_segdata() argument
62 seg->feature_data[segment_id][feature_id] = 0; in vp9_clear_segdata()
131 int segment_id; in count_segs() local
137 segment_id = xd->mi[0]->mbmi.segment_id; in count_segs()
142 no_pred_segcounts[segment_id]++; in count_segs()
150 const int pred_flag = pred_segment_id == segment_id; in count_segs()
160 t_unpred_seg_counts[segment_id]++; in count_segs()
Dvp9_segmentation.h26 int segment_id,
29 int segment_id,
Dvp9_aq_cyclicrefresh.c145 if (mbmi->segment_id > 0 && !refresh_this_block) in vp9_cyclic_refresh_update_segment()
146 mbmi->segment_id = 0; in vp9_cyclic_refresh_update_segment()
152 if (mbmi->segment_id == 1) { in vp9_cyclic_refresh_update_segment()
170 mbmi->segment_id; in vp9_cyclic_refresh_update_segment()
174 if (mbmi->segment_id) in vp9_cyclic_refresh_update_segment()
Dvp9_tokenize.c203 static INLINE int get_tx_eob(const struct segmentation *seg, int segment_id, in get_tx_eob() argument
206 return vp9_segfeature_active(seg, segment_id, SEG_LVL_SKIP) ? 0 : eob_max; in get_tx_eob()
225 const int segment_id = mbmi->segment_id; in tokenize_b() local
237 const int seg_eob = get_tx_eob(&cpi->common.seg, segment_id, tx_size); in tokenize_b()
315 const int skip_inc = !vp9_segfeature_active(&cm->seg, mbmi->segment_id, in vp9_tokenize_sb()
Dvp9_bitstream.c97 static int write_skip(const VP9_COMP *cpi, int segment_id, const MODE_INFO *mi, in write_skip() argument
100 if (vp9_segfeature_active(&cpi->common.seg, segment_id, SEG_LVL_SKIP)) { in write_skip()
186 int segment_id) { in write_segment_id() argument
188 vp9_write_tree(w, vp9_segment_tree, seg->tree_probs, segment_id, 3, 0); in write_segment_id()
197 const int segment_id = mbmi->segment_id; in write_ref_frames() local
201 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) { in write_ref_frames()
204 vp9_get_segdata(&cm->seg, segment_id, SEG_LVL_REF_FRAME)); in write_ref_frames()
237 const int segment_id = mbmi->segment_id; in pack_inter_mode_mvs() local
250 write_segment_id(w, seg, segment_id); in pack_inter_mode_mvs()
252 write_segment_id(w, seg, segment_id); in pack_inter_mode_mvs()
[all …]
Dvp9_pickmode.c232 unsigned char segment_id = mbmi->segment_id; in vp9_pick_inter_mode() local
233 const int *const rd_threshes = cpi->rd_threshes[segment_id][bsize]; in vp9_pick_inter_mode()
255 mbmi->segment_id = segment_id; in vp9_pick_inter_mode()
Dvp9_aq_variance.c30 static int segment_id[MAX_SEGMENTS] = { 5, 3, 1, 0, 2, 4, 6, 7 }; variable
34 #define SEGMENT_ID(i) segment_id[(i) - ENERGY_MIN]
Dvp9_quantize.c220 const int segment_id = xd->mi[0]->mbmi.segment_id; in vp9_init_plane_quantizers() local
221 const int qindex = vp9_get_qindex(&cm->seg, segment_id, cm->base_qindex); in vp9_init_plane_quantizers()
253 x->skip_block = vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP); in vp9_init_plane_quantizers()
Dvp9_rdopt.c247 int i, bsize, segment_id; in set_block_thresholds() local
249 for (segment_id = 0; segment_id < MAX_SEGMENTS; ++segment_id) { in set_block_thresholds()
250 const int qindex = clamp(vp9_get_qindex(&cm->seg, segment_id, 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()
1455 const int segment_id = x->e_mbd.mi[0]->mbmi.segment_id; in cost_mv_ref() local
1458 if (!vp9_segfeature_active(&cpi->common.seg, segment_id, SEG_LVL_SKIP)) { in cost_mv_ref()
2204 static void estimate_ref_frame_costs(VP9_COMP *cpi, int segment_id, in estimate_ref_frame_costs() argument
2210 int seg_ref_active = vp9_segfeature_active(&cm->seg, segment_id, in estimate_ref_frame_costs()
3135 unsigned char segment_id = mbmi->segment_id; in vp9_rd_pick_inter_mode_sb() local
[all …]
Dvp9_encodeframe.c257 mbmi->segment_id = vp9_get_segment_id(cm, map, bsize, mi_row, mi_col); in set_offsets()
277 x->encode_breakout = cpi->segment_encode_breakout[mbmi->segment_id]; in set_offsets()
279 mbmi->segment_id = 0; in set_offsets()
865 mi_addr->mbmi.segment_id = in update_state()
924 if (!vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) { in update_state()
1041 mbmi->segment_id = vp9_vaq_segment_id(energy); in rd_pick_sb_modes()
1045 mbmi->segment_id = vp9_get_segment_id(cm, map, bsize, mi_row, mi_col); in rd_pick_sb_modes()
1109 const int seg_ref_active = vp9_segfeature_active(&cm->seg, mbmi->segment_id, in update_stats()
2557 mbmi->segment_id = 0; in set_mode_info()
3416 unsigned int segment_id = mbmi->segment_id; in encode_superblock() local
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Dloopfilter.c217 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_normal()
274 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_simple()
349 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame()
405 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame()
491 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame_yonly()
607 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_partial_frame()
Dblockd.h165 …uint8_t segment_id; /* Which set of segmentation parameters should be used for th… member
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dethreading.c172 … xd->mode_info_context->mbmi.segment_id = cpi->segmentation_map[map_index + mb_col]; in thread_encoding_proc()
174 xd->mode_info_context->mbmi.segment_id = 0; in thread_encoding_proc()
180 xd->mode_info_context->mbmi.segment_id = 0; in thread_encoding_proc()
222 cpi->segmentation_map[map_index + mb_col] = mbmi->segment_id; in thread_encoding_proc()
232 if (mbmi->segment_id) in thread_encoding_proc()
269 segment_counts[xd->mode_info_context->mbmi.segment_id]++; in thread_encoding_proc()
Dencodeframe.c489 xd->mode_info_context->mbmi.segment_id = cpi->segmentation_map[map_index+mb_col]; in encode_mb_row()
491 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row()
497 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row()
537 cpi->segmentation_map[map_index+mb_col] = xd->mode_info_context->mbmi.segment_id; in encode_mb_row()
546 if (xd->mode_info_context->mbmi.segment_id) in encode_mb_row()
583 segment_counts[xd->mode_info_context->mbmi.segment_id] ++; in encode_mb_row()
1222 x->encode_breakout = cpi->segment_encode_breakout[xd->mode_info_context->mbmi.segment_id]; in vp8cx_encode_inter_macroblock()
1291 if ((xd->mode_info_context->mbmi.segment_id == 1) && in vp8cx_encode_inter_macroblock()
1294 xd->mode_info_context->mbmi.segment_id = 0; in vp8cx_encode_inter_macroblock()
Dquantize.c622 QIndex = xd->segment_feature_data[MB_LVL_ALT_Q][xd->mode_info_context->mbmi.segment_id]; in vp8cx_mb_init_quantizer()
626 …ommon.base_qindex + xd->segment_feature_data[MB_LVL_ALT_Q][xd->mode_info_context->mbmi.segment_id]; in vp8cx_mb_init_quantizer()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/
Ddecodemv.c583 mi->segment_id = in read_mb_features()
586 mi->segment_id = in read_mb_features()
600 mi->mbmi.segment_id = 0; in decode_mb_mode_mvs()
Donyxd_if.c397 pbi->common.mi[i].mbmi.segment_id = in vp8dx_receive_compressed_data()
398 pbi->common.prev_mi[i].mbmi.segment_id; in vp8dx_receive_compressed_data()
Derror_concealment.c395 mi->mbmi.segment_id = 0; in estimate_missing_mvs()
587 mb->mode_info_context->mbmi.segment_id = 0; in vp8_interpolate_motion()

12