#include "config/aom_config.h"
#include "aom_mem/aom_mem.h"
#include "aom_scale/yv12config.h"
#include "aom_util/aom_pthread.h"
#include "av1/common/alloccommon.h"
#include "av1/common/av1_common_int.h"
#include "av1/common/blockd.h"
#include "av1/common/cdef_block.h"
#include "av1/common/entropymode.h"
#include "av1/common/entropymv.h"
#include "av1/common/enums.h"
#include "av1/common/restoration.h"
#include "av1/common/thread_common.h"
int av1_get_MBs(int width, int height) { … }
void av1_free_ref_frame_buffers(BufferPool *pool) { … }
static inline void free_cdef_linebuf_conditional(
AV1_COMMON *const cm, const size_t *new_linebuf_size) { … }
static inline void free_cdef_bufs_conditional(AV1_COMMON *const cm,
uint16_t **colbuf,
uint16_t **srcbuf,
const size_t *new_colbuf_size,
const size_t new_srcbuf_size) { … }
static inline void free_cdef_bufs(uint16_t **colbuf, uint16_t **srcbuf) { … }
static inline void free_cdef_row_sync(AV1CdefRowSync **cdef_row_mt,
const int num_mi_rows) { … }
void av1_free_cdef_buffers(AV1_COMMON *const cm,
AV1CdefWorkerData **cdef_worker,
AV1CdefSync *cdef_sync) { … }
static inline void alloc_cdef_linebuf(AV1_COMMON *const cm, uint16_t **linebuf,
const int num_planes) { … }
static inline void alloc_cdef_bufs(AV1_COMMON *const cm, uint16_t **colbuf,
uint16_t **srcbuf, const int num_planes) { … }
static inline void alloc_cdef_row_sync(AV1_COMMON *const cm,
AV1CdefRowSync **cdef_row_mt,
const int num_mi_rows) { … }
void av1_alloc_cdef_buffers(AV1_COMMON *const cm,
AV1CdefWorkerData **cdef_worker,
AV1CdefSync *cdef_sync, int num_workers,
int init_worker) { … }
void av1_alloc_restoration_buffers(AV1_COMMON *cm, bool is_sgr_enabled) { … }
void av1_free_restoration_buffers(AV1_COMMON *cm) { … }
void av1_free_above_context_buffers(CommonContexts *above_contexts) { … }
void av1_free_context_buffers(AV1_COMMON *cm) { … }
int av1_alloc_above_context_buffers(CommonContexts *above_contexts,
int num_tile_rows, int num_mi_cols,
int num_planes) { … }
static int alloc_mi(CommonModeInfoParams *mi_params) { … }
int av1_alloc_context_buffers(AV1_COMMON *cm, int width, int height,
BLOCK_SIZE min_partition_size) { … }
void av1_remove_common(AV1_COMMON *cm) { … }
void av1_init_mi_buffers(CommonModeInfoParams *mi_params) { … }