OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_img_io.h>
Public Member Functions | |
ppm_in (mem_fixed_allocator *p=NULL) | |
virtual | ~ppm_in () |
void | open (const char *filename) |
void | finalize_alloc () |
virtual ui32 | read (const line_buf *line, ui32 comp_num) |
void | close () |
void | set_planar (bool planar) |
size | get_size () |
ui32 | get_width () |
ui32 | get_height () |
ui32 | get_max_val () |
ui32 | get_num_components () |
ui32 | get_bit_depth (ui32 comp_num) |
bool | get_is_signed (ui32 comp_num) |
point | get_comp_subsampling (ui32 comp_num) |
![]() | |
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 |
mem_fixed_allocator * | alloc_p |
void * | temp_buf |
ui32 | width |
ui32 | height |
ui32 | num_comps |
ui32 | max_val |
ui32 | max_val_num_bits |
ui32 | bytes_per_sample |
ui32 | num_ele_per_line |
ui32 | temp_buf_byte_size |
ui32 | cur_line |
si64 | start_of_data |
int | planar |
ui32 | bit_depth [3] |
bool | is_signed [3] |
point | subsampling [3] |
Definition at line 81 of file ojph_img_io.h.
|
inline |
Definition at line 84 of file ojph_img_io.h.
References alloc_p, bit_depth, bytes_per_sample, cur_line, fh, fname, height, is_signed, max_val, max_val_num_bits, num_comps, num_ele_per_line, planar, start_of_data, subsampling, temp_buf, temp_buf_byte_size, and width.
|
inlinevirtual |
Definition at line 102 of file ojph_img_io.h.
|
inlinevirtual |
Reimplemented from ojph::image_in_base.
Definition at line 112 of file ojph_img_io.h.
void ojph::ppm_in::finalize_alloc | ( | ) |
Definition at line 326 of file ojph_img_io.cpp.
References alloc_p, bytes_per_sample, num_comps, ojph::mem_fixed_allocator::post_alloc_data(), temp_buf, and width.
Definition at line 124 of file ojph_img_io.h.
References fh, num_comps, and subsampling.
Referenced by main().
|
inline |
Definition at line 117 of file ojph_img_io.h.
Referenced by load_ppm(), and main().
|
inline |
|
inline |
|
inline |
Definition at line 119 of file ojph_img_io.h.
Referenced by load_ppm(), and main().
|
inline |
Definition at line 115 of file ojph_img_io.h.
|
inline |
Definition at line 116 of file ojph_img_io.h.
Referenced by load_ppm(), and main().
void ojph::ppm_in::open | ( | const char * | filename | ) |
Definition at line 245 of file ojph_img_io.cpp.
References alloc_p, bit_depth, bytes_per_sample, close(), ojph::count_leading_zeros(), cur_line, ojph::eat_white_spaces(), fh, fname, height, max_val, max_val_num_bits, num_comps, num_ele_per_line, OJPH_ERROR, ojph::ojph_ftell(), ojph::mem_fixed_allocator::pre_alloc_data(), start_of_data, temp_buf, temp_buf_byte_size, and width.
Referenced by load_ppm(), and main().
Implements ojph::image_in_base.
Definition at line 338 of file ojph_img_io.cpp.
References ojph::be2le(), bytes_per_sample, close(), cur_line, fh, fname, height, ojph::line_buf::i32, num_comps, num_ele_per_line, OJPH_ERROR, ojph::ojph_fseek(), planar, ojph::line_buf::size, start_of_data, temp_buf, temp_buf_byte_size, and width.
Referenced by load_ppm().
|
inline |
|
private |
Definition at line 130 of file ojph_img_io.h.
Referenced by finalize_alloc(), open(), ppm_in(), and ~ppm_in().
|
private |
Definition at line 139 of file ojph_img_io.h.
Referenced by get_bit_depth(), open(), and ppm_in().
|
private |
Definition at line 133 of file ojph_img_io.h.
Referenced by finalize_alloc(), open(), ppm_in(), and read().
|
private |
Definition at line 136 of file ojph_img_io.h.
|
private |
Definition at line 128 of file ojph_img_io.h.
Referenced by close(), get_bit_depth(), get_comp_subsampling(), get_height(), get_is_signed(), get_max_val(), get_num_components(), get_size(), get_width(), open(), ppm_in(), and read().
|
private |
|
private |
Definition at line 132 of file ojph_img_io.h.
Referenced by get_height(), get_size(), open(), ppm_in(), and read().
|
private |
Definition at line 140 of file ojph_img_io.h.
Referenced by get_is_signed(), and ppm_in().
|
private |
Definition at line 132 of file ojph_img_io.h.
Referenced by get_max_val(), open(), and ppm_in().
|
private |
Definition at line 132 of file ojph_img_io.h.
|
private |
Definition at line 132 of file ojph_img_io.h.
Referenced by finalize_alloc(), get_bit_depth(), get_comp_subsampling(), get_is_signed(), get_num_components(), open(), ppm_in(), and read().
|
private |
Definition at line 133 of file ojph_img_io.h.
|
private |
Definition at line 138 of file ojph_img_io.h.
Referenced by ppm_in(), read(), and set_planar().
|
private |
Definition at line 137 of file ojph_img_io.h.
|
private |
Definition at line 141 of file ojph_img_io.h.
Referenced by get_comp_subsampling(), and ppm_in().
|
private |
Definition at line 131 of file ojph_img_io.h.
Referenced by finalize_alloc(), open(), ppm_in(), read(), and ~ppm_in().
|
private |
Definition at line 134 of file ojph_img_io.h.
|
private |
Definition at line 132 of file ojph_img_io.h.
Referenced by finalize_alloc(), get_size(), get_width(), open(), ppm_in(), and read().