ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
MXArguments Struct Reference

Parsed command-line arguments for the ACMX2 application. More...

Public Attributes

int audio_buffers = 0
 Requested spectrum-history array depth.
unsigned int audio_channels = 2
bool audio_enabled = false
std::string audio_file
int audio_input = -1
int audio_output = -1
bool audio_pass_through = false
bool audio_repeat = false
 When true, restart file audio from the beginning at EOF.
float audio_sensitivty = 0.25f
bool audio_trunc = false
 When true, stop playback when file audio reaches the end.
float audio_warm_rate = 0.5f
 Startup warmup envelope rate (1/sec). 0.5 ~= 2s to full strength.
int autopilot_frames = 0
 Frames between random shader switches in autopilot mode (0 = disabled).
bool autopilot_random_interval = false
 When true, randomize autopilot frame interval after each switch.
int autopilot_random_timeout = 0
 Upper bound (inclusive) for randomized autopilot interval.
bool build_cache = false
std::string build_library_path
bool cache = false
bool cache_array = false
int cache_delay = 1
int cache_size = 8
int camera_device = 0
bool copy_audio = false
std::string crf = "23"
float cross_fade_duration = 0.5f
 Crossfade duration in seconds when switching playlist shaders (default: 0.5).
std::optional< cv::Size > csize = std::nullopt
int cuda_device = 0
bool disable_counter = false
bool display_filter = false
 Display current shader/stack and GPU filter overlay in upper-left.
double duration = 0.0
std::string edge_model
 Dexined edge-detection ONNX model path (–edge). Empty when disabled.
EncodeOptions encode_opts {}
std::string filename
bool flip_output = false
 Vertical flip output frames when set (e.g., for HDR correction).
double fps_value = 24.0
std::string fragment
FrameRotation frame_rotation = FrameRotation::None
 Optional input-frame rotation.
bool full = false
int generate_interval = 0
 Save a PNG frame every N frames to a subdirectory (video or camera mode, 0 = disabled).
bool gpu_filter_enabled = false
std::vector< int > gpu_filter_indices
int gpu_frame_buffer_size = 8
std::string graphic_file
bool human_background_only = false
 When true (with –human), shaders apply only to the background; person composited on top.
float human_black = 0.35f
 –black: mask black point (shadow crush threshold).
std::string human_model
 PPHS human-segmentation ONNX model path (–human). Empty when disabled.
float human_white = 0.75f
 –white: mask white point (opacity saturation threshold).
bool interface_shm = false
 Enable interface shared-memory control channel (Qt launcher use).
bool is3d = false
std::string library
double max_size_mb = 0.0
int midi_device = -1
std::string midi_map_file
int mode = 0
std::string model_file = "cube.mxmod.z"
bool no_drop = false
 In video mode, pace frame production to encoder throughput.
bool normalized_time = false
std::string ofilename
std::string onnx_model
 Generic OnnxWrapper YAML config path (–onnx). Empty when disabled.
std::string path
std::string playlist_file
bool png_output = false
 Video-file mode only: write PNG frames to a subdirectory instead of encoding video.
std::string prefix_path = "."
std::string record_audio_file
float record_gain = 1.0f
bool remove_broken = false
 True when --remove-broken <path> was specified.
std::string remove_broken_path
 Library path passed to --remove-broken.
bool repeat = false
std::string shader_file
int shader_index = 0
bool shader_pass_enabled = false
std::vector< std::string > shader_pass_files
std::vector< int > shader_pass_list
bool silent = false
std::optional< cv::Size > sizev = std::nullopt
std::tuple< int, std::string, int > slib
int th = 720
float time_speed = 1.0f
int tw = 1280
bool use_shader_cache = true
bool use_yuv = false
int watermark_b = 150
 Watermark blue channel (0-255).
int watermark_g = 0
 Watermark green channel (0-255).
int watermark_r = 255
 Watermark red channel (0-255), default magenta-pink.
std::string watermark_text
 User watermark text (–use-watermark). When non-empty, watermark is enabled.

Detailed Description

Parsed command-line arguments for the ACMX2 application.

Populated by the Argz parser in main() and forwarded to ACView.

Definition at line 6336 of file ACMX2/acmx.cpp.

Member Data Documentation

◆ audio_buffers

int MXArguments::audio_buffers = 0

Requested spectrum-history array depth.

Definition at line 6379 of file ACMX2/acmx.cpp.

Referenced by main().

◆ audio_channels

unsigned int MXArguments::audio_channels = 2

