FFmpeg
|
#include "config_components.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "jpegtables.h"
#include "mjpegenc_common.h"
#include "mjpegenc_huffman.h"
#include "mpegvideo.h"
#include "mjpeg.h"
#include "mjpegenc.h"
#include "mpegvideoenc.h"
#include "profiles.h"
Go to the source code of this file.
Data Structures | |
struct | MJPEGEncContext |
Macros | |
#define | OFFSET(x) offsetof(MJPEGEncContext, mjpeg.x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
static av_cold void | init_uni_ac_vlc (const uint8_t huff_size_ac[256], uint8_t *uni_ac_vlc_len) |
static void | mjpeg_encode_picture_header (MpegEncContext *s) |
void | ff_mjpeg_amv_encode_picture_header (MpegEncContext *s) |
int | ff_mjpeg_encode_stuffing (MpegEncContext *s) |
Writes the complete JPEG frame when optimal huffman tables are enabled, otherwise writes the stuffing. More... | |
static int | alloc_huffman (MpegEncContext *s) |
av_cold int | ff_mjpeg_encode_init (MpegEncContext *s) |
static av_cold int | mjpeg_encode_close (AVCodecContext *avctx) |
static void | ff_mjpeg_encode_code (MJpegContext *s, uint8_t table_id, int code) |
Add code and table_id to the JPEG buffer. More... | |
static void | ff_mjpeg_encode_coef (MJpegContext *s, uint8_t table_id, int val, int run) |
Add the coefficient's data to the JPEG buffer. More... | |
static void | record_block (MpegEncContext *s, int16_t *block, int n) |
Add the block's data into the JPEG buffer. More... | |
static void | encode_block (MpegEncContext *s, int16_t *block, int n) |
void | ff_mjpeg_encode_mb (MpegEncContext *s, int16_t block[12][64]) |
Variables | |
static const AVOption | options [] |
MJPEG encoder.
Definition in file mjpegenc.c.
#define OFFSET | ( | x | ) | offsetof(MJPEGEncContext, mjpeg.x) |
Definition at line 624 of file mjpegenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 625 of file mjpegenc.c.
|
static |
Definition at line 57 of file mjpegenc.c.
Referenced by ff_mjpeg_encode_init(), and ff_mjpeg_encode_stuffing().
|
static |
Definition at line 81 of file mjpegenc.c.
Referenced by ff_mjpeg_amv_encode_picture_header(), and ff_mjpeg_encode_stuffing().
void ff_mjpeg_amv_encode_picture_header | ( | MpegEncContext * | s | ) |
Definition at line 93 of file mjpegenc.c.
Referenced by encode_picture().
int ff_mjpeg_encode_stuffing | ( | MpegEncContext * | s | ) |
Writes the complete JPEG frame when optimal huffman tables are enabled, otherwise writes the stuffing.
Header + values + stuffing.
s | The MpegEncContext. |
Definition at line 220 of file mjpegenc.c.
Referenced by write_slice_end().
|
static |
Definition at line 266 of file mjpegenc.c.
Referenced by ff_mjpeg_encode_init().
av_cold int ff_mjpeg_encode_init | ( | MpegEncContext * | s | ) |
Definition at line 294 of file mjpegenc.c.
Referenced by ff_mpv_encode_init().
|
static |
Definition at line 364 of file mjpegenc.c.
|
inlinestatic |
Add code and table_id to the JPEG buffer.
s | The MJpegContext which contains the JPEG buffer. |
table_id | Which Huffman table the code belongs to. |
code | The encoded exponent of the coefficients and the run-bits. |
Definition at line 379 of file mjpegenc.c.
Referenced by ff_mjpeg_encode_coef(), and record_block().
|
static |
Add the coefficient's data to the JPEG buffer.
s | The MJpegContext which contains the JPEG buffer. |
table_id | Which Huffman table the code belongs to. |
val | The coefficient. |
run | The run-bits. |
Definition at line 394 of file mjpegenc.c.
Referenced by record_block().
|
static |
Add the block's data into the JPEG buffer.
s | The MpegEncContext that contains the JPEG buffer. |
block | The block. |
n | The block's index or number. |
Definition at line 422 of file mjpegenc.c.
Referenced by ff_mjpeg_encode_mb().
|
static |
Definition at line 465 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 523 of file mjpegenc.c.
Referenced by encode_mb_internal().
Definition at line 626 of file mjpegenc.c.