Template Function spdl::core::convert_frames(const std::vector<const Frames<media> *>&, std::shared_ptr<CPUStorage>)¶
Defined in File conversion.h
Function Documentation¶
-
template<MediaType media>
CPUBufferPtr spdl::core::convert_frames(const std::vector<const Frames<media>*> &batch, std::shared_ptr<CPUStorage> storage = nullptr)¶ Convert a batch of frames to a CPU buffer.
Converts decoded frames into a contiguous CPU buffer suitable for processing or copying to other memory systems.
- Template Parameters:
media – Media type (Audio, Video, or Image).
- Parameters:
batch – Vector of frame pointers to convert.
storage – Optional pre-allocated storage. If not provided, allocates new storage.
- Returns:
CPU buffer containing the converted frame data.