vp9_alt_ref_aq.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #include "vp9/encoder/vp9_encoder.h"
  11. #include "vp9/encoder/vp9_alt_ref_aq.h"
  12. struct ALT_REF_AQ {
  13. int dummy;
  14. };
  15. struct ALT_REF_AQ *vp9_alt_ref_aq_create() {
  16. return (struct ALT_REF_AQ *)vpx_malloc(sizeof(struct ALT_REF_AQ));
  17. }
  18. void vp9_alt_ref_aq_destroy(struct ALT_REF_AQ *const self) { vpx_free(self); }
  19. void vp9_alt_ref_aq_upload_map(struct ALT_REF_AQ *const self,
  20. const struct MATX_8U *segmentation_map) {
  21. (void)self;
  22. (void)segmentation_map;
  23. }
  24. void vp9_alt_ref_aq_set_nsegments(struct ALT_REF_AQ *const self,
  25. int nsegments) {
  26. (void)self;
  27. (void)nsegments;
  28. }
  29. void vp9_alt_ref_aq_setup_mode(struct ALT_REF_AQ *const self,
  30. struct VP9_COMP *const cpi) {
  31. (void)cpi;
  32. (void)self;
  33. }
  34. // set basic segmentation to the altref's one
  35. void vp9_alt_ref_aq_setup_map(struct ALT_REF_AQ *const self,
  36. struct VP9_COMP *const cpi) {
  37. (void)cpi;
  38. (void)self;
  39. }
  40. // restore cpi->aq_mode
  41. void vp9_alt_ref_aq_unset_all(struct ALT_REF_AQ *const self,
  42. struct VP9_COMP *const cpi) {
  43. (void)cpi;
  44. (void)self;
  45. }
  46. int vp9_alt_ref_aq_disable_if(const struct ALT_REF_AQ *self,
  47. int segmentation_overhead, int bandwidth) {
  48. (void)bandwidth;
  49. (void)self;
  50. (void)segmentation_overhead;
  51. return 0;
  52. }