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

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

msm_vidc: Skip mbpf check for image sessions



MBs per frame for HEIF encode can be pretty large for high resolution
images. Skip mbpf check for image sessions.

Change-Id: I993115743f4792377a3a008b341d4c8256b102b9
Signed-off-by: default avatarAmit Shekhar <ashekhar@codeaurora.org>
parent c8be54f0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -5877,7 +5877,11 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst)
			width_max, height_max);
			rc = -ENOTSUPP;
		}
		if (!rc && NUM_MBS_PER_FRAME(input_width, input_height) >
		/* Image size max capability has equal width and height,
		 * hence, don't check mbpf for image sessions.
		 */
		if (!rc && !is_image_session(inst) &&
			NUM_MBS_PER_FRAME(input_width, input_height) >
			mbpf_max) {
			dprintk(VIDC_ERR, "Unsupported mbpf %d, max %d\n",
				NUM_MBS_PER_FRAME(input_width, input_height),