OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_img_io.h>
Public Member Functions | |
ppm_out () | |
virtual | ~ppm_out () |
void | open (char *filename) |
void | configure (ui32 width, ui32 height, ui32 num_components, 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 |
ui32 | width |
ui32 | height |
ui32 | num_components |
ui32 | bit_depth |
ui32 | bytes_per_sample |
ui8 * | buffer |
ui32 | buffer_size |
ui32 | cur_line |
ui32 | samples_per_line |
ui32 | bytes_per_line |
conversion_fun | converter |
const line_buf * | lptr [3] |
Definition at line 528 of file ojph_img_io.h.
|
inline |
Definition at line 531 of file ojph_img_io.h.
References bit_depth, buffer, buffer_size, bytes_per_line, bytes_per_sample, converter, cur_line, fh, fname, height, lptr, num_components, samples_per_line, and width.
|
inlinevirtual |
Definition at line 543 of file ojph_img_io.h.
|
inlinevirtual |
Reimplemented from ojph::image_out_base.
Definition at line 554 of file ojph_img_io.h.
Referenced by ~ppm_out().
Definition at line 446 of file ojph_img_io.cpp.
References ojph::avx2_cvrt_32b1c_to_16ub1c_be(), ojph::avx2_cvrt_32b1c_to_8ub1c(), ojph::avx2_cvrt_32b3c_to_8ub3c(), bit_depth, bytes_per_line, bytes_per_sample, converter, fh, ojph::gen_cvrt_32b1c_to_16ub1c_be(), ojph::gen_cvrt_32b1c_to_8ub1c(), ojph::gen_cvrt_32b3c_to_16ub3c_be(), ojph::gen_cvrt_32b3c_to_8ub3c(), ojph::get_cpu_ext_level(), height, num_components, OJPH_ERROR, samples_per_line, ojph::sse41_cvrt_32b1c_to_16ub1c_be(), ojph::sse41_cvrt_32b1c_to_8ub1c(), ojph::sse41_cvrt_32b3c_to_16ub3c_be(), ojph::sse41_cvrt_32b3c_to_8ub3c(), width, ojph::X86_CPU_EXT_LEVEL_AVX2, and ojph::X86_CPU_EXT_LEVEL_SSE41.
Referenced by main().
void ojph::ppm_out::open | ( | char * | filename | ) |
Definition at line 386 of file ojph_img_io.cpp.
References bit_depth, buffer, buffer_size, bytes_per_sample, cur_line, fh, fname, height, num_components, OJPH_ERROR, OJPH_WARN, and width.
Referenced by main().
Implements ojph::image_out_base.
Definition at line 510 of file ojph_img_io.cpp.
References bit_depth, buffer, bytes_per_sample, converter, fh, fname, lptr, num_components, OJPH_ERROR, samples_per_line, and width.
|
private |
Definition at line 560 of file ojph_img_io.h.
Referenced by configure(), open(), ppm_out(), and write().
|
private |
Definition at line 561 of file ojph_img_io.h.
Referenced by open(), ppm_out(), write(), and ~ppm_out().
|
private |
Definition at line 562 of file ojph_img_io.h.
|
private |
Definition at line 563 of file ojph_img_io.h.
Referenced by configure(), and ppm_out().
|
private |
Definition at line 560 of file ojph_img_io.h.
Referenced by configure(), open(), ppm_out(), and write().
|
private |
Definition at line 564 of file ojph_img_io.h.
Referenced by configure(), ppm_out(), and write().
|
private |
Definition at line 563 of file ojph_img_io.h.
|
private |
Definition at line 557 of file ojph_img_io.h.
Referenced by close(), configure(), open(), ppm_out(), and write().
|
private |
|
private |
Definition at line 559 of file ojph_img_io.h.
Referenced by configure(), open(), and ppm_out().
|
private |
Definition at line 565 of file ojph_img_io.h.
|
private |
Definition at line 559 of file ojph_img_io.h.
Referenced by configure(), open(), ppm_out(), and write().
|
private |
Definition at line 563 of file ojph_img_io.h.
Referenced by configure(), ppm_out(), and write().
|
private |
Definition at line 559 of file ojph_img_io.h.
Referenced by configure(), open(), ppm_out(), and write().