Skip to main content

ClikaRT::io::FrameBatch

struct

Header: ClikaRT/io/io.h

A decoded batch of frames plus the alignment metadata a video model needs: the packed [K, H, W, 3] UInt8 frames, the source frame indices they were taken from, and per-frame pts_seconds / duration_seconds. Indexable / iterable: operator[] yields a single-frame view, and begin()/end() iterate single-frame views in order.

Member functions

size()

std::size_t size() const noexcept

Number of frames in the batch.

Declared in ClikaRT/io/io.h, line 224

empty()

bool empty() const noexcept

True when the batch holds no frames.

Declared in ClikaRT/io/io.h, line 226

Data members

frames

Tensor frames

[K, H, W, 3] UInt8 (host)

Declared in ClikaRT/io/io.h, line 218

indices

std::vector<std::int64_t> indices

the source frame indices, in order

Declared in ClikaRT/io/io.h, line 219

pts_seconds

std::vector<double> pts_seconds

presentation timestamp of each frame

Declared in ClikaRT/io/io.h, line 220

duration_seconds

std::vector<double> duration_seconds

display duration of each frame

Declared in ClikaRT/io/io.h, line 221