SDK Version 2.0.1
AnsuR Technologies ASMIRA SDK
Loading...
Searching...
No Matches
asdk::frame_t Struct Reference

A decoded video or photo frame, delivered by FrameFunc. More...

#include <asmirasdk.h>

Public Attributes

int32_t width
 Frame resolution width in pixels.
int32_t height
 Frame resolution height in pixels.
int32_t size
 Size of data in bytes.
int64_t timeStamp
 Presentation frame linear time since startup in msec.
uint64_t utc
 Unix time in seconds at which the frame was captured.
uint8_t * data
 Frame RGB data (R8G8B8), width * height * 3 bytes.

Detailed Description

A decoded video or photo frame, delivered by FrameFunc.

The frame, including its pixel data, is only valid for the duration of the callback. Copy anything that has to outlive it.

Examples
example_basic.cpp, and example_complete.cpp.

Definition at line 459 of file asmirasdk.h.

Member Data Documentation

◆ width

int32_t asdk::frame_t::width

Frame resolution width in pixels.

Examples
example_basic.cpp, and example_complete.cpp.

Definition at line 460 of file asmirasdk.h.

◆ height

int32_t asdk::frame_t::height

Frame resolution height in pixels.

Examples
example_basic.cpp, and example_complete.cpp.

Definition at line 461 of file asmirasdk.h.

◆ size

int32_t asdk::frame_t::size

Size of data in bytes.

Definition at line 462 of file asmirasdk.h.

◆ timeStamp

int64_t asdk::frame_t::timeStamp

Presentation frame linear time since startup in msec.

Set to zero if photo frame.

Definition at line 463 of file asmirasdk.h.

◆ utc

uint64_t asdk::frame_t::utc

Unix time in seconds at which the frame was captured.

Definition at line 464 of file asmirasdk.h.

◆ data

uint8_t* asdk::frame_t::data

Frame RGB data (R8G8B8), width * height * 3 bytes.

Examples
example_complete.cpp.

Definition at line 465 of file asmirasdk.h.


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