FFmpeg
 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.

Functions

static void ls_encode_regular (JLSState *state, PutBitContext *pb, int Q, int err)
 Encode error from regular symbol.
 
static void ls_encode_runterm (JLSState *state, PutBitContext *pb, int RItype, int err, int limit_add)
 Encode error from run termination.
 
static void ls_encode_run (JLSState *state, PutBitContext *pb, int run, int comp, int trail)
 Encode run value as specified by JPEG-LS standard.
 
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.
 
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_close (AVCodecContext *avctx)
 
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 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_runterm ( JLSState state,
PutBitContext pb,
int  RItype,
int  err,
int  limit_add 
)
inlinestatic

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 
)
inlinestatic

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 
)
inlinestatic

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 
)
static

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 
)
static

Definition at line 250 of file jpeglsenc.c.

static av_cold int encode_close ( AVCodecContext avctx)
static

Definition at line 415 of file jpeglsenc.c.

static av_cold int encode_init_ls ( AVCodecContext ctx)
static

Definition at line 421 of file jpeglsenc.c.

Variable Documentation

AVCodec ff_jpegls_encoder
Initial value:

Definition at line 441 of file jpeglsenc.c.