Home
last modified time | relevance | path

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

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_segmentation.c22 void vp9_enable_segmentation(struct segmentation *seg) { in vp9_enable_segmentation() argument
23 seg->enabled = 1; in vp9_enable_segmentation()
24 seg->update_map = 1; in vp9_enable_segmentation()
25 seg->update_data = 1; in vp9_enable_segmentation()
28 void vp9_disable_segmentation(struct segmentation *seg) { in vp9_disable_segmentation() argument
29 seg->enabled = 0; in vp9_disable_segmentation()
33 struct segmentation *const seg = &cpi->common.seg; in vp9_set_segmentation_map() local
40 seg->update_map = 1; in vp9_set_segmentation_map()
41 seg->update_data = 1; in vp9_set_segmentation_map()
44 void vp9_set_segment_data(struct segmentation *seg, in vp9_set_segment_data() argument
[all …]
Dvp9_segmentation.h22 void vp9_enable_segmentation(struct segmentation *seg);
23 void vp9_disable_segmentation(struct segmentation *seg);
25 void vp9_disable_segfeature(struct segmentation *seg,
28 void vp9_clear_segdata(struct segmentation *seg,
45 void vp9_set_segment_data(struct segmentation *seg, signed char *feature_data,
50 void vp9_reset_segment_features(struct segmentation *seg);
Dvp9_aq_complexity.c23 struct segmentation *const seg = &cm->seg; in vp9_setup_in_frame_q_adj() local
39 vp9_enable_segmentation(seg); in vp9_setup_in_frame_q_adj()
40 vp9_clearall_segfeatures(seg); in vp9_setup_in_frame_q_adj()
43 seg->abs_delta = SEGMENT_DELTADATA; in vp9_setup_in_frame_q_adj()
46 vp9_disable_segfeature(seg, 0, SEG_LVL_ALT_Q); in vp9_setup_in_frame_q_adj()
54 vp9_enable_segfeature(seg, segment, SEG_LVL_ALT_Q); in vp9_setup_in_frame_q_adj()
55 vp9_set_segdata(seg, segment, SEG_LVL_ALT_Q, qindex_delta); in vp9_setup_in_frame_q_adj()
Dvp9_aq_variance.c77 struct segmentation *seg = &cm->seg; in vp9_vaq_frame_setup() local
86 vp9_enable_segmentation(seg); in vp9_vaq_frame_setup()
87 vp9_clearall_segfeatures(seg); in vp9_vaq_frame_setup()
89 seg->abs_delta = SEGMENT_DELTADATA; in vp9_vaq_frame_setup()
103 vp9_set_segdata(seg, SEGMENT_ID(i), SEG_LVL_ALT_Q, qindex_delta); in vp9_vaq_frame_setup()
104 vp9_enable_segfeature(seg, SEGMENT_ID(i), SEG_LVL_ALT_Q); in vp9_vaq_frame_setup()
Dvp9_aq_cyclicrefresh.c183 struct segmentation *const seg = &cm->seg; in vp9_cyclic_refresh_setup() local
192 vp9_disable_segmentation(&cm->seg); in vp9_cyclic_refresh_setup()
226 vp9_enable_segmentation(&cm->seg); in vp9_cyclic_refresh_setup()
227 vp9_clearall_segfeatures(seg); in vp9_cyclic_refresh_setup()
229 seg->abs_delta = SEGMENT_DELTADATA; in vp9_cyclic_refresh_setup()
239 vp9_disable_segfeature(seg, 0, SEG_LVL_ALT_Q); in vp9_cyclic_refresh_setup()
241 vp9_enable_segfeature(seg, 1, SEG_LVL_ALT_Q); in vp9_cyclic_refresh_setup()
256 vp9_set_segdata(seg, 1, SEG_LVL_ALT_Q, qindex_delta); in vp9_cyclic_refresh_setup()
Dvp9_bitstream.c100 if (vp9_segfeature_active(&cpi->common.seg, segment_id, SEG_LVL_SKIP)) { in write_skip()
185 static void write_segment_id(vp9_writer *w, const struct segmentation *seg, in write_segment_id() argument
187 if (seg->enabled && seg->update_map) in write_segment_id()
188 vp9_write_tree(w, vp9_segment_tree, seg->tree_probs, segment_id, 3, 0); in write_segment_id()
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()
234 const struct segmentation *const seg = &cm->seg; in pack_inter_mode_mvs() local
244 if (seg->update_map) { in pack_inter_mode_mvs()
245 if (seg->temporal_update) { in pack_inter_mode_mvs()
247 vp9_prob pred_prob = vp9_get_pred_prob_seg_id(seg, xd); in pack_inter_mode_mvs()
[all …]
Dvp9_onyx_if.c266 struct segmentation *const seg = &cm->seg; in configure_static_seg_features() local
275 seg->update_map = 0; in configure_static_seg_features()
276 seg->update_data = 0; in configure_static_seg_features()
280 vp9_disable_segmentation(seg); in configure_static_seg_features()
283 vp9_clearall_segfeatures(seg); in configure_static_seg_features()
288 seg->update_map = 0; in configure_static_seg_features()
289 seg->update_data = 0; in configure_static_seg_features()
293 vp9_disable_segmentation(seg); in configure_static_seg_features()
294 vp9_clearall_segfeatures(seg); in configure_static_seg_features()
302 if (seg->enabled) { in configure_static_seg_features()
[all …]
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()
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_encodeframe.c218 const struct segmentation *const seg = &cm->seg; in set_offsets() local
253 if (seg->enabled) { in set_offsets()
255 const uint8_t *const map = seg->update_map ? cpi->segmentation_map in set_offsets()
261 if (seg->enabled && cpi->seg0_cnt > 0 && in set_offsets()
262 !vp9_segfeature_active(seg, 0, SEG_LVL_REF_FRAME) && in set_offsets()
263 vp9_segfeature_active(seg, 1, SEG_LVL_REF_FRAME)) { in set_offsets()
848 const struct segmentation *const seg = &cm->seg; in update_state() local
860 if (seg->enabled && output_enabled) { in update_state()
863 const uint8_t *const map = seg->update_map ? cpi->segmentation_map in update_state()
924 if (!vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) { in update_state()
[all …]
Dvp9_quantize.c221 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_mbgraph.c374 vp9_enable_segmentation(&cm->seg); in separate_arf_mbs()
377 vp9_disable_segmentation(&cm->seg); in separate_arf_mbs()
Dvp9_rdopt.c250 const int qindex = clamp(vp9_get_qindex(&cm->seg, segment_id, in set_block_thresholds()
1458 if (!vp9_segfeature_active(&cpi->common.seg, segment_id, SEG_LVL_SKIP)) { in cost_mv_ref()
2210 int seg_ref_active = vp9_segfeature_active(&cm->seg, segment_id, in estimate_ref_frame_costs()
3132 const struct segmentation *const seg = &cm->seg; in vp9_rd_pick_inter_mode_sb() local
3229 if (vp9_segfeature_active(seg, segment_id, SEG_LVL_REF_FRAME) && in vp9_rd_pick_inter_mode_sb()
3230 vp9_get_segdata(seg, segment_id, SEG_LVL_REF_FRAME) != (int)ref_frame) { in vp9_rd_pick_inter_mode_sb()
3237 if (vp9_segfeature_active(seg, segment_id, SEG_LVL_SKIP)) { in vp9_rd_pick_inter_mode_sb()
3245 if (!vp9_segfeature_active(seg, segment_id, SEG_LVL_REF_FRAME)) { in vp9_rd_pick_inter_mode_sb()
3381 !vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) in vp9_rd_pick_inter_mode_sb()
3472 const int mb_skip_allowed = !vp9_segfeature_active(seg, segment_id, in vp9_rd_pick_inter_mode_sb()
[all …]
Dvp9_ratectrl.c121 vp9_copy(cc->segment_pred_probs, cm->seg.pred_probs); in vp9_save_coding_context()
142 vp9_copy(cm->seg.pred_probs, cc->segment_pred_probs); in vp9_restore_coding_context()
/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
30 return seg->enabled && in vp9_segfeature_active()
31 (seg->feature_mask[segment_id] & (1 << feature_id)); in vp9_segfeature_active()
34 void vp9_clearall_segfeatures(struct segmentation *seg) { in vp9_clearall_segfeatures() argument
35 vp9_zero(seg->feature_data); in vp9_clearall_segfeatures()
36 vp9_zero(seg->feature_mask); in vp9_clearall_segfeatures()
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()
[all …]
Dvp9_seg_common.h52 int vp9_segfeature_active(const struct segmentation *seg,
56 void vp9_clearall_segfeatures(struct segmentation *seg);
58 void vp9_enable_segfeature(struct segmentation *seg,
66 void vp9_set_segdata(struct segmentation *seg,
71 int vp9_get_segdata(const struct segmentation *seg,
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()
137 const int seg_qindex = seg->abs_delta == SEGMENT_ABSDATA ? in vp9_get_qindex()
Dvp9_quant_common.h30 int vp9_get_qindex(const struct segmentation *seg, int segment_id,
Dvp9_pred_common.h42 static INLINE vp9_prob vp9_get_pred_prob_seg_id(const struct segmentation *seg, in vp9_get_pred_prob_seg_id() argument
44 return seg->pred_probs[vp9_get_pred_context_seg_id(xd)]; in vp9_get_pred_prob_seg_id()
Dvp9_entropymode.c440 vp9_clearall_segfeatures(&cm->seg); in vp9_setup_past_independence()
441 cm->seg.abs_delta = SEGMENT_DELTADATA; in vp9_setup_past_independence()
Dvp9_loopfilter.c259 const struct segmentation *const seg = &cm->seg; in vp9_loop_filter_frame_init() local
269 if (vp9_segfeature_active(seg, seg_id, SEG_LVL_ALT_LF)) { in vp9_loop_filter_frame_init()
270 const int data = vp9_get_segdata(seg, seg_id, SEG_LVL_ALT_LF); in vp9_loop_filter_frame_init()
271 lvl_seg = clamp(seg->abs_delta == SEGMENT_ABSDATA ? in vp9_loop_filter_frame_init()
Dvp9_onyxc_int.h168 struct segmentation seg; member
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Dloopfilter.c117 int seg, /* segment number */ in vp8_loop_filter_frame_init() local
130 for(seg = 0; seg < MAX_MB_SEGMENTS; seg++) in vp8_loop_filter_frame_init()
141 lvl_seg = mbd->segment_feature_data[MB_LVL_ALT_LF][seg]; in vp8_loop_filter_frame_init()
145 lvl_seg += mbd->segment_feature_data[MB_LVL_ALT_LF][seg]; in vp8_loop_filter_frame_init()
155 vpx_memset(lfi->lvl[seg][0], lvl_seg, 4 * 4 ); in vp8_loop_filter_frame_init()
172 lfi->lvl[seg][ref][mode] = lvl_mode; in vp8_loop_filter_frame_init()
177 lfi->lvl[seg][ref][mode] = lvl_mode; in vp8_loop_filter_frame_init()
192 lfi->lvl[seg][ref][mode] = lvl_mode; in vp8_loop_filter_frame_init()
217 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_normal() local
220 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_row_normal()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_decodemv.c58 static int read_segment_id(vp9_reader *r, const struct segmentation *seg) { in read_segment_id() argument
59 return vp9_read_tree(r, vp9_segment_tree, seg->tree_probs); in read_segment_id()
106 struct segmentation *const seg = &cm->seg; in read_intra_segment_id() local
110 if (!seg->enabled) in read_intra_segment_id()
113 if (!seg->update_map) in read_intra_segment_id()
116 segment_id = read_segment_id(r, seg); in read_intra_segment_id()
123 struct segmentation *const seg = &cm->seg; in read_inter_segment_id() local
128 if (!seg->enabled) in read_inter_segment_id()
133 if (!seg->update_map) in read_inter_segment_id()
136 if (seg->temporal_update) { in read_inter_segment_id()
[all …]
Dvp9_decodeframe.c350 if (cm->seg.enabled) in decode_block()
351 setup_plane_dequants(cm, xd, vp9_get_qindex(&cm->seg, mbmi->segment_id, in decode_block()
490 static void setup_segmentation(struct segmentation *seg, in setup_segmentation() argument
494 seg->update_map = 0; in setup_segmentation()
495 seg->update_data = 0; in setup_segmentation()
497 seg->enabled = vp9_rb_read_bit(rb); in setup_segmentation()
498 if (!seg->enabled) in setup_segmentation()
502 seg->update_map = vp9_rb_read_bit(rb); in setup_segmentation()
503 if (seg->update_map) { in setup_segmentation()
505 seg->tree_probs[i] = vp9_rb_read_bit(rb) ? vp9_rb_read_literal(rb, 8) in setup_segmentation()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/
Dthreading.c492 const int seg = xd->mode_info_context->mbmi.segment_id; in mt_decode_mb_rows() local
495 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in mt_decode_mb_rows()