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

Commit 4a1656ec authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: enable decoder dcvs for HEVC and VP8"

parents fca06cbf e9bc953a
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))