OSDN Git Service

media: vicodec: mark the stateless FWHT API as stable
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 26 Nov 2020 13:02:18 +0000 (14:02 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 11:27:33 +0000 (12:27 +0100)
commit206bc0f6fb945e90cfea677339ef8adfaedc4b4f
tree2fdbcea01248d183bbcee5f7e46f350d18b3653a
parent3abfc314c5e60a54973a6f3cefd591bfdad8adf6
media: vicodec: mark the stateless FWHT API as stable

The FWHT stateless 'uAPI' was staging and marked explicitly in the
V4L2 specification that it will change and is unstable.
Note that these control IDs were never exported as a public API,
they were only defined in kernel-local headers (fwht-ctrls.h).

Now, the FWHT stateless controls is ready to be part
of the stable uAPI.

While not too late:

- Rename V4L2_CID_MPEG_VIDEO_FWHT_PARAMS to V4L2_CID_STATELESS_FWHT_PARAMS.

- Move the contents of fwht-ctrls.h to v4l2-controls.h.

- Move the public parts of drivers/media/test-drivers/vicodec/codec-fwht.h
  to v4l2-controls.h.

- Add V4L2_CTRL_TYPE_FWHT_PARAMS control initialization and validation.

- Add p_fwht_params to struct v4l2_ext_control.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vicodec/codec-fwht.c
drivers/media/test-drivers/vicodec/codec-fwht.h
drivers/media/test-drivers/vicodec/vicodec-core.c
drivers/media/v4l2-core/v4l2-ctrls.c
include/media/fwht-ctrls.h [deleted file]
include/media/v4l2-ctrls.h
include/uapi/linux/v4l2-controls.h
include/uapi/linux/videodev2.h