Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3822254ybt; Tue, 23 Jun 2020 11:32:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlNMu5Whz6JLmHyeWiWpWk101bekhDgQoM2ij2K5KTzMxOzYObE+UkKgs/Fh7F2BM68r+C X-Received: by 2002:a17:906:4056:: with SMTP id y22mr20898697ejj.304.1592937173623; Tue, 23 Jun 2020 11:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592937173; cv=none; d=google.com; s=arc-20160816; b=cMk7rBEaDX7HU9km01VCBsrJ/x8XRDSk8N7lqEauQ8UqRxGCMyofFdu5EQ5808Esrq k4Tva0AjNdaVITsxiUbL4NvwUiP2XjFRqe/C5P1HHCfzTi7LY4XTaDlR7NdiDhT9UfRw EjBpdVg8e72f+Lf14eJLOZbryZ6ApnJieBmi6vzoxwnCyC15bqyLvwLfXAfd8rXY4oq8 rxe9prfJvaQd5N2zGG59Q1jQjxMAHID9lDsphJCFBpyOSYK7U5rDBv2urIm/h1npUOPM g1tWm4iw/z/0ZzgLlGzR3eVyyyuPPBr2RtDk+Nd6N7/aplpZI4RSCc+pcD7Ahv8YuujV 6O+Q== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fNxa8w5tvZpuMGwUfXJLq0TzpZacWRoMalnp1sRT4FY=; b=wOND6nh996kgDQBKuZizZgCgOo3VOEM+MxlPDk22iVu7jeY5CSS5PKn18GkjMa2prN kctMG0F3SvZGwyw+aWRHcyOgDzvbMMi8xbKExbFEnLcddpbtgafvBAxO2EkR3e6judpR /FW2AmPhmlMN+w+Vpaua8wVwxlQmjYcRdHTVJJBKaM3rHsRT2dCXoZls71gG9KOlnP2W 1mFQ8XvdJYek4fTvTZ6MDO6myAq0J/aqrmx6yM1ORLkj9o1KzPhVqQeoc8Oqjzo9dNbR /haEr6Xs/8IBQ3EtHjMDRvm8vJ8LnZRNGaJFSrhHH91npVqBk4pjwBg3lz15Ib6rWRrs L7lA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si4680876edi.222.2020.06.23.11.32.29; Tue, 23 Jun 2020 11:32:53 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733255AbgFWS3e (ORCPT + 99 others); Tue, 23 Jun 2020 14:29:34 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42806 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387525AbgFWS32 (ORCPT ); Tue, 23 Jun 2020 14:29:28 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id A3AEC2A3C65 From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tomasz Figa , kernel@collabora.com, Jonas Karlman , Hans Verkuil , Alexandre Courbot , Jeffrey Kardatzke , Nicolas Dufresne , Philipp Zabel , Maxime Ripard , Paul Kocialkowski , Ezequiel Garcia Subject: [RFC 7/7] media: uapi: make H264 stateless codec interface public Date: Tue, 23 Jun 2020 15:28:09 -0300 Message-Id: <20200623182809.1375-8-ezequiel@collabora.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200623182809.1375-1-ezequiel@collabora.com> References: <20200623182809.1375-1-ezequiel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The H264 interface is now ready to be part of the official public API. In addition, sanitize header includes. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_hw.h | 5 ++--- include/media/v4l2-ctrls.h | 3 ++- include/media/v4l2-h264.h | 2 +- .../{media/h264-ctrls.h => uapi/linux/v4l2-h264-ctrls.h} | 8 ++------ 4 files changed, 7 insertions(+), 11 deletions(-) rename include/{media/h264-ctrls.h => uapi/linux/v4l2-h264-ctrls.h} (96%) diff --git a/drivers/staging/media/hantro/hantro_hw.h b/drivers/staging/media/hantro/hantro_hw.h index 4053d8710e04..48d5be144319 100644 --- a/drivers/staging/media/hantro/hantro_hw.h +++ b/drivers/staging/media/hantro/hantro_hw.h @@ -11,9 +11,8 @@ #include #include -#include -#include -#include + +#include #include #define DEC_8190_ALIGN_MASK 0x07U diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h index f40e2cbb21d3..fc725ba2ebd8 100644 --- a/include/media/v4l2-ctrls.h +++ b/include/media/v4l2-ctrls.h @@ -13,13 +13,14 @@ #include #include +#include + /* * Include the stateless codec compound control definitions. * This will move to the public headers once this API is fully stable. */ #include #include -#include #include #include diff --git a/include/media/v4l2-h264.h b/include/media/v4l2-h264.h index f08ba181263d..d2314f4d4490 100644 --- a/include/media/v4l2-h264.h +++ b/include/media/v4l2-h264.h @@ -10,7 +10,7 @@ #ifndef _MEDIA_V4L2_H264_H #define _MEDIA_V4L2_H264_H -#include +#include /** * struct v4l2_h264_reflist_builder - Reference list builder object diff --git a/include/media/h264-ctrls.h b/include/uapi/linux/v4l2-h264-ctrls.h similarity index 96% rename from include/media/h264-ctrls.h rename to include/uapi/linux/v4l2-h264-ctrls.h index 6446ec9f283d..a06f60670d68 100644 --- a/include/media/h264-ctrls.h +++ b/include/uapi/linux/v4l2-h264-ctrls.h @@ -2,14 +2,10 @@ /* * These are the H.264 state controls for use with stateless H.264 * codec drivers. - * - * It turns out that these structs are not stable yet and will undergo - * more changes. So keep them private until they are stable and ready to - * become part of the official public API. */ -#ifndef _H264_CTRLS_H_ -#define _H264_CTRLS_H_ +#ifndef __LINUX_V4L2_H264_CONTROLS_H +#define __LINUX_V4L2_H264_CONTROLS_H #include -- 2.26.0.rc2