Skip to content

Commit c027ff4

Browse files
author
jianfeng.zheng
committed
add VAProfileH264High10
A macro 'VA_PROFILE_H264_HIGH_10' is also added for drivers or apps to inplement 'VAProfileH264High10' in conditional compiling. Signed-off-by: Jianfeng Zhang <[email protected]>
1 parent 82e400e commit c027ff4

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

va/va.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
//
22
* Copyright (c) 2007-2009 Intel Corporation. All Rights Reserved.
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -530,7 +530,14 @@ typedef enum {
530530
VAProfileAV1Profile1 = 33,
531531
VAProfileHEVCSccMain444_10 = 34,
532532
/** \brief Profile ID used for protected video playback. */
533-
VAProfileProtected = 35
533+
VAProfileProtected = 35,
534+
535+
/**
536+
* @note 'VA_PROFILE_H264_HIGH_10' is an conditional compiling option
537+
* for 'VAProfileH264High10' support.
538+
*/
539+
#define VA_PROFILE_H264_HIGH_10
540+
VAProfileH264High10 = 36,
534541
} VAProfile;
535542

536543
/**

va/va_str.c

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ const char *vaProfileStr(VAProfile profile)
3737
TOSTR(VAProfileMPEG4Main);
3838
TOSTR(VAProfileH264Main);
3939
TOSTR(VAProfileH264High);
40+
#ifdef VA_PROFILE_H264_HIGH_10
41+
TOSTR(VAProfileH264High10);
42+
#endif
4043
TOSTR(VAProfileVC1Simple);
4144
TOSTR(VAProfileVC1Main);
4245
TOSTR(VAProfileVC1Advanced);

va/va_trace.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,6 @@ static void va_TraceSurface(VADisplay dpy, VAContextID context)
10531053
va_TraceMsg(trace_ctx, NULL);
10541054
}
10551055

1056-
10571056
void va_TraceInitialize(
10581057
VADisplay dpy,
10591058
int *major_version, /* out */
@@ -5662,6 +5661,9 @@ void va_TraceRenderPicture(
56625661
va_TraceMPEG4Buf(dpy, context, buffers[i], type, size, num_elements, pbuf + size * j);
56635662
}
56645663
break;
5664+
#ifdef VA_PROFILE_H264_HIGH_10
5665+
case VAProfileH264High10:
5666+
#endif
56655667
case VAProfileH264Main:
56665668
case VAProfileH264High:
56675669
case VAProfileH264ConstrainedBaseline:

0 commit comments

Comments
 (0)