liblloyal 1.0.0
Branched Inference for llama.cpp
Loading...
Searching...
No Matches
lloyal::mtmd_detail Namespace Reference

Classes

struct  VideoLayout
 One video expanded into the parts mtmd tokenizes: decoded frames and text. More...
 

Functions

bool tag (std::span< const uint8_t > bytes, size_t offset, const char *value)
 
uint16_t u16 (std::span< const uint8_t > bytes, size_t offset)
 
uint32_t u32 (std::span< const uint8_t > bytes, size_t offset)
 
bool encoded_audio (std::span< const uint8_t > bytes)
 
size_t wav_sample_bound (std::span< const uint8_t > bytes, uint32_t target_rate)
 
std::string timestamp_text (int64_t ms)
 
VideoLayout video_layout (std::vector<::mtmd::bitmap_ptr > frames, const VideoFrames &video)
 
std::vector< MediaInput > image_inputs (const std::vector< std::vector< uint8_t > > &images)
 

Function Documentation

◆ encoded_audio()

bool lloyal::mtmd_detail::encoded_audio ( std::span< const uint8_t >  bytes)
inline

Definition at line 136 of file mtmd.hpp.

◆ image_inputs()

std::vector< MediaInput > lloyal::mtmd_detail::image_inputs ( const std::vector< std::vector< uint8_t > > &  images)
inline

Definition at line 275 of file mtmd.hpp.

◆ tag()

bool lloyal::mtmd_detail::tag ( std::span< const uint8_t >  bytes,
size_t  offset,
const char *  value 
)
inline

Definition at line 118 of file mtmd.hpp.

◆ timestamp_text()

std::string lloyal::mtmd_detail::timestamp_text ( int64_t  ms)
inline

Definition at line 207 of file mtmd.hpp.

◆ u16()

uint16_t lloyal::mtmd_detail::u16 ( std::span< const uint8_t >  bytes,
size_t  offset 
)
inline

Definition at line 123 of file mtmd.hpp.

◆ u32()

uint32_t lloyal::mtmd_detail::u32 ( std::span< const uint8_t >  bytes,
size_t  offset 
)
inline

Definition at line 130 of file mtmd.hpp.

◆ video_layout()

VideoLayout lloyal::mtmd_detail::video_layout ( std::vector<::mtmd::bitmap_ptr >  frames,
const VideoFrames &  video 
)
inline

Definition at line 242 of file mtmd.hpp.

◆ wav_sample_bound()

size_t lloyal::mtmd_detail::wav_sample_bound ( std::span< const uint8_t >  bytes,
uint32_t  target_rate 
)
inline

Definition at line 145 of file mtmd.hpp.