Skip to content

Commit

Permalink
add VAProfileH264High10
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jianfeng.zheng committed Dec 14, 2022
1 parent 82e400e commit 95ced16
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion va/va.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,14 @@ typedef enum {
VAProfileAV1Profile1 = 33,
VAProfileHEVCSccMain444_10 = 34,
/** \brief Profile ID used for protected video playback. */
VAProfileProtected = 35
VAProfileProtected = 35,

/**
* @note 'VA_PROFILE_H264_HIGH_10' is an conditional compiling option
* for 'VAProfileH264High10' support.
*/
#define VA_PROFILE_H264_HIGH_10
VAProfileH264High10 = 36,
} VAProfile;

/**
Expand Down
3 changes: 3 additions & 0 deletions va/va_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ const char *vaProfileStr(VAProfile profile)
TOSTR(VAProfileMPEG4Main);
TOSTR(VAProfileH264Main);
TOSTR(VAProfileH264High);
#ifdef VA_PROFILE_H264_HIGH_10
TOSTR(VAProfileH264High10);
#endif
TOSTR(VAProfileVC1Simple);
TOSTR(VAProfileVC1Main);
TOSTR(VAProfileVC1Advanced);
Expand Down
4 changes: 3 additions & 1 deletion va/va_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,6 @@ static void va_TraceSurface(VADisplay dpy, VAContextID context)
va_TraceMsg(trace_ctx, NULL);
}


void va_TraceInitialize(
VADisplay dpy,
int *major_version, /* out */
Expand Down Expand Up @@ -5662,6 +5661,9 @@ void va_TraceRenderPicture(
va_TraceMPEG4Buf(dpy, context, buffers[i], type, size, num_elements, pbuf + size * j);
}
break;
#ifdef VA_PROFILE_H264_HIGH_10
case VAProfileH264High10:
#endif
case VAProfileH264Main:
case VAProfileH264High:
case VAProfileH264ConstrainedBaseline:
Expand Down

0 comments on commit 95ced16

Please sign in to comment.