/* SPDX-License-Identifier: GPL-2.0 */ /* * Fourier-local: H.264 stateless controls and structs were upstreamed to * the kernel some time after this library went dormant. Defer all of: * * struct v4l2_ctrl_h264_sps / pps / scaling_matrix / pred_weights / * slice_params / decode_params * struct v4l2_h264_weight_factors / dpb_entry / reference * enum v4l2_*_h264_* * * to , where they now live with the same field * names. The duplicated definitions in the original bootlin * include/h264-ctrls.h conflict at compile time on any current kernel. * * The CID prefix was also renamed from V4L2_CID_MPEG_VIDEO_H264_* to * V4L2_CID_STATELESS_H264_*. Provide compatibility aliases so h264.c * keeps compiling without an invasive sed across that file. * * V4L2_PIX_FMT_H264_SLICE itself lives in on current * kernels, so no need to redefine it here. */ #ifndef _H264_CTRLS_H_ #define _H264_CTRLS_H_ #include #include #ifndef V4L2_CID_MPEG_VIDEO_H264_SPS #define V4L2_CID_MPEG_VIDEO_H264_SPS \ V4L2_CID_STATELESS_H264_SPS #define V4L2_CID_MPEG_VIDEO_H264_PPS \ V4L2_CID_STATELESS_H264_PPS #define V4L2_CID_MPEG_VIDEO_H264_SCALING_MATRIX \ V4L2_CID_STATELESS_H264_SCALING_MATRIX #define V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS \ V4L2_CID_STATELESS_H264_SLICE_PARAMS #define V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAMS \ V4L2_CID_STATELESS_H264_DECODE_PARAMS #define V4L2_CID_MPEG_VIDEO_H264_DECODE_MODE \ V4L2_CID_STATELESS_H264_DECODE_MODE #define V4L2_CID_MPEG_VIDEO_H264_START_CODE \ V4L2_CID_STATELESS_H264_START_CODE #endif #endif /* _H264_CTRLS_H_ */