FFmpeg
|
#include "libavutil/attributes.h"
#include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h"
#include "copy_block.h"
#include "simple_idct.h"
#include "me_cmp.h"
#include "mpegvideoenc.h"
#include "config.h"
#include "config_components.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 | V(x) (pix1[x] - pix2[x]) |
#define | V(x) (pix1[x] - pix2[x]) |
#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, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | sse8_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | sse16_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | sum_abs_dctelem_c (const int16_t *block) |
static int | pix_abs16_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_median_abs16_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_abs16_x2_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_abs16_y2_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_abs16_xy2_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_abs8_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_median_abs8_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_abs8_x2_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_abs8_y2_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | pix_abs8_xy2_c (MpegEncContext *v, const uint8_t *pix1, const uint8_t *pix2, ptrdiff_t stride, int h) |
static int | nsse16_c (MpegEncContext *c, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride, int h) |
static int | nsse8_c (MpegEncContext *c, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride, int h) |
static int | zero_cmp (MpegEncContext *s, const uint8_t *a, const uint8_t *b, ptrdiff_t stride, int h) |
int | ff_set_cmp (MECmpContext *c, me_cmp_func *cmp, int type) |
static int | hadamard8_diff8x8_c (MpegEncContext *s, const uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h) |
static int | hadamard8_intra8x8_c (MpegEncContext *s, const uint8_t *src, const uint8_t *dummy, ptrdiff_t stride, int h) |
static int | dct_sad8x8_c (MpegEncContext *s, const uint8_t *src1, const uint8_t *src2, ptrdiff_t stride, int h) |
static int | dct_max8x8_c (MpegEncContext *s, const uint8_t *src1, const uint8_t *src2, ptrdiff_t stride, int h) |
static int | quant_psnr8x8_c (MpegEncContext *s, const uint8_t *src1, const uint8_t *src2, ptrdiff_t stride, int h) |
static int | rd8x8_c (MpegEncContext *s, const uint8_t *src1, const uint8_t *src2, ptrdiff_t stride, int h) |
static int | bit8x8_c (MpegEncContext *s, const uint8_t *src1, const uint8_t *src2, ptrdiff_t stride, int h) |
av_cold void | ff_me_cmp_init (MECmpContext *c, AVCodecContext *avctx) |
Variables | |
const uint32_t | ff_square_tab [512] |
#define V | ( | x | ) | (pix1[x] - pix2[x]) |
#define V | ( | x | ) | (pix1[x] - pix2[x]) |
#define BUTTERFLY2 | ( | o1, | |
o2, | |||
i1, | |||
i2 | |||
) |
#define BUTTERFLY1 | ( | x, | |
y | |||
) |
#define VSAD_INTRA | ( | size | ) |
#define VSAD | ( | size | ) |
#define VSSE_INTRA | ( | size | ) |
#define VSSE | ( | size | ) |
#define WRAPPER8_16_SQ | ( | name8, | |
name16 | |||
) |
|
static |
Definition at line 70 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 87 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 108 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 138 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
inlinestatic |
Definition at line 150 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
inlinestatic |
Definition at line 178 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 217 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 245 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 275 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
inlinestatic |
Definition at line 305 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
inlinestatic |
Definition at line 325 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 356 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 376 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 398 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 420 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 445 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
Definition at line 470 of file me_cmp.c.
Referenced by ff_set_cmp().
int ff_set_cmp | ( | MECmpContext * | c, |
me_cmp_func * | cmp, | ||
int | type | ||
) |
Definition at line 476 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 611 of file me_cmp.c.
Referenced by ff_me_cmp_init().
|
static |
|
static |
|
static |
|
static |
|
static |
av_cold void ff_me_cmp_init | ( | MECmpContext * | c, |
AVCodecContext * | avctx | ||
) |
Definition at line 1008 of file me_cmp.c.
Referenced by check_motion(), dvvideo_encode_init(), encode_init(), ff_ac3_encode_init(), ff_er_frame_start(), ff_mpv_encode_init(), main(), and svq1_encode_init().
const uint32_t ff_square_tab[512] |
Definition at line 35 of file me_cmp.c.
Referenced by pix_norm1(), pix_norm1_c(), sse(), sse16_c(), sse4_c(), and sse8_c().