1 /* 2 * Copyright (c) 2016 The WebM project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file in the root of the source tree. An additional 6 * intellectual property rights grant can be found in the file PATENTS. 7 * All contributing project authors may be found in the AUTHORS file in 8 * the root of the source tree. 9 */ 10 11 #include "vp9/encoder/vp9_encoder.h" 12 #include "vp9/encoder/vp9_alt_ref_aq.h" 13 14 struct ALT_REF_AQ { 15 int dummy; 16 }; 17 18 struct ALT_REF_AQ *vp9_alt_ref_aq_create() { 19 return (struct ALT_REF_AQ *)vpx_malloc(sizeof(struct ALT_REF_AQ)); 20 } 21 22 void vp9_alt_ref_aq_destroy(struct ALT_REF_AQ *const self) { vpx_free(self); } 23 24 void vp9_alt_ref_aq_upload_map(struct ALT_REF_AQ *const self, 25 const struct MATX_8U *segmentation_map) { 26 (void)self; 27 (void)segmentation_map; 28 } 29 30 void vp9_alt_ref_aq_set_nsegments(struct ALT_REF_AQ *const self, 31 int nsegments) { 32 (void)self; 33 (void)nsegments; 34 } 35 36 void vp9_alt_ref_aq_setup_mode(struct ALT_REF_AQ *const self, 37 struct VP9_COMP *const cpi) { 38 (void)cpi; 39 (void)self; 40 } 41 42 // set basic segmentation to the altref's one 43 void vp9_alt_ref_aq_setup_map(struct ALT_REF_AQ *const self, 44 struct VP9_COMP *const cpi) { 45 (void)cpi; 46 (void)self; 47 } 48 49 // restore cpi->aq_mode 50 void vp9_alt_ref_aq_unset_all(struct ALT_REF_AQ *const self, 51 struct VP9_COMP *const cpi) { 52 (void)cpi; 53 (void)self; 54 } 55 56 int vp9_alt_ref_aq_disable_if(const struct ALT_REF_AQ *self, 57 int segmentation_overhead, int bandwidth) { 58 (void)bandwidth; 59 (void)self; 60 (void)segmentation_overhead; 61 62 return 0; 63 } 64