vp9_resize.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef VP9_ENCODER_VP9_RESIZE_H_
  11. #define VP9_ENCODER_VP9_RESIZE_H_
  12. #include <stdio.h>
  13. #include "vpx/vpx_integer.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. void vp9_resize_plane(const uint8_t *const input, int height, int width,
  18. int in_stride, uint8_t *output, int height2, int width2,
  19. int out_stride);
  20. void vp9_resize_frame420(const uint8_t *const y, int y_stride,
  21. const uint8_t *const u, const uint8_t *const v,
  22. int uv_stride, int height, int width, uint8_t *oy,
  23. int oy_stride, uint8_t *ou, uint8_t *ov,
  24. int ouv_stride, int oheight, int owidth);
  25. void vp9_resize_frame422(const uint8_t *const y, int y_stride,
  26. const uint8_t *const u, const uint8_t *const v,
  27. int uv_stride, int height, int width, uint8_t *oy,
  28. int oy_stride, uint8_t *ou, uint8_t *ov,
  29. int ouv_stride, int oheight, int owidth);
  30. void vp9_resize_frame444(const uint8_t *const y, int y_stride,
  31. const uint8_t *const u, const uint8_t *const v,
  32. int uv_stride, int height, int width, uint8_t *oy,
  33. int oy_stride, uint8_t *ou, uint8_t *ov,
  34. int ouv_stride, int oheight, int owidth);
  35. #if CONFIG_VP9_HIGHBITDEPTH
  36. void vp9_highbd_resize_plane(const uint8_t *const input, int height, int width,
  37. int in_stride, uint8_t *output, int height2,
  38. int width2, int out_stride, int bd);
  39. void vp9_highbd_resize_frame420(const uint8_t *const y, int y_stride,
  40. const uint8_t *const u, const uint8_t *const v,
  41. int uv_stride, int height, int width,
  42. uint8_t *oy, int oy_stride, uint8_t *ou,
  43. uint8_t *ov, int ouv_stride, int oheight,
  44. int owidth, int bd);
  45. void vp9_highbd_resize_frame422(const uint8_t *const y, int y_stride,
  46. const uint8_t *const u, const uint8_t *const v,
  47. int uv_stride, int height, int width,
  48. uint8_t *oy, int oy_stride, uint8_t *ou,
  49. uint8_t *ov, int ouv_stride, int oheight,
  50. int owidth, int bd);
  51. void vp9_highbd_resize_frame444(const uint8_t *const y, int y_stride,
  52. const uint8_t *const u, const uint8_t *const v,
  53. int uv_stride, int height, int width,
  54. uint8_t *oy, int oy_stride, uint8_t *ou,
  55. uint8_t *ov, int ouv_stride, int oheight,
  56. int owidth, int bd);
  57. #endif // CONFIG_VP9_HIGHBITDEPTH
  58. #ifdef __cplusplus
  59. } // extern "C"
  60. #endif
  61. #endif // VP9_ENCODER_VP9_RESIZE_H_