MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::CameraConfig Struct Reference

Platform-specific FFmpeg input format string for camera devices. More...

#include <CameraReader.hpp>

+ Collaboration diagram for MayaFlux::IO::CameraConfig:

Public Attributes

std::string device_name
 Platform device string.
 
uint32_t target_width { 1920 }
 Requested width in pixels.
 
uint32_t target_height { 1080 }
 Requested height in pixels.
 
double target_fps { 30.0 }
 Hint only; device may ignore.
 
std::string format_override
 Leave empty to use CAMERA_FORMAT for current platform.
 

Detailed Description

Platform-specific FFmpeg input format string for camera devices.

Configuration for opening a camera device via FFmpeg.

Platform device string conventions:

  • Linux: "/dev/video0", "/dev/video1", …
  • macOS: "0" (AVFoundation device index) or "FaceTime HD Camera"
  • Windows: "video=Integrated Camera" (DirectShow filter name)

Resolution and frame rate values are hints passed to the device driver via AVDictionary options. The device may negotiate different parameters; the actual negotiated values are available from CameraReader after open().

Definition at line 42 of file CameraReader.hpp.


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