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

MJPEG encoder. More...

#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "mjpegenc_common.h"
#include "mpegvideo.h"
#include "mjpeg.h"
#include "mjpegenc.h"

Go to the source code of this file.

Macros

#define V_MAX   2
 

Functions

static av_cold void init_uni_ac_vlc (const uint8_t huff_size_ac[256], uint8_t *uni_ac_vlc_len)
 
av_cold int ff_mjpeg_encode_init (MpegEncContext *s)
 
av_cold void ff_mjpeg_encode_close (MpegEncContext *s)
 
static void encode_block (MpegEncContext *s, int16_t *block, int n)
 
void ff_mjpeg_encode_mb (MpegEncContext *s, int16_t block[12][64])
 
static int amv_encode_picture (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet)
 

Variables

static uint8_t uni_ac_vlc_len [64 *64 *2]
 
static uint8_t uni_chroma_ac_vlc_len [64 *64 *2]
 

Detailed Description

MJPEG encoder.

Definition in file mjpegenc.c.

Macro Definition Documentation

#define V_MAX   2

Definition at line 214 of file mjpegenc.c.

Referenced by amv_encode_picture().

Function Documentation

static av_cold void init_uni_ac_vlc ( const uint8_t  huff_size_ac[256],
uint8_t uni_ac_vlc_len 
)
static

Definition at line 44 of file mjpegenc.c.

Referenced by ff_mjpeg_encode_init().

av_cold int ff_mjpeg_encode_init ( MpegEncContext s)

Definition at line 70 of file mjpegenc.c.

Referenced by ff_mpv_encode_init().

av_cold void ff_mjpeg_encode_close ( MpegEncContext s)

Definition at line 115 of file mjpegenc.c.

Referenced by ff_mpv_encode_end().

static void encode_block ( MpegEncContext s,
int16_t *  block,
int  n 
)
static

Definition at line 120 of file mjpegenc.c.

Referenced by ff_mjpeg_encode_mb().

void ff_mjpeg_encode_mb ( MpegEncContext s,
int16_t  block[12][64] 
)

Definition at line 178 of file mjpegenc.c.

Referenced by encode_mb_internal().

static int amv_encode_picture ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pic_arg,
int *  got_packet 
)
static

Definition at line 215 of file mjpegenc.c.

Variable Documentation

uint8_t uni_ac_vlc_len[64 *64 *2]
static

Definition at line 41 of file mjpegenc.c.

Referenced by ff_mjpeg_encode_init().

uint8_t uni_chroma_ac_vlc_len[64 *64 *2]
static

Definition at line 42 of file mjpegenc.c.

Referenced by ff_mjpeg_encode_init().