|
ailia_llm
1.4.0.0
|
Media data structure for multimodal processing. Audio is currently unsupported and reserved for future implementation. Images can be loaded from file path, encoded buffer (JPG, PNG, etc.), or raw RGB data. Supported encoded buffer formats are JPG, PNG, TGA, BMP, PSD, GIF, HDR, and PIC. More...
#include <ailia_llm.h>
Public Attributes | |
| const char * | media_type |
| Media type (image, audio). "audio" keywords are reserved for future use, currently unsupported. More... | |
| const char * | file_path |
| Path to the media file (UTF-8). Ignored if data is provided. More... | |
| const unsigned char * | data |
| Optional: Image data from buffer (alternative to file_path). If width/height are 0, treated as encoded file buffer (JPG, PNG, etc.). If width/height are specified, treated as raw RGB data (width * height * 3 bytes). More... | |
| unsigned int | data_size |
| Size of the buffer (used with data parameter) More... | |
| unsigned int | width |
| Width for images (pixels). Only specify for raw RGB data. Set to 0 for encoded buffer. More... | |
| unsigned int | height |
| Height for images (pixels). Only specify for raw RGB data. Set to 0 for encoded buffer. More... | |
Media data structure for multimodal processing. Audio is currently unsupported and reserved for future implementation. Images can be loaded from file path, encoded buffer (JPG, PNG, etc.), or raw RGB data. Supported encoded buffer formats are JPG, PNG, TGA, BMP, PSD, GIF, HDR, and PIC.
| const unsigned char* _AILIALLMMediaData::data |
Optional: Image data from buffer (alternative to file_path). If width/height are 0, treated as encoded file buffer (JPG, PNG, etc.). If width/height are specified, treated as raw RGB data (width * height * 3 bytes).
| unsigned int _AILIALLMMediaData::data_size |
Size of the buffer (used with data parameter)
| const char* _AILIALLMMediaData::file_path |
Path to the media file (UTF-8). Ignored if data is provided.
| unsigned int _AILIALLMMediaData::height |
Height for images (pixels). Only specify for raw RGB data. Set to 0 for encoded buffer.
| const char* _AILIALLMMediaData::media_type |
Media type (image, audio). "audio" keywords are reserved for future use, currently unsupported.
| unsigned int _AILIALLMMediaData::width |
Width for images (pixels). Only specify for raw RGB data. Set to 0 for encoded buffer.