ailia_llm  1.4.0.0
Public Attributes | List of all members
_AILIALLMMediaData Struct Reference

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...
 

Detailed Description

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.

Member Data Documentation

◆ data

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).

◆ data_size

unsigned int _AILIALLMMediaData::data_size

Size of the buffer (used with data parameter)

◆ file_path

const char* _AILIALLMMediaData::file_path

Path to the media file (UTF-8). Ignored if data is provided.

◆ height

unsigned int _AILIALLMMediaData::height

Height for images (pixels). Only specify for raw RGB data. Set to 0 for encoded buffer.

◆ media_type

const char* _AILIALLMMediaData::media_type

Media type (image, audio). "audio" keywords are reserved for future use, currently unsupported.

◆ width

unsigned int _AILIALLMMediaData::width

Width for images (pixels). Only specify for raw RGB data. Set to 0 for encoded buffer.


The documentation for this struct was generated from the following file: