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

Commit e9bc953a authored by Ashray Kulkarni's avatar Ashray Kulkarni
Browse files

msm: vidc: enable decoder dcvs for HEVC and VP8



decoder dcvs is enabled only for H264 codec. This commit enables
dcvs for HEVC and VP8 codecs, thereby reducing power used to
decode HEVC and VP8 4K clips.

Change-Id: Iadf3f62d6189b5045eabf5fc4a9eeafa7801a6d0
Signed-off-by: default avatarAshray Kulkarni <ashrayk@codeaurora.org>
parent 5e498329
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014 - 2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -499,9 +499,14 @@ static int msm_dcvs_check_supported(struct msm_vidc_inst *inst)
			msm_comm_get_hal_output_buffer(inst));

		is_codec_supported =
			inst->fmts[OUTPUT_PORT]->fourcc == V4L2_PIX_FMT_H264 ||
			inst->fmts[OUTPUT_PORT]->fourcc ==
			V4L2_PIX_FMT_H264_NO_SC;
			(inst->fmts[OUTPUT_PORT]->fourcc ==
				V4L2_PIX_FMT_H264) ||
			(inst->fmts[OUTPUT_PORT]->fourcc ==
				V4L2_PIX_FMT_HEVC) ||
			(inst->fmts[OUTPUT_PORT]->fourcc ==
				V4L2_PIX_FMT_VP8) ||
			(inst->fmts[OUTPUT_PORT]->fourcc ==
				V4L2_PIX_FMT_H264_NO_SC);
		if (!is_codec_supported ||
			!IS_VALID_DCVS_SESSION(num_mbs_per_frame,
					DCVS_MIN_SUPPORTED_MBPERFRAME))