# QBC HDR

Source: [https://docs.qualcomm.com/doc/80-70015-50/topic/qbc-hdr.html](https://docs.qualcomm.com/doc/80-70015-50/topic/qbc-hdr.html)

Quad Bayer coding high dynamic range (QBC HDR) is an image sensor technology that
        captures multiple exposures simultaneously and merges them to create a wider dynamic
        range.

## QBC HDR video/preview

Enable in-sensor HDR for video
                stream:

    gst-pipeline-app -e qtiqmmfsrc name=camsrc video_0::type=preview vhdr=4 !  video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! v4l2h264enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,video_bitrate=6000000,video_bitrate_mode=0;" ! h264parse ! mp4mux ! filesink location=/opt/cam_1080p.mp4 camsrc.image_1 ! "image/jpeg,width=3840,height=2160,framerate=30/1" ! multifilesink location=/opt/frame%d.jpg async=false sync=trueCopy to clipboard

## QBC HDR snapshot

Enable in-sensor HDR for snapshot. When enabled, the camera backend enables the
                in-sensor HDR for snapshot based on the scene:

    gst-pipeline-app -e qtiqmmfsrc name=camsrc video_0::type=preview vhdr=5 !  video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc ! v4l2h264enc capture-io-mode=5 output-io-mode=5 extra-controls="controls,video_bitrate=6000000,video_bitrate_mode=0;" ! h264parse ! mp4mux ! filesink location=/opt/cam_1080p.mp4 camsrc.image_1 ! "image/jpeg,width=3840,height=2160,framerate=30/1" ! multifilesink location=/opt/frame%d.jpg async=false sync=trueCopy to clipboard

**Parent Topic:** [Camera](https://docs.qualcomm.com/doc/80-70015-50/topic/camera.html)

Last Published: Oct 27, 2025

[Previous Topic
Enable WebRTC](https://docs.qualcomm.com/bundle/publicresource/80-70015-50/topics/enable-webrtc.md) [Next Topic
Camera and video encode](https://docs.qualcomm.com/bundle/publicresource/80-70015-50/topics/camera-and-video-encode.md)