summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/denoise_status.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2022-12-20 14:55:34 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-12-20 14:55:34 +0000
commitf66a5c447b65bce774a1bc2d01034f437bf764b5 (patch)
tree39a891d7f01ba7cb09fe5bba4622fd90b1114c85 /src/ipa/raspberrypi/controller/denoise_status.h
parent3c70cae5e501ea2e74dc5813b58298c6cb28ac74 (diff)
libcamera v0.0.3v0.0.3
Key bug fixes: * Segfault in the ContolInfo() constructor for an empty V4L2 menu Bug: https://bugs.libcamera.org/show_bug.cgi?id=167 Fix: libcamera: v4l2_device: Workaround faulty control menus This resolves and prevents crashes that have occured in Pipewire when users connect poorly implemented UVC devices. ABI Compliance: abi-compliance-checker reports 100% ABI and API compatibility with with v0.0.2, however 81e7689bb168 ("libcamera: stream: Turn StreamRole into scoped enumeration") modifies an enum into a class enum. This may need minor updates to applications, and didn't appear to be picked up by abi-compliance-checker. - See https://git.libcamera.org/libcamera/libcamera.git/commit/?id=81e7689bb168a for more details. Highlights: Core: * Fix tracing when built as a subproject * Avoid double map lookups in framebuffer_allocator * Workaround faulty control menus * controls: Change LensPosition units to dioptres * camera_sensor: Add IMX519 sensor properties * Documentation: contributing: Add commit message guidelines * Declare generic converter interface utils: * Add libtuning * Add initial libtuning script support for rkisp1 and raspberrypi. * checkstyle.py: Check new header file on new and renamed meson.build files ipa: * Move IPA sensor controls validation to CameraSensor (IPU3/RKISP1) rkisp1: * Support FrameDurationLimits control for FrameRate management * Support raw capture (IPA, configuration, and runtime) * Add support for manual gain and exposure * Fix stream size validation * Add additional default values to controls imx8-isi: * Enumerate supported stream formats * Set SensorTimestamp metadata Raspberry Pi: * Remove generic "pause" mechanism from Algorithm - Remove enum BuffferMask from the mojom interface - Fix digital gain calculations for manual mode - Fix bug in IPA frame drop logic - imx477: Update tuning file for the latest camera modules - Add a "scientific" tuning for the IMX477 Apps: - cam: kms: Avoid 'unused-parameter' warnings - cam: Support parsing array controls in capture scripts - gstreamer: Improve control id lookups - lc-compliance: simple_capture: Free Requests properly python: - Support controls that use an array of Rectangles - Expose the Request Sequence Number in Python Bindings test: - Validate CameraSensor Ancillary Devices (focusLens) - controls: control_info: Test default def() values Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/denoise_status.h')
0 files changed, 0 insertions, 0 deletions
"hl kwd">open(argv[2], O_WRONLY | O_TRUNC | O_CREAT, 0644); if (out_fd == -1) { fprintf(stderr, "Failed to open output file '%s': %s\n", argv[2], strerror(errno)); return 1; } while (1) { uint8_t in_data[32]; uint8_t out_data[50]; unsigned int i; ret = read(in_fd, in_data, 32); if (ret == -1) { fprintf(stderr, "Failed to read input data: %s\n", strerror(errno)); goto done; } if (ret < 32) { if (ret != 0) fprintf(stderr, "%u bytes of stray data at end of input\n", ret); break; } for (i = 0; i < 25; ++i) { unsigned int index = (i * 10) / 8; unsigned int lsb_shift = (i * 10) % 8; unsigned int msb_shift = 8 - lsb_shift; uint16_t pixel; pixel = ((in_data[index+1] << msb_shift) & 0x3ff) | ((in_data[index+0] >> lsb_shift) & 0x3ff); out_data[i*2+0] = (pixel >> 0) & 0xff; out_data[i*2+1] = (pixel >> 8) & 0xff; } ret = write(out_fd, out_data, 50); if (ret < -1) { fprintf(stderr, "Failed to read input data: %s\n", strerror(errno)); goto done; } } done: close(in_fd); close(out_fd); return ret ? 1 : 0; }