Libav
Functions | Variables
mjpegenc.c File Reference

MJPEG encoder. More...

#include <assert.h>
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "mjpegenc_common.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 void encode_block (MpegEncContext *s, int16_t *block, int n)
 
void ff_mjpeg_encode_mb (MpegEncContext *s, int16_t block[6][64])
 

Variables

AVCodec ff_mjpeg_encoder
 

Detailed Description

MJPEG encoder.

Definition in file mjpegenc.c.

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 76 of file mjpegenc.c.

Referenced by ff_mpv_encode_end().

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

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

Referenced by encode_mb_internal().

Variable Documentation

AVCodec ff_mjpeg_encoder
Initial value:
= {
.name = "mjpeg",
.long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"),
.priv_data_size = sizeof(MpegEncContext),
.pix_fmts = (const enum AVPixelFormat[]){
},
}
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV422P and setting color_...
Definition: pixfmt.h:78
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV420P and setting color_...
Definition: pixfmt.h:77
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
int ff_mpv_encode_init(AVCodecContext *avctx)
MpegEncContext.
Definition: mpegvideo.h:204
int ff_mpv_encode_end(AVCodecContext *avctx)
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499
int ff_mpv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
AVPixelFormat
Pixel format.
Definition: pixfmt.h:63

Definition at line 156 of file mjpegenc.c.