EncodedStreamInfo Struct Reference

Describes one encoded video source exposed by the Camera. More...

Attributes

ENCODED_STREAM_SOURCE source = ENCODED_STREAM_SOURCE::RECEIVING
 
bool active = false
 True if this source is producing packets right now. More...
 
STREAMING_CODEC codec = STREAMING_CODEC::H265
 
unsigned int bitrate_kbps = 0
 Configured bitrate, kbps. 0 for lossless / unknown. More...
 
bool is_lossless = false
 True for H264_LOSSLESS / H265_LOSSLESS recording. More...
 

Detailed Description

Describes one encoded video source exposed by the Camera.

Returned by Camera::getEncodedStreamsInfo() — one entry per source, whether currently active or not. Use this to discover which sources are producing data and at what codec/bitrate before calling Camera::retrieveEncodedStreamPacket().

Variables

◆ source

◆ active

bool active = false

True if this source is producing packets right now.

◆ codec

◆ bitrate_kbps

unsigned int bitrate_kbps = 0

Configured bitrate, kbps. 0 for lossless / unknown.

◆ is_lossless

bool is_lossless = false

True for H264_LOSSLESS / H265_LOSSLESS recording.