/src/libvpx/vp9/encoder/vp9_alt_ref_aq.c
Line | Count | Source (jump to first uncovered line) |
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 | 2.98k | struct ALT_REF_AQ *vp9_alt_ref_aq_create(void) { |
19 | 2.98k | return (struct ALT_REF_AQ *)vpx_malloc(sizeof(struct ALT_REF_AQ)); |
20 | 2.98k | } |
21 | | |
22 | 2.98k | 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 | 0 | const struct MATX_8U *segmentation_map) { |
26 | 0 | (void)self; |
27 | 0 | (void)segmentation_map; |
28 | 0 | } |
29 | | |
30 | | void vp9_alt_ref_aq_set_nsegments(struct ALT_REF_AQ *const self, |
31 | 0 | int nsegments) { |
32 | 0 | (void)self; |
33 | 0 | (void)nsegments; |
34 | 0 | } |
35 | | |
36 | | void vp9_alt_ref_aq_setup_mode(struct ALT_REF_AQ *const self, |
37 | 0 | struct VP9_COMP *const cpi) { |
38 | 0 | (void)cpi; |
39 | 0 | (void)self; |
40 | 0 | } |
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 | 0 | struct VP9_COMP *const cpi) { |
45 | 0 | (void)cpi; |
46 | 0 | (void)self; |
47 | 0 | } |
48 | | |
49 | | // restore cpi->aq_mode |
50 | | void vp9_alt_ref_aq_unset_all(struct ALT_REF_AQ *const self, |
51 | 0 | struct VP9_COMP *const cpi) { |
52 | 0 | (void)cpi; |
53 | 0 | (void)self; |
54 | 0 | } |
55 | | |
56 | | int vp9_alt_ref_aq_disable_if(const struct ALT_REF_AQ *self, |
57 | 0 | int segmentation_overhead, int bandwidth) { |
58 | 0 | (void)bandwidth; |
59 | 0 | (void)self; |
60 | 0 | (void)segmentation_overhead; |
61 | |
|
62 | 0 | return 0; |
63 | 0 | } |