FFmpeg
Functions
mpegvideoencdsp.c File Reference
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/attributes.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "me_cmp.h"
#include "mpegvideoencdsp.h"

Go to the source code of this file.

Functions

static int try_8x8basis_c (const int16_t rem[64], const int16_t weight[64], const int16_t basis[64], int scale)
 
static void add_8x8basis_c (int16_t rem[64], const int16_t basis[64], int scale)
 
static int pix_sum_c (const uint8_t *pix, ptrdiff_t line_size)
 
static int pix_norm1_c (const uint8_t *pix, ptrdiff_t line_size)
 
static av_always_inline void draw_edges_lr (uint8_t *ptr, ptrdiff_t wrap, int width, int height, int w)
 
static void draw_edges_8_c (uint8_t *buf, ptrdiff_t wrap, int width, int height, int w, int h, int sides)
 
static void copy_plane_wrapper (uint8_t *dst, ptrdiff_t dst_wrap, const uint8_t *src, ptrdiff_t src_wrap, int width, int height)
 
static void shrink22 (uint8_t *dst, ptrdiff_t dst_wrap, const uint8_t *src, ptrdiff_t src_wrap, int width, int height)
 
static void shrink44 (uint8_t *dst, ptrdiff_t dst_wrap, const uint8_t *src, ptrdiff_t src_wrap, int width, int height)
 
static void shrink88 (uint8_t *dst, ptrdiff_t dst_wrap, const uint8_t *src, ptrdiff_t src_wrap, int width, int height)
 
av_cold void ff_mpegvideoencdsp_init (MpegvideoEncDSPContext *c, AVCodecContext *avctx)
 

Function Documentation

◆ try_8x8basis_c()

static int try_8x8basis_c ( const int16_t  rem[64],
const int16_t  weight[64],
const int16_t  basis[64],
int  scale 
)
static

Definition at line 31 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ add_8x8basis_c()

static void add_8x8basis_c ( int16_t  rem[64],
const int16_t  basis[64],
int  scale 
)
static

Definition at line 50 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ pix_sum_c()

static int pix_sum_c ( const uint8_t *  pix,
ptrdiff_t  line_size 
)
static

Definition at line 60 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ pix_norm1_c()

static int pix_norm1_c ( const uint8_t *  pix,
ptrdiff_t  line_size 
)
static

Definition at line 81 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ draw_edges_lr()

static av_always_inline void draw_edges_lr ( uint8_t *  ptr,
ptrdiff_t  wrap,
int  width,
int  height,
int  w 
)
static

Definition at line 117 of file mpegvideoencdsp.c.

Referenced by draw_edges_8_c().

◆ draw_edges_8_c()

static void draw_edges_8_c ( uint8_t *  buf,
ptrdiff_t  wrap,
int  width,
int  height,
int  w,
int  h,
int  sides 
)
static

Definition at line 128 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ copy_plane_wrapper()

static void copy_plane_wrapper ( uint8_t *  dst,
ptrdiff_t  dst_wrap,
const uint8_t *  src,
ptrdiff_t  src_wrap,
int  width,
int  height 
)
static

Definition at line 159 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ shrink22()

static void shrink22 ( uint8_t *  dst,
ptrdiff_t  dst_wrap,
const uint8_t *  src,
ptrdiff_t  src_wrap,
int  width,
int  height 
)
static

Definition at line 167 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ shrink44()

static void shrink44 ( uint8_t *  dst,
ptrdiff_t  dst_wrap,
const uint8_t *  src,
ptrdiff_t  src_wrap,
int  width,
int  height 
)
static

Definition at line 200 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ shrink88()

static void shrink88 ( uint8_t *  dst,
ptrdiff_t  dst_wrap,
const uint8_t *  src,
ptrdiff_t  src_wrap,
int  width,
int  height 
)
static

Definition at line 231 of file mpegvideoencdsp.c.

Referenced by ff_mpegvideoencdsp_init().

◆ ff_mpegvideoencdsp_init()

av_cold void ff_mpegvideoencdsp_init ( MpegvideoEncDSPContext c,
AVCodecContext avctx 
)