1 /* 2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved 3 * 4 * This source code is subject to the terms of the BSD 2 Clause License and 5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License 6 * was not distributed with this source code in the LICENSE file, you can 7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open 8 * Media Patent License 1.0 was not distributed with this source code in the 9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent. 10 */ 11 12 #ifndef AOM_AV1_ENCODER_SEGMENTATION_H_ 13 #define AOM_AV1_ENCODER_SEGMENTATION_H_ 14 15 #include "av1/common/blockd.h" 16 #include "av1/encoder/encoder.h" 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 void av1_enable_segmentation(struct segmentation *seg); 23 void av1_disable_segmentation(struct segmentation *seg); 24 25 void av1_disable_segfeature(struct segmentation *seg, int segment_id, 26 SEG_LVL_FEATURES feature_id); 27 void av1_clear_segdata(struct segmentation *seg, int segment_id, 28 SEG_LVL_FEATURES feature_id); 29 30 void av1_choose_segmap_coding_method(AV1_COMMON *cm, MACROBLOCKD *xd); 31 32 void av1_reset_segment_features(AV1_COMMON *cm); 33 34 #ifdef __cplusplus 35 } // extern "C" 36 #endif 37 38 #endif // AOM_AV1_ENCODER_SEGMENTATION_H_ 39