OpenJPH
Open-source implementation of JPEG2000 Part-15
ojph::yuv_out Class Reference

#include <ojph_img_io.h>

Inheritance diagram for ojph::yuv_out:
ojph::image_out_base

Public Member Functions

 yuv_out ()
 
virtual ~yuv_out ()
 
void open (char *filename)
 
void configure (ui32 bit_depth, ui32 num_components, ui32 *comp_width)
 
virtual ui32 write (const line_buf *line, ui32 comp_num)
 
virtual void close ()
 
- Public Member Functions inherited from ojph::image_out_base
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 num_components
 
ui32 bit_depth
 
ui32comp_width
 
ui8buffer
 
ui32 buffer_size
 

Detailed Description

Definition at line 637 of file ojph_img_io.h.

Constructor & Destructor Documentation

◆ yuv_out()

ojph::yuv_out::yuv_out ( )
inline

Definition at line 640 of file ojph_img_io.h.

References bit_depth, buffer, buffer_size, comp_width, fh, fname, num_components, and width.

◆ ~yuv_out()

ojph::yuv_out::~yuv_out ( )
virtual

Definition at line 1127 of file ojph_img_io.cpp.

References buffer, buffer_size, close(), and comp_width.

Member Function Documentation

◆ close()

virtual void ojph::yuv_out::close ( )
inlinevirtual

Reimplemented from ojph::image_out_base.

Definition at line 655 of file ojph_img_io.h.

References fh, and fname.

Referenced by ~yuv_out().

◆ configure()

void ojph::yuv_out::configure ( ui32  bit_depth,
ui32  num_components,
ui32 comp_width 
)

Definition at line 1154 of file ojph_img_io.cpp.

References bit_depth, buffer, buffer_size, comp_width, fh, num_components, and ojph_max.

Referenced by main().

◆ open()

void ojph::yuv_out::open ( char *  filename)

Definition at line 1144 of file ojph_img_io.cpp.

References fh, fname, and OJPH_ERROR.

Referenced by main().

◆ write()

ui32 ojph::yuv_out::write ( const line_buf line,
ui32  comp_num 
)
virtual

Member Data Documentation

◆ bit_depth

ui32 ojph::yuv_out::bit_depth
private

Definition at line 662 of file ojph_img_io.h.

Referenced by configure(), write(), and yuv_out().

◆ buffer

ui8* ojph::yuv_out::buffer
private

Definition at line 664 of file ojph_img_io.h.

Referenced by configure(), write(), yuv_out(), and ~yuv_out().

◆ buffer_size

ui32 ojph::yuv_out::buffer_size
private

Definition at line 665 of file ojph_img_io.h.

Referenced by configure(), yuv_out(), and ~yuv_out().

◆ comp_width

ui32* ojph::yuv_out::comp_width
private

Definition at line 663 of file ojph_img_io.h.

Referenced by configure(), write(), yuv_out(), and ~yuv_out().

◆ fh

FILE* ojph::yuv_out::fh
private

Definition at line 658 of file ojph_img_io.h.

Referenced by close(), configure(), open(), write(), and yuv_out().

◆ fname

const char* ojph::yuv_out::fname
private

Definition at line 659 of file ojph_img_io.h.

Referenced by close(), open(), write(), and yuv_out().

◆ num_components

ui32 ojph::yuv_out::num_components
private

Definition at line 661 of file ojph_img_io.h.

Referenced by configure(), write(), and yuv_out().

◆ width

ui32 ojph::yuv_out::width
private

Definition at line 660 of file ojph_img_io.h.

Referenced by yuv_out().


The documentation for this class was generated from the following files: