Hi,
Sorry for the wrong VPU kernel driver indication form iMX8M Mini above.
From iMX_Reference_Manual Rev. L4.14.62_1.0.0_beta, 11/2018, I could confirm that, iMX8M Mini uses Hantro VPU as shown below,

The following diagram shows the VPU_H1 Register 18 fields (SWREG18).


From the above register definition,
- Setting Bit 21 will make encoder set in High Profile
- Setting Bit 18 will make encoder set in Main Profile
- Clearing Bit 18 will make encoder set in Base Profile
Is my understanding of this correct?
We are using Kernel version 4.14.78. In the kernel corresponding driver for Hantro VPU Encoder is "drivers/mxc/hantro_845_h1/hx280enc.c"
I tried changing the H264 Profile to HIGH by configuring VPU_H1 Register 18, in the "hx280enc_init(void)" function present in the encoder driver file "drivers/mxc/hantro_845_h1/hx280enc.c" as follows,
static int __init hx280enc_init(void)
{
u32 vpu_h1_reg18;
---
---
+ vpu_h1_reg18 = readl(hx280enc_data.hwregs + 0x48);
+ pr_info("hx280enc: vpu_h1_reg18 <%x>\n", vpu_h1_reg18);
+ vpu_h1_reg18 |= (1 << 21); /*H.264 Transform 8x8 enable. High Profile H.264. transform8x8Mode*/
+ pr_info("hx280enc: vpu_h1_reg18 <%x>\n", vpu_h1_reg18);
+ writel(vpu_h1_reg18, hx280enc_data.hwregs + 0x48); /* SWREG18 */
}
Am I configuring the HX280 encoder correctly to high profile? Is there any way to validate High profile encoding?
Kinldy help me to resolve this.
Thanks,
Koil Arul Raj.S