Received: by 10.192.165.148 with SMTP id m20csp3446348imm; Mon, 7 May 2018 12:25:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrXawOfR3rcvF8Aj909EzQOO20IndsTs3Ekso8urJVh9wZKWkmstihkjGfV05bDbmbr/Yec X-Received: by 2002:aca:b941:: with SMTP id j62-v6mr16026738oif.290.1525721141377; Mon, 07 May 2018 12:25:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525721141; cv=none; d=google.com; s=arc-20160816; b=vnE6BDNnBBjme7X8QwwH1xYGIMPfSnAMhV3exLgqBt8rKehmPxq/tx2r++JhflknND zEGACO5xgYI/PZ4a/LrCP3U5N2iH9bXK0fj1PqnLYxyMGEFpZCHx8VRaYuuP4NTYulDa /9XWd7mfQWMEf0UNvDYXVT7wYuu/g1a/As5wSY0YoNpY9+sfItJzlvwiked8QNUe+yJU lgT9UwJKI2pDbqALUJBP2EIxRsnTMDiFKTPpGvtURmBxAz9x7YTBJggSpwRpNj7yT+E/ +2D9sWRWdVSQKSk0MzlDQG/iIy0+4ZZnS/PO17WVdjIO7IddvmBEASKOQlwrvTThPVUY y5GA== 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:dkim-signature :arc-authentication-results; bh=sx+QMf0fUmA+DW0dhSgTt9vYyvvbEIHYKRwgel41xPQ=; b=bnDSqmLHiMPRwiAQ7lX5kwBu5JIN9s40Ge1qLqMcy9+PFrN7FxZKj1VUxnM1MHRGka AE1jWoOIQKbMIfXgVrPnSkrNG435mse2RFJ0cW0Kmkprm943cOmG1JW52D1p4e8stIV6 VVYJEVw3KI4ag5u0a5STKbXVjoW6pQhmUFLX97pWgPLRF7L0+FcqwHYiW8bUGFaz/Jri fxnkrO6msszDEuxyNF9Cydl1S/jwjWZ6swlqWIBlzAOlygQ1B9SjkxKyhz0VQLetIzaM OvXVjRjFC/n9NLR5hZieBLcZClkMKjfA1M+lwP0bEJT2BgggLzopkHkkB72s6HNLYG/R AQzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cDgOWU3x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u27-v6si8931719ote.165.2018.05.07.12.25.27; Mon, 07 May 2018 12:25:41 -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; dkim=pass header.i=@linaro.org header.s=google header.b=cDgOWU3x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752739AbeEGTYo (ORCPT + 99 others); Mon, 7 May 2018 15:24:44 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53793 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbeEGTYm (ORCPT ); Mon, 7 May 2018 15:24:42 -0400 Received: by mail-wm0-f68.google.com with SMTP id a67so15064057wmf.3 for ; Mon, 07 May 2018 12:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sx+QMf0fUmA+DW0dhSgTt9vYyvvbEIHYKRwgel41xPQ=; b=cDgOWU3xCoVjKxbR/RMCQRH29nMsUDyPVX+SattiTl/t8PG20tJF2VGuxAWjd72ax4 23+R6SF89Gs7FvNruKruz9K34KJcDotQC2L0IehJ8fbPbwYAQWfPre93CjHHlUd9K2XD 0E9d4jd3vSnjZhhuwqjdzJJmI2rLKE5F0i18c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sx+QMf0fUmA+DW0dhSgTt9vYyvvbEIHYKRwgel41xPQ=; b=oEhDlU803cntgaAKB+ltT6ZOfgVdObcGH2xFsatJBu+bvLE5DdKmeiFUq2RApC/hN3 4FDCqYnOYOZ4l5W14sgzGoDmq67BwEsXtgmUSWPB7EykGdnw5Bz0tyq5/WQ9G6ac3GnI rauN3LPV0GK4EqOy1ntZNoUwa6/KFeO2jUm5NEm+ZZJl4hRiTCnK6ncnaN2K+YcnlaQ0 rxdZ3dgrYKH2zq2yJ+cuxmcPVq2HeLjYwhqmbx5zTUVb3byKY35tYbTK8YeNoEDDjcdE 7mdNAiT1JC/qo/UubGhW1pzka/S3dWGwSBZdfvN+iR3LIE8S1gNi4sf4CpC+sADTqbeS ztrQ== X-Gm-Message-State: ALKqPwctGLGnQStnRO6z10e33NJWCNgW6bmcumX2tG3k6h4UeAbTqLu1 s6x1sl+3aztRfrhFYS3obPcyoA== X-Received: by 2002:a1c:3341:: with SMTP id z62-v6mr1513005wmz.63.1525721080821; Mon, 07 May 2018 12:24:40 -0700 (PDT) Received: from [192.168.1.7] (hst-221-36.medicom.bg. [84.238.221.36]) by smtp.googlemail.com with ESMTPSA id o9-v6sm25277855wrn.74.2018.05.07.12.24.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 12:24:39 -0700 (PDT) Subject: Re: [PATCH 28/28] venus: add HEVC codec support To: Hans Verkuil , 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> <4ae458ed-97b6-b23f-88c4-0a5efd754d9d@xs4all.nl> From: Stanimir Varbanov Message-ID: Date: Mon, 7 May 2018 22:24:38 +0300 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: <4ae458ed-97b6-b23f-88c4-0a5efd754d9d@xs4all.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans, On 7.05.2018 13:39, Hans Verkuil wrote: > 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. yes, I think so, but will leave that for future updates. regards, Stan