OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_img_io.h>
Public Member Functions | |
pfm_out () | |
virtual | ~pfm_out () |
void | open (char *filename) |
void | configure (ui32 width, ui32 height, ui32 num_components, float scale, ui32 *bit_depth) |
virtual ui32 | write (const line_buf *line, ui32 comp_num) |
virtual void | close () |
![]() | |
virtual | ~image_out_base () |
virtual ui32 | write (const line_buf *line, ui32 comp_num)=0 |
virtual void | close () |
Private Attributes | |
FILE * | fh |
const char * | fname |
float * | buffer |
size_t | buffer_size |
ui32 | width |
ui32 | height |
ui32 | num_components |
float | scale |
ui32 | bit_depth [3] |
ui32 | cur_line |
si64 | start_of_data |
Definition at line 776 of file ojph_img_io.h.
|
inline |
Definition at line 779 of file ojph_img_io.h.
References bit_depth, buffer, buffer_size, cur_line, fh, fname, height, num_components, scale, start_of_data, and width.
|
inlinevirtual |
Definition at line 791 of file ojph_img_io.h.
|
inlinevirtual |
Reimplemented from ojph::image_out_base.
Definition at line 802 of file ojph_img_io.h.
Referenced by ~pfm_out().
void ojph::pfm_out::configure | ( | ui32 | width, |
ui32 | height, | ||
ui32 | num_components, | ||
float | scale, | ||
ui32 * | bit_depth | ||
) |
Definition at line 746 of file ojph_img_io.cpp.
References bit_depth, fh, height, num_components, OJPH_ERROR, scale, and width.
Referenced by main().
void ojph::pfm_out::open | ( | char * | filename | ) |
Definition at line 726 of file ojph_img_io.cpp.
References buffer, buffer_size, cur_line, fh, fname, height, num_components, OJPH_ERROR, ojph::ojph_ftell(), scale, start_of_data, and width.
Referenced by main().
Implements ojph::image_out_base.
Definition at line 762 of file ojph_img_io.cpp.
References bit_depth, buffer, cur_line, ojph::line_buf::f32, fh, fname, height, num_components, OJPH_ERROR, ojph::ojph_fseek(), start_of_data, and width.
|
private |
Definition at line 811 of file ojph_img_io.h.
Referenced by configure(), pfm_out(), and write().
|
private |
Definition at line 807 of file ojph_img_io.h.
Referenced by open(), pfm_out(), write(), and ~pfm_out().
|
private |
Definition at line 808 of file ojph_img_io.h.
|
private |
Definition at line 812 of file ojph_img_io.h.
|
private |
Definition at line 805 of file ojph_img_io.h.
Referenced by close(), configure(), open(), pfm_out(), and write().
|
private |
|
private |
Definition at line 809 of file ojph_img_io.h.
Referenced by configure(), open(), pfm_out(), and write().
|
private |
Definition at line 809 of file ojph_img_io.h.
Referenced by configure(), open(), pfm_out(), and write().
|
private |
Definition at line 810 of file ojph_img_io.h.
Referenced by configure(), open(), and pfm_out().
|
private |
Definition at line 813 of file ojph_img_io.h.
|
private |
Definition at line 809 of file ojph_img_io.h.
Referenced by configure(), open(), pfm_out(), and write().