Received: by 10.192.165.148 with SMTP id m20csp2922990imm; Mon, 7 May 2018 03:40:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrJCabQfv/lEj2iAc2OTsQj04fyESFl+Sii4DuG+OO8vlTrF42gfdnKEyTRz+gjDyzrOTdl X-Received: by 2002:a63:6445:: with SMTP id y66-v6mr29630249pgb.206.1525689613432; Mon, 07 May 2018 03:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525689613; cv=none; d=google.com; s=arc-20160816; b=TQUHswIwaf4YYG2hWa5RbGkHE5E9b3oI4in9i4SetnhFLDiW8lEWbQq6GDhca5nLI3 +pM1o/T4sOInNwWXlIXt4jegidIGc3gZZUnONmrOiXlH8v0s5aPZHdBHPQHI37SIn9eA G+50n+WybIlwix+AAXBPnmfKCXHb2ahzVuUAs+DTARcAF4KNbEfV5qimOoGyBVgdVfPu Kyybh4qk30uT+4iKyRclcV0Ka9ibBroAr8BZ4U6Ur5zqV1lMITYvWxyVRcUZC+CepdPh g5QsRKQx7tVSSFDjPNQmB4wzeS9O1s0tVvpv7eCZ8Sqj1HHY8SzNCg3U5v/FgF3taLOx xBFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=pbFWfi+uS/26n1shzQP7iRKB2J0/hx1CBYBKGB4kcBg=; b=MBLplWp6WjGctlN865UdMplzZ2Dlgnt02RRLEDOV81R0VIfWkhl7I1gGx25mb7sCpG VX6jHQWi8hfOvcId393vA0veZ4BZfPVH9qn+V5qQIC8T/a2uNOaPSgteAU4cTFZvbOm4 Wk32vfF2jydCStfNChajb3jemDX+YNHldTIuH8wdACYGy2+uE5qZNEts+3PVKg6FBviw zdbMvqyyPgbFaveYx3JmDNd1d7+9iSEJG7o9/DsF49OIjhIDx0GLNsrnqd23Xw7e3u/a OER50g4Bg0/w1ktOmqXAFMoXXupyZu59/V3Dy7p9asNeDZQHt7UmaSFhnIrVrSlEZtUN lklA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b65-v6si20999019plb.162.2018.05.07.03.39.58; Mon, 07 May 2018 03:40:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752060AbeEGKjr (ORCPT + 99 others); Mon, 7 May 2018 06:39:47 -0400 Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]:35700 "EHLO lb3-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbeEGKjn (ORCPT ); Mon, 7 May 2018 06:39:43 -0400 Received: from [IPv6:2001:983:e9a7:1:2913:d371:8c33:6f] ([IPv6:2001:983:e9a7:1:2913:d371:8c33:6f]) by smtp-cloud9.xs4all.net with ESMTPA id FdYTfcbvfHgC9FdYUfFpJD; Mon, 07 May 2018 12:39:42 +0200 Subject: Re: [PATCH 28/28] venus: add HEVC codec support To: Stanimir Varbanov , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia References: <20180424124436.26955-1-stanimir.varbanov@linaro.org> <20180424124436.26955-29-stanimir.varbanov@linaro.org> From: Hans Verkuil Message-ID: <4ae458ed-97b6-b23f-88c4-0a5efd754d9d@xs4all.nl> Date: Mon, 7 May 2018 12:39:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180424124436.26955-29-stanimir.varbanov@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfPPBYtGuPFFGc3yswdj7bLOLlheNlK34Y8nKK/1JIpWDbjm/Lmv0IUo8M7qXiD4OR4jLhjS9XCXrAi4XJpv3naqleMn2rNTpQ0BIMf+ER/+WmDoTK1a6 JnRbFNLN9c26CUc1T2RoK4Dvs9TRyIkcYFBnJ0ANl2roMrNfF0QDoxxiu2ija13Zoz7EEC/hwd4n2Q9uYblv4psHEg4l96n0WvvraEzaddoWgCzifKtGgCXv kfchS6ZWudNsEtZA8PDEiz/7FOSVS/A80zVjoxzNTrscuw/C/aIO8Qh05t6+AiXp5f+S/Nf7LvPvUV0oYauIKYizGMnAOb9bVEv7T/wDDZ/r4vhtYgCXDf8i bjH/mYnude8GIUwa/CiPzAL5X5vKyG63v3REWerwmN43DTcBBLnQvhvD+n/yBJupeXSabG84hJgMAY/vMydUrPQMRd10WL+hx3u2v0uJy8OsQNcntV0dl/Tx EpcaC55pik2MtCkF Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/04/18 14:44, Stanimir Varbanov wrote: > This add HEVC codec support for venus versions 3xx and 4xx. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/helpers.c | 3 +++ > drivers/media/platform/qcom/venus/hfi.c | 2 ++ > drivers/media/platform/qcom/venus/vdec.c | 4 ++++ > drivers/media/platform/qcom/venus/venc.c | 4 ++++ > 4 files changed, 13 insertions(+) > > diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c > index 87dcf9973e6f..fecadba039cf 100644 > --- a/drivers/media/platform/qcom/venus/helpers.c > +++ b/drivers/media/platform/qcom/venus/helpers.c > @@ -71,6 +71,9 @@ bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt) > case V4L2_PIX_FMT_XVID: > codec = HFI_VIDEO_CODEC_DIVX; > break; > + case V4L2_PIX_FMT_HEVC: > + codec = HFI_VIDEO_CODEC_HEVC; > + break; > default: > return false; > } > diff --git a/drivers/media/platform/qcom/venus/hfi.c b/drivers/media/platform/qcom/venus/hfi.c > index 94ca27b0bb99..24207829982f 100644 > --- a/drivers/media/platform/qcom/venus/hfi.c > +++ b/drivers/media/platform/qcom/venus/hfi.c > @@ -49,6 +49,8 @@ static u32 to_codec_type(u32 pixfmt) > return HFI_VIDEO_CODEC_VP9; > case V4L2_PIX_FMT_XVID: > return HFI_VIDEO_CODEC_DIVX; > + case V4L2_PIX_FMT_HEVC: > + return HFI_VIDEO_CODEC_HEVC; > default: > return 0; > } > diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c > index 7deee104ac56..a114f421edad 100644 > --- a/drivers/media/platform/qcom/venus/vdec.c > +++ b/drivers/media/platform/qcom/venus/vdec.c > @@ -77,6 +77,10 @@ static const struct venus_format vdec_formats[] = { > .pixfmt = V4L2_PIX_FMT_XVID, > .num_planes = 1, > .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, > + }, { > + .pixfmt = V4L2_PIX_FMT_HEVC, > + .num_planes = 1, > + .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, > }, > }; > > diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c > index a703bce78abc..fdb76b69786f 100644 > --- a/drivers/media/platform/qcom/venus/venc.c > +++ b/drivers/media/platform/qcom/venus/venc.c > @@ -59,6 +59,10 @@ static const struct venus_format venc_formats[] = { > .pixfmt = V4L2_PIX_FMT_VP8, > .num_planes = 1, > .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, > + }, { > + .pixfmt = V4L2_PIX_FMT_HEVC, > + .num_planes = 1, > + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, > }, > }; > > No changes are necessary to venc_set_properties() for HEVC support? Just checking, I kind of expected that. Regards, Hans