Skip to content

Commit

Permalink
test: Enable AV1 encode test
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximIntel committed Sep 7, 2023
1 parent 98505af commit 09cc5ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit 09cc5ae

Please sign in to comment.