#include <plfilesink.h>
Inheritance diagram for PLFileSink:
Public Member Functions | |
PLFileSink () | |
virtual | ~PLFileSink () |
virtual int | Open (const char *pszFName, int MaxFileSize) |
virtual void | Close () |
Private Attributes | |
FILE * | m_pFile |
PLBYTE * | m_pDataBuf |
Restriction: needs to allocate a buffer large enough to hold a complete image file. But we don't know its size before it's actually encoded, so we have to be generous or "accidents will happen" A better implementation would rely on memory-mapped files or implement dynamic buffering.
Definition at line 28 of file plfilesink.h.
|
Definition at line 23 of file plfilesink.cpp. References NULL. |
|
Definition at line 30 of file plfilesink.cpp. References Close(). |
Here is the call graph for this function:
|
Reimplemented from PLDataSink. Definition at line 53 of file plfilesink.cpp. References PLDataSink::Close(), PLDataSink::GetDataSize(), m_pDataBuf, m_pFile, and PLASSERT. Referenced by PLPicEncoder::MakeFileFromBmp(), and ~PLFileSink(). |
Here is the call graph for this function:
|
Definition at line 37 of file plfilesink.cpp. References m_pDataBuf, m_pFile, PLDataSink::Open(), and PLBYTE. Referenced by PLPicEncoder::MakeFileFromBmp(). |
Here is the call graph for this function:
|
Definition at line 52 of file plfilesink.h. |
|
Definition at line 51 of file plfilesink.h. |