# Wide dynamic range and electronic image stabilization Source: [https://docs.qualcomm.com/doc/80-70020-50/topic/dynamic-range-and-image-stabilization.html](https://docs.qualcomm.com/doc/80-70020-50/topic/dynamic-range-and-image-stabilization.html) The **gst-camera-shdr-ldc-eis-example** application shows the staggered high dynamic range (sHDR), lens distortion correction (LDC), and electronic image stabilization (EIS) camera imaging features. For more information, see [Overview of camera imaging features](https://docs.qualcomm.com/doc/80-70020-50/topic/dynamic-range-and-image-stabilization.html#dynamic-range-and-image-stabilization__section_em1_gjq_pcc). Note: This sample application isn't supported on Dragonwing IQ-8275 and Dragonwing IQ-9075. The following figure shows the pipeline, where the input is received from the camera and the output is displayed using Waylandsink. For more information about the pipeline, see [Pipeline flow](https://docs.qualcomm.com/doc/80-70020-50/topic/dynamic-range-and-image-stabilization.html#dynamic-range-and-image-stabilization__section_f1t_5wf_mcc). ## Prerequisites - [Get started with the Qualcomm IM SDK](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-51/install-sdk.html) for your Qualcomm Linux 1.5 or Ubuntu Server. - Activate SSH on your Qualcomm Linux or Ubuntu to sign in with SSH and connect to the target device. For instructions see: - [Sign in using SSH](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-254/how_to.html#use-ssh) for Qualcomm Linux - [Sign in using SSH](https://docs.qualcomm.com/bundle/publicresource/topics/80-90441-1/Use_Ubuntu_on_RB3_Gen2_3.html#sign-in-to-the-rb3-gen-2-console-using-ssh) for Ubuntu Server Note: If SSH is already set up and Wi-Fi is connected, skip this step. - Use the HDMI port to connect the display to the device. For instructions, see [Set up HDMI display](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-18/samples.html). - Sign in to the target device using SSH. - In the terminal of the target device, run the following commands from the SSH shell of the target device to activate the display on the host computer: - For Linux: export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard - For Ubuntu Server: export XDG_RUNTIME_DIR=/run/user/$(id -u ubuntu)/ && export WAYLAND_DISPLAY=wayland-1 Copy to clipboard - Connect the speaker to activate the audio on the target device. For instructions, see [Set up audio hardware](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-16/enable-audio.html). If you face issues in recording the audio, run the following command in the terminal of the target device: pactl set-default-source pal_source_speaker_micCopy to clipboard - If you face issues with the camera or display, see [Camera troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-17/troubleshooting.html) and [Display troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-18/debug.html). - For sHDR, ensure that the Sensor mode for Digital Overlap mode is enabled and tuned. - For LDC and EIS, ensure that the sensor and hardware are tuned. ## Run the application 1. In the terminal of the target device, run the respective command for any of the following use cases to display the output: - sHDR gst-camera-shdr-ldc-eis-example -s 1 -w 1920 -h 1080Copy to clipboard - Note: This use case isn't supported on the Ubuntu Server. - LDC gst-camera-shdr-ldc-eis-example -l 1 -w 1920 -h 1080Copy to clipboard - EIS gst-camera-shdr-ldc-eis-example -e 1 -w 1920 -h 1080Copy to clipboard 2. To stop the use case, use CTRL + C. 3. In the terminal of the target device, run the following command in the SSH shell to display the available help options: gst-camera-shdr-ldc-eis-example --helpCopy to clipboard ## Expected output - sHDR Figure : Output without sHDR  Figure : Output with sHDR  - LDC Figure : Output without LDC  Figure : Output with LDC  ## Pipeline flow The following table lists the plugins used in the gst-camera-shdr-ldc-eis-example pipeline:| Plugin | Description | | --- | --- | | [qtiqmmfsrc](https://docs.qualcomm.com/doc/80-70020-50/topic/qtiqmmfsrc.html) | Captures the camera feed and sends it to the capsfilter. | | Capsfilter | Passes the feed for display. | | [Waylandsink](https://docs.qualcomm.com/doc/80-70020-50/topic/waylandsink.html) | Shows the output on the Wayland display. | ## Overview of camera imaging features The following table provides a brief description of the supported imaging features. Table : Camera imaging features | Feature | Description | | :--- | :--- | | sHDR |