21#include "livekit/ffi_handle.h"
32enum class VideoRotation {
34 VIDEO_ROTATION_90 = 90,
35 VIDEO_ROTATION_180 = 180,
36 VIDEO_ROTATION_270 = 270,
63 int width() const noexcept {
return width_; }
64 int height() const noexcept {
return height_; }
82 VideoRotation rotation = VideoRotation::VIDEO_ROTATION_0);
RAII wrapper for an FFI handle (uintptr_t) coming from Rust.
Definition ffi_handle.h:29
Definition video_frame.h:59
Definition video_source.h:43
int width() const noexcept
Source resolution as declared at construction.
Definition video_source.h:63
VideoSource(int width, int height)
void captureFrame(const VideoFrame &frame, std::int64_t timestamp_us=0, VideoRotation rotation=VideoRotation::VIDEO_ROTATION_0)
std::uint64_t ffi_handle_id() const noexcept
Underlying FFI handle ID (0 if invalid).
Definition video_source.h:67