OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_img_io.h>
Public Member Functions | |
yuv_in () | |
virtual | ~yuv_in () |
void | open (const char *filename) |
virtual ui32 | read (const line_buf *line, ui32 comp_num) |
void | close () |
void | set_bit_depth (ui32 num_bit_depths, ui32 *bit_depth) |
void | set_img_props (const size &s, ui32 num_components, ui32 num_downsampling, const point *downsampling) |
ui32 | get_num_components () |
ui32 * | get_bit_depth () |
point * | get_comp_subsampling () |
![]() | |
virtual | ~image_in_base () |
virtual ui32 | read (const line_buf *line, ui32 comp_num)=0 |
virtual void | close () |
Private Attributes | |
FILE * | fh |
const char * | fname |
void * | temp_buf |
ui32 | width [3] |
ui32 | height [3] |
ui32 | num_com |
ui32 | bytes_per_sample [3] |
ui32 | comp_address [3] |
ui32 | cur_line |
ui32 | last_comp |
bool | planar |
ui32 | bit_depth [3] |
point | subsampling [3] |
Definition at line 347 of file ojph_img_io.h.
|
inline |
Definition at line 350 of file ojph_img_io.h.
References bit_depth, bytes_per_sample, comp_address, cur_line, fh, fname, height, last_comp, num_com, planar, subsampling, temp_buf, and width.
|
inlinevirtual |
Definition at line 368 of file ojph_img_io.h.
|
inlinevirtual |
Reimplemented from ojph::image_in_base.
Definition at line 377 of file ojph_img_io.h.
|
inline |
Definition at line 384 of file ojph_img_io.h.
|
inline |
Definition at line 385 of file ojph_img_io.h.
References fh, and subsampling.
|
inline |
Definition at line 383 of file ojph_img_io.h.
void ojph::yuv_in::open | ( | const char * | filename | ) |
Definition at line 1022 of file ojph_img_io.cpp.
References bit_depth, bytes_per_sample, comp_address, fh, fname, height, num_com, OJPH_ERROR, ojph_max, temp_buf, and width.
Referenced by load_yuv(), and main().
Implements ojph::image_in_base.
Definition at line 1047 of file ojph_img_io.cpp.
References bytes_per_sample, close(), fh, fname, ojph::line_buf::i32, num_com, OJPH_ERROR, temp_buf, and width.
Referenced by load_yuv().
Definition at line 1104 of file ojph_img_io.cpp.
References bit_depth, and OJPH_ERROR.
Referenced by load_yuv(), and main().
void ojph::yuv_in::set_img_props | ( | const size & | s, |
ui32 | num_components, | ||
ui32 | num_downsampling, | ||
const point * | downsampling | ||
) |
Definition at line 1077 of file ojph_img_io.cpp.
References ojph::size::h, height, num_com, ojph_div_ceil, OJPH_ERROR, subsampling, ojph::size::w, and width.
Referenced by load_yuv(), and main().
|
private |
Definition at line 397 of file ojph_img_io.h.
Referenced by get_bit_depth(), open(), set_bit_depth(), and yuv_in().
|
private |
Definition at line 392 of file ojph_img_io.h.
|
private |
Definition at line 393 of file ojph_img_io.h.
|
private |
Definition at line 395 of file ojph_img_io.h.
Referenced by yuv_in().
|
private |
Definition at line 388 of file ojph_img_io.h.
Referenced by close(), get_bit_depth(), get_comp_subsampling(), get_num_components(), open(), read(), and yuv_in().
|
private |
|
private |
Definition at line 391 of file ojph_img_io.h.
Referenced by open(), set_img_props(), and yuv_in().
|
private |
Definition at line 395 of file ojph_img_io.h.
Referenced by yuv_in().
|
private |
Definition at line 391 of file ojph_img_io.h.
Referenced by get_num_components(), open(), read(), set_img_props(), and yuv_in().
|
private |
Definition at line 396 of file ojph_img_io.h.
Referenced by yuv_in().
|
private |
Definition at line 398 of file ojph_img_io.h.
Referenced by get_comp_subsampling(), set_img_props(), and yuv_in().
|
private |
|
private |
Definition at line 391 of file ojph_img_io.h.
Referenced by open(), read(), set_img_props(), and yuv_in().