Searched defs:segment_id (Results 1 - 17 of 17) sorted by relevance

/external/libvpx/libvpx/vp9/common/
H A Dvp9_seg_common.c33 void vp9_enable_segfeature(struct segmentation *seg, int segment_id, argument
35 seg->feature_mask[segment_id] |= 1 << feature_id;
46 void vp9_set_segdata(struct segmentation *seg, int segment_id, argument
54 seg->feature_data[segment_id][feature_id] = seg_data;
H A Dvp9_quant_common.c267 int vp9_get_qindex(const struct segmentation *seg, int segment_id, argument
269 if (segfeature_active(seg, segment_id, SEG_LVL_ALT_Q)) {
270 const int data = get_segdata(seg, segment_id, SEG_LVL_ALT_Q);
H A Dvp9_seg_common.h53 int segment_id,
56 (seg->feature_mask[segment_id] & (1 << feature_id));
62 int segment_id,
70 int segment_id,
74 static INLINE int get_segdata(const struct segmentation *seg, int segment_id, argument
76 return seg->feature_data[segment_id][feature_id];
52 segfeature_active(const struct segmentation *seg, int segment_id, SEG_LVL_FEATURES feature_id) argument
H A Dvp9_pred_common.h30 int x, y, segment_id = MAX_SEGMENTS; local
34 segment_id =
35 VPXMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]);
37 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS);
38 return segment_id;
H A Dvp9_blockd.h73 int8_t segment_id; member in struct:__anon11476
/external/libvpx/libvpx/vp9/encoder/
H A Dvp9_aq_cyclicrefresh.h91 // check if we should reset the segment_id, and update the cyclic_refresh map
126 static INLINE int cyclic_refresh_segment_id_boosted(int segment_id) { argument
127 return segment_id == CR_SEGMENT_ID_BOOST1 ||
128 segment_id == CR_SEGMENT_ID_BOOST2;
131 static INLINE int cyclic_refresh_segment_id(int segment_id) { argument
132 if (segment_id == CR_SEGMENT_ID_BOOST1)
134 else if (segment_id == CR_SEGMENT_ID_BOOST2)
H A Dvp9_aq_variance.c32 static const int segment_id[ENERGY_SPAN] = {0, 1, 1, 2, 3, 4}; variable
34 #define SEGMENT_ID(i) segment_id[(i) - ENERGY_MIN]
H A Dvp9_quantize.c311 const int segment_id = xd->mi[0]->mbmi.segment_id; local
312 const int qindex = vp9_get_qindex(&cm->seg, segment_id, cm->base_qindex);
342 x->skip_block = segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP);
H A Dvp9_segmentation.c41 void vp9_disable_segfeature(struct segmentation *seg, int segment_id, argument
43 seg->feature_mask[segment_id] &= ~(1 << feature_id);
46 void vp9_clear_segdata(struct segmentation *seg, int segment_id, argument
48 seg->feature_data[segment_id][feature_id] = 0;
115 int segment_id; local
121 segment_id = xd->mi[0]->mbmi.segment_id;
126 no_pred_segcounts[segment_id]++;
134 const int pred_flag = pred_segment_id == segment_id;
144 t_unpred_seg_counts[segment_id]
[all...]
H A Dvp9_tokenize.c457 static INLINE int get_tx_eob(const struct segmentation *seg, int segment_id, argument
460 return segfeature_active(seg, segment_id, SEG_LVL_SKIP) ? 0 : eob_max;
481 const int segment_id = mbmi->segment_id; local
492 const int seg_eob = get_tx_eob(&cpi->common.seg, segment_id, tx_size);
593 const int skip_inc = !segfeature_active(&cm->seg, mbmi->segment_id,
H A Dvp9_rd.c237 int i, bsize, segment_id; local
239 for (segment_id = 0; segment_id < MAX_SEGMENTS; ++segment_id) {
241 clamp(vp9_get_qindex(&cm->seg, segment_id, cm->base_qindex) +
253 rd->threshes[segment_id][bsize][i] =
259 rd->threshes[segment_id][bsize][i] =
H A Dvp9_bitstream.c96 int segment_id, const MODE_INFO *mi, vpx_writer *w) {
97 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) {
195 int segment_id) {
197 vp9_write_tree(w, vp9_segment_tree, seg->tree_probs, segment_id, 3, 0);
205 const int segment_id = mbmi->segment_id; local
209 if (segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) {
212 get_segdata(&cm->seg, segment_id, SEG_LVL_REF_FRAME));
246 const int segment_id = mbmi->segment_id; local
95 write_skip(const VP9_COMMON *cm, const MACROBLOCKD *xd, int segment_id, const MODE_INFO *mi, vpx_writer *w) argument
194 write_segment_id(vpx_writer *w, const struct segmentation *seg, int segment_id) argument
[all...]
H A Dvp9_pickmode.c303 cyclic_refresh_segment_id_boosted(xd->mi[0]->mbmi.segment_id))
485 cyclic_refresh_segment_id_boosted(xd->mi[0]->mbmi.segment_id))
1104 const int *const rd_threshes = cpi->rd.threshes[mbmi->segment_id][bsize];
1412 !cyclic_refresh_segment_id_boosted(xd->mi[0]->mbmi.segment_id) &&
1685 unsigned char segment_id = mbmi->segment_id; local
1744 if (segfeature_active(seg, segment_id, SEG_LVL_REF_FRAME) &&
1745 get_segdata(seg, segment_id, SEG_LVL_REF_FRAME) != (int)ref_frame)
H A Dvp9_encodeframe.c227 mbmi->segment_id = get_segment_id(cm, map, bsize, mi_row, mi_col);
231 x->encode_breakout = cpi->segment_encode_breakout[mbmi->segment_id];
233 mbmi->segment_id = 0;
677 int segment_id = CR_SEGMENT_ID_BASE; local
681 segment_id = get_segment_id(cm, map, BLOCK_64X64, mi_row, mi_col);
683 if (cyclic_refresh_segment_id_boosted(segment_id)) {
684 int q = vp9_get_qindex(&cm->seg, segment_id, cm->base_qindex);
773 if (segment_id == CR_SEGMENT_ID_BASE &&
840 !cyclic_refresh_segment_id_boosted(segment_id)) {
1005 mi_addr->mbmi.segment_id
1151 set_segment_rdmult(VP9_COMP *const cpi, MACROBLOCK *const x, int8_t segment_id) argument
2817 int segment_id = get_segment_id(cm, map, BLOCK_64X64, mi_row, mi_col); local
3591 int segment_id = get_segment_id(cm, map, BLOCK_64X64, mi_row, mi_col); local
[all...]
H A Dvp9_rdopt.c2104 int segment_id,
2108 int seg_ref_active = segfeature_active(&cm->seg, segment_id,
2960 unsigned char segment_id = mbmi->segment_id; local
2992 const int *const rd_threshes = rd_opt->threshes[segment_id][bsize];
3007 estimate_ref_frame_costs(cm, xd, segment_id, ref_costs_single, ref_costs_comp,
3056 if (segfeature_active(seg, segment_id, SEG_LVL_REF_FRAME) &&
3057 get_segdata(seg, segment_id, SEG_LVL_REF_FRAME) != (int)ref_frame) {
3066 if (!segfeature_active(seg, segment_id, SEG_LVL_REF_FRAME)) {
3244 if (segfeature_active(seg, segment_id, SEG_LVL_REF_FRAM
2102 estimate_ref_frame_costs(const VP9_COMMON *cm, const MACROBLOCKD *xd, int segment_id, unsigned int *ref_costs_single, unsigned int *ref_costs_comp, vpx_prob *comp_mode_p) argument
3633 unsigned char segment_id = mbmi->segment_id; local
3738 unsigned char segment_id = mbmi->segment_id; local
[all...]
/external/libvpx/libvpx/vp8/common/
H A Dblockd.h165 uint8_t segment_id; /* Which set of segmentation parameters should be used for this MB */ member in struct:__anon11420
/external/libvpx/libvpx/vp9/decoder/
H A Dvp9_decodemv.c97 int x, y, segment_id = INT_MAX; local
101 segment_id =
102 VPXMIN(segment_id, segment_ids[mi_offset + y * cm->mi_cols + x]);
104 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS);
105 return segment_id;
109 int x_mis, int y_mis, int segment_id) {
112 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS);
116 cm->current_frame_seg_map[mi_offset + y * cm->mi_cols + x] = segment_id;
108 set_segment_id(VP9_COMMON *cm, int mi_offset, int x_mis, int y_mis, int segment_id) argument
135 int segment_id; local
155 int predicted_segment_id, segment_id; local
189 read_skip(VP9_COMMON *cm, const MACROBLOCKD *xd, int segment_id, vpx_reader *r) argument
324 read_ref_frames(VP9_COMMON *const cm, MACROBLOCKD *const xd, vpx_reader *r, int segment_id, MV_REFERENCE_FRAME ref_frame[2]) argument
465 read_is_inter_block(VP9_COMMON *const cm, MACROBLOCKD *const xd, int segment_id, vpx_reader *r) argument
[all...]

Completed in 205 milliseconds