Definition at line 14 of file thumbnailgen.cpp.
◆ Img_writer() [1/2]
| Img_writer::Img_writer |
( |
| ) |
|
|
inline |
◆ Img_writer() [2/2]
◆ ~Img_writer()
| Img_writer::~Img_writer |
( |
| ) |
|
|
inline |
◆ operator=()
◆ write_img()
| bool Img_writer::write_img |
( |
Ipc_frame * | f, |
|
|
const std::string & | path ) |
|
inline |
Definition at line 32 of file thumbnailgen.cpp.
32 {
34 File_uniq outfile(fopen(path.c_str(),
"wb"));
35 if (!outfile) {
36 fprintf(stderr, "Can't open output file %s\n", path.c_str());
37 return false;
38 }
40
43
48 }
50
51 return true;
52 }
std::unique_ptr< FILE, file_deleter > File_uniq
References Ipc_frame_header::color_spec, compress_ctx, Ipc_frame::data, Ipc_frame::header, Ipc_frame_header::height, IPC_FRAME_COLOR_RGB, and Ipc_frame_header::width.
Referenced by main().
◆ compress_ctx
| struct jpeg_compress_struct Img_writer::compress_ctx |
|
private |
◆ err_mgr
| struct jpeg_error_mgr Img_writer::err_mgr |
|
private |
The documentation for this class was generated from the following file: