23#include "livekit/video_codec.h"
24#include "livekit/video_source.h"
25#include "livekit/visibility.h"
39 bool is_keyframe =
false;
42 std::uint32_t width = 0;
45 std::uint32_t height = 0;
47 std::int64_t timestamp_us = 0;
49 std::vector<std::uint8_t>
data;
57 std::uint64_t target_bitrate_bps = 0;
59 double framerate_fps = 0.0;
65 bool keyframe_requested =
false;
97 using VideoSource::captureFrame;
Video source for publishing pre-encoded access units without re-encoding.
Definition encoded_video_source.h:34
bool captureFrame(const Frame &frame) const
Submit one complete encoded access unit.
EncodedVideoSource(VideoCodec codec, int width, int height)
Create a pre-encoded source for one codec and initial resolution.
VideoCodec codec() const noexcept
Codec carried by every frame submitted to this source.
Definition encoded_video_source.h:80
Feedback takeFeedback() const
Consume pending keyframe and rate-control feedback.
Represents a real-time video source that can accept frames from the application and feed them into th...
Definition video_source.h:64
Public API for the LiveKit C++ Client SDK.
Definition audio_frame.h:25
VideoCodec
Codec used to publish a video track.
Definition video_codec.h:22
Pending feedback from the pre-encoded passthrough encoder.
Definition encoded_video_source.h:63
std::optional< RateControl > rate_control
Latest rate-control target, if the publishing pipeline requested one.
Definition encoded_video_source.h:67
One complete pre-encoded video access unit.
Definition encoded_video_source.h:37
std::vector< std::uint8_t > data
Complete encoded access-unit payload.
Definition encoded_video_source.h:49
std::optional< VideoFrameMetadata > metadata
Optional packet-trailer metadata.
Definition encoded_video_source.h:51
Latest encoder rate-control target requested by the publishing pipeline.
Definition encoded_video_source.h:55