FFmpeg
|
#include "libavutil/attributes.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "copy_block.h"
#include "simple_idct.h"
#include "me_cmp.h"
#include "mpegvideo.h"
#include "config.h"
Go to the source code of this file.
Macros | |
#define | avg2(a, b) ((a + b + 1) >> 1) |
#define | avg4(a, b, c, d) ((a + b + c + d + 2) >> 2) |
#define | BUTTERFLY2(o1, o2, i1, i2) |
#define | BUTTERFLY1(x, y) |
#define | BUTTERFLYA(x, y) (FFABS((x) + (y)) + FFABS((x) - (y))) |
#define | VSAD_INTRA(size) |
#define | VSAD(size) |
#define | SQ(a) ((a) * (a)) |
#define | VSSE_INTRA(size) |
#define | VSSE(size) |
#define | WRAPPER8_16_SQ(name8, name16) |
#define | SET_CMP_FUNC(name) |
Functions | |
static int | sse4_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | sse8_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | sse16_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | sum_abs_dctelem_c (int16_t *block) |
static int | pix_abs16_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs16_x2_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs16_y2_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs16_xy2_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs8_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs8_x2_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs8_y2_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | pix_abs8_xy2_c (MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) |
static int | nsse16_c (MpegEncContext *c, uint8_t *s1, uint8_t *s2, int stride, int h) |
static int | nsse8_c (MpegEncContext *c, uint8_t *s1, uint8_t *s2, int stride, int h) |
static int | zero_cmp (MpegEncContext *s, uint8_t *a, uint8_t *b, int stride, int h) |
void | ff_set_cmp (MECmpContext *c, me_cmp_func *cmp, int type) |
static int | hadamard8_diff8x8_c (MpegEncContext *s, uint8_t *dst, uint8_t *src, int stride, int h) |
static int | hadamard8_intra8x8_c (MpegEncContext *s, uint8_t *src, uint8_t *dummy, int stride, int h) |
static int | dct_sad8x8_c (MpegEncContext *s, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | dct_max8x8_c (MpegEncContext *s, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | quant_psnr8x8_c (MpegEncContext *s, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | rd8x8_c (MpegEncContext *s, uint8_t *src1, uint8_t *src2, int stride, int h) |
static int | bit8x8_c (MpegEncContext *s, uint8_t *src1, uint8_t *src2, int stride, int h) |
av_cold void | ff_me_cmp_init_static (void) |
int | ff_check_alignment (void) |
av_cold void | ff_me_cmp_init (MECmpContext *c, AVCodecContext *avctx) |
Variables | |
uint32_t | ff_square_tab [512] = { 0, } |
Definition at line 111 of file me_cmp.c.
Referenced by pix_abs16_x2_c(), pix_abs16_y2_c(), pix_abs8_x2_c(), and pix_abs8_y2_c().
Definition at line 112 of file me_cmp.c.
Referenced by pix_abs16_xy2_c(), and pix_abs8_xy2_c().
#define BUTTERFLY2 | ( | o1, | |
o2, | |||
i1, | |||
i2 | |||
) |
Definition at line 430 of file me_cmp.c.
Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().
#define BUTTERFLY1 | ( | x, | |
y | |||
) |
Definition at line 434 of file me_cmp.c.
Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().
Definition at line 443 of file me_cmp.c.
Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().
#define VSAD_INTRA | ( | size | ) |
#define VSAD | ( | size | ) |
#define VSSE_INTRA | ( | size | ) |
#define VSSE | ( | size | ) |
#define WRAPPER8_16_SQ | ( | name8, | |
name16 | |||
) |
#define SET_CMP_FUNC | ( | name | ) |
Referenced by ff_me_cmp_init().
|
static |
Definition at line 34 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 51 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 72 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 102 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
inlinestatic |
Definition at line 114 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 142 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 170 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 200 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
inlinestatic |
Definition at line 230 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 250 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 270 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 292 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 314 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 338 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 362 of file me_cmp.c.
Referenced by ff_set_cmp().
void ff_set_cmp | ( | MECmpContext * | c, |
me_cmp_func * | cmp, | ||
int | type | ||
) |
Definition at line 368 of file me_cmp.c.
Referenced by dvvideo_encode_init(), encode_init(), ff_init_me(), and ff_mpv_encode_init().
|
static |
|
static |
Definition at line 497 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 905 of file me_cmp.c.
Referenced by avcodec_init().
int ff_check_alignment | ( | void | ) |
Definition at line 913 of file me_cmp.c.
Referenced by encode_thread(), estimate_motion_thread(), ff_me_cmp_init(), and mb_var_thread().
av_cold void ff_me_cmp_init | ( | MECmpContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 934 of file me_cmp.c.
Referenced by dct_init(), dvvideo_encode_init(), ff_ac3_encode_init(), ff_h264_decode_init(), ff_h264_set_parameter_from_sps(), ff_mpv_encode_init(), main(), mca(), and svq1_encode_init().
uint32_t ff_square_tab[512] = { 0, } |
Definition at line 32 of file me_cmp.c.
Referenced by ff_me_cmp_init_static(), pix_norm1(), pix_norm1_c(), sse(), sse16_c(), sse4_c(), and sse8_c().