Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license |
michael@0 | 5 | * that can be found in the LICENSE file in the root of the source |
michael@0 | 6 | * tree. An additional intellectual property rights grant can be found |
michael@0 | 7 | * in the file PATENTS. All contributing project authors may |
michael@0 | 8 | * be found in the AUTHORS file in the root of the source tree. |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | |
michael@0 | 12 | #ifndef VP9_ENCODER_VP9_SEGMENTATION_H_ |
michael@0 | 13 | #define VP9_ENCODER_VP9_SEGMENTATION_H_ |
michael@0 | 14 | |
michael@0 | 15 | #include "vp9/common/vp9_blockd.h" |
michael@0 | 16 | #include "vp9/encoder/vp9_onyx_int.h" |
michael@0 | 17 | |
michael@0 | 18 | void vp9_enable_segmentation(VP9_PTR ptr); |
michael@0 | 19 | void vp9_disable_segmentation(VP9_PTR ptr); |
michael@0 | 20 | |
michael@0 | 21 | // Valid values for a segment are 0 to 3 |
michael@0 | 22 | // Segmentation map is arrange as [Rows][Columns] |
michael@0 | 23 | void vp9_set_segmentation_map(VP9_PTR ptr, unsigned char *segmentation_map); |
michael@0 | 24 | |
michael@0 | 25 | // The values given for each segment can be either deltas (from the default |
michael@0 | 26 | // value chosen for the frame) or absolute values. |
michael@0 | 27 | // |
michael@0 | 28 | // Valid range for abs values is (0-127 for MB_LVL_ALT_Q), (0-63 for |
michael@0 | 29 | // SEGMENT_ALT_LF) |
michael@0 | 30 | // Valid range for delta values are (+/-127 for MB_LVL_ALT_Q), (+/-63 for |
michael@0 | 31 | // SEGMENT_ALT_LF) |
michael@0 | 32 | // |
michael@0 | 33 | // abs_delta = SEGMENT_DELTADATA (deltas) abs_delta = SEGMENT_ABSDATA (use |
michael@0 | 34 | // the absolute values given). |
michael@0 | 35 | void vp9_set_segment_data(VP9_PTR ptr, signed char *feature_data, |
michael@0 | 36 | unsigned char abs_delta); |
michael@0 | 37 | |
michael@0 | 38 | void vp9_choose_segmap_coding_method(VP9_COMP *cpi); |
michael@0 | 39 | |
michael@0 | 40 | #endif // VP9_ENCODER_VP9_SEGMENTATION_H_ |