ljpegenc.c File Reference

lossless JPEG encoder. More...

#include "avcodec.h"
#include "internal.h"
#include "mpegvideo.h"
#include "mjpeg.h"
#include "mjpegenc.h"
Include dependency graph for ljpegenc.c:

Go to the source code of this file.

Functions

static int encode_picture_lossless (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 

Variables

AVCodec ff_ljpeg_encoder
 

Detailed Description

lossless JPEG encoder.

Definition in file ljpegenc.c.

Function Documentation

static int encode_picture_lossless ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int *  got_packet 
)
static

Definition at line 40 of file ljpegenc.c.

Variable Documentation

AVCodec ff_ljpeg_encoder
Initial value:
= {
.name = "ljpeg",
.priv_data_size = sizeof(MpegEncContext),
.pix_fmts = (const enum AVPixelFormat[]){
.long_name = NULL_IF_CONFIG_SMALL("Lossless JPEG"),
}
struct MpegEncContext MpegEncContext
MpegEncContext.
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:73
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: ljpegenc.c:40
int ff_MPV_encode_end(AVCodecContext *avctx)
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV422P and setting color_...
Definition: pixfmt.h:81
int ff_MPV_encode_init(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:99
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:72
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV420P and setting color_...
Definition: pixfmt.h:80
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:71
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
packed BGR 8:8:8, 32bpp, BGR0BGR0...
Definition: pixfmt.h:217
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:68
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV444P and setting color_...
Definition: pixfmt.h:82
AVPixelFormat
Pixel format.
Definition: pixfmt.h:66

Definition at line 222 of file ljpegenc.c.