FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
msmpeg4enc.c File Reference

MSMPEG4 encoder backend. More...

#include <stdint.h>
#include <string.h>
#include "libavutil/attributes.h"
#include "libavutil/avutil.h"
#include "libavutil/mem.h"
#include "mpegvideo.h"
#include "h263.h"
#include "mpeg4video.h"
#include "msmpeg4.h"
#include "msmpeg4data.h"
#include "put_bits.h"
#include "rl.h"
#include "vc1data.h"

Go to the source code of this file.

Functions

static av_cold void init_mv_table (MVTable *tab)
 
void ff_msmpeg4_code012 (PutBitContext *pb, int n)
 
static int get_size_of_code (MpegEncContext *s, RLTable *rl, int last, int run, int level, int intra)
 
av_cold void ff_msmpeg4_encode_init (MpegEncContext *s)
 
static void find_best_tables (MpegEncContext *s)
 
void ff_msmpeg4_encode_picture_header (MpegEncContext *s, int picture_number)
 
void ff_msmpeg4_encode_ext_header (MpegEncContext *s)
 
void ff_msmpeg4_encode_motion (MpegEncContext *s, int mx, int my)
 
void ff_msmpeg4_handle_slices (MpegEncContext *s)
 
static void msmpeg4v2_encode_motion (MpegEncContext *s, int val)
 
void ff_msmpeg4_encode_mb (MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y)
 
static void msmpeg4_encode_dc (MpegEncContext *s, int level, int n, int *dir_ptr)
 
void ff_msmpeg4_encode_block (MpegEncContext *s, int16_t *block, int n)
 

Variables

static uint8_t rl_length [NB_RL_TABLES][MAX_LEVEL+1][MAX_RUN+1][2]
 

Detailed Description

MSMPEG4 encoder backend.

Definition in file msmpeg4enc.c.

Function Documentation

static av_cold void init_mv_table ( MVTable tab)
static

Definition at line 48 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_init().

void ff_msmpeg4_code012 ( PutBitContext pb,
int  n 
)

Definition at line 64 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_picture_header(), and ff_wmv2_encode_picture_header().

static int get_size_of_code ( MpegEncContext s,
RLTable rl,
int  last,
int  run,
int  level,
int  intra 
)
static

Definition at line 74 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_init().

av_cold void ff_msmpeg4_encode_init ( MpegEncContext s)

Definition at line 115 of file msmpeg4enc.c.

Referenced by ff_MPV_encode_init().

static void find_best_tables ( MpegEncContext s)
static

Definition at line 149 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_picture_header().

void ff_msmpeg4_encode_picture_header ( MpegEncContext s,
int  picture_number 
)

Definition at line 214 of file msmpeg4enc.c.

Referenced by encode_picture().

void ff_msmpeg4_encode_ext_header ( MpegEncContext s)

Definition at line 274 of file msmpeg4enc.c.

Referenced by encode_thread(), and ff_msmpeg4_encode_picture_header().

void ff_msmpeg4_encode_motion ( MpegEncContext s,
int  mx,
int  my 
)

Definition at line 287 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_mb(), and ff_wmv2_encode_mb().

void ff_msmpeg4_handle_slices ( MpegEncContext s)

Definition at line 325 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_mb(), and ff_wmv2_encode_mb().

static void msmpeg4v2_encode_motion ( MpegEncContext s,
int  val 
)
static

Definition at line 338 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_mb().

void ff_msmpeg4_encode_mb ( MpegEncContext s,
int16_t  block[6][64],
int  motion_x,
int  motion_y 
)

Definition at line 371 of file msmpeg4enc.c.

Referenced by encode_mb_internal().

static void msmpeg4_encode_dc ( MpegEncContext s,
int  level,
int  n,
int *  dir_ptr 
)
static

Definition at line 494 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_block().

void ff_msmpeg4_encode_block ( MpegEncContext s,
int16_t *  block,
int  n 
)

Definition at line 573 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_mb(), and ff_wmv2_encode_mb().

Variable Documentation

uint8_t rl_length[NB_RL_TABLES][MAX_LEVEL+1][MAX_RUN+1][2]
static

Definition at line 45 of file msmpeg4enc.c.

Referenced by ff_msmpeg4_encode_init(), and find_best_tables().