Skip to content

Commit f921a1f

Browse files
committed
update transient include definitions
Signed-off-by: Ralf Zerres <[email protected]>
1 parent b4388df commit f921a1f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/config.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,15 @@
2424
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
*/
2626

27-
#include "config.h"
28-
#include "request.h"
29-
3027
#include <assert.h>
3128
#include <string.h>
3229

3330
#include <sys/ioctl.h>
3431

3532
#include <linux/videodev2.h>
3633

34+
#include "config.h"
35+
#include "request.h"
3736
#include "utils.h"
3837
#include "v4l2.h"
3938

@@ -122,9 +121,11 @@ VAStatus RequestQueryConfigProfiles(VADriverContextP context,
122121
profiles[index++] = VAProfileMPEG2Main;
123122
}
124123

124+
/*
125125
found = v4l2_find_format(driver_data->video_fd,
126126
V4L2_BUF_TYPE_VIDEO_OUTPUT,
127127
V4L2_PIX_FMT_H264_SLICE);
128+
*/
128129
if (found && index < (V4L2_REQUEST_MAX_CONFIG_ATTRIBUTES - 5)) {
129130
profiles[index++] = VAProfileH264Main;
130131
profiles[index++] = VAProfileH264High;
@@ -133,9 +134,11 @@ VAStatus RequestQueryConfigProfiles(VADriverContextP context,
133134
profiles[index++] = VAProfileH264StereoHigh;
134135
}
135136

137+
/*
136138
found = v4l2_find_format(driver_data->video_fd,
137139
V4L2_BUF_TYPE_VIDEO_OUTPUT,
138140
V4L2_PIX_FMT_HEVC_SLICE);
141+
*/
139142
if (found && index < (V4L2_REQUEST_MAX_CONFIG_ATTRIBUTES - 1))
140143
profiles[index++] = VAProfileHEVCMain;
141144

src/context.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,21 @@ VAStatus RequestCreateContext(VADriverContextP context, VAConfigID config_id,
9595
pixelformat = V4L2_PIX_FMT_MPEG2_SLICE;
9696
break;
9797

98+
#ifdef V4L2_PIX_FMT_H264_SLICE
9899
case VAProfileH264Main:
99100
case VAProfileH264High:
100101
case VAProfileH264ConstrainedBaseline:
101102
case VAProfileH264MultiviewHigh:
102103
case VAProfileH264StereoHigh:
103104
pixelformat = V4L2_PIX_FMT_H264_SLICE;
104105
break;
106+
#endif
105107

108+
#ifdef V4L2_PIX_FMT_HEVC_SLICE
106109
case VAProfileHEVCMain:
107110
pixelformat = V4L2_PIX_FMT_HEVC_SLICE;
108111
break;
112+
#endif
109113

110114
default:
111115
status = VA_STATUS_ERROR_UNSUPPORTED_PROFILE;

0 commit comments

Comments
 (0)