blob: 4457262ad7eb8e437d5517d612e0074e3db2e2c2 [file] [log] [blame]
Yaowu Xuc27fc142016-08-22 16:08:15 -07001/*
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Yaowu Xuc27fc142016-08-22 16:08:15 -07003 *
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07004 * 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 Xuc27fc142016-08-22 16:08:15 -070010 */
11
Yaowu Xuf883b422016-08-30 14:01:10 -070012#ifndef AV1_ENCODER_RESIZE_H_
13#define AV1_ENCODER_RESIZE_H_
Yaowu Xuc27fc142016-08-22 16:08:15 -070014
15#include <stdio.h>
Yaowu Xuf883b422016-08-30 14:01:10 -070016#include "aom/aom_integer.h"
Yaowu Xuc27fc142016-08-22 16:08:15 -070017
18#ifdef __cplusplus
19extern "C" {
20#endif
21
Yaowu Xuf883b422016-08-30 14:01:10 -070022void 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);
25void 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);
30void 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);
35void 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 Xuc27fc142016-08-22 16:08:15 -070040
Yaowu Xuf883b422016-08-30 14:01:10 -070041#if CONFIG_AOM_HIGHBITDEPTH
42void 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);
45void 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);
51void 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);
57void 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 Xuc27fc142016-08-22 16:08:15 -070064
65#ifdef __cplusplus
66} // extern "C"
67#endif
68
Yaowu Xuf883b422016-08-30 14:01:10 -070069#endif // AV1_ENCODER_RESIZE_H_