From nobody Sun Dec 14 11:17:27 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 261502DA742 for ; Wed, 10 Dec 2025 18:59:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765393155; cv=none; b=JSNYUS+9v7U/ba1HzP9dVb2zImp2KkiosM2U9b6LWKeCFUJLXb8/heyxsfBzz5hRMjII9d8ZKdedri02insOIir5pzceaYebyZTXFVjaLfBZ/F7UPGPsyeRJYajdRJVBNgVM1Lhl50SmZaiNTq14StxFZkox1XHDX21BEXbu9GE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765393155; c=relaxed/simple; bh=LM5cLcvrL97GVflWOVSbpoD+zNNmsN4BqP7GlTU2puY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SNn/eU3eviPSRbf644+ENh47PChws8C+xZYN8V1y9H0Rf6908zYNMMtH0ZEGsxKilcsp/uXGRGyFAAb1kxYAg1EeiONJLeBH8e7eD2+RVCJZpr+DkJfHVcsgdlbCd/0hrZ6rk6qolSV/KjguAkG7qqf987HHzMHE1dOcO7yrdVc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=cNLajhpQ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KTHq8e63; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="cNLajhpQ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KTHq8e63" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BAIRFnj3358658 for ; Wed, 10 Dec 2025 18:59:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 15Q9ck6ovkYMJTPJoDc2Dx9iK+2vuB4WM6abfMTFsKQ=; b=cNLajhpQxYwx8IGy 3VUuW2sqT6bFN0+n8VQpgG2Q9Aj/K7M/oIuCXaYFmAszSgtdUSGwOW9BEasPwq5C UBz1xkvcGtNuuAncLE+4zRttUzpiJcAmxo3A6A09ho/tS1NVebMvTlAxHran/e0p vHakOFPm7Wy6TncTFTxZfnvDQE34jiuPSa5pi/GvZaRqOGzAMvnsKoq1WwRLopAi iYAjCQJldsuRcJafpUhVPLoLvO1j8Eq8YLsx+Up3y18609K4Ev6Er+Z/YRO0O4bY zIA+dBfDL+T2EnTLeGJgjfYoVX6YlEx2Ngc9xuTtAYza9uF6caeYV2QA+FKhMg/k 5AOypQ== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ay7pp1kfw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 10 Dec 2025 18:59:10 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-29844d9e030so372245ad.2 for ; Wed, 10 Dec 2025 10:59:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1765393149; x=1765997949; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=15Q9ck6ovkYMJTPJoDc2Dx9iK+2vuB4WM6abfMTFsKQ=; b=KTHq8e63ygjvB/Cd4tROymN4ZLz2CpRe86Qk6QQjEL8qOTe5ou7bpka7UIOkBEKrLc ORYWKV8+c7wH8QTvngEGlKutNUR0hvGXco6VSqyBZKTJ2XJ8almTCNgWXZBOveD1RJae VtsVWFEpSMOjZ3XKjrgfnVbEWZvauuvDfOps/WZuZOcqPqMhVe/l/JgUdUdmKlc7UkpZ zB6m5tqD4ER5usEPUpdoAZtBfLFPOs4B6x7RxGXIPTYipdy+dM4aKPDEP9EFXax4sGb3 iqqerutiwMzK/IO1gioUQx2hdNpzrtJUpkEPNPMw3v9icwHe+TaPMH3+O2r+GmnUxpMy AQ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765393149; x=1765997949; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=15Q9ck6ovkYMJTPJoDc2Dx9iK+2vuB4WM6abfMTFsKQ=; b=FyDy9VOfwJABcCOvz7scjxk4e2pPs9LQl9pktpouy22hovsyKLFWeA+Q3XPWSd+Lm2 tFEmi3oSJ8jL4igR6zYcnDA7j/9xyZyaoDZeTHovp7W5hX7SM7KozGjS5LNFMNCK+MYv 0Eqc6w27Og1Jj+cHIsfow+QaCjIV6EKp1ckspj6+hSwU/s1UyZfb1lWA9hbIjoP4+/N/ SyuJauFKVOWa0Qolx6nIW+U5IS3mvuxVe7zJlUIsH1PvYjegZ/0EQ067yeyvVrzwTrV+ +PKyyZ1nBeOejUm3s72mCfiYh1tUPjodmgn/DYjZe4D6SljnQav9WqNgfJoA3WtU85J5 lQew== X-Forwarded-Encrypted: i=1; AJvYcCU1ddlYuqO49wn+KnSty+dS8s3y0EY42B9hhrmxtPI3tegCAgoKCFfSoGELapdvl2BixrkeuwG+o1YBctY=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5pmBqQty0fhXB8FWVKBXn84x8DNgLADXwNNYchCaPElF0Dm1S usxfXh+njDKlTkBZRiVDR8tB2u68sAoYXGiBIZGypcY4r9eyWAos5I+oHd3E/fnDb0D1jsEPako 0kwCJ464hi33vFimU4UMfcnBK5drPYAbezX/BUTPsBxQCHRBzuyet7X9rX+8OMAI84jc= X-Gm-Gg: ASbGnctXENF9uRb3qb6EvjVTopF3JRu0vP+txQ2joA0HjnsrrJ3UFHUzj5WUZFuxhIF MHZ/05/GsGHpGFhLYTznbrO3BPpEEYeOqv2uLxEevdaIA77ZcOQesVmxg4TKcT4781Nr4WcrnhI eKFcyD5KW2956x4oEvmR6wmVsUjSRatmSB7DYBihMQo7uuT0u/hHF1c3n0wQKtpcXimgia565Y2 Vd3bac5BJZTLu7r4LKCBUk1zmuxZo6FPLEN14Qm1bi2Pd3mAJFBGpjUZg+qtGgv1dnxH5RW8D8r M5zrYug7p6/nAsGlE5BMwpdOmw2tweoS5xFPKHk4ZY8eoyCLXQ5dgt1c1/PJl/hVqd4u1vUpagV ZnwY9ZF8qU3Ob+qO2gvcssoXvox2RCltPVewVKooSrE+evGAfBaQQg5a891gUqwUgsfRp5A== X-Received: by 2002:a05:7022:3847:b0:119:e56a:4fff with SMTP id a92af1059eb24-11f296c903fmr1367470c88.4.1765393149457; Wed, 10 Dec 2025 10:59:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmm7TOqb5Wsr9vjMnsG/AxVUxUEuqG+eQa6sUBm/Oe4q0VNYvOhbHKhM0y1KW6fNblIaPANQ== X-Received: by 2002:a05:7022:3847:b0:119:e56a:4fff with SMTP id a92af1059eb24-11f296c903fmr1367455c88.4.1765393148912; Wed, 10 Dec 2025 10:59:08 -0800 (PST) Received: from gu-dmadival-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11f2e1bb45csm778008c88.1.2025.12.10.10.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Dec 2025 10:59:08 -0800 (PST) From: Deepa Guthyappa Madivalara Date: Wed, 10 Dec 2025 10:59:04 -0800 Subject: [PATCH v10 1/5] media: uapi: videodev2: Add support for AV1 stateful decoder Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251210-av1d_stateful_v3-v10-1-cf4379a3dcff@oss.qualcomm.com> References: <20251210-av1d_stateful_v3-v10-0-cf4379a3dcff@oss.qualcomm.com> In-Reply-To: <20251210-av1d_stateful_v3-v10-0-cf4379a3dcff@oss.qualcomm.com> To: Mauro Carvalho Chehab , Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel test robot , Deepa Guthyappa Madivalara , Bryan O'Donoghue , Nicolas Dufresne , Hans Verkuil X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765393147; l=2597; i=deepa.madivalara@oss.qualcomm.com; s=20250814; h=from:subject:message-id; bh=LM5cLcvrL97GVflWOVSbpoD+zNNmsN4BqP7GlTU2puY=; b=Mc9ERiswvO7xPCDBJYucmt77ZdjvAUaLqQj25sFvp5KoxkrExFdX90DFU0El3qUbLeO+gw4KH yaMS62n24d+AUPz6lgcCBs+VUqV/EdIjdfK1OI+rbW8ek8Vy2QqSzdO X-Developer-Key: i=deepa.madivalara@oss.qualcomm.com; a=ed25519; pk=MOEXgyokievn+bgpHdS6Ixh/KQYyS90z2mqIbQ822FQ= X-Proofpoint-GUID: fcN9DTo8XtTpn79LaAzoZL8xzbUq6XEp X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjEwMDE1NSBTYWx0ZWRfX3qK2P4sxc/Hb SoAsMlzF/0UjOnFtiJm2OmJThHXp8kHTYiVSspaiJ4nwnL32e18DD6iJjgisjnYnE+A6wd6VQHi qmwTDZ28PL9rmXlVsGEZt65et1TuDWjIYOXnrP0efvpGmj48+2iPVLuYyTPAv0C2l52Z7SnbXzP BLrNAgIikvf4lNjz34NprepnZtaWG35I8Ex2a+yIkHZX4KftJmpZbISpnx9vEQkziJZ9gGxWI9p Yk6hx5wuaAzJAMKq/LqI+KuF4PKcdWbp7HR+n58Bf/yEAC9R/rYqQbc8Z9JSknVnuO5vmp3GN9R H2QvNqoQHDpAitTJsRk40BX+YnHfKmBsqcNG40GAr3FzMOurGsuY9D5uESDkuIhI0XFGlDx0VWN 28ujTbY1aVFiFzpcMEalrFD1Xz+Bjw== X-Proofpoint-ORIG-GUID: fcN9DTo8XtTpn79LaAzoZL8xzbUq6XEp X-Authority-Analysis: v=2.4 cv=WaMBqkhX c=1 sm=1 tr=0 ts=6939c2fe cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=KKAkSRfTAAAA:8 a=QX4gbG5DAAAA:8 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=5q8hE9cQKCNJD2usWYQA:9 a=QEXdDO2ut3YA:10 a=GvdueXVYPmCkWapjIL-Q:22 a=cvBusfyB2V15izCimMoJ:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-10_02,2025-12-09_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512100155 Introduce a new pixel format, V4L2_PIX_FMT_AV1, to the Video4Linux2(V4L2) API. This format is intended for AV1 bitstreams in stateful decoding/encoding workflows. The fourcc code 'AV10' is used to distinguish this format from the existing V4L2_PIX_FMT_AV1_FRAME, which is used for stateless AV1 decoder implementation. Reviewed-by: Bryan O'Donoghue Reviewed-by: Nicolas Dufresne Reviewed-by: Hans Verkuil Signed-off-by: Deepa Guthyappa Madivalara --- Documentation/userspace-api/media/v4l/pixfmt-compressed.rst | 8 ++++++++ include/uapi/linux/videodev2.h | 1 + 2 files changed, 9 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/pixfmt-compressed.rst b/= Documentation/userspace-api/media/v4l/pixfmt-compressed.rst index c7efb0465db6480fe35be8557728c196e0e530f4..235f955d3cd5cfc83b0d3d424e6= 625b14c07266c 100644 --- a/Documentation/userspace-api/media/v4l/pixfmt-compressed.rst +++ b/Documentation/userspace-api/media/v4l/pixfmt-compressed.rst @@ -275,6 +275,14 @@ Compressed Formats of macroblocks to decode a full corresponding frame to the matching capture buffer. =20 + * .. _V4L2-PIX-FMT-AV1: + + - ``V4L2_PIX_FMT_AV1`` + - 'AV01' + - AV1 compressed video frame. This format is adapted for implementin= g AV1 + pipeline. The decoder implements stateful video decoder and expect= s one + temporal unit per buffer in OBU stream format. + The encoder generates one Temporal Unit per buffer. .. raw:: latex =20 \normalsize diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index add08188f06890182a5c399a223c1ab0a546cae1..848e86617d5c87d76f15663403c= 2f3f0e709073b 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -775,6 +775,7 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_H264_SLICE v4l2_fourcc('S', '2', '6', '4') /* H264 pa= rsed slices */ #define V4L2_PIX_FMT_HEVC_SLICE v4l2_fourcc('S', '2', '6', '5') /* HEVC pa= rsed slices */ #define V4L2_PIX_FMT_AV1_FRAME v4l2_fourcc('A', 'V', '1', 'F') /* AV1 pars= ed frame */ +#define V4L2_PIX_FMT_AV1 v4l2_fourcc('A', 'V', '0', '1') /* AV1 */ #define V4L2_PIX_FMT_SPK v4l2_fourcc('S', 'P', 'K', '0') /* Sorenson = Spark */ #define V4L2_PIX_FMT_RV30 v4l2_fourcc('R', 'V', '3', '0') /* RealVideo= 8 */ #define V4L2_PIX_FMT_RV40 v4l2_fourcc('R', 'V', '4', '0') /* RealVideo= 9 & 10 */ --=20 2.34.1