#include <assert.h>
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
#include "mjpeg.h"
#include "mjpegenc.h"
Go to the source code of this file.
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 (PutBitContext *pbc) |
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, DCTELEM *block, int n) |
void | ff_mjpeg_encode_mb (MpegEncContext *s, DCTELEM block[6][64]) |
Variables | |
AVCodec | mjpeg_encoder |
Definition in file mjpegenc.c.
static void encode_block | ( | MpegEncContext * | s, | |
DCTELEM * | block, | |||
int | n | |||
) | [static] |
Definition at line 376 of file mjpegenc.c.
Referenced by encode_block(), encode_frame(), ff_mjpeg_encode_mb(), and svq1_encode_plane().
static void escape_FF | ( | MpegEncContext * | s, | |
int | start | |||
) | [static] |
void ff_mjpeg_encode_close | ( | MpegEncContext * | s | ) |
void ff_mjpeg_encode_dc | ( | MpegEncContext * | s, | |
int | val, | |||
uint8_t * | huff_size, | |||
uint16_t * | huff_code | |||
) |
Definition at line 354 of file mjpegenc.c.
Referenced by encode_block(), and encode_picture_lossless().
av_cold int ff_mjpeg_encode_init | ( | MpegEncContext * | s | ) |
void ff_mjpeg_encode_mb | ( | MpegEncContext * | s, | |
DCTELEM | block[6][64] | |||
) |
void ff_mjpeg_encode_picture_header | ( | MpegEncContext * | s | ) |
Definition at line 197 of file mjpegenc.c.
Referenced by encode_picture(), and encode_picture_lossless().
void ff_mjpeg_encode_picture_trailer | ( | MpegEncContext * | s | ) |
Definition at line 342 of file mjpegenc.c.
Referenced by encode_picture_lossless(), and MPV_encode_picture().
void ff_mjpeg_encode_stuffing | ( | PutBitContext * | pbc | ) |
Definition at line 335 of file mjpegenc.c.
Referenced by ff_mjpeg_encode_picture_trailer(), and write_slice_end().
static void jpeg_put_comments | ( | MpegEncContext * | s | ) | [static] |
static void jpeg_table_header | ( | MpegEncContext * | s | ) | [static] |
static int put_huffman_table | ( | MpegEncContext * | s, | |
int | table_class, | |||
int | table_id, | |||
const uint8_t * | bits_table, | |||
const uint8_t * | value_table | |||
) | [static] |
Initial value:
{ "mjpeg", CODEC_TYPE_VIDEO, CODEC_ID_MJPEG, sizeof(MpegEncContext), MPV_encode_init, MPV_encode_picture, MPV_encode_end, .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"), }
Definition at line 449 of file mjpegenc.c.