23#include "livekit/ffi_handle.h"
24#include "livekit/visibility.h"
35 VIDEO_ROTATION_90 = 90,
36 VIDEO_ROTATION_180 = 180,
37 VIDEO_ROTATION_270 = 270,
55 std::int64_t timestamp_us = 0;
81 int width() const noexcept {
return width_; }
82 int height() const noexcept {
return height_; }
85 std::uint64_t
ffiHandleId() const noexcept {
return handle_.get(); }
RAII wrapper for an FFI handle (uintptr_t) coming from Rust.
Definition ffi_handle.h:29
Public SDK representation of a video frame.
Definition video_frame.h:48
Represents a real-time video source that can accept frames from the application and feed them into th...
Definition video_source.h:63
void captureFrame(const VideoFrame &frame, const VideoCaptureOptions &options)
Push a VideoFrame into the FFI video source.
std::uint64_t ffiHandleId() const noexcept
Underlying FFI handle ID (0 if invalid).
Definition video_source.h:85
VideoSource(int width, int height)
Create a new native video source with a fixed resolution.
void captureFrame(const VideoFrame &frame, std::int64_t timestamp_us=0, VideoRotation rotation=VideoRotation::VIDEO_ROTATION_0)
Backward-compatible convenience overload for timestamp + rotation only.
Public API for the LiveKit C++ Client SDK.
Definition audio_frame.h:25
VideoRotation
Rotation of a video frame.
Definition video_source.h:33
Capture options for a single outbound video frame.
Definition video_source.h:54
std::optional< VideoFrameMetadata > metadata
Optional per-frame metadata (timestamps, frame IDs, user data).
Definition video_source.h:58