FFmpeg
|
JPEG 2000 structures and defines common to encoder and decoder. More...
Go to the source code of this file.
Data Structures | |
struct | Jpeg2000T1Context |
struct | Jpeg2000TgtNode |
struct | Jpeg2000CodingStyle |
struct | Jpeg2000QuantStyle |
struct | Jpeg2000Pass |
struct | Jpeg2000Cblk |
struct | Jpeg2000Prec |
struct | Jpeg2000Band |
struct | Jpeg2000ResLevel |
struct | Jpeg2000Component |
Enumerations | |
enum | Jpeg2000Markers { JPEG2000_SOC = 0xff4f, JPEG2000_SIZ = 0xff51, JPEG2000_COD, JPEG2000_COC, JPEG2000_TLM = 0xff55, JPEG2000_PLM = 0xff57, JPEG2000_PLT, JPEG2000_QCD = 0xff5c, JPEG2000_QCC, JPEG2000_RGN, JPEG2000_POC, JPEG2000_PPM, JPEG2000_PPT, JPEG2000_CRG = 0xff63, JPEG2000_COM, JPEG2000_SOT = 0xff90, JPEG2000_SOP, JPEG2000_EPH, JPEG2000_SOD, JPEG2000_EOC = 0xffd9, JPEG2000_SOC = 0xff4f, JPEG2000_SIZ = 0xff51, JPEG2000_COD, JPEG2000_COC, JPEG2000_TLM = 0xff55, JPEG2000_PLM = 0xff57, JPEG2000_PLT, JPEG2000_QCD = 0xff5c, JPEG2000_QCC, JPEG2000_RGN, JPEG2000_POC, JPEG2000_PPM, JPEG2000_PPT, JPEG2000_CRG = 0xff63, JPEG2000_COM, JPEG2000_SOT = 0xff90, JPEG2000_SOP, JPEG2000_EPH, JPEG2000_SOD, JPEG2000_EOC = 0xffd9 } |
enum | Jpeg2000Quantsty { JPEG2000_QSTY_NONE, JPEG2000_QSTY_SI, JPEG2000_QSTY_SE, JPEG2000_QSTY_NONE, JPEG2000_QSTY_SI, JPEG2000_QSTY_SE } |
Functions | |
static int | ff_jpeg2000_ceildivpow2 (int a, int b) |
static int | ff_jpeg2000_ceildiv (int a, int b) |
Jpeg2000TgtNode * | ff_j2k_tag_tree_init (int w, int h) |
void | ff_jpeg2000_init_tier1_luts (void) |
void | ff_j2k_set_significant (Jpeg2000T1Context *t1, int x, int y, int negative) |
static int | ff_jpeg2000_getsigctxno (int flag, int bandno) |
static int | ff_jpeg2000_getrefctxno (int flag) |
static int | ff_jpeg2000_getsgnctxno (int flag, int *xorbit) |
int | ff_j2k_init_component (Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty, Jpeg2000QuantStyle *qntsty, int cbps, int dx, int dy, AVCodecContext *avctx) |
void | ff_j2k_reinit (Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty) |
void | ff_j2k_cleanup (Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty) |
Variables | |
uint8_t | ff_jpeg2000_sigctxno_lut [256][4] |
static const uint8_t | refctxno_lut [2][2] = { { 14, 15 }, { 16, 16 } } |
uint8_t | ff_jpeg2000_sgnctxno_lut [16][16] |
uint8_t | ff_jpeg2000_xorbit_lut [16][16] |
JPEG 2000 structures and defines common to encoder and decoder.
Definition in file j2k.h.
#define JPEG2000_T1_SIG_N 0x0001 |
Definition at line 74 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), getsgnctxno(), and getsigctxno().
#define JPEG2000_T1_SIG_E 0x0002 |
Definition at line 75 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), getsgnctxno(), and getsigctxno().
#define JPEG2000_T1_SIG_W 0x0004 |
Definition at line 76 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), getsgnctxno(), and getsigctxno().
#define JPEG2000_T1_SIG_S 0x0008 |
Definition at line 77 of file j2k.h.
Referenced by decode_clnpass(), decode_sigpass(), ff_j2k_set_significant(), ff_jpeg2000_set_significance(), getsgnctxno(), and getsigctxno().
#define JPEG2000_T1_SIG_NE 0x0010 |
Definition at line 78 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), and getsigctxno().
#define JPEG2000_T1_SIG_NW 0x0020 |
Definition at line 79 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), and getsigctxno().
#define JPEG2000_T1_SIG_SE 0x0040 |
Definition at line 80 of file j2k.h.
Referenced by decode_clnpass(), decode_sigpass(), ff_j2k_set_significant(), ff_jpeg2000_set_significance(), and getsigctxno().
#define JPEG2000_T1_SIG_SW 0x0080 |
Definition at line 81 of file j2k.h.
Referenced by decode_clnpass(), decode_sigpass(), ff_j2k_set_significant(), ff_jpeg2000_set_significance(), and getsigctxno().
#define JPEG2000_T1_SIG_NB |
Definition at line 82 of file j2k.h.
Referenced by decode_clnpass(), decode_sigpass(), encode_clnpass(), and encode_sigpass().
#define JPEG2000_T1_SGN_N 0x0100 |
Definition at line 87 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), and getsgnctxno().
#define JPEG2000_T1_SGN_S 0x0200 |
Definition at line 88 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), and getsgnctxno().
#define JPEG2000_T1_SGN_W 0x0400 |
Definition at line 89 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), and getsgnctxno().
#define JPEG2000_T1_SGN_E 0x0800 |
Definition at line 90 of file j2k.h.
Referenced by ff_j2k_set_significant(), ff_jpeg2000_set_significance(), and getsgnctxno().
#define JPEG2000_T1_VIS 0x1000 |
Definition at line 92 of file j2k.h.
Referenced by decode_clnpass(), decode_refpass(), decode_sigpass(), encode_clnpass(), encode_refpass(), and encode_sigpass().
#define JPEG2000_T1_SIG 0x2000 |
Definition at line 93 of file j2k.h.
Referenced by decode_clnpass(), decode_refpass(), decode_sigpass(), encode_clnpass(), encode_refpass(), encode_sigpass(), ff_j2k_set_significant(), and ff_jpeg2000_set_significance().
#define JPEG2000_T1_REF 0x4000 |
Definition at line 94 of file j2k.h.
Referenced by decode_refpass(), and encode_refpass().
#define JPEG2000_T1_SGN 0x8000 |
Definition at line 96 of file j2k.h.
Referenced by encode_cblk().
#define JPEG2000_CBLK_BYPASS 0x01 |
Definition at line 99 of file j2k.h.
Referenced by decode_cblk().
#define JPEG2000_CBLK_VSC 0x08 |
Definition at line 102 of file j2k.h.
Referenced by decode_cblk().
#define JPEG2000_CBLK_SEGSYM 0x20 |
Definition at line 104 of file j2k.h.
Referenced by decode_cblk().
#define JPEG2000_CSTY_EPH 0x04 |
Definition at line 109 of file j2k.h.
Referenced by decode_packet(), and jpeg2000_decode_packet().
#define JPEG2000_PGOD_LRCP 0x00 |
Definition at line 112 of file j2k.h.
Referenced by jpeg2000_decode_packets().
#define JPEG2000_PGOD_CPRL 0x04 |
Definition at line 116 of file j2k.h.
Referenced by jpeg2000_decode_packets().
enum Jpeg2000Markers |
enum Jpeg2000Quantsty |
|
inlinestatic |
Definition at line 204 of file j2k.h.
Referenced by encode_tile(), ff_j2k_init_component(), ff_jpeg2000_init_component(), get_siz(), init_tile(), init_tiles(), and jpeg2000_decode_packets().
|
inlinestatic |
Definition at line 209 of file j2k.h.
Referenced by ff_j2k_init_component(), get_siz(), and init_tiles().
Jpeg2000TgtNode* ff_j2k_tag_tree_init | ( | int | w, |
int | h | ||
) |
Definition at line 51 of file j2k.c.
Referenced by ff_j2k_init_component().
Definition at line 148 of file jpeg2000.c.
Referenced by j2kenc_init(), and jpeg2000_init_static_data().
void ff_j2k_set_significant | ( | Jpeg2000T1Context * | t1, |
int | x, | ||
int | y, | ||
int | negative | ||
) |
Definition at line 153 of file j2k.c.
Referenced by decode_clnpass(), decode_sigpass(), encode_clnpass(), and encode_sigpass().
|
inlinestatic |
Definition at line 231 of file j2k.h.
Referenced by decode_clnpass(), decode_sigpass(), encode_clnpass(), and encode_sigpass().
|
inlinestatic |
Definition at line 240 of file j2k.h.
Referenced by decode_refpass(), and encode_refpass().
|
inlinestatic |
Definition at line 249 of file j2k.h.
Referenced by decode_clnpass(), decode_sigpass(), encode_clnpass(), and encode_sigpass().
int ff_j2k_init_component | ( | Jpeg2000Component * | comp, |
Jpeg2000CodingStyle * | codsty, | ||
Jpeg2000QuantStyle * | qntsty, | ||
int | cbps, | ||
int | dx, | ||
int | dy, | ||
AVCodecContext * | avctx | ||
) |
Definition at line 178 of file j2k.c.
Referenced by init_tile(), and init_tiles().
void ff_j2k_reinit | ( | Jpeg2000Component * | comp, |
Jpeg2000CodingStyle * | codsty | ||
) |
void ff_j2k_cleanup | ( | Jpeg2000Component * | comp, |
Jpeg2000CodingStyle * | codsty | ||
) |
Definition at line 465 of file j2k.c.
Referenced by cleanup(), and jpeg2000_dec_cleanup().
uint8_t ff_jpeg2000_sigctxno_lut[256][4] |
Definition at line 84 of file jpeg2000.c.
Referenced by ff_jpeg2000_getsigctxno(), and ff_jpeg2000_init_tier1_luts().
|
static |
Definition at line 236 of file j2k.h.
Referenced by ff_jpeg2000_getrefctxno().
uint8_t ff_jpeg2000_sgnctxno_lut[16][16] |
Definition at line 129 of file jpeg2000.c.
Referenced by ff_jpeg2000_getsgnctxno(), and ff_jpeg2000_init_tier1_luts().
uint8_t ff_jpeg2000_xorbit_lut[16][16] |
Definition at line 129 of file jpeg2000.c.
Referenced by ff_jpeg2000_getsgnctxno(), and ff_jpeg2000_init_tier1_luts().