12 #ifndef AOM_AOM_SCALE_YV12CONFIG_H_
13 #define AOM_AOM_SCALE_YV12CONFIG_H_
19 #include "config/aom_config.h"
23 #include "aom/aom_integer.h"
24 #include "aom/internal/aom_image_internal.h"
28 #define AOMINNERBORDERINPIXELS 160
29 #define AOM_INTERP_EXTEND 4
30 #define AOM_BORDER_IN_PIXELS 288
31 #define AOM_ENC_NO_SCALE_BORDER 160
32 #define AOM_ENC_ALLINTRA_BORDER 64
33 #define AOM_DEC_BORDER_IN_PIXELS 64
87 int use_external_reference_buffers;
91 uint8_t *store_buf_adr[3];
95 uint8_t *y_buffer_8bit;
98 uint8_t *buffer_alloc;
99 size_t buffer_alloc_sz;
104 unsigned int bit_depth;
122 #define YV12_FLAG_HIGHBITDEPTH 8
125 int ss_x,
int ss_y,
int use_highbitdepth,
int border,
126 int byte_alignment,
int alloc_y_plane_only);
136 int ss_x,
int ss_y,
int use_highbitdepth,
137 int border,
int byte_alignment,
140 int alloc_y_buffer_8bit,
int alloc_y_plane_only);
178 static AOM_INLINE
int aom_calc_y_stride(
int aligned_width,
int border) {
179 return ((aligned_width + 2 * border) + 31) & ~31;
Describes the codec algorithm interface to applications.
Describes the decoder external frame buffer interface.
int(* aom_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size, aom_codec_frame_buffer_t *fb)
get frame buffer callback prototype
Definition: aom_frame_buffer.h:64
enum aom_chroma_sample_position aom_chroma_sample_position_t
List of chroma sample positions.
struct aom_metadata_array aom_metadata_array_t
Array of aom_metadata structs for an image.
Definition: aom_image.h:169
enum aom_transfer_characteristics aom_transfer_characteristics_t
List of supported transfer functions.
enum aom_color_range aom_color_range_t
List of supported color range.
enum aom_color_primaries aom_color_primaries_t
List of supported color primaries.
enum aom_matrix_coefficients aom_matrix_coefficients_t
List of supported matrix coefficients.
External frame buffer.
Definition: aom_frame_buffer.h:40
YV12 frame buffer data structure.
Definition: yv12config.h:39