Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 1 | /* |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 3 | * |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 4 | * This source code is subject to the terms of the BSD 2 Clause License and |
| 5 | * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| 6 | * was not distributed with this source code in the LICENSE file, you can |
| 7 | * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| 8 | * Media Patent License 1.0 was not distributed with this source code in the |
| 9 | * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 10 | */ |
| 11 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 12 | #ifndef AV1_ENCODER_RESIZE_H_ |
| 13 | #define AV1_ENCODER_RESIZE_H_ |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 14 | |
| 15 | #include <stdio.h> |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 16 | #include "aom/aom_integer.h" |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 17 | |
| 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 22 | void av1_resize_plane(const uint8_t *const input, int height, int width, |
| 23 | int in_stride, uint8_t *output, int height2, int width2, |
| 24 | int out_stride); |
| 25 | void av1_resize_frame420(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 av1_resize_frame422(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 | void av1_resize_frame444(const uint8_t *const y, int y_stride, |
| 36 | const uint8_t *const u, const uint8_t *const v, |
| 37 | int uv_stride, int height, int width, uint8_t *oy, |
| 38 | int oy_stride, uint8_t *ou, uint8_t *ov, |
| 39 | int ouv_stride, int oheight, int owidth); |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 40 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 41 | #if CONFIG_AOM_HIGHBITDEPTH |
| 42 | void av1_highbd_resize_plane(const uint8_t *const input, int height, int width, |
| 43 | int in_stride, uint8_t *output, int height2, |
| 44 | int width2, int out_stride, int bd); |
| 45 | void av1_highbd_resize_frame420(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 av1_highbd_resize_frame422(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 | void av1_highbd_resize_frame444(const uint8_t *const y, int y_stride, |
| 58 | const uint8_t *const u, const uint8_t *const v, |
| 59 | int uv_stride, int height, int width, |
| 60 | uint8_t *oy, int oy_stride, uint8_t *ou, |
| 61 | uint8_t *ov, int ouv_stride, int oheight, |
| 62 | int owidth, int bd); |
| 63 | #endif // CONFIG_AOM_HIGHBITDEPTH |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 64 | |
| 65 | #ifdef __cplusplus |
| 66 | } // extern "C" |
| 67 | #endif |
| 68 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 69 | #endif // AV1_ENCODER_RESIZE_H_ |