Unsupported control messages can be debug level. Remove some cruft.

This commit is contained in:
Isaac Connor
2025-12-15 09:53:34 -05:00
parent ae3e8a86b9
commit 13999ab2a3

View File

@@ -681,14 +681,6 @@ void LocalCamera::Initialise() {
} }
} // end if JPEG/MJPEG } // end if JPEG/MJPEG
if (0) {
Debug(3, "Configuring video source");
if (vidioctl(vid_fd, VIDIOC_S_INPUT, &channel) < 0) {
Error("Failed to set camera source %d: %s", channel, strerror(errno));
}
}
Debug(3, "Setting up request buffers"); Debug(3, "Setting up request buffers");
@@ -763,7 +755,6 @@ void LocalCamera::Initialise() {
1); 1);
} // end foreach request buf } // end foreach request buf
Contrast(contrast); Contrast(contrast);
Brightness(brightness); Brightness(brightness);
Hue(hue); Hue(hue);
@@ -883,7 +874,7 @@ uint32_t LocalCamera::AutoSelectFormat(int p_colours) {
if ( nIndexUsed >= 0 ) { if ( nIndexUsed >= 0 ) {
/* Found a match */ /* Found a match */
selected_palette = fmt_fcc[nIndexUsed]; selected_palette = fmt_fcc[nIndexUsed];
strcpy(palette_desc,fmt_desc[nIndexUsed]); strcpy(palette_desc, fmt_desc[nIndexUsed]);
} }
/* Close the device */ /* Close the device */
@@ -1213,7 +1204,7 @@ int LocalCamera::Control(int vid_id, int newvalue) {
if (errno != EINVAL) { if (errno != EINVAL) {
Error("Unable to query control: %s", strerror(errno)); Error("Unable to query control: %s", strerror(errno));
} else { } else {
Warning("Control is not supported"); Debug(1, "Control is not supported");
} }
} else if (newvalue >= 0) { } else if (newvalue >= 0) {
vid_control.value = newvalue; vid_control.value = newvalue;
@@ -1421,7 +1412,7 @@ int LocalCamera::Capture(std::shared_ptr<ZMPacket> &zm_packet) {
return -1; return -1;
} }
if (conversion_type == 1) { if (conversion_type == 1) {
Debug(9, "Calling sws_scale to perform the conversion"); Debug(4, "Calling sws_scale to perform the conversion");
/* Use swscale to convert the image directly into the shared memory */ /* Use swscale to convert the image directly into the shared memory */
av_image_fill_arrays(tmpPicture->data, av_image_fill_arrays(tmpPicture->data,
tmpPicture->linesize, directbuffer, tmpPicture->linesize, directbuffer,