فهرست منبع

video: driver: Update AV1D Line buffer calculation

For legacy codecs, the line buffers are calculated by assuming
OPB size (worst-case). However, for AV1D, the line buffer size
can be smaller than required if OPB is assumed. Hence, add an
exception for AV1D.

Change-Id: I25b6ae630994e8c4c216499c10d7c217ad550d2b
Signed-off-by: Mihir Ganu <[email protected]>
Mihir Ganu 3 سال پیش
والد
کامیت
e8a948045a
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      driver/variant/iris3/src/msm_vidc_buffer_iris3.c

+ 4 - 2
driver/variant/iris3/src/msm_vidc_buffer_iris3.c

@@ -154,9 +154,11 @@ static u32 msm_vidc_decoder_line_size_iris3(struct msm_vidc_inst *inst)
 		is_opb = false;
 	/*
 	 * assume worst case, since color format is unknown at this
-	 * time
+	 * time. The exception is AV1D, where line buffer size is larger
+	 * in DPB-only mode.
 	 */
-	is_opb = true;
+	if (inst->codec != MSM_VIDC_AV1)
+		is_opb = true;
 
 	if (inst->decode_vpp_delay.enable)
 		vpp_delay = inst->decode_vpp_delay.size;