Class Filesaver
Filesaver Class
Description
A class for file saving.
Syntax
class Filesaver
Members
Public Constructors |
|
|---|---|
Filesaver::Filesaver |
Constructs a Filesaver object. |
Public Methods |
|
Filesaver::setFileName |
Set the filename to be saved. |
Filesaver::staticImgSaveCB |
Static raw image saving callback function. |
Filesaver::rawImgSaveSDBegin |
Save raw image into SD card. |
Filesaver::rawImgSaveCB |
Raw image saving callback function. |
Filesaver::rawReform |
Function to perform image raw reform. |
Filesaver::setFileName
Description
Set the filename to be saved.
Syntax
void setFileName(char *filename);
Parameters
filename: name of the file to be saved.
Returns
NA
Example Code
Example: SDCardSaveRaw
Note
“Filesaver.h” must be included to use the class function.
Filesaver::staticImgSaveCB
Description
Static raw image saving callback function.
Syntax
void staticImgSaveCB(char *file_path, uint32_t data_addr, uint32_t data_size);
Parameters
file_path: file path of the image to be saved
data_addr: image data address
data_size: image data size
Returns
NA
Example Code
Example: SDCardSaveRaw
Note
“Filesaver.h” must be included to use the class function.
Filesaver::rawImgSaveSDBegin
Description
Save raw image into SD card.
Syntax
void rawImgSaveSDBegin();
Parameters
NA
Returns
NA
Example Code
Example: SDCardSaveRaw
Note
“Filesaver.h” must be included to use the class function.
Filesaver::rawImgSaveCB
Description
Raw image saving callback function.
Syntax
void rawImgSaveCB(char *file_path, uint32_t data_addr, uint32_t data_size);
Parameters
NA
Returns
NA
Example Code
Example: SDCardSaveRaw
Note
“Filesaver.h” must be included to use the class function.
Filesaver::rawReform
Description
Function to perform image raw reform.
Syntax
void rawReform(unsigned char *pData, int dataLen);
Parameters
pData: pointer to the image data address
dataLen: image data length
Returns
NA
Example Code
Example: SDCardSaveRaw
Note
“Filesaver.h” must be included to use the class function.