libavcodec/j2k.c File Reference

JPEG2000 image encoder and decoder common functions. More...

#include "avcodec.h"
#include "j2k.h"

Go to the source code of this file.

Defines

#define SHL(a, n)   ((n)>=0 ? (a) << (n) : (a) >> -(n))

Functions

static int tag_tree_size (int w, int h)
 allocate the memory for tag tree
J2kTgtNodeff_j2k_tag_tree_init (int w, int h)
static void tag_tree_zero (J2kTgtNode *t, int w, int h)
static int getnbctxno (int flag, int bandno, int vert_causal_ctx_csty_symbol)
static int getsgnctxno (int flag, uint8_t *xorbit)
void ff_j2k_init_tier1_luts (void)
void ff_j2k_set_significant (J2kT1Context *t1, int x, int y, int negative)
int ff_j2k_init_component (J2kComponent *comp, J2kCodingStyle *codsty, J2kQuantStyle *qntsty, int cbps, int dx, int dy)
void ff_j2k_reinit (J2kComponent *comp, J2kCodingStyle *codsty)
void ff_j2k_cleanup (J2kComponent *comp, J2kCodingStyle *codsty)

Variables

uint8_t ff_j2k_nbctxno_lut [256][4]
uint8_t ff_j2k_sgnctxno_lut [16][16]
uint8_t ff_j2k_xorbit_lut [16][16]


Detailed Description

JPEG2000 image encoder and decoder common functions.

Author:
Kamil Nowosad

Definition in file j2k.c.


Define Documentation

#define SHL ( a,
 )     ((n)>=0 ? (a) << (n) : (a) >> -(n))

Definition at line 32 of file j2k.c.

Referenced by ff_j2k_init_component().


Function Documentation

void ff_j2k_cleanup ( J2kComponent comp,
J2kCodingStyle codsty 
)

Definition at line 369 of file j2k.c.

Referenced by cleanup().

int ff_j2k_init_component ( J2kComponent comp,
J2kCodingStyle codsty,
J2kQuantStyle qntsty,
int  cbps,
int  dx,
int  dy 
)

Definition at line 202 of file j2k.c.

Referenced by init_tile(), and init_tiles().

void ff_j2k_init_tier1_luts ( void   ) 

Definition at line 170 of file j2k.c.

Referenced by j2kdec_init(), and j2kenc_init().

void ff_j2k_reinit ( J2kComponent comp,
J2kCodingStyle codsty 
)

Definition at line 348 of file j2k.c.

Referenced by reinit().

void ff_j2k_set_significant ( J2kT1Context t1,
int  x,
int  y,
int  negative 
)

Definition at line 181 of file j2k.c.

Referenced by decode_clnpass(), decode_sigpass(), encode_clnpass(), and encode_sigpass().

J2kTgtNode* ff_j2k_tag_tree_init ( int  w,
int  h 
)

Definition at line 67 of file j2k.c.

Referenced by ff_j2k_init_component().

static int getnbctxno ( int  flag,
int  bandno,
int  vert_causal_ctx_csty_symbol 
) [static]

Definition at line 108 of file j2k.c.

Referenced by ff_j2k_init_tier1_luts().

static int getsgnctxno ( int  flag,
uint8_t xorbit 
) [static]

Definition at line 155 of file j2k.c.

Referenced by ff_j2k_init_tier1_luts().

static int tag_tree_size ( int  w,
int  h 
) [static]

allocate the memory for tag tree

Definition at line 56 of file j2k.c.

Referenced by ff_j2k_tag_tree_init(), and tag_tree_zero().

static void tag_tree_zero ( J2kTgtNode t,
int  w,
int  h 
) [static]

Definition at line 96 of file j2k.c.

Referenced by ff_j2k_reinit().


Variable Documentation

Definition at line 106 of file j2k.c.

Referenced by ff_j2k_getnbctxno().

Definition at line 153 of file j2k.c.

Referenced by ff_j2k_getsgnctxno().

Definition at line 153 of file j2k.c.

Referenced by ff_j2k_getsgnctxno().


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