jpeglsdec.c File Reference

JPEG-LS decoder. More...

#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "mathops.h"
#include "mjpeg.h"
#include "mjpegdec.h"
#include "jpegls.h"
#include "jpeglsdec.h"
Include dependency graph for jpeglsdec.c:

Go to the source code of this file.

Functions

int ff_jpegls_decode_lse (MJpegDecodeContext *s)
 Decode LSE block with initialization parameters. More...
 
static int ls_get_code_regular (GetBitContext *gb, JLSState *state, int Q)
 Get context-dependent Golomb code, decode it and update context. More...
 
static int ls_get_code_runterm (GetBitContext *gb, JLSState *state, int RItype, int limit_add)
 Get Golomb code, decode it and update state for run termination. More...
 
static void ls_decode_line (JLSState *state, MJpegDecodeContext *s, void *last, void *dst, int last2, int w, int stride, int comp, int bits)
 Decode one line of image. More...
 
int ff_jpegls_decode_picture (MJpegDecodeContext *s, int near, int point_transform, int ilv)
 

Variables

AVCodec ff_jpegls_decoder
 

Detailed Description

JPEG-LS decoder.

Definition in file jpeglsdec.c.

Function Documentation

int ff_jpegls_decode_lse ( MJpegDecodeContext s)

Decode LSE block with initialization parameters.

Definition at line 52 of file jpeglsdec.c.

Referenced by ff_mjpeg_decode_frame().

int ff_jpegls_decode_picture ( MJpegDecodeContext s,
int  near,
int  point_transform,
int  ilv 
)

Definition at line 261 of file jpeglsdec.c.

Referenced by ff_mjpeg_decode_sos().

static void ls_decode_line ( JLSState state,
MJpegDecodeContext s,
void last,
void dst,
int  last2,
int  w,
int  stride,
int  comp,
int  bits 
)
inlinestatic

Decode one line of image.

Definition at line 156 of file jpeglsdec.c.

Referenced by ff_jpegls_decode_picture().

static int ls_get_code_regular ( GetBitContext gb,
JLSState state,
int  Q 
)
inlinestatic

Get context-dependent Golomb code, decode it and update context.

Definition at line 89 of file jpeglsdec.c.

Referenced by ls_decode_line().

static int ls_get_code_runterm ( GetBitContext gb,
JLSState state,
int  RItype,
int  limit_add 
)
inlinestatic

Get Golomb code, decode it and update state for run termination.

Definition at line 117 of file jpeglsdec.c.

Referenced by ls_decode_line().

Variable Documentation

AVCodec ff_jpegls_decoder
Initial value:
= {
.name = "jpegls",
.priv_data_size = sizeof(MJpegDecodeContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("JPEG-LS"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mjpegdec.c:1629
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
Definition: mjpegdec.c:1867
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
struct MJpegDecodeContext MJpegDecodeContext
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
Definition: mjpegdec.c:83
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 375 of file jpeglsdec.c.