Skip to main content

ImageInputGroup.h File

Image input group options and builder. More...

Included Headers

#include "builder/NodeGroup.h" #include "contracts/ContractTypes.h" #include <string>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes
namespacegroups

Classes Index

structImageInputGroupOptions
structOutputCaps
structSimaDecoder

Description

Image input group options and builder.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include "builder/NodeGroup.h"
10
11#include <string>
12
14
16 std::string path;
17 // If sima_decoder is enabled and this is >0, it may be clamped to a minimum
18 // to allow decoder startup. Set SIMA_IMAGEFREEZE_MIN_BUFFERS=0 to disable.
20 int fps = 30;
21 bool sync_mode = false;
22
23 bool use_videorate = false;
24 bool use_videoconvert = true;
25 bool use_videoscale = false;
26
27 struct OutputCaps {
28 bool enable = true;
29 std::string format = "NV12";
30 int width = -1;
31 int height = -1;
32 int fps = -1;
35
36 enum class Decoder {
37 Auto = 0, // decodebin (jpg/png auto)
40 Custom,
41 };
42
45
46 struct SimaDecoder {
47 bool enable = false;
49 std::string decoder_name = "decoder";
50 bool raw_output = false;
51 // Optional: select output buffer target ("CVU" or "APU") for neatdecoder.
52 std::string next_element;
53 // Use software H264 encoder (x264/openh264) before sima decoder.
54 bool use_sw_encoder = false;
55 int sw_bitrate_kbps = 4000;
57
58 // Optional raw fragment inserted before ImageFreeze (advanced use)
59 std::string extra_fragment;
60};
61
62simaai::neat::NodeGroup ImageInputGroup(const ImageInputGroupOptions& opt);
63
64} // namespace simaai::neat::nodes::groups

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.