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

Commit 5bf127b9 authored by Priyanka Gujjula's avatar Priyanka Gujjula
Browse files

msm: vidc: Increase 10-bit enc o/p buffer size for <=360p



Increase 10-bit enc bistream buffer size for <=360p.
For 8-bit YUV size : w x h x 1.5
For 10-bit YUV size : w x h x 1.5 x 2

Change-Id: I6fddcf960b8b06fe6edbe4b8262374303a045530
Signed-off-by: default avatarPriyanka Gujjula <pgujjula@codeaurora.org>
parent 0dee8c8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1005,7 +1005,7 @@ u32 msm_vidc_calculate_enc_output_frame_size(struct msm_vidc_inst *inst)
		goto calc_done;

	if (mbs_per_frame <= NUM_MBS_360P)
		goto calc_done; /* Default frame_size = YUVsize * 2 */
		(void)frame_size; /* Default frame_size = YUVsize * 2 */
	else if (mbs_per_frame <= NUM_MBS_4k)
		frame_size = frame_size >> 2;
	else