2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
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.
12 #ifndef __VPX_SCALE_ARBITRARY_H__
13 #define __VPX_SCALE_ARBITRARY_H__
15 #include "vpx_scale/yv12config.h"
24 int max_usable_out_width
;
26 // numerator for the width and height
31 // output to input correspondance array
36 // polyphase coefficients
41 // buffer for horizontal filtering.
43 unsigned char *hbuf_uv
;
44 } BICUBIC_SCALER_STRUCT
;
46 int bicubic_coefficient_setup(int in_width
, int in_height
, int out_width
, int out_height
);
47 int bicubic_scale(int in_width
, int in_height
, int in_stride
,
48 int out_width
, int out_height
, int out_stride
,
49 unsigned char *input_image
, unsigned char *output_image
);
50 void bicubic_scale_frame_reset();
51 void bicubic_scale_frame(YV12_BUFFER_CONFIG
*src
, YV12_BUFFER_CONFIG
*dst
,
52 int new_width
, int new_height
);
53 void bicubic_coefficient_init();
54 void bicubic_coefficient_destroy();
56 #endif /* __VPX_SCALE_ARBITRARY_H__ */