#include "libavutil/intmath.h"#include "libavutil/log.h"#include "libavutil/opt.h"#include "avcodec.h"#include "dsputil.h"#include "dwt.h"#include "snow.h"#include "snowdata.h"#include "rangecoder.h"#include "mathops.h"#include "h263.h"#include <assert.h>Go to the source code of this file.
Defines | |
| #define | mca(dx, dy, b_w) |
| #define | mcf(dx, dy) |
| #define | mcfh(dx, dy) |
| #define | USE_HALFPEL_PLANE 0 |
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) |
| void | ff_snow_reset_contexts (SnowContext *s) |
| int | ff_snow_alloc_blocks (SnowContext *s) |
| static void | init_qexp (void) |
| 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, int stride, int sx, int sy, int b_w, int b_h, BlockNode *block, int plane_index, int w, int h) |
| mca (mca(0, mca(0, 16) | |
| int | ff_snow_common_init_after_header (AVCodecContext *avctx) |
| static void | halfpel_interpol (SnowContext *s, uint8_t *halfpel[4][4], AVFrame *frame) |
| void | ff_snow_release_buffer (AVCodecContext *avctx) |
| int | ff_snow_frame_start (SnowContext *s) |
| av_cold void | ff_snow_common_end (SnowContext *s) |
| #define mca | ( | dx, | ||
| dy, | ||||
| b_w | ||||
| ) |
| #define mcf | ( | dx, | ||
| dy | ||||
| ) |
s->dsp.put_qpel_pixels_tab [0][dy+dx/4]=\
s->dsp.put_no_rnd_qpel_pixels_tab[0][dy+dx/4]=\
s->dsp.put_h264_qpel_pixels_tab[0][dy+dx/4];\
s->dsp.put_qpel_pixels_tab [1][dy+dx/4]=\
s->dsp.put_no_rnd_qpel_pixels_tab[1][dy+dx/4]=\
s->dsp.put_h264_qpel_pixels_tab[1][dy+dx/4];
Referenced by mca().
| #define mcfh | ( | dx, | ||
| dy | ||||
| ) |
s->dsp.put_pixels_tab [0][dy/4+dx/8]=\
s->dsp.put_no_rnd_pixels_tab[0][dy/4+dx/8]=\
mc_block_hpel ## dx ## dy ## 16;\
s->dsp.put_pixels_tab [1][dy/4+dx/8]=\
s->dsp.put_no_rnd_pixels_tab[1][dy/4+dx/8]=\
mc_block_hpel ## dx ## dy ## 8;
Referenced by mca().
| #define USE_HALFPEL_PLANE 0 |
Definition at line 512 of file snow.c.
Referenced by ff_snow_frame_start().
| int ff_snow_alloc_blocks | ( | SnowContext * | s | ) |
Definition at line 85 of file snow.c.
Referenced by decode_frame(), and encode_init().
| av_cold void ff_snow_common_end | ( | SnowContext * | s | ) |
Definition at line 621 of file snow.c.
Referenced by decode_end(), decode_init(), encode_end(), and encode_init().
| int ff_snow_common_init_after_header | ( | AVCodecContext * | avctx | ) |
Definition at line 459 of file snow.c.
Referenced by decode_frame(), and encode_frame().
| int ff_snow_frame_start | ( | SnowContext * | s | ) |
Definition at line 569 of file snow.c.
Referenced by decode_frame(), and encode_frame().
| 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 38 of file snow.c.
Referenced by ff_snow_inner_add_yblock_mmx(), and ff_snow_inner_add_yblock_sse2().
| void ff_snow_pred_block | ( | SnowContext * | s, | |
| uint8_t * | dst, | |||
| uint8_t * | tmp, | |||
| int | stride, | |||
| int | sx, | |||
| int | sy, | |||
| int | b_w, | |||
| int | b_h, | |||
| BlockNode * | block, | |||
| int | plane_index, | |||
| int | w, | |||
| int | h | |||
| ) |
Definition at line 290 of file snow.c.
Referenced by add_yblock(), and get_block_rd().
| void ff_snow_release_buffer | ( | AVCodecContext * | avctx | ) |
Definition at line 556 of file snow.c.
Referenced by decode_frame(), encode_frame(), and ff_snow_frame_start().
| void ff_snow_reset_contexts | ( | SnowContext * | s | ) |
Definition at line 71 of file snow.c.
Referenced by decode_header(), and encode_header().
| static void halfpel_interpol | ( | SnowContext * | s, | |
| uint8_t * | halfpel[4][4], | |||
| AVFrame * | frame | |||
| ) | [static] |
Definition at line 514 of file snow.c.
Referenced by ff_snow_frame_start().
| 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 | |||
| ) | [static] |
Definition at line 106 of file snow.c.
Referenced by ff_snow_pred_block().