Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3423158pxb; Mon, 9 Nov 2020 10:41:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxT0vOesH60RhNbSYcl38iy6kGxqFyafIcmbxXE/EnQxTmeO3Uzr/Et5npampNY3AtGDla1 X-Received: by 2002:a17:906:9902:: with SMTP id zl2mr16012056ejb.510.1604947316630; Mon, 09 Nov 2020 10:41:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604947316; cv=none; d=google.com; s=arc-20160816; b=ybNVinbf+dAXontmcEKq7wgnkxOvCcMoBf0SEAWGOQzfmrDPj6kGbBeVg/iJEkMGx7 9f1ZYImhX5z7up7Mc14Gcx/yUxxc9wGnHmGRKk2WlhbAvP1W/AAtSIhtdOmaSdCeVvvN FxU83bFk8g/QbcFLjL8mzSWh0t01ATAdYINSaD5680MzUZYaE4mvYrTOLvxU9A/1YMVD LmqlvHRevv76wlacvRwCpxuQKSyDpzpYLHreqHE9kip4Kz04KPCZA24zjUOlKN7sKGyi 95lk0f/uN4Unm9tWAmbpFnpC5+7BYB7wmms0TD6vRNRTj/WUOCzc2fXtyoOna9MHqeoP wyKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=doUGAeIL/uCwIwhtZoU/6/f5D+UDmOK+Y+fOdX7Dniw=; b=go3BPtzkj6RDae2hnkku34kccHjlqzlI5nEuTck567NRNgu8jaklbcETWTShTFovZD uBLtfOYQvSQH9RiZD3cLdLK78/IAzHbWF/D2VbGQRdPBw19nxhxZ+bsGKsN4cFtBt4SI hzQuppQJnBTpJpCYxTi6Wb3jepj+TC2eEiQZfxPrmceZDBbQQ1TUv45J2kmFBJXc8uP/ mtfV5IqLTpwusiO3qAtzTzem0mhYaifGHe6yT6XC+f/rErqVlSByz0qWG4S1DLN9W1Gi siJSMEUKqMjOII1YxToSJxloQyGGuoBCivChoBjCn16Ul/LbLkd+3NLKuezepbrVlC5h KMVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si4788349ejs.508.2020.11.09.10.41.33; Mon, 09 Nov 2020 10:41:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729831AbgKISiE (ORCPT + 99 others); Mon, 9 Nov 2020 13:38:04 -0500 Received: from 82-65-109-163.subs.proxad.net ([82.65.109.163]:40196 "EHLO luna.linkmauve.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729243AbgKISiE (ORCPT ); Mon, 9 Nov 2020 13:38:04 -0500 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id E561EF41591; Mon, 9 Nov 2020 17:23:08 +0100 (CET) From: Emmanuel Gil Peyrot To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Emmanuel Gil Peyrot Subject: [RESEND PATCH 1/2] media: uapi: Expose VP8 probability lengths as defines Date: Mon, 9 Nov 2020 17:22:43 +0100 Message-Id: <20201109162244.16531-2-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109162244.16531-1-linkmauve@linkmauve.fr> References: <20201109162244.16531-1-linkmauve@linkmauve.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These values will be used by various drivers implementing the VP8 stateless API. This had been suggested by Ezequiel Garcia for the Cedrus VP8 driver. Signed-off-by: Emmanuel Gil Peyrot --- include/media/vp8-ctrls.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/media/vp8-ctrls.h b/include/media/vp8-ctrls.h index 53cba826e482..a920493361dc 100644 --- a/include/media/vp8-ctrls.h +++ b/include/media/vp8-ctrls.h @@ -53,11 +53,13 @@ struct v4l2_vp8_quantization_header { __u16 padding; }; +#define V4L2_VP8_COEFF_PROB_CNT 11 +#define V4L2_VP8_MV_PROB_CNT 19 struct v4l2_vp8_entropy_header { - __u8 coeff_probs[4][8][3][11]; + __u8 coeff_probs[4][8][3][V4L2_VP8_COEFF_PROB_CNT]; __u8 y_mode_probs[4]; __u8 uv_mode_probs[3]; - __u8 mv_probs[2][19]; + __u8 mv_probs[2][V4L2_VP8_MV_PROB_CNT]; __u8 padding[3]; }; -- 2.29.2