QCS6490Stable
LEF/SEF
Dual Exposure
DOL
Row Interleaved
v3
Dual VC
v2
Single VC
Platform Scope:
This section is only applicable for QCS6490.
This section is only applicable for QCS6490.
01 · What Is It?
Staggered High Dynamic Range (SHDR) mode is a sensor feature that outputs frames with different exposure times - Long exposure frame (LEF) and short exposure frame (SEF).- The sensor outputs a pair of two lines as one unit. The frame of LEF and the frame of SEF are output alternately in the pair of these two lines.
- The rolling shutter readout is staggered (row interleaved) so that the short integration starts immediately (within the same frame) after sampling of the long integration. This is also called Digital Overlap (DOL) mode.
- The SHDR sensors are capable of outputting LEF and SEF frames with a single virtual channel (the single frame contains both LEF and SEF in an interleaved manner) or different virtual channels (LEF and SEF frames are output separately on different virtual channels).
- On Qualcomm chipsets, there are two solutions (SHDR v3 and SHDR v2). SHDR v3 works for dual virtual channels. SHDR v2 works for single virtual channel.
Connect to the device console using SSH. See How To SSH? for instructions.
Collect the logs by running:
journalctl -f > /opt/log.txt02 · SHDR v3 - Dual virtual channel with two-frame exposure
The SHDR v3 solution uses sensors that can send the exposure frames (LEF, SEF) on different CSI virtual channels. Long and short exposure frames are transmitted on different virtual channels. Use the following GStreamer command to enable SHDR v3:GStreamer (SHDRv3)
/opt/cam_4k.mp4.
To verify the SHDR v3 use case is selected, check for the following log:
Log Verification
03 · SHDR v2 - Single virtual channel with two-frame exposure
The SHDR v2 solution requires the sensor to output both LEF and SEF on a single virtual channel in an interleaved manner (also referred to as DOL mode). The rolling shutter readout is staggered (row interleaved) so that the short integration starts immediately (within the same frame) after sampling of the long integration. Use the following GStreamer command to enable SHDR v2:GStreamer (SHDRv2)
/opt/cam_4k.mp4.
To verify the SHDR v2 use case is selected, check for the following log:
Log Verification
04 · Defog feature
Defog is a fog detection and removal technique. This feature allows users to remove the foggy effect in poor weather conditions, such as rain, smog, haze, or fog. It provides a defogged image by improving the image quality in SHDR v2 and SHDR v3 use cases. The defog library performs defog operations with the statistics and interpolation data collected from IFE, BPS, and IPE and generates new tables for the IQ modules to apply in the next frame.Validation
Configure override settings
Use the following override settings in
/var/cache/camera/camxoverridesettings.txt to verify the defog feature is working:Camx Override Settings
Test the defog feature
Run the following command to test defog with a SHDR v2 use case:Run the following command to test defog with a SHDR v3 use case:
GStreamer (Defog with SHDRv2)
GStreamer (Defog with SHDRv3)
Enable defog manually
- Select (1) READY.
- Select (3) PLAYING.
- Press Enter.
- Select (p) Plugin Mode.
- Select (8) camsrc.
- Select (24) defog-table.
- Enter the following string to enable defog:
- Close the camera by selecting (b) BACK and then (q) QUIT. The video file is saved at
/opt/cam_4k.mp4.

