FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
mjpegenc_common.h File Reference
#include <stdint.h>
#include "avcodec.h"
#include "idctdsp.h"
#include "mpegvideo.h"
#include "put_bits.h"

Go to the source code of this file.

Functions

void ff_mjpeg_encode_picture_header (AVCodecContext *avctx, PutBitContext *pb, ScanTable *intra_scantable, uint16_t luma_intra_matrix[64], uint16_t chroma_intra_matrix[64])
 
void ff_mjpeg_encode_picture_trailer (PutBitContext *pb, int header_bits)
 
void ff_mjpeg_escape_FF (PutBitContext *pb, int start)
 
int ff_mjpeg_encode_stuffing (MpegEncContext *s)
 
void ff_mjpeg_init_hvsample (AVCodecContext *avctx, int hsample[3], int vsample[3])
 
void ff_mjpeg_encode_dc (PutBitContext *pb, int val, uint8_t *huff_size, uint16_t *huff_code)
 

Function Documentation

void ff_mjpeg_encode_picture_header ( AVCodecContext avctx,
PutBitContext pb,
ScanTable intra_scantable,
uint16_t  luma_intra_matrix[64],
uint16_t  chroma_intra_matrix[64] 
)

Definition at line 188 of file mjpegenc_common.c.

Referenced by encode_picture(), and ljpeg_encode_frame().

void ff_mjpeg_encode_picture_trailer ( PutBitContext pb,
int  header_bits 
)

Definition at line 372 of file mjpegenc_common.c.

Referenced by ff_mpv_encode_picture(), and ljpeg_encode_frame().

void ff_mjpeg_escape_FF ( PutBitContext pb,
int  start 
)

Definition at line 287 of file mjpegenc_common.c.

Referenced by ff_mjpeg_encode_stuffing(), and ljpeg_encode_frame().

int ff_mjpeg_encode_stuffing ( MpegEncContext s)

Definition at line 346 of file mjpegenc_common.c.

Referenced by write_slice_end().

void ff_mjpeg_init_hvsample ( AVCodecContext avctx,
int  hsample[3],
int  vsample[3] 
)

Definition at line 162 of file mjpegenc_common.c.

Referenced by ff_mjpeg_encode_picture_header(), and ljpeg_encode_init().

void ff_mjpeg_encode_dc ( PutBitContext pb,
int  val,
uint8_t huff_size,
uint16_t *  huff_code 
)

Definition at line 379 of file mjpegenc_common.c.

Referenced by encode_block(), ljpeg_encode_bgr(), and ljpeg_encode_yuv_mb().