Raytrix Light Field SDK  v3.1
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Rx::FileIO::CTrixWriter Class Reference

Detailed Description

TRIX file writer.

Public Member Functions

 CTrixWriter ()
 Default constructor. More...
 
 ~CTrixWriter ()
 Destructor. More...
 
void Close ()
 Closes this CTrixWriter and finalizes the file. More...
 
size_t GetApproximatedFileSize ()
 Gets approximated file size. More...
 
void Open (const CRxString &sxFilename)
 Opens a new file for write. More...
 
size_t WriteFrame (const Rx::Interop::Runtime28::IImage *pxFocusImg, const Rx::Interop::Runtime28::IImage *pxDepthImg, const Rx::Interop::Runtime28::IImage *pxDepth3DImg, Rx::Codec::IImageCodec *pxFocusCodec=nullptr, Rx::Codec::IImageCodec *pxDepthCodec=nullptr, Rx::Codec::IImageCodec *pxDepth3DCodec=nullptr)
 Saves a frame pair. More...
 

Constructor & Destructor Documentation

Rx::FileIO::CTrixWriter::CTrixWriter ( )

Default constructor.

Rx::FileIO::CTrixWriter::~CTrixWriter ( )

Destructor.

Member Function Documentation

void Rx::FileIO::CTrixWriter::Close ( )

Closes this CTrixWriter and finalizes the file.

size_t Rx::FileIO::CTrixWriter::GetApproximatedFileSize ( )

Gets approximated file size.

Returns
The approximated file size.
void Rx::FileIO::CTrixWriter::Open ( const CRxString sxFilename)

Opens a new file for write.

Parameters
sxFilenameThe filename.
size_t Rx::FileIO::CTrixWriter::WriteFrame ( const Rx::Interop::Runtime28::IImage pxFocusImg,
const Rx::Interop::Runtime28::IImage pxDepthImg,
const Rx::Interop::Runtime28::IImage pxDepth3DImg,
Rx::Codec::IImageCodec *  pxFocusCodec = nullptr,
Rx::Codec::IImageCodec *  pxDepthCodec = nullptr,
Rx::Codec::IImageCodec *  pxDepth3DCodec = nullptr 
)

Saves a frame pair.

Parameters
pxFocusImgThe focus image.
pxDepthImgThe depth image. Must be of float lumincance type and will be scaled to 0.0-1.0.
pxFocusCodecThe focus codec. nullptr = Raw Image.
pxDepthCodecThe depth codec. nullptr = Raw Image.
Returns
The frame index.