From: Ming Qian <ming.qian@nxp.com> To: mchehab@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de Cc: hverkuil-cisco@xs4all.nl, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 04/15] media:Add v4l2 event codec_error and skip Date: Tue, 7 Sep 2021 17:49:11 +0800 [thread overview] Message-ID: <647f84c1e7c2a48d6492d38fa4f06586235500b8.1631002447.git.ming.qian@nxp.com> (raw) In-Reply-To: <cover.1631002447.git.ming.qian@nxp.com> The codec_error event can tell client that there are some error occurs in the decoder engine. The skip event can tell the client that there are a frame has been decoded, but it won't be outputed. Signed-off-by: Ming Qian <ming.qian@nxp.com> Signed-off-by: Shijie Qin <shijie.qin@nxp.com> Signed-off-by: Zhou Peng <eagle.zhou@nxp.com> --- .../userspace-api/media/v4l/vidioc-dqevent.rst | 12 ++++++++++++ include/uapi/linux/videodev2.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/vidioc-dqevent.rst b/Documentation/userspace-api/media/v4l/vidioc-dqevent.rst index 6eb40073c906..87d40ad25604 100644 --- a/Documentation/userspace-api/media/v4l/vidioc-dqevent.rst +++ b/Documentation/userspace-api/media/v4l/vidioc-dqevent.rst @@ -182,6 +182,18 @@ call. the regions changes. This event has a struct :c:type:`v4l2_event_motion_det` associated with it. + * - ``V4L2_EVENT_CODEC_ERROR`` + - 7 + - This event is triggered when some error occurs inside the codec engine, + usually it can be replaced by a POLLERR event, but in some cases, the POLLERR + may cause the application to exit, but this event can allow the application to + handle the codec error without exiting. + * - ``V4L2_EVENT_SKIP`` + - 8 + - This event is triggered when one frame is decoded, but it won't be outputed + to the display. So the application can't get this frame, and the input frame count + is dismatch with the output frame count. And this evevt is telling the client to + handle this case. * - ``V4L2_EVENT_PRIVATE_START`` - 0x08000000 - Base event number for driver-private events. diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 5bb0682b4a23..c56640d42dc5 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -2369,6 +2369,8 @@ struct v4l2_streamparm { #define V4L2_EVENT_FRAME_SYNC 4 #define V4L2_EVENT_SOURCE_CHANGE 5 #define V4L2_EVENT_MOTION_DET 6 +#define V4L2_EVENT_CODEC_ERROR 7 +#define V4L2_EVENT_SKIP 8 #define V4L2_EVENT_PRIVATE_START 0x08000000 /* Payload for V4L2_EVENT_VSYNC */ -- 2.32.0
WARNING: multiple messages have this Message-ID (diff)
From: Ming Qian <ming.qian@nxp.com> To: mchehab@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de Cc: hverkuil-cisco@xs4all.nl, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 04/15] media:Add v4l2 event codec_error and skip Date: Tue, 7 Sep 2021 17:49:11 +0800 [thread overview] Message-ID: <647f84c1e7c2a48d6492d38fa4f06586235500b8.1631002447.git.ming.qian@nxp.com> (raw) In-Reply-To: <cover.1631002447.git.ming.qian@nxp.com> The codec_error event can tell client that there are some error occurs in the decoder engine. The skip event can tell the client that there are a frame has been decoded, but it won't be outputed. Signed-off-by: Ming Qian <ming.qian@nxp.com> Signed-off-by: Shijie Qin <shijie.qin@nxp.com> Signed-off-by: Zhou Peng <eagle.zhou@nxp.com> --- .../userspace-api/media/v4l/vidioc-dqevent.rst | 12 ++++++++++++ include/uapi/linux/videodev2.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/vidioc-dqevent.rst b/Documentation/userspace-api/media/v4l/vidioc-dqevent.rst index 6eb40073c906..87d40ad25604 100644 --- a/Documentation/userspace-api/media/v4l/vidioc-dqevent.rst +++ b/Documentation/userspace-api/media/v4l/vidioc-dqevent.rst @@ -182,6 +182,18 @@ call. the regions changes. This event has a struct :c:type:`v4l2_event_motion_det` associated with it. + * - ``V4L2_EVENT_CODEC_ERROR`` + - 7 + - This event is triggered when some error occurs inside the codec engine, + usually it can be replaced by a POLLERR event, but in some cases, the POLLERR + may cause the application to exit, but this event can allow the application to + handle the codec error without exiting. + * - ``V4L2_EVENT_SKIP`` + - 8 + - This event is triggered when one frame is decoded, but it won't be outputed + to the display. So the application can't get this frame, and the input frame count + is dismatch with the output frame count. And this evevt is telling the client to + handle this case. * - ``V4L2_EVENT_PRIVATE_START`` - 0x08000000 - Base event number for driver-private events. diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 5bb0682b4a23..c56640d42dc5 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -2369,6 +2369,8 @@ struct v4l2_streamparm { #define V4L2_EVENT_FRAME_SYNC 4 #define V4L2_EVENT_SOURCE_CHANGE 5 #define V4L2_EVENT_MOTION_DET 6 +#define V4L2_EVENT_CODEC_ERROR 7 +#define V4L2_EVENT_SKIP 8 #define V4L2_EVENT_PRIVATE_START 0x08000000 /* Payload for V4L2_EVENT_VSYNC */ -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-09-07 9:50 UTC|newest] Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-07 9:49 [PATCH v8 00/15] amphion video decoder/encoder driver Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 01/15] dt-bindings: media: amphion: add amphion video codec bindings Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 02/15] media:Add nt8 and nt10 video format Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 03/15] media:Add v4l2 buf flag codec data Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-08 13:14 ` Nicolas Dufresne 2021-09-08 13:14 ` Nicolas Dufresne 2021-09-09 2:20 ` [EXT] " Ming Qian 2021-09-09 2:20 ` Ming Qian 2021-09-09 19:40 ` Nicolas Dufresne 2021-09-09 19:40 ` Nicolas Dufresne 2021-09-10 1:33 ` Ming Qian 2021-09-10 1:33 ` Ming Qian 2021-09-07 9:49 ` Ming Qian [this message] 2021-09-07 9:49 ` [PATCH v8 04/15] media:Add v4l2 event codec_error and skip Ming Qian 2021-09-08 13:32 ` Nicolas Dufresne 2021-09-08 13:32 ` Nicolas Dufresne 2021-09-09 3:13 ` [EXT] " Ming Qian 2021-09-09 3:13 ` Ming Qian 2021-09-09 19:54 ` Nicolas Dufresne 2021-09-09 19:54 ` Nicolas Dufresne 2021-09-10 1:50 ` Ming Qian 2021-09-10 1:50 ` Ming Qian 2022-01-13 7:18 ` Ming Qian 2022-01-13 7:18 ` Ming Qian 2022-01-21 22:25 ` Nicolas Dufresne 2022-01-21 22:25 ` Nicolas Dufresne 2022-01-25 1:54 ` Ming Qian 2022-01-25 1:54 ` Ming Qian 2022-01-25 20:23 ` Nicolas Dufresne 2022-01-25 20:23 ` Nicolas Dufresne 2021-09-07 9:49 ` [PATCH v8 05/15] media: amphion: add amphion vpu device driver Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 06/15] media: amphion: add vpu core driver Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 07/15] media: amphion: implement vpu core communication based on mailbox Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 19:04 ` kernel test robot 2021-09-07 19:04 ` kernel test robot 2021-09-07 9:49 ` [PATCH v8 08/15] media: amphion: add vpu v4l2 m2m support Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 20:08 ` kernel test robot 2021-09-07 20:08 ` kernel test robot 2021-09-07 9:49 ` [PATCH v8 09/15] media: amphion: add v4l2 m2m vpu encoder stateful driver Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 10/15] media: amphion: add v4l2 m2m vpu decoder " Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 11/15] media: amphion: implement windsor encoder rpc interface Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 12/15] media: amphion: implement malone decoder " Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 13/15] ARM64: dts: freescale: imx8q: add imx vpu codec entries Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 14/15] firmware: imx: scu-pd: imx8q: add vpu mu resources Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 9:49 ` [PATCH v8 15/15] MAINTAINERS: add AMPHION VPU CODEC V4L2 driver entry Ming Qian 2021-09-07 9:49 ` Ming Qian 2021-09-07 14:35 ` [PATCH v8 00/15] amphion video decoder/encoder driver Nicolas Dufresne 2021-09-07 14:35 ` Nicolas Dufresne
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=647f84c1e7c2a48d6492d38fa4f06586235500b8.1631002447.git.ming.qian@nxp.com \ --to=ming.qian@nxp.com \ --cc=aisheng.dong@nxp.com \ --cc=devicetree@vger.kernel.org \ --cc=festevam@gmail.com \ --cc=hverkuil-cisco@xs4all.nl \ --cc=kernel@pengutronix.de \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-imx@nxp.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-media@vger.kernel.org \ --cc=mchehab@kernel.org \ --cc=robh+dt@kernel.org \ --cc=s.hauer@pengutronix.de \ --cc=shawnguo@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.