FFmpeg
4.0
|
MJPEG encoder. More...
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "jpegtables.h"
#include "mjpegenc_common.h"
#include "mpegvideo.h"
#include "mjpeg.h"
#include "mjpegenc.h"
Go to the source code of this file.
Macros | |
#define | OFFSET(x) offsetof(MpegEncContext, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
static int | alloc_huffman (MpegEncContext *s) |
av_cold int | ff_mjpeg_encode_init (MpegEncContext *s) |
av_cold void | ff_mjpeg_encode_close (MpegEncContext *s) |
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(MpegEncContext, x) |
Definition at line 385 of file mjpegenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 386 of file mjpegenc.c.
|
static |
Definition at line 42 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(), and put_marker().
av_cold void ff_mjpeg_encode_close | ( | MpegEncContext * | s | ) |
Definition at line 125 of file mjpegenc.c.
Referenced by ff_mpv_encode_end(), and put_marker().
|
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 138 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 153 of file mjpegenc.c.
Referenced by record_block().
|
static |
Add the block's data into the JPEG buffer.
s | The MJpegEncContext that contains the JPEG buffer. |
block | The block. |
n | The block's index or number. |
Definition at line 181 of file mjpegenc.c.
Referenced by ff_mjpeg_encode_mb().
|
static |
Definition at line 224 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 282 of file mjpegenc.c.
Referenced by encode_mb_internal(), and put_marker().
|
static |
Definition at line 387 of file mjpegenc.c.