jpeglsenc.c File Reference

JPEG-LS encoder. More...

#include "avcodec.h"
#include "get_bits.h"
#include "put_bits.h"
#include "golomb.h"
#include "internal.h"
#include "mathops.h"
#include "mjpeg.h"
#include "jpegls.h"
Include dependency graph for jpeglsenc.c:

Go to the source code of this file.

Functions

static void ls_encode_regular (JLSState *state, PutBitContext *pb, int Q, int err)
 Encode error from regular symbol. More...
 
static void ls_encode_runterm (JLSState *state, PutBitContext *pb, int RItype, int err, int limit_add)
 Encode error from run termination. More...
 
static void ls_encode_run (JLSState *state, PutBitContext *pb, int run, int comp, int trail)
 Encode run value as specified by JPEG-LS standard. More...
 
static void ls_encode_line (JLSState *state, PutBitContext *pb, void *last, void *cur, int last2, int w, int stride, int comp, int bits)
 Encode one line of image. More...
 
static void ls_store_lse (JLSState *state, PutBitContext *pb)
 
static int encode_picture_ls (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 
static av_cold int encode_init_ls (AVCodecContext *ctx)
 

Variables

AVCodec ff_jpegls_encoder
 

Detailed Description

JPEG-LS encoder.

Definition in file jpeglsenc.c.

Function Documentation

static av_cold int encode_init_ls ( AVCodecContext ctx)
static

Definition at line 384 of file jpeglsenc.c.

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

Definition at line 230 of file jpeglsenc.c.

static void ls_encode_line ( JLSState state,
PutBitContext pb,
void last,
void cur,
int  last2,
int  w,
int  stride,
int  comp,
int  bits 
)
inlinestatic

Encode one line of image.

Definition at line 116 of file jpeglsenc.c.

Referenced by encode_picture_ls().

static void ls_encode_regular ( JLSState state,
PutBitContext pb,
int  Q,
int  err 
)
inlinestatic

Encode error from regular symbol.

Definition at line 41 of file jpeglsenc.c.

Referenced by ls_encode_line().

static void ls_encode_run ( JLSState state,
PutBitContext pb,
int  run,
int  comp,
int  trail 
)
inlinestatic

Encode run value as specified by JPEG-LS standard.

Definition at line 96 of file jpeglsenc.c.

Referenced by ls_encode_line().

static void ls_encode_runterm ( JLSState state,
PutBitContext pb,
int  RItype,
int  err,
int  limit_add 
)
inlinestatic

Encode error from run termination.

Definition at line 66 of file jpeglsenc.c.

Referenced by ls_encode_line().

static void ls_store_lse ( JLSState state,
PutBitContext pb 
)
static

Definition at line 211 of file jpeglsenc.c.

Referenced by encode_picture_ls().

Variable Documentation

AVCodec ff_jpegls_encoder
Initial value:
= {
.name = "jpegls",
.priv_data_size = sizeof(JpeglsContext),
.encode2 = encode_picture_ls,
.pix_fmts = (const enum AVPixelFormat[]){
},
.long_name = NULL_IF_CONFIG_SMALL("JPEG-LS"),
}
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:70
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int encode_picture_ls(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: jpeglsenc.c:230
#define AV_PIX_FMT_GRAY16
Definition: pixfmt.h:266
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:71
static av_cold int encode_init_ls(AVCodecContext *ctx)
Definition: jpeglsenc.c:384
Y , 8bpp.
Definition: pixfmt.h:76
AVPixelFormat
Pixel format.
Definition: pixfmt.h:66
struct JpeglsContext JpeglsContext

Definition at line 397 of file jpeglsenc.c.