Definition at line 6371 of file ACMX2/acmx.cpp.

Referenced by main().

◆ audio_enabled

bool MXArguments::audio_enabled = false

Definition at line 6369 of file ACMX2/acmx.cpp.

Referenced by main().

◆ audio_file

std::string MXArguments::audio_file

Definition at line 6376 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().

◆ audio_input

int MXArguments::audio_input = -1

Definition at line 6339 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().

◆ audio_output

int MXArguments::audio_output = -1

Definition at line 6339 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().

◆ audio_pass_through

bool MXArguments::audio_pass_through = false

Definition at line 6370 of file ACMX2/acmx.cpp.

Referenced by main().

◆ audio_repeat

bool MXArguments::audio_repeat = false

When true, restart file audio from the beginning at EOF.

Definition at line 6378 of file ACMX2/acmx.cpp.

Referenced by main().

◆ audio_sensitivty

float MXArguments::audio_sensitivty = 0.25f

Definition at line 6372 of file ACMX2/acmx.cpp.

Referenced by main().

◆ audio_trunc

bool MXArguments::audio_trunc = false

When true, stop playback when file audio reaches the end.

Definition at line 6377 of file ACMX2/acmx.cpp.

Referenced by main().

◆ audio_warm_rate

float MXArguments::audio_warm_rate = 0.5f

Startup warmup envelope rate (1/sec). 0.5 ~= 2s to full strength.

Definition at line 6373 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().

◆ autopilot_frames

int MXArguments::autopilot_frames = 0

Frames between random shader switches in autopilot mode (0 = disabled).

Definition at line 6409 of file ACMX2/acmx.cpp.

Referenced by main().

◆ autopilot_random_interval

bool MXArguments::autopilot_random_interval = false

When true, randomize autopilot frame interval after each switch.

Definition at line 6410 of file ACMX2/acmx.cpp.

Referenced by main().

◆ autopilot_random_timeout

int MXArguments::autopilot_random_timeout = 0

Upper bound (inclusive) for randomized autopilot interval.

Definition at line 6411 of file ACMX2/acmx.cpp.

Referenced by main().

◆ build_cache

bool MXArguments::build_cache = false

Definition at line 6394 of file ACMX2/acmx.cpp.

Referenced by main().

◆ build_library_path

std::string MXArguments::build_library_path

Definition at line 6395 of file ACMX2/acmx.cpp.

Referenced by main().

◆ cache

bool MXArguments::cache = false

Definition at line 6362 of file ACMX2/acmx.cpp.

Referenced by main().

◆ cache_array

bool MXArguments::cache_array = false

Definition at line 6363 of file ACMX2/acmx.cpp.

Referenced by main().

◆ cache_delay

int MXArguments::cache_delay = 1

Definition at line 6364 of file ACMX2/acmx.cpp.

Referenced by main().

◆ cache_size

int MXArguments::cache_size = 8

Definition at line 6365 of file ACMX2/acmx.cpp.

Referenced by main().

◆ camera_device

int MXArguments::camera_device = 0

Definition at line 6342 of file ACMX2/acmx.cpp.

Referenced by main().

◆ copy_audio

bool MXArguments::copy_audio = false

Definition at line 6366 of file ACMX2/acmx.cpp.

Referenced by main().

◆ crf

std::string MXArguments::crf = "23"

Definition at line 6341 of file ACMX2/acmx.cpp.

Referenced by main().

◆ cross_fade_duration

float MXArguments::cross_fade_duration = 0.5f

Crossfade duration in seconds when switching playlist shaders (default: 0.5).

Definition at line 6414 of file ACMX2/acmx.cpp.

Referenced by main().

◆ csize

std::optional<cv::Size> MXArguments::csize = std::nullopt

Definition at line 6357 of file ACMX2/acmx.cpp.

Referenced by main().

◆ cuda_device

int MXArguments::cuda_device = 0

Definition at line 6390 of file ACMX2/acmx.cpp.

Referenced by main().

◆ disable_counter

bool MXArguments::disable_counter = false

Definition at line 6389 of file ACMX2/acmx.cpp.

Referenced by main().

◆ display_filter

bool MXArguments::display_filter = false

Display current shader/stack and GPU filter overlay in upper-left.

Definition at line 6421 of file ACMX2/acmx.cpp.

Referenced by main().

◆ duration

double MXArguments::duration = 0.0

Definition at line 6412 of file ACMX2/acmx.cpp.

Referenced by main().

◆ edge_model

std::string MXArguments::edge_model

