OpenJPH
Open-source implementation of JPEG2000 Part-15
|
Saves a j2k frame to disk without decoding. More...
#include <threaded_frame_processors.h>
Public Member Functions | |
j2k_frame_storer () | |
default construction More... | |
~j2k_frame_storer () override | |
default destructor doing nothing More... | |
void | init (stex_file *file, const char *name_template) |
call this function to initialize its members More... | |
void | execute () override |
A thread from the thread_pool call this function to execute the task. More... | |
![]() | |
virtual | ~worker_thread_base () |
virtual construction is a necessity to deconstruct derived objects. More... | |
virtual void | execute ()=0 |
Derived functions must define this function to execute its work. More... | |
Private Attributes | |
stex_file * | file |
a j2k codestream file with other variables More... | |
const char * | name_template |
a template for the target file name More... | |
Saves a j2k frame to disk without decoding.
Definition at line 64 of file threaded_frame_processors.h.
|
inline |
default construction
Definition at line 70 of file threaded_frame_processors.h.
References file, and name_template.
|
inlineoverride |
default destructor doing nothing
Definition at line 77 of file threaded_frame_processors.h.
|
overridevirtual |
A thread from the thread_pool call this function to execute the task.
Implements ojph::thds::worker_thread_base.
Definition at line 53 of file threaded_frame_processors.cpp.
References ojph::stex::stex_file::f, file, ojph::stex::stex_file::frame_idx, ojph::stex::stex_file::name_template, ojph::stex::stex_file::notify_file_completion(), and ojph::mem_outfile::write_to_file().
|
inline |
call this function to initialize its members
file | is a stex_file holding the j2k codestream with other variables. |
name_template | holds the a filename template |
Definition at line 87 of file threaded_frame_processors.h.
References file, and name_template.
Referenced by ojph::stex::frames_handler::init().
|
private |
a j2k codestream file with other variables
Definition at line 100 of file threaded_frame_processors.h.
Referenced by execute(), init(), and j2k_frame_storer().
|
private |
a template for the target file name
Definition at line 101 of file threaded_frame_processors.h.
Referenced by init(), and j2k_frame_storer().