• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
vp9_alt_ref_aq_create(void)18 struct ALT_REF_AQ *vp9_alt_ref_aq_create(void) {
19   return (struct ALT_REF_AQ *)vpx_malloc(sizeof(struct ALT_REF_AQ));
20 }
21 
vp9_alt_ref_aq_destroy(struct ALT_REF_AQ * const self)22 void vp9_alt_ref_aq_destroy(struct ALT_REF_AQ *const self) { vpx_free(self); }
23 
vp9_alt_ref_aq_upload_map(struct ALT_REF_AQ * const self,const struct MATX_8U * segmentation_map)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 
vp9_alt_ref_aq_set_nsegments(struct ALT_REF_AQ * const self,int nsegments)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 
vp9_alt_ref_aq_setup_mode(struct ALT_REF_AQ * const self,struct VP9_COMP * const cpi)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
vp9_alt_ref_aq_setup_map(struct ALT_REF_AQ * const self,struct VP9_COMP * const cpi)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
vp9_alt_ref_aq_unset_all(struct ALT_REF_AQ * const self,struct VP9_COMP * const cpi)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 
vp9_alt_ref_aq_disable_if(const struct ALT_REF_AQ * self,int segmentation_overhead,int bandwidth)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