# How to enable HDR mode in Sony IMX662

**URL:** https://forum.amebaiot.com/t/how-to-enable-hdr-mode-in-sony-imx662/4760
**Category:** Multimedia
**Tags:** rtl8735b
**Created:** [March 2, 2026, 1:49pm UTC](https://forum.amebaiot.com/t/how-to-enable-hdr-mode-in-sony-imx662/4760 "2026-03-02T13:49:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yugandhar](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/yugandhar/32/2836_2.png) [@yugandhar](https://forum.amebaiot.com/u/yugandhar)
#### Post date: [March 2, 2026, 1:49pm UTC](https://forum.amebaiot.com/t/how-to-enable-hdr-mode-in-sony-imx662/4760/1 "2026-03-02T13:49:14Z")

</div>

Hi,

The sony sensor driver supports both linear and HDR modes as mentioned in the source code.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/8/8abb86ae07dbc6160f158fd52a1db63a7308699d.png)

I tried by setting all structure memebers which has **hdr\_mode** in the files **video\_boot.c** and **video\_user\_boot.c** but, still **ATII=meta** command shows **hdr\_mode** :0

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/0/003d42e850ec1b506103278a9369a3599666303f.png)

What is the correct way to enable sensor HDR mode in application?

Thanks,

Yugandhar

---

<div class="post-metadata">

### Author: ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)
#### Post date: [March 3, 2026, 9:24am UTC](https://forum.amebaiot.com/t/how-to-enable-hdr-mode-in-sony-imx662/4760/2 "2026-03-03T09:24:37Z")

</div>

Hi @yugandhar,

Enabling and disabling HDR mode is handled through initialization configuration.

**For non-FCS mode,**  
You may refer to [mmf2\_video\_example\_v1\_param\_change\_init.c](https://github.com/Ameba-AIoT/ameba-rtos-pro2/blob/a323de49509c9e7c54e9872180a8cfd27b0cff3b/project/realtek_amebapro2_v0_example/src/mmfv2_video_example/mmf2_video_example_v1_param_change_init.c#L307) as a reference for enabling or disabling HDR mode under `ISP_INIT_TEST`:

To enable HDR mode, you may modify line 307 as follows:  
`init_params.init_isp_items.init_hdr_mode = 1;`

If you are testing this example, after the application starts running, you can use the AT command below to trigger `ISP_INIT_TEST`:  
AT command to use: `PCT=05`

When HDR mode is successfully enabled, you should see the following log message:  
`[VOE][Ini set0]init dn 0 hdr 1 mirrorflip 0xf0`.

You can integrate this configuration into your application.

**For FCS mode,**  
You have to modify line 532 in  
[video\_user\_boot.c](https://github.com/Ameba-AIoT/ameba-rtos-pro2/blob/a323de49509c9e7c54e9872180a8cfd27b0cff3b/component/video/driver/RTL8735B/video_user_boot.c#L532)  
`init_params.init_isp_items.init_hdr_mode = 1;`
