OPJ_BYTE * end
pointer to the end of the buffer
Definition: bio.h:60
unsigned char OPJ_BYTE
Definition: openjpeg.h:123
float OPJ_FLOAT32
Definition: openjpeg.h:121
ptrdiff_t opj_bio_numbytes(opj_bio_t *bio)
Number of bytes written.
Definition: bio.c:142
void * opj_calloc(size_t num, size_t size)
Allocate a memory block with elements initialized to 0.
Definition: opj_malloc.c:198
OPJ_FLOAT64 opj_clock(void)
Difference in successive opj_clock() calls tells you the elapsed time.
Definition: bench_dwt.c:116
opj_image_t * image
image header
Definition: tcd.h:270
OPJ_UINT32 dy
YRsiz: vertical separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:681
void opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len)
Init encoder.
Definition: bio.c:147
void opj_thread_pool_destroy(opj_thread_pool_t *tp)
Destroy a thread pool.
Definition: thread.c:919
void usage(void)
Definition: bench_dwt.c:106
void opj_bio_destroy(opj_bio_t *bio)
Destroy a previously created BIO handle.
Definition: bio.c:135
OPJ_INT32 x0
Definition: tcd.h:178
OPJ_BOOL opj_bio_flush(opj_bio_t *bio)
Flush bits.
Definition: bio.c:195
int main(int argc, char **argv)
Definition: bench_dwt.c:153
OPJ_INT32 y1
Definition: tcd.h:178
OPJ_INT32 x1
Definition: tcd.h:178
OPJ_UINT32 numcomps
number of components in the image
Definition: openjpeg.h:719
OPJ_UINT32 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n)
Read bits.
Definition: bio.c:175
opj_bio_t * opj_bio_create(void)
Create a new BIO handle.
Definition: bio.c:129
void opj_bio_destroy(opj_bio_t *bio)
Destroy a previously created BIO handle.
Definition: bio.c:135
OPJ_INT32 x1
Definition: tcd.h:196
void opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len)
Init decoder.
Definition: bio.c:156
void opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n)
Write bits.
Definition: bio.c:165
Defines a single image component.
Definition: openjpeg.h:677
opj_tcd_resolution_t * resolutions
Definition: tcd.h:204
OPJ_BOOL opj_dwt_encode(opj_tcd_t *p_tcd, opj_tcd_tilecomp_t *tilec)
Forward 5-3 wavelet transform in 2-D.
Definition: dwt.c:1902
static void opj_bio_putbit(opj_bio_t *bio, OPJ_UINT32 b)
Write a bit.
Definition: bio.c:103
OPJ_BOOL opj_bio_flush(opj_bio_t *bio)
Flush bits.
Definition: bio.c:195
double OPJ_FLOAT64
Definition: openjpeg.h:122
OPJ_INT32 x0
Definition: tcd.h:196
OPJ_BYTE * start
pointer to the start of the buffer
Definition: bio.h:58
OPJ_UINT32 win_y0
Definition: tcd.h:283
OPJ_BOOL opj_dwt_encode_real(opj_tcd_t *p_tcd, opj_tcd_tilecomp_t *tilec)
Forward 9-7 wavelet transform in 2-D.
Definition: dwt.c:1942
OPJ_INT32 x1
Definition: tcd.h:235
OPJ_BOOL whole_tile_decoding
Only valid for decoding.
Definition: tcd.h:287
FIXME DOC.
Definition: tcd.h:247
OPJ_UINT32 buf
temporary place where each byte is read or written
Definition: bio.h:64
OPJ_UINT32 minimum_num_resolutions
Definition: tcd.h:202
int OPJ_BOOL
Definition: openjpeg.h:116
size_t OPJ_SIZE_T
Definition: openjpeg.h:139
Individual bit input-output stream (BIO)
Definition: bio.h:56
OPJ_INT32 getValue(OPJ_UINT32 i)
Definition: bench_dwt.c:42
Tile-component resolution structure.
Definition: tcd.h:176
OPJ_UINT32 win_y1
Definition: tcd.h:285
opj_tcd_tile_t * tiles
Definition: tcd.h:248
Tile-component structure.
Definition: tcd.h:194
int32_t OPJ_INT32
Definition: openjpeg.h:131
void init_tilec(opj_tcd_tilecomp_t *l_tilec, OPJ_INT32 x0, OPJ_INT32 y0, OPJ_INT32 x1, OPJ_INT32 y1, OPJ_UINT32 numresolutions, OPJ_BOOL irreversible)
Definition: bench_dwt.c:47
OPJ_BYTE * bp
pointer to the present position in the buffer
Definition: bio.h:62
static OPJ_UINT32 opj_bio_getbit(opj_bio_t *bio)
Read a bit.
Definition: bio.c:113
void opj_bio_write(opj_bio_t *bio, OPJ_UINT32 v, OPJ_UINT32 n)
Write bits.
Definition: bio.c:165
OPJ_INT32 y0
Definition: tcd.h:178
ptrdiff_t opj_bio_numbytes(opj_bio_t *bio)
Number of bytes written.
Definition: bio.c:142
OPJ_INT32 x0
Definition: tcd.h:235
#define OPJ_TRUE
Definition: openjpeg.h:117
void * opj_malloc(size_t size)
Allocate an uninitialized memory block.
Definition: opj_malloc.c:191
OPJ_INT32 y1
Definition: tcd.h:235
OPJ_UINT32 numresolutions
Definition: tcd.h:200
OPJ_INT32 y0
Definition: tcd.h:196
void opj_bio_init_dec(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len)
Init decoder.
Definition: bio.c:156
void opj_free(void *ptr)
Deallocates or frees a memory block.
Definition: opj_malloc.c:246
OPJ_UINT32 numcomps
Definition: tcd.h:236
OPJ_UINT32 win_x1
Definition: tcd.h:284
void opj_bio_init_enc(opj_bio_t *bio, OPJ_BYTE *bp, OPJ_UINT32 len)
Init encoder.
Definition: bio.c:147
OPJ_BOOL opj_bio_inalign(opj_bio_t *bio)
Passes the ending bits (coming from flushing)
Definition: bio.c:208
OPJ_INT32 * data
Definition: tcd.h:209
opj_tcd_image_t * tcd_image
info on each image tile
Definition: tcd.h:268
static OPJ_BOOL opj_bio_byteout(opj_bio_t *bio)
Write a byte.
Definition: bio.c:81
OPJ_BOOL opj_dwt_decode(opj_tcd_t *p_tcd, opj_tcd_tilecomp_t *tilec, OPJ_UINT32 numres)
Inverse 5-3 wavelet transform in 2-D.
Definition: dwt.c:1913
opj_thread_pool_t * opj_thread_pool_create(int num_threads)
Create a new thread pool.
Definition: thread.c:625
opj_thread_pool_t * thread_pool
Thread pool.
Definition: tcd.h:280
FIXME DOC.
Definition: tcd.h:233
OPJ_BOOL opj_bio_inalign(opj_bio_t *bio)
Passes the ending bits (coming from flushing)
Definition: bio.c:208
static OPJ_FLOAT64 opj_wallclock(void)
Definition: bench_dwt.c:142
opj_image_comp_t * comps
image components
Definition: openjpeg.h:723
static OPJ_BOOL opj_bio_bytein(opj_bio_t *bio)
Read a byte.
Definition: bio.c:92
OPJ_INT32 y1
Definition: tcd.h:196
uint32_t OPJ_UINT32
Definition: openjpeg.h:132
OPJ_UINT32 dx
XRsiz: horizontal separation of a sample of ith component with respect to the reference grid.
Definition: openjpeg.h:679
OPJ_UINT32 opj_bio_read(opj_bio_t *bio, OPJ_UINT32 n)
Read bits.
Definition: bio.c:175
opj_bio_t * opj_bio_create(void)
Create a new BIO handle.
Definition: bio.c:129
#define OPJ_FALSE
Definition: openjpeg.h:118
OPJ_INT32 y0
Definition: tcd.h:235
struct opj_bio opj_bio_t
Individual bit input-output stream (BIO)
OPJ_BOOL opj_dwt_decode_real(opj_tcd_t *p_tcd, opj_tcd_tilecomp_t *OPJ_RESTRICT tilec, OPJ_UINT32 numres)
Inverse 9-7 wavelet transform in 2-D.
Definition: dwt.c:3758
OPJ_UINT32 win_x0
Coordinates of the window of interest, in grid reference space.
Definition: tcd.h:282
void free_tilec(opj_tcd_tilecomp_t *l_tilec)
Definition: bench_dwt.c:100
Defines image data and characteristics.
Definition: openjpeg.h:709
opj_tcd_tilecomp_t * comps
Definition: tcd.h:237
static INLINE OPJ_INT32 opj_int_ceildivpow2(OPJ_INT32 a, OPJ_INT32 b)
Divide an integer by a power of 2 and round upwards.
Definition: opj_intmath.h:180
Tile coder/decoder.
Definition: tcd.h:256
OPJ_UINT32 ct
coder : number of bits free to write.
Definition: bio.h:66