跳至主要内容

CameraInputOptions Struct

Options for CameraInput, a live libcamera/MIPI source. More...

Declaration​

struct simaai::neat::CameraInputOptions { ... }

Included Headers​

#include <CameraInput.h>

Public Member Attributes Index​

std::optional< std::string >camera_name
std::uint32_twidth = 1920
std::uint32_theight = 1080
std::uint32_tframerate_num = 30
std::uint32_tframerate_den = 1
std::stringformat = "NV12"
std::stringbuffer_name = "camera"
boolinsert_queue = true
boolleaky_queue = true
std::uint32_tqueue_depth = 2
boolallow_cpu_fallback = false

Description​

Options for CameraInput, a live libcamera/MIPI source.

The public contract is deliberately camera/frame oriented. libcamerasrc keeps its own capture buffers; Neat's private camera bridge forwards each frame's DMA-BUF downstream without copying; Neat's EV74 admission check accepts CMA and the camera's contiguous capture buffers. When fallback is enabled, a frame the bridge cannot forward as one DMA-BUF is copied into a CMA DMA-BUF instead. Users do not expose an OsToSima node.

Definition at line 29 of file CameraInput.h.

Public Member Attributes​

allow_cpu_fallback​

bool simaai::neat::CameraInputOptions::allow_cpu_fallback = false

Definition at line 53 of file CameraInput.h.

buffer_name​

std::string simaai::neat::CameraInputOptions::buffer_name = "camera"

Definition at line 41 of file CameraInput.h.

camera_name​

std::optional<std::string> simaai::neat::CameraInputOptions::camera_name

Definition at line 32 of file CameraInput.h.

format​

std::string simaai::neat::CameraInputOptions::format = "NV12"

Definition at line 38 of file CameraInput.h.

framerate_den​

std::uint32_t simaai::neat::CameraInputOptions::framerate_den = 1

Definition at line 37 of file CameraInput.h.

framerate_num​

std::uint32_t simaai::neat::CameraInputOptions::framerate_num = 30

Definition at line 36 of file CameraInput.h.

height​

std::uint32_t simaai::neat::CameraInputOptions::height = 1080

Definition at line 35 of file CameraInput.h.

insert_queue​

bool simaai::neat::CameraInputOptions::insert_queue = true

Definition at line 44 of file CameraInput.h.

leaky_queue​

bool simaai::neat::CameraInputOptions::leaky_queue = true

Definition at line 45 of file CameraInput.h.

queue_depth​

std::uint32_t simaai::neat::CameraInputOptions::queue_depth = 2

Definition at line 46 of file CameraInput.h.

width​

std::uint32_t simaai::neat::CameraInputOptions::width = 1920

Definition at line 34 of file CameraInput.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.