Skip to main content

Decoder

The Decoder plugin provides an interface for hardware-accelerated H264 decoding into GPU textures. It manages an internal Texture object and allows setting the target resolution for decoded output. This enables real-time video streaming and playback in Tellusim applications with GPU-efficient texture updates. The plugin is available on iOS (Metal) and Android/Oculus (Vulkan and OpenGLES) platforms.

info

This plugin is used by the XRLink Oculus application to perform low-latency video stream decoding.

#include <platform/decoder/include/TellusimDecoder.h>
#include <platform/decoder/include/TellusimDecoderMTL.h>
#include <platform/decoder/include/TellusimDecoderNDK.h>

Example

// Create decoder texture
DECODER_TEXTURE decoder_texture;
decoder_texture.setSize(width, height);

// Decode H264 stream
decoder_texture.decodeH264(device, data, size)

// Update texture
if(!texture.update(device)) return false;