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

MJPEG encoder. More...

#include "avcodec.h"
#include "mpegvideo.h"
#include "mjpeg.h"
#include "mjpegenc.h"

Go to the source code of this file.

Macros

#define V_MAX   2
 

Functions

av_cold int ff_mjpeg_encode_init (MpegEncContext *s)
 
void ff_mjpeg_encode_close (MpegEncContext *s)
 
static int put_huffman_table (MpegEncContext *s, int table_class, int table_id, const uint8_t *bits_table, const uint8_t *value_table)
 
static void jpeg_table_header (MpegEncContext *s)
 
static void jpeg_put_comments (MpegEncContext *s)
 
void ff_mjpeg_encode_picture_header (MpegEncContext *s)
 
static void escape_FF (MpegEncContext *s, int start)
 
void ff_mjpeg_encode_stuffing (MpegEncContext *s)
 
void ff_mjpeg_encode_picture_trailer (MpegEncContext *s)
 
void ff_mjpeg_encode_dc (MpegEncContext *s, int val, uint8_t *huff_size, uint16_t *huff_code)
 
static void encode_block (MpegEncContext *s, int16_t *block, int n)
 
void ff_mjpeg_encode_mb (MpegEncContext *s, int16_t block[6][64])
 
static int amv_encode_picture (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet)
 

Detailed Description

MJPEG encoder.

Definition in file mjpegenc.c.

Macro Definition Documentation

#define V_MAX   2

Definition at line 493 of file mjpegenc.c.

Referenced by amv_encode_picture().

Function Documentation

av_cold int ff_mjpeg_encode_init ( MpegEncContext s)

Definition at line 43 of file mjpegenc.c.

Referenced by ff_MPV_encode_init().

void ff_mjpeg_encode_close ( MpegEncContext s)

Definition at line 81 of file mjpegenc.c.

Referenced by ff_MPV_encode_end().

static int put_huffman_table ( MpegEncContext s,
int  table_class,
int  table_id,
const uint8_t bits_table,
const uint8_t value_table 
)
static

Definition at line 87 of file mjpegenc.c.

Referenced by jpeg_table_header().

static void jpeg_table_header ( MpegEncContext s)
static

Definition at line 108 of file mjpegenc.c.

Referenced by ff_mjpeg_encode_picture_header().

static void jpeg_put_comments ( MpegEncContext s)
static

Definition at line 160 of file mjpegenc.c.

Referenced by ff_mjpeg_encode_picture_header().

void ff_mjpeg_encode_picture_header ( MpegEncContext s)

Definition at line 204 of file mjpegenc.c.

Referenced by encode_picture(), and encode_picture_lossless().

static void escape_FF ( MpegEncContext s,
int  start 
)
static

Definition at line 297 of file mjpegenc.c.

Referenced by ff_mjpeg_encode_stuffing().

void ff_mjpeg_encode_stuffing ( MpegEncContext s)

Definition at line 349 of file mjpegenc.c.

Referenced by encode_picture_lossless(), and write_slice_end().

void ff_mjpeg_encode_picture_trailer ( MpegEncContext s)

Definition at line 368 of file mjpegenc.c.

Referenced by encode_picture_lossless(), and ff_MPV_encode_picture().

void ff_mjpeg_encode_dc ( MpegEncContext s,
int  val,
uint8_t huff_size,
uint16_t *  huff_code 
)

Definition at line 377 of file mjpegenc.c.

Referenced by encode_block(), and encode_picture_lossless().

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

Definition at line 399 of file mjpegenc.c.

Referenced by ff_mjpeg_encode_mb().

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

Definition at line 457 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 494 of file mjpegenc.c.