Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Enable AV1 encode test #341

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion test/test_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ static const Profiles g_vaProfiles = {
VAProfileVP9Profile1,
VAProfileVP9Profile2,
VAProfileVP9Profile3,
#if VA_CHECK_VERSION(1,18,0)
#if VA_CHECK_VERSION(1,8,0)
VAProfileAV1Profile0,
VAProfileAV1Profile1,
#endif
#if VA_CHECK_VERSION(1,18,0)
VAProfileH264High10,
#endif
};
Expand Down Expand Up @@ -110,6 +114,12 @@ static const Profiles g_vaVP9Profiles = {
VAProfileVP9Profile3,
};

static const Profiles g_vaAV1Profiles = {
#if VA_CHECK_VERSION(1,8,0)
VAProfileAV1Profile0, VAProfileAV1Profile1,
#endif
};

static const Entrypoints g_vaEntrypoints = {
VAEntrypointVLD,
VAEntrypointIZZ,
Expand Down
5 changes: 5 additions & 0 deletions test/test_va_api_createbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ static const BufferSpecsMap encodeBufferSpecs = {
make_tuple(g_vaVP8Profiles, sizeof(VAEncSequenceParameterBufferVP8)),
make_tuple(g_vaHEVCProfiles, sizeof(VAEncSequenceParameterBufferHEVC)),
make_tuple(g_vaVP9Profiles, sizeof(VAEncSequenceParameterBufferVP9)),
make_tuple(g_vaAV1Profiles, sizeof(VAEncSequenceParameterBufferAV1)),
}
},
{
Expand All @@ -157,6 +158,7 @@ static const BufferSpecsMap encodeBufferSpecs = {
make_tuple(g_vaVP8Profiles, sizeof(VAEncPictureParameterBufferVP8)),
make_tuple(g_vaHEVCProfiles, sizeof(VAEncPictureParameterBufferHEVC)),
make_tuple(g_vaVP9Profiles, sizeof(VAEncPictureParameterBufferVP9)),
make_tuple(g_vaAV1Profiles, sizeof(VAEncPictureParameterBufferAV1)),
}
},
{
Expand All @@ -165,16 +167,19 @@ static const BufferSpecsMap encodeBufferSpecs = {
make_tuple(g_vaH264Profiles, sizeof(VAEncSliceParameterBufferH264)),
make_tuple(g_vaJPEGProfiles, sizeof(VAEncSliceParameterBufferJPEG)),
make_tuple(g_vaHEVCProfiles, sizeof(VAEncSliceParameterBufferHEVC)),
make_tuple(g_vaAV1Profiles, sizeof(VAEncPictureParameterBufferAV1)),
}
},
{
VAEncPackedHeaderParameterBufferType, {
make_tuple(g_vaProfiles, sizeof(VAEncPackedHeaderParameterBuffer)),
make_tuple(g_vaAV1Profiles, sizeof(VAEncPictureParameterBufferAV1)),
}
},
{
VAEncMiscParameterBufferType, {
make_tuple(g_vaProfiles, sizeof(VAEncMiscParameterBuffer)),
make_tuple(g_vaAV1Profiles, sizeof(VAEncPictureParameterBufferAV1)),
}
},
};
Expand Down