All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
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 "mjpegenc.h"
#include "jpegls.h"

Go to the source code of this file.


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)


AVCodec ff_jpegls_encoder

Detailed Description

JPEG-LS encoder.

Definition in file jpeglsenc.c.

Function Documentation

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

Encode error from regular symbol.

Definition at line 41 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 

Encode error from run termination.

Definition at line 69 of file jpeglsenc.c.

Referenced by ls_encode_line().

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

Encode run value as specified by JPEG-LS standard.

Definition at line 102 of file jpeglsenc.c.

Referenced by ls_encode_line().

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.

Definition at line 124 of file jpeglsenc.c.

Referenced by encode_picture_ls().

static void ls_store_lse ( JLSState state,
PutBitContext pb 

Definition at line 227 of file jpeglsenc.c.

Referenced by encode_picture_ls().

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

Definition at line 250 of file jpeglsenc.c.

static av_cold int encode_init_ls ( AVCodecContext ctx)

Definition at line 415 of file jpeglsenc.c.

Variable Documentation

AVCodec ff_jpegls_encoder
Initial value:
= {
.name = "jpegls",
.init = encode_init_ls,
.encode2 = encode_picture_ls,
.pix_fmts = (const enum AVPixelFormat[]) {
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:65
Codec is intra only.
Definition: avcodec.h:940
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int encode_picture_ls(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: jpeglsenc.c:250
Codec supports frame-level multithreading.
Definition: avcodec.h:920
#define AV_PIX_FMT_GRAY16
Definition: pixfmt.h:364
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:66
static av_cold int encode_init_ls(AVCodecContext *ctx)
Definition: jpeglsenc.c:415
Y , 8bpp.
Definition: pixfmt.h:71
Pixel format.
Definition: pixfmt.h:61

Definition at line 435 of file jpeglsenc.c.