mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-05 22:39:50 +00:00
rpicamera: set default denoise mode to "off"
this improves performance for most users.
This commit is contained in:
parent
c49416c07a
commit
a679fc6321
@ -275,14 +275,14 @@ bool camera_start(camera_t *cam) {
|
||||
ctrls.set(controls::AwbMode, awb_mode);
|
||||
|
||||
int denoise_mode;
|
||||
if (strcmp(camp->params->denoise, "off") == 0) {
|
||||
denoise_mode = controls::draft::NoiseReductionModeOff;
|
||||
} else if (strcmp(camp->params->denoise, "cdn_off") == 0) {
|
||||
if (strcmp(camp->params->denoise, "cdn_off") == 0) {
|
||||
denoise_mode = controls::draft::NoiseReductionModeMinimal;
|
||||
} else if (strcmp(camp->params->denoise, "cdn_hq") == 0) {
|
||||
denoise_mode = controls::draft::NoiseReductionModeHighQuality;
|
||||
} else {
|
||||
} else if (strcmp(camp->params->denoise, "cdn_fast") == 0) {
|
||||
denoise_mode = controls::draft::NoiseReductionModeFast;
|
||||
} else {
|
||||
denoise_mode = controls::draft::NoiseReductionModeOff;
|
||||
}
|
||||
ctrls.set(controls::draft::NoiseReductionMode, denoise_mode);
|
||||
|
||||
|
@ -299,8 +299,8 @@ paths:
|
||||
# values: auto, incandescent, tungsten, fluorescent, indoor, daylight, cloudy, custom
|
||||
rpiCameraAWB: auto
|
||||
# denoise operating mode.
|
||||
# values: auto, off, cdn_off, cdn_fast, cdn_hq
|
||||
rpiCameraDenoise: auto
|
||||
# values: off, cdn_off, cdn_fast, cdn_hq
|
||||
rpiCameraDenoise: "off"
|
||||
# fixed shutter speed, in microseconds.
|
||||
rpiCameraShutter: 0
|
||||
# metering mode of the AEC/AGC algorithm.
|
||||
|
Loading…
Reference in New Issue
Block a user