Dexined edge-detection ONNX model path (–edge). Empty when disabled.

Definition at line 6352 of file ACMX2/acmx.cpp.

Referenced by main().

◆ encode_opts

EncodeOptions MXArguments::encode_opts {}

Definition at line 6428 of file ACMX2/acmx.cpp.

Referenced by main().

◆ filename

std::string MXArguments::filename

Definition at line 6337 of file ACMX2/acmx.cpp.

Referenced by main().

◆ flip_output

bool MXArguments::flip_output = false

Vertical flip output frames when set (e.g., for HDR correction).

Definition at line 6416 of file ACMX2/acmx.cpp.

Referenced by main().

◆ fps_value

double MXArguments::fps_value = 24.0

Definition at line 6358 of file ACMX2/acmx.cpp.

Referenced by main().

◆ fragment

std::string MXArguments::fragment

Definition at line 6344 of file ACMX2/acmx.cpp.

Referenced by main().

◆ frame_rotation

FrameRotation MXArguments::frame_rotation = FrameRotation::None

Optional input-frame rotation.

Definition at line 6417 of file ACMX2/acmx.cpp.

Referenced by main().

◆ full

bool MXArguments::full = false

Definition at line 6361 of file ACMX2/acmx.cpp.

Referenced by main().

◆ generate_interval

int MXArguments::generate_interval = 0

Save a PNG frame every N frames to a subdirectory (video or camera mode, 0 = disabled).

Definition at line 6419 of file ACMX2/acmx.cpp.

Referenced by main().

◆ gpu_filter_enabled

bool MXArguments::gpu_filter_enabled = false

Definition at line 6386 of file ACMX2/acmx.cpp.

Referenced by main().

◆ gpu_filter_indices

std::vector<int> MXArguments::gpu_filter_indices

Definition at line 6387 of file ACMX2/acmx.cpp.

Referenced by main().

◆ gpu_frame_buffer_size

int MXArguments::gpu_frame_buffer_size = 8

Definition at line 6388 of file ACMX2/acmx.cpp.

Referenced by main().

◆ graphic_file

std::string MXArguments::graphic_file

Definition at line 6338 of file ACMX2/acmx.cpp.

Referenced by main().

◆ human_background_only

bool MXArguments::human_background_only = false

When true (with –human), shaders apply only to the background; person composited on top.

Definition at line 6349 of file ACMX2/acmx.cpp.

Referenced by main().

◆ human_black

float MXArguments::human_black = 0.35f

–black: mask black point (shadow crush threshold).

Definition at line 6350 of file ACMX2/acmx.cpp.

Referenced by main().

◆ human_model

std::string MXArguments::human_model

PPHS human-segmentation ONNX model path (–human). Empty when disabled.

Definition at line 6348 of file ACMX2/acmx.cpp.

Referenced by main().

◆ human_white

float MXArguments::human_white = 0.75f

–white: mask white point (opacity saturation threshold).

Definition at line 6351 of file ACMX2/acmx.cpp.

Referenced by main().

◆ interface_shm

bool MXArguments::interface_shm = false

Enable interface shared-memory control channel (Qt launcher use).

Definition at line 6426 of file ACMX2/acmx.cpp.

Referenced by main().

◆ is3d

bool MXArguments::is3d = false

Definition at line 6367 of file ACMX2/acmx.cpp.

Referenced by main().

◆ library

std::string MXArguments::library

Definition at line 6343 of file ACMX2/acmx.cpp.

Referenced by main().

◆ max_size_mb

double MXArguments::max_size_mb = 0.0

Definition at line 6413 of file ACMX2/acmx.cpp.

Referenced by main().

◆ midi_device

int MXArguments::midi_device = -1

Definition at line 6384 of file ACMX2/acmx.cpp.

Referenced by main().

◆ midi_map_file

std::string MXArguments::midi_map_file

Definition at line 6383 of file ACMX2/acmx.cpp.

Referenced by main().

◆ mode

int MXArguments::mode = 0

Definition at line 6354 of file ACMX2/acmx.cpp.

Referenced by main().

◆ model_file

std::string MXArguments::model_file = "cube.mxmod.z"

Definition at line 6347 of file ACMX2/acmx.cpp.

Referenced by main().

◆ no_drop

bool MXArguments::no_drop = false

In video mode, pace frame production to encoder throughput.

Definition at line 6420 of file ACMX2/acmx.cpp.

Referenced by main().

◆ normalized_time

bool MXArguments::normalized_time = false

