FFmpeg
Functions | Variables
jpeglsdec.c File Reference
#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "internal.h"
#include "mathops.h"
#include "mjpeg.h"
#include "mjpegdec.h"
#include "jpegls.h"
#include "jpeglsdec.h"

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

◆ ff_jpegls_decode_lse()

int ff_jpegls_decode_lse ( MJpegDecodeContext s)

Decode LSE block with initialization parameters.

Definition at line 51 of file jpeglsdec.c.

Referenced by ff_mjpeg_decode_frame().

◆ ls_get_code_regular()

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 148 of file jpeglsdec.c.

Referenced by ls_decode_line().

◆ ls_get_code_runterm()

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 179 of file jpeglsdec.c.

Referenced by ls_decode_line().

◆ ls_decode_line()

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 227 of file jpeglsdec.c.

Referenced by ff_jpegls_decode_picture().

◆ ff_jpegls_decode_picture()

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

Definition at line 348 of file jpeglsdec.c.

Referenced by ff_mjpeg_decode_sos().

Variable Documentation

◆ ff_jpegls_decoder

AVCodec ff_jpegls_decoder
Initial value:
= {
.name = "jpegls",
.long_name = NULL_IF_CONFIG_SMALL("JPEG-LS"),
.priv_data_size = sizeof(MJpegDecodeContext),
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 535 of file jpeglsdec.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
ff_mjpeg_decode_init
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
Definition: mjpegdec.c:139
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
ff_mjpeg_decode_end
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
Definition: mjpegdec.c:2748
MJpegDecodeContext
Definition: mjpegdec.h:46
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:981
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
ff_mjpeg_decode_frame
int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mjpegdec.c:2269
AV_CODEC_ID_JPEGLS
@ AV_CODEC_ID_JPEGLS
Definition: avcodec.h:229
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201