include/h264-ctrls.h, src/config.c: rename to V4L2_PIX_FMT_H264_SLICE
Kernel mainline renamed V4L2_PIX_FMT_H264_SLICE_RAW → V4L2_PIX_FMT_H264_SLICE some time after this library went dormant (the 'S264' fourcc value is unchanged; only the C identifier moved). The two definitions have the same value so this is purely cosmetic at runtime, but keeping the name aligned with linux/videodev2.h matches downstream patches (e.g. bootlin PR #38) and avoids confusion when reading kernel + library side-by-side. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
#include <linux/videodev2.h>
|
#include <linux/videodev2.h>
|
||||||
|
|
||||||
/* Our pixel format isn't stable at the moment */
|
/* Our pixel format isn't stable at the moment */
|
||||||
#define V4L2_PIX_FMT_H264_SLICE_RAW v4l2_fourcc('S', '2', '6', '4') /* H264 parsed slices */
|
#define V4L2_PIX_FMT_H264_SLICE v4l2_fourcc('S', '2', '6', '4') /* H264 parsed slices */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is put insanely high to avoid conflicting with controls that
|
* This is put insanely high to avoid conflicting with controls that
|
||||||
|
|||||||
+1
-1
@@ -128,7 +128,7 @@ VAStatus RequestQueryConfigProfiles(VADriverContextP context,
|
|||||||
|
|
||||||
found = v4l2_find_format(driver_data->video_fd,
|
found = v4l2_find_format(driver_data->video_fd,
|
||||||
V4L2_BUF_TYPE_VIDEO_OUTPUT,
|
V4L2_BUF_TYPE_VIDEO_OUTPUT,
|
||||||
V4L2_PIX_FMT_H264_SLICE_RAW);
|
V4L2_PIX_FMT_H264_SLICE);
|
||||||
if (found && index < (V4L2_REQUEST_MAX_CONFIG_ATTRIBUTES - 5)) {
|
if (found && index < (V4L2_REQUEST_MAX_CONFIG_ATTRIBUTES - 5)) {
|
||||||
profiles[index++] = VAProfileH264Main;
|
profiles[index++] = VAProfileH264Main;
|
||||||
profiles[index++] = VAProfileH264High;
|
profiles[index++] = VAProfileH264High;
|
||||||
|
|||||||
Reference in New Issue
Block a user