libavcodec/jpegls.h File Reference

JPEG-LS common code. More...

#include "avcodec.h"
#include "libavutil/common.h"

Go to the source code of this file.

Data Structures

struct  JpeglsContext
struct  JLSState

Defines

#define R(a, i)   (bits == 8 ? ((uint8_t*)(a))[i] : ((uint16_t*)(a))[i] )
#define W(a, i, v)   (bits == 8 ? (((uint8_t*)(a))[i]=v) : (((uint16_t*)(a))[i]=v))

Functions

void ff_jpegls_init_state (JLSState *state)
 Calculate initial JPEG-LS parameters.
static int ff_jpegls_quantize (JLSState *s, int v)
 Calculate quantized gradient value, used for context determination.
void ff_jpegls_reset_coding_parameters (JLSState *s, int reset_all)
 Calculate JPEG-LS codec values.
static void ff_jpegls_downscale_state (JLSState *state, int Q)
static int ff_jpegls_update_state_regular (JLSState *state, int Q, int err)

Variables

const uint8_t ff_log2_run [32]


Detailed Description

JPEG-LS common code.

Definition in file jpegls.h.


Define Documentation

#define R ( a,
 )     (bits == 8 ? ((uint8_t*)(a))[i] : ((uint16_t*)(a))[i] )

Definition at line 111 of file jpegls.h.

#define W ( a,
i,
 )     (bits == 8 ? (((uint8_t*)(a))[i]=v) : (((uint16_t*)(a))[i]=v))

Definition at line 112 of file jpegls.h.

Referenced by evolve(), init_demo(), ls_decode_line(), ls_encode_line(), main(), and put_image().


Function Documentation

static void ff_jpegls_downscale_state ( JLSState state,
int  Q 
) [inline, static]

Definition at line 80 of file jpegls.h.

Referenced by ff_jpegls_update_state_regular(), ls_encode_runterm(), and ls_get_code_runterm().

void ff_jpegls_init_state ( JLSState state  ) 

Calculate initial JPEG-LS parameters.

Definition at line 30 of file jpegls.c.

Referenced by encode_picture_ls(), and ff_jpegls_decode_picture().

static int ff_jpegls_quantize ( JLSState s,
int  v 
) [inline, static]

Calculate quantized gradient value, used for context determination.

Definition at line 57 of file jpegls.h.

Referenced by ls_decode_line(), and ls_encode_line().

void ff_jpegls_reset_coding_parameters ( JLSState s,
int  reset_all 
)

Calculate JPEG-LS codec values.

Definition at line 57 of file jpegls.c.

Referenced by encode_picture_ls(), ff_jpegls_decode_picture(), and ls_store_lse().

static int ff_jpegls_update_state_regular ( JLSState state,
int  Q,
int  err 
) [inline, static]

Definition at line 89 of file jpegls.h.

Referenced by ls_encode_regular(), and ls_get_code_regular().


Variable Documentation

const uint8_t ff_log2_run[32]

Definition at line 36 of file bitstream.c.

Referenced by decode_line(), ls_decode_line(), ls_encode_line(), and ls_encode_run().


Generated on Fri Oct 26 02:50:06 2012 for FFmpeg by  doxygen 1.5.8