FFmpeg
|
#include "libavutil/log.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "decode.h"
#include "encode.h"
#include "snow_dwt.h"
#include "snow.h"
#include "snowdata.h"
Go to the source code of this file.
Macros | |
#define | MC_STRIDE(x) (needs[x] ? 64 : stride) |
#define | mca(dx, dy, b_w) |
#define | mcf(dx, dy) |
#define | mcfh(dx, dy) |
Functions | |
void | ff_snow_inner_add_yblock (const uint8_t *obmc, const int obmc_stride, uint8_t **block, int b_w, int b_h, int src_x, int src_y, int src_stride, slice_buffer *sb, int add, uint8_t *dst8) |
int | ff_snow_get_buffer (SnowContext *s, AVFrame *frame) |
void | ff_snow_reset_contexts (SnowContext *s) |
int | ff_snow_alloc_blocks (SnowContext *s) |
static void | mc_block (Plane *p, uint8_t *dst, const uint8_t *src, int stride, int b_w, int b_h, int dx, int dy) |
void | ff_snow_pred_block (SnowContext *s, uint8_t *dst, uint8_t *tmp, ptrdiff_t stride, int sx, int sy, int b_w, int b_h, const BlockNode *block, int plane_index, int w, int h) |
mca (mca(0, mca(0, 16) | |
av_cold int | ff_snow_common_init (AVCodecContext *avctx) |
int | ff_snow_common_init_after_header (AVCodecContext *avctx) |
void | ff_snow_release_buffer (AVCodecContext *avctx) |
int | ff_snow_frame_start (SnowContext *s) |
av_cold void | ff_snow_common_end (SnowContext *s) |
#define MC_STRIDE | ( | x | ) | (needs[x] ? 64 : stride) |
#define mca | ( | dx, | |
dy, | |||
b_w | |||
) |
#define mcf | ( | dx, | |
dy | |||
) |
#define mcfh | ( | dx, | |
dy | |||
) |
void ff_snow_inner_add_yblock | ( | const uint8_t * | obmc, |
const int | obmc_stride, | ||
uint8_t ** | block, | ||
int | b_w, | ||
int | b_h, | ||
int | src_x, | ||
int | src_y, | ||
int | src_stride, | ||
slice_buffer * | sb, | ||
int | add, | ||
uint8_t * | dst8 | ||
) |
Definition at line 31 of file snow.c.
Referenced by ff_dwt_init().
int ff_snow_get_buffer | ( | SnowContext * | s, |
AVFrame * | frame | ||
) |
Definition at line 64 of file snow.c.
Referenced by encode_init(), and ff_snow_frame_start().
void ff_snow_reset_contexts | ( | SnowContext * | s | ) |
Definition at line 94 of file snow.c.
Referenced by decode_header(), and encode_header().
int ff_snow_alloc_blocks | ( | SnowContext * | s | ) |
Definition at line 108 of file snow.c.
Referenced by decode_frame(), and encode_init().
|
static |
Definition at line 123 of file snow.c.
Referenced by ff_snow_pred_block().
void ff_snow_pred_block | ( | SnowContext * | s, |
uint8_t * | dst, | ||
uint8_t * | tmp, | ||
ptrdiff_t | stride, | ||
int | sx, | ||
int | sy, | ||
int | b_w, | ||
int | b_h, | ||
const BlockNode * | block, | ||
int | plane_index, | ||
int | w, | ||
int | h | ||
) |
Definition at line 316 of file snow.c.
Referenced by add_yblock(), and get_block_rd().
av_cold int ff_snow_common_init | ( | AVCodecContext * | avctx | ) |
Definition at line 426 of file snow.c.
Referenced by encode_init().
int ff_snow_common_init_after_header | ( | AVCodecContext * | avctx | ) |
Definition at line 507 of file snow.c.
Referenced by decode_frame(), and encode_frame().
void ff_snow_release_buffer | ( | AVCodecContext * | avctx | ) |
Definition at line 583 of file snow.c.
Referenced by decode_frame(), encode_frame(), and ff_snow_frame_start().
int ff_snow_frame_start | ( | SnowContext * | s | ) |
Definition at line 592 of file snow.c.
Referenced by decode_frame(), and encode_frame().
av_cold void ff_snow_common_end | ( | SnowContext * | s | ) |
Definition at line 625 of file snow.c.
Referenced by decode_end(), and encode_end().