#include <assert.h>
#include "config/aom_config.h"
#include "aom/aom_image.h"
#include "aom/internal/aom_image_internal.h"
#include "aom_dsp/flow_estimation/corner_detect.h"
#include "aom_dsp/pyramid.h"
#include "aom_mem/aom_mem.h"
#include "aom_ports/mem.h"
#include "aom_scale/yv12config.h"
#include "av1/common/enums.h"
int aom_free_frame_buffer(YV12_BUFFER_CONFIG *ybf) { … }
static int realloc_frame_buffer_aligned(
YV12_BUFFER_CONFIG *ybf, int width, int height, int ss_x, int ss_y,
int use_highbitdepth, int border, int byte_alignment,
aom_codec_frame_buffer_t *fb, aom_get_frame_buffer_cb_fn_t cb,
void *cb_priv, const int y_stride, const uint64_t yplane_size,
const uint64_t uvplane_size, const int aligned_width,
const int aligned_height, const int uv_width, const int uv_height,
const int uv_stride, const int uv_border_w, const int uv_border_h,
bool alloc_pyramid, int alloc_y_plane_only) { … }
static int calc_stride_and_planesize(
const int ss_x, const int ss_y, const int aligned_width,
const int aligned_height, const int border, const int byte_alignment,
int alloc_y_plane_only, int *y_stride, int *uv_stride,
uint64_t *yplane_size, uint64_t *uvplane_size, const int uv_height) { … }
int aom_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, int width, int height,
int ss_x, int ss_y, int use_highbitdepth,
int border, int byte_alignment,
aom_codec_frame_buffer_t *fb,
aom_get_frame_buffer_cb_fn_t cb, void *cb_priv,
bool alloc_pyramid, int alloc_y_plane_only) { … }
int aom_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, int width, int height,
int ss_x, int ss_y, int use_highbitdepth, int border,
int byte_alignment, bool alloc_pyramid,
int alloc_y_plane_only) { … }
void aom_remove_metadata_from_frame_buffer(YV12_BUFFER_CONFIG *ybf) { … }
int aom_copy_metadata_to_frame_buffer(YV12_BUFFER_CONFIG *ybf,
const aom_metadata_array_t *arr) { … }