Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9df2fe7 authored by Amit Shekhar's avatar Amit Shekhar
Browse files

msm: vidc: Fix minimum supported resolution for HW HEIC encode



Input frame having width or height less than 512 is not supported
by HW HEIC encoder.

Change-Id: I8f504985452ce9661513a73a326d7da2d7192cba
Signed-off-by: default avatarAmit Shekhar <ashekhar@codeaurora.org>
parent 4f1e2f62
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2402,10 +2402,10 @@ bool heic_encode_session_supported(struct msm_vidc_inst *inst)
		n_bframes == 0 &&
		n_pframes == 0) {
		if (inst->grid_enable > 0) {
			if (!(inst->prop.height[CAPTURE_PORT] ==
				inst->prop.width[CAPTURE_PORT] &&
				inst->prop.width[CAPTURE_PORT] ==
					HEIC_GRID_DIMENSION))
			if (inst->prop.width[CAPTURE_PORT] <
					HEIC_GRID_DIMENSION ||
				inst->prop.height[CAPTURE_PORT] <
					HEIC_GRID_DIMENSION)
				return false;
			}
		return true;