Home
last modified time | relevance | path

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

12

/external/libvpx/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.c94 int vp9_get_qindex(const struct segmentation *seg, int segment_id, in vp9_get_qindex() argument
96 if (vp9_segfeature_active(seg, segment_id, SEG_LVL_ALT_Q)) { in vp9_get_qindex()
97 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.h28 int vp9_get_qindex(const struct segmentation *seg, int segment_id,
Dvp9_blockd.h128 int8_t segment_id; member
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decodemv.c87 int mi_row, int mi_col, int segment_id) { in set_segment_id() argument
95 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); in set_segment_id()
99 cm->last_frame_seg_map[mi_offset + y * cm->mi_cols + x] = segment_id; in set_segment_id()
107 int segment_id; in read_intra_segment_id() local
115 segment_id = read_segment_id(r, seg); in read_intra_segment_id()
116 set_segment_id(cm, bsize, mi_row, mi_col, segment_id); in read_intra_segment_id()
117 return segment_id; in read_intra_segment_id()
125 int predicted_segment_id, segment_id; in read_inter_segment_id() local
138 segment_id = mbmi->seg_id_predicted ? predicted_segment_id in read_inter_segment_id()
141 segment_id = read_segment_id(r, seg); in read_inter_segment_id()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_segmentation.c45 void vp9_disable_segfeature(struct segmentation *seg, int segment_id, in vp9_disable_segfeature() argument
47 seg->feature_mask[segment_id] &= ~(1 << feature_id); in vp9_disable_segfeature()
50 void vp9_clear_segdata(struct segmentation *seg, int segment_id, in vp9_clear_segdata() argument
52 seg->feature_data[segment_id][feature_id] = 0; in vp9_clear_segdata()
119 int segment_id; in count_segs() local
125 segment_id = xd->mi[0]->mbmi.segment_id; in count_segs()
130 no_pred_segcounts[segment_id]++; in count_segs()
138 const int pred_flag = pred_segment_id == segment_id; in count_segs()
148 t_unpred_seg_counts[segment_id]++; in count_segs()
Dvp9_segmentation.h26 int segment_id,
29 int segment_id,
Dvp9_tokenize.c194 static INLINE int get_tx_eob(const struct segmentation *seg, int segment_id, in get_tx_eob() argument
197 return vp9_segfeature_active(seg, segment_id, SEG_LVL_SKIP) ? 0 : eob_max; in get_tx_eob()
216 const int segment_id = mbmi->segment_id; in tokenize_b() local
227 const int seg_eob = get_tx_eob(&cpi->common.seg, segment_id, tx_size); in tokenize_b()
308 const int skip_inc = !vp9_segfeature_active(&cm->seg, mbmi->segment_id, in vp9_tokenize_sb()
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_bitstream.c97 int segment_id, const MODE_INFO *mi, vp9_writer *w) { in write_skip() argument
98 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) { in write_skip()
184 int segment_id) { in write_segment_id() argument
186 vp9_write_tree(w, vp9_segment_tree, seg->tree_probs, segment_id, 3, 0); in write_segment_id()
194 const int segment_id = mbmi->segment_id; in write_ref_frames() local
198 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) { in write_ref_frames()
201 vp9_get_segdata(&cm->seg, segment_id, SEG_LVL_REF_FRAME)); in write_ref_frames()
234 const int segment_id = mbmi->segment_id; in pack_inter_mode_mvs() local
247 write_segment_id(w, seg, segment_id); in pack_inter_mode_mvs()
249 write_segment_id(w, seg, segment_id); in pack_inter_mode_mvs()
[all …]
Dvp9_rd.c147 int i, bsize, segment_id; in set_block_thresholds() local
149 for (segment_id = 0; segment_id < MAX_SEGMENTS; ++segment_id) { in set_block_thresholds()
151 clamp(vp9_get_qindex(&cm->seg, segment_id, cm->base_qindex) + in set_block_thresholds()
164 rd->threshes[segment_id][bsize][i] = in set_block_thresholds()
170 rd->threshes[segment_id][bsize][i] = in set_block_thresholds()
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.c343 const int segment_id = xd->mi[0]->mbmi.segment_id; in vp9_init_plane_quantizers() local
344 const int qindex = vp9_get_qindex(&cm->seg, segment_id, cm->base_qindex); in vp9_init_plane_quantizers()
379 x->skip_block = vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP); in vp9_init_plane_quantizers()
Dvp9_rdopt.c1634 int segment_id, in estimate_ref_frame_costs() argument
1638 int seg_ref_active = vp9_segfeature_active(&cm->seg, segment_id, in estimate_ref_frame_costs()
2500 unsigned char segment_id = mbmi->segment_id; in vp9_rd_pick_inter_mode_sb() local
2533 const int *const rd_threshes = rd_opt->threshes[segment_id][bsize]; in vp9_rd_pick_inter_mode_sb()
2542 estimate_ref_frame_costs(cm, xd, segment_id, ref_costs_single, ref_costs_comp, in vp9_rd_pick_inter_mode_sb()
2592 if (vp9_segfeature_active(seg, segment_id, SEG_LVL_REF_FRAME) && in vp9_rd_pick_inter_mode_sb()
2593 vp9_get_segdata(seg, segment_id, SEG_LVL_REF_FRAME) != (int)ref_frame) { in vp9_rd_pick_inter_mode_sb()
2601 if (!vp9_segfeature_active(seg, segment_id, SEG_LVL_REF_FRAME)) { in vp9_rd_pick_inter_mode_sb()
3108 unsigned char segment_id = mbmi->segment_id; in vp9_rd_pick_inter_mode_sb_seg_skip() local
3123 estimate_ref_frame_costs(cm, xd, segment_id, ref_costs_single, ref_costs_comp, in vp9_rd_pick_inter_mode_sb_seg_skip()
[all …]
Dvp9_pickmode.c390 unsigned char segment_id = mbmi->segment_id; in vp9_pick_inter_mode() local
391 const int *const rd_threshes = cpi->rd.threshes[segment_id][bsize]; in vp9_pick_inter_mode()
442 mbmi->segment_id = segment_id; in vp9_pick_inter_mode()
Dvp9_encodeframe.c180 mbmi->segment_id = vp9_get_segment_id(cm, map, bsize, mi_row, mi_col); in set_offsets()
184 x->encode_breakout = cpi->segment_encode_breakout[mbmi->segment_id]; in set_offsets()
186 mbmi->segment_id = 0; in set_offsets()
537 mi_addr->mbmi.segment_id = in update_state()
596 if (!vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) { in update_state()
747 mbmi->segment_id = vp9_vaq_segment_id(energy); in rd_pick_sb_modes()
751 mbmi->segment_id = vp9_get_segment_id(cm, map, bsize, mi_row, mi_col); in rd_pick_sb_modes()
780 if (vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) in rd_pick_sb_modes()
806 const int seg_ref_active = vp9_segfeature_active(&cm->seg, mbmi->segment_id, in update_stats()
1322 x->skip_txfm[0] = mbmi->segment_id ? 0 : ctx->skip_txfm[0]; in update_state_rt()
[all …]
/external/libvpx/libvpx/vp8/common/
Dloopfilter.c216 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_normal()
272 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_simple()
347 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame()
403 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame()
489 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_frame_yonly()
605 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
/external/libvpx/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()
237 cpi->segmentation_map[map_index + mb_col] = mbmi->segment_id; in thread_encoding_proc()
247 if (mbmi->segment_id) in thread_encoding_proc()
284 segment_counts[xd->mode_info_context->mbmi.segment_id]++; in thread_encoding_proc()
Dencodeframe.c488 xd->mode_info_context->mbmi.segment_id = cpi->segmentation_map[map_index+mb_col]; in encode_mb_row()
490 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row()
496 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row()
549 cpi->segmentation_map[map_index+mb_col] = xd->mode_info_context->mbmi.segment_id; in encode_mb_row()
558 if (xd->mode_info_context->mbmi.segment_id) in encode_mb_row()
595 segment_counts[xd->mode_info_context->mbmi.segment_id] ++; in encode_mb_row()
1234 x->encode_breakout = cpi->segment_encode_breakout[xd->mode_info_context->mbmi.segment_id]; in vp8cx_encode_inter_macroblock()
1303 if ((xd->mode_info_context->mbmi.segment_id == 1) && in vp8cx_encode_inter_macroblock()
1306 xd->mode_info_context->mbmi.segment_id = 0; in vp8cx_encode_inter_macroblock()
/external/libvpx/libvpx/vp8/decoder/
Ddecodemv.c583 mi->segment_id = in read_mb_features()
586 mi->segment_id = in read_mb_features()
601 mi->mbmi.segment_id = 0; in decode_mb_mode_mvs()
Donyxd_if.c377 pbi->common.mi[i].mbmi.segment_id = in vp8dx_receive_compressed_data()
378 pbi->common.prev_mi[i].mbmi.segment_id; in vp8dx_receive_compressed_data()
Derror_concealment.c393 mi->mbmi.segment_id = 0; in estimate_missing_mvs()
585 mb->mode_info_context->mbmi.segment_id = 0; in vp8_interpolate_motion()

12