OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_img_io.h>
Public Member Functions | |
pfm_in (mem_fixed_allocator *p=NULL) | |
virtual | ~pfm_in () |
void | open (const char *filename) |
void | finalize_alloc () |
void | configure (ui32 *bit_depth) |
virtual ui32 | read (const line_buf *line, ui32 comp_num) |
void | close () |
size | get_size () |
ui32 | get_width () |
ui32 | get_height () |
ui32 | get_num_components () |
![]() | |
virtual | ~image_in_base () |
Private Attributes | |
FILE * | fh |
const char * | fname |
mem_fixed_allocator * | alloc_p |
float * | temp_buf |
size_t | temp_buf_byte_size |
ui32 | bit_depth [3] |
float | scale |
bool | little_endian |
ui32 | width |
ui32 | height |
ui32 | num_comps |
ui32 | cur_line |
si64 | start_of_data |
Definition at line 456 of file ojph_img_io.h.
|
inline |
Definition at line 459 of file ojph_img_io.h.
References alloc_p, bit_depth, cur_line, fh, fname, height, little_endian, num_comps, scale, start_of_data, temp_buf, temp_buf_byte_size, and width.
|
inlinevirtual |
Definition at line 474 of file ojph_img_io.h.
|
inlinevirtual |
Reimplemented from ojph::image_in_base.
Definition at line 489 of file ojph_img_io.h.
|
inline |
Definition at line 483 of file ojph_img_io.h.
References bit_depth, and num_comps.
Referenced by main().
void ojph::pfm_in::finalize_alloc | ( | ) |
Definition at line 622 of file ojph_img_io.cpp.
References alloc_p, num_comps, ojph::mem_fixed_allocator::post_alloc_data(), temp_buf, and width.
|
inline |
|
inline |
|
inline |
Definition at line 491 of file ojph_img_io.h.
|
inline |
void ojph::pfm_in::open | ( | const char * | filename | ) |
Definition at line 547 of file ojph_img_io.cpp.
References alloc_p, close(), cur_line, ojph::eat_white_spaces(), fh, fname, height, little_endian, num_comps, OJPH_ERROR, ojph::ojph_ftell(), ojph::mem_fixed_allocator::pre_alloc_data(), scale, start_of_data, temp_buf, temp_buf_byte_size, and width.
Referenced by main().
Implements ojph::image_in_base.
Definition at line 630 of file ojph_img_io.cpp.
References ojph::be2le(), bit_depth, close(), cur_line, ojph::line_buf::f32, fh, fname, height, little_endian, num_comps, OJPH_ERROR, ojph::ojph_fseek(), ojph::line_buf::size, start_of_data, temp_buf, temp_buf_byte_size, and width.
|
private |
Definition at line 499 of file ojph_img_io.h.
Referenced by finalize_alloc(), open(), pfm_in(), and ~pfm_in().
|
private |
Definition at line 502 of file ojph_img_io.h.
Referenced by configure(), pfm_in(), and read().
|
private |
Definition at line 506 of file ojph_img_io.h.
|
private |
Definition at line 497 of file ojph_img_io.h.
Referenced by close(), get_height(), get_num_components(), get_size(), get_width(), open(), pfm_in(), and read().
|
private |
|
private |
Definition at line 505 of file ojph_img_io.h.
Referenced by get_height(), get_size(), open(), pfm_in(), and read().
|
private |
Definition at line 504 of file ojph_img_io.h.
|
private |
Definition at line 505 of file ojph_img_io.h.
Referenced by configure(), finalize_alloc(), get_num_components(), open(), pfm_in(), and read().
|
private |
Definition at line 503 of file ojph_img_io.h.
|
private |
Definition at line 507 of file ojph_img_io.h.
|
private |
Definition at line 500 of file ojph_img_io.h.
Referenced by finalize_alloc(), open(), pfm_in(), read(), and ~pfm_in().
|
private |
Definition at line 501 of file ojph_img_io.h.
|
private |
Definition at line 505 of file ojph_img_io.h.
Referenced by finalize_alloc(), get_size(), get_width(), open(), pfm_in(), and read().