diff --git a/test/test_data.h b/test/test_data.h index c29bbaa..a04be83 100644 --- a/test/test_data.h +++ b/test/test_data.h @@ -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 }; @@ -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, diff --git a/test/test_va_api_createbuffer.cpp b/test/test_va_api_createbuffer.cpp index 2dc0f6a..532ddaf 100644 --- a/test/test_va_api_createbuffer.cpp +++ b/test/test_va_api_createbuffer.cpp @@ -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)), } }, { @@ -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)), } }, { @@ -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)), } }, };