Re: [PATCH 1/4] media: qcom: iris: Add intra refresh support for gen1 encoder

From: Bryan O'Donoghue

Date: Thu Nov 27 2025 - 05:35:27 EST


On 27/11/2025 07:44, Wangao Wang wrote:
+ hfi_val.mbs = fmt->width * fmt->height;
+ hfi_val.mbs /= 16 * 16;

256

But why ? Also why express it as 16 * 16 ?

+ if (hfi_val.mbs % ir_period)
+ hfi_val.mbs++;
+ hfi_val.mbs /= ir_period;

This code deserves some commentary.

---
bod