Definition at line 6407 of file ACMX2/acmx.cpp.

Referenced by main().

◆ ofilename

std::string MXArguments::ofilename

Definition at line 6337 of file ACMX2/acmx.cpp.

Referenced by main().

◆ onnx_model

std::string MXArguments::onnx_model

Generic OnnxWrapper YAML config path (–onnx). Empty when disabled.

Definition at line 6353 of file ACMX2/acmx.cpp.

Referenced by main().

◆ path

std::string MXArguments::path

Definition at line 6337 of file ACMX2/acmx.cpp.

Referenced by MainWindow::initCommon(), and main().

◆ playlist_file

std::string MXArguments::playlist_file

Definition at line 6408 of file ACMX2/acmx.cpp.

Referenced by main().

◆ png_output

bool MXArguments::png_output = false

Video-file mode only: write PNG frames to a subdirectory instead of encoding video.

Definition at line 6418 of file ACMX2/acmx.cpp.

Referenced by main().

◆ prefix_path

std::string MXArguments::prefix_path = "."

Definition at line 6346 of file ACMX2/acmx.cpp.

Referenced by main().

◆ record_audio_file

std::string MXArguments::record_audio_file

Definition at line 6374 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().

◆ record_gain

float MXArguments::record_gain = 1.0f

Definition at line 6375 of file ACMX2/acmx.cpp.

Referenced by main().

◆ remove_broken

bool MXArguments::remove_broken = false

True when --remove-broken <path> was specified.

Definition at line 6396 of file ACMX2/acmx.cpp.

Referenced by main().

◆ remove_broken_path

std::string MXArguments::remove_broken_path

Library path passed to --remove-broken.

Definition at line 6397 of file ACMX2/acmx.cpp.

Referenced by main().

◆ repeat

bool MXArguments::repeat = false

Definition at line 6359 of file ACMX2/acmx.cpp.

Referenced by main().

◆ shader_file

std::string MXArguments::shader_file

Definition at line 6345 of file ACMX2/acmx.cpp.

Referenced by main().

◆ shader_index

int MXArguments::shader_index = 0

Definition at line 6355 of file ACMX2/acmx.cpp.

Referenced by main().

◆ shader_pass_enabled

bool MXArguments::shader_pass_enabled = false

Definition at line 6393 of file ACMX2/acmx.cpp.

Referenced by main().

◆ shader_pass_files

std::vector<std::string> MXArguments::shader_pass_files

Definition at line 6392 of file ACMX2/acmx.cpp.

Referenced by main().

◆ shader_pass_list

std::vector<int> MXArguments::shader_pass_list

Definition at line 6391 of file ACMX2/acmx.cpp.

Referenced by main().

◆ silent

bool MXArguments::silent = false

Definition at line 6381 of file ACMX2/acmx.cpp.

Referenced by main().

◆ sizev

std::optional<cv::Size> MXArguments::sizev = std::nullopt

Definition at line 6356 of file ACMX2/acmx.cpp.

Referenced by main().

◆ slib

std::tuple<int, std::string, int> MXArguments::slib

Definition at line 6360 of file ACMX2/acmx.cpp.

Referenced by main().

◆ th

int MXArguments::th = 720

Definition at line 6340 of file ACMX2/acmx.cpp.

Referenced by main().

◆ time_speed

float MXArguments::time_speed = 1.0f

Definition at line 6406 of file ACMX2/acmx.cpp.

Referenced by main().

◆ tw

int MXArguments::tw = 1280

Definition at line 6340 of file ACMX2/acmx.cpp.

Referenced by main().

◆ use_shader_cache

bool MXArguments::use_shader_cache = true

Definition at line 6404 of file ACMX2/acmx.cpp.

Referenced by main().

◆ use_yuv

bool MXArguments::use_yuv = false

Definition at line 6415 of file ACMX2/acmx.cpp.

Referenced by main().

◆ watermark_b

int MXArguments::watermark_b = 150

Watermark blue channel (0-255).

Definition at line 6425 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().

◆ watermark_g

int MXArguments::watermark_g = 0

Watermark green channel (0-255).

Definition at line 6424 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().

◆ watermark_r

int MXArguments::watermark_r = 255

Watermark red channel (0-255), default magenta-pink.

Definition at line 6423 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().

◆ watermark_text

std::string MXArguments::watermark_text

User watermark text (–use-watermark). When non-empty, watermark is enabled.

Definition at line 6422 of file ACMX2/acmx.cpp.

Referenced by ACView::ACView(), and main().


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