1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp9/encoder/vp9_segmentation.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +/* 1.5 + * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 + 1.15 +#ifndef VP9_ENCODER_VP9_SEGMENTATION_H_ 1.16 +#define VP9_ENCODER_VP9_SEGMENTATION_H_ 1.17 + 1.18 +#include "vp9/common/vp9_blockd.h" 1.19 +#include "vp9/encoder/vp9_onyx_int.h" 1.20 + 1.21 +void vp9_enable_segmentation(VP9_PTR ptr); 1.22 +void vp9_disable_segmentation(VP9_PTR ptr); 1.23 + 1.24 +// Valid values for a segment are 0 to 3 1.25 +// Segmentation map is arrange as [Rows][Columns] 1.26 +void vp9_set_segmentation_map(VP9_PTR ptr, unsigned char *segmentation_map); 1.27 + 1.28 +// The values given for each segment can be either deltas (from the default 1.29 +// value chosen for the frame) or absolute values. 1.30 +// 1.31 +// Valid range for abs values is (0-127 for MB_LVL_ALT_Q), (0-63 for 1.32 +// SEGMENT_ALT_LF) 1.33 +// Valid range for delta values are (+/-127 for MB_LVL_ALT_Q), (+/-63 for 1.34 +// SEGMENT_ALT_LF) 1.35 +// 1.36 +// abs_delta = SEGMENT_DELTADATA (deltas) abs_delta = SEGMENT_ABSDATA (use 1.37 +// the absolute values given). 1.38 +void vp9_set_segment_data(VP9_PTR ptr, signed char *feature_data, 1.39 + unsigned char abs_delta); 1.40 + 1.41 +void vp9_choose_segmap_coding_method(VP9_COMP *cpi); 1.42 + 1.43 +#endif // VP9_ENCODER_VP9_SEGMENTATION_H_