• Home
  • Raw
  • Download

Lines Matching refs:seg

21 void vp9_enable_segmentation(struct segmentation *seg) {  in vp9_enable_segmentation()  argument
22 seg->enabled = 1; in vp9_enable_segmentation()
23 seg->update_map = 1; in vp9_enable_segmentation()
24 seg->update_data = 1; in vp9_enable_segmentation()
27 void vp9_disable_segmentation(struct segmentation *seg) { in vp9_disable_segmentation() argument
28 seg->enabled = 0; in vp9_disable_segmentation()
29 seg->update_map = 0; in vp9_disable_segmentation()
30 seg->update_data = 0; in vp9_disable_segmentation()
33 void vp9_set_segment_data(struct segmentation *seg, signed char *feature_data, in vp9_set_segment_data() argument
35 seg->abs_delta = abs_delta; in vp9_set_segment_data()
37 memcpy(seg->feature_data, feature_data, sizeof(seg->feature_data)); in vp9_set_segment_data()
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()
49 void vp9_psnr_aq_mode_setup(struct segmentation *seg) { in vp9_psnr_aq_mode_setup() argument
52 vp9_enable_segmentation(seg); in vp9_psnr_aq_mode_setup()
53 vp9_clearall_segfeatures(seg); in vp9_psnr_aq_mode_setup()
54 seg->abs_delta = SEGMENT_DELTADATA; in vp9_psnr_aq_mode_setup()
57 vp9_set_segdata(seg, i, SEG_LVL_ALT_Q, 2 * (i - (MAX_SEGMENTS / 2))); in vp9_psnr_aq_mode_setup()
58 vp9_enable_segfeature(seg, i, SEG_LVL_ALT_Q); in vp9_psnr_aq_mode_setup()
202 struct segmentation *seg = &cm->seg; in vp9_choose_segmap_coding_method() local
219 memset(seg->tree_probs, 255, sizeof(seg->tree_probs)); in vp9_choose_segmap_coding_method()
220 memset(seg->pred_probs, 255, sizeof(seg->pred_probs)); in vp9_choose_segmap_coding_method()
268 seg->temporal_update = 1; in vp9_choose_segmap_coding_method()
269 memcpy(seg->tree_probs, t_pred_tree, sizeof(t_pred_tree)); in vp9_choose_segmap_coding_method()
270 memcpy(seg->pred_probs, t_nopred_prob, sizeof(t_nopred_prob)); in vp9_choose_segmap_coding_method()
272 seg->temporal_update = 0; in vp9_choose_segmap_coding_method()
273 memcpy(seg->tree_probs, no_pred_tree, sizeof(no_pred_tree)); in vp9_choose_segmap_coding_method()
277 void vp9_reset_segment_features(struct segmentation *seg) { in vp9_reset_segment_features() argument
279 seg->enabled = 0; in vp9_reset_segment_features()
280 seg->update_map = 0; in vp9_reset_segment_features()
281 seg->update_data = 0; in vp9_reset_segment_features()
282 memset(seg->tree_probs, 255, sizeof(seg->tree_probs)); in vp9_reset_segment_features()
283 vp9_clearall_segfeatures(seg); in vp9_reset_segment_features()