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

Commit 722eb72b authored by Sanjay Singh's avatar Sanjay Singh
Browse files

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



Increase 10-bit enc bistream buffer size for <=480p.
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>
Signed-off-by: default avatarSanjay Singh <sisanj@codeaurora.org>
parent 1a661700
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/*
/*
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
 */
 */


#include "msm_vidc_debug.h"
#include "msm_vidc_debug.h"
@@ -1043,7 +1043,7 @@ u32 msm_vidc_calculate_enc_output_frame_size(struct msm_vidc_inst *inst)
		goto calc_done;
		goto calc_done;


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