From 52793dbfca1cbac36e94dc4be4595fd180b8fb21 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 16 Jul 2020 18:10:45 +1000 Subject: [PATCH] tests: add gl structs to abi check Tested on x86, x86_64, armv7l, aarch64. Part-of: --- tests/check/libs/gstgl-public-headers.h | 17 ++++ tests/check/libs/gstglheaders.c | 18 ++-- tests/check/libs/libsabi.c | 6 ++ tests/check/libs/struct_aarch64.h | 150 ++++++++++++++++++++++++++++++++ tests/check/libs/struct_arm.h | 70 +++++++++++++++ tests/check/libs/struct_i386.h | 70 +++++++++++++++ tests/check/libs/struct_ppc32.h | 73 ++++++++++++++++ tests/check/libs/struct_ppc64.h | 73 ++++++++++++++++ tests/check/libs/struct_x86_64.h | 70 +++++++++++++++ tests/check/meson.build | 6 +- 10 files changed, 546 insertions(+), 7 deletions(-) create mode 100644 tests/check/libs/gstgl-public-headers.h create mode 100644 tests/check/libs/struct_aarch64.h diff --git a/tests/check/libs/gstgl-public-headers.h b/tests/check/libs/gstgl-public-headers.h new file mode 100644 index 0000000..5b00ad9 --- /dev/null +++ b/tests/check/libs/gstgl-public-headers.h @@ -0,0 +1,17 @@ +#include +#include + +#if GST_GL_HAVE_PLATFORM_EGL +#include +#include +#include +#endif + +#if GST_GL_HAVE_WINDOW_X11 +#include +#endif + +#if GST_GL_HAVE_WINDOW_WAYLAND +#include +#endif + diff --git a/tests/check/libs/gstglheaders.c b/tests/check/libs/gstglheaders.c index 56922d0..82b2c54 100644 --- a/tests/check/libs/gstglheaders.c +++ b/tests/check/libs/gstglheaders.c @@ -32,6 +32,8 @@ #include #include #include +#include +#include #include #include #include @@ -43,15 +45,15 @@ #include #include #include -#include -#include #include #include -#include #include +#include #include #include #include +#include +#include #include #include #include @@ -60,13 +62,17 @@ #if GST_GL_HAVE_PLATFORM_EGL #include -#include +#include #include +#include #endif -#if GST_GL_HAVE_PLATFORM_GLX +#if GST_GL_HAVE_WINDOW_X11 #include -#include +#endif + +#if GST_GL_HAVE_WINDOW_WAYLAND +#include #endif #include diff --git a/tests/check/libs/libsabi.c b/tests/check/libs/libsabi.c index 40595a9..6a3156b 100644 --- a/tests/check/libs/libsabi.c +++ b/tests/check/libs/libsabi.c @@ -69,6 +69,9 @@ #include #include #include +#if defined (TEST_GST_GL_ABI_CHECK) +#include "gstgl-public-headers.h" +#endif /* initial version of the file was generated using: * grep -A1 "" ../../docs/libs/gst-plugins-base-libs-decl.txt | \ @@ -92,6 +95,9 @@ #elif defined HAVE_CPU_ARM # include "struct_arm.h" # define HAVE_ABI_SIZES FALSE +#elif defined HAVE_CPU_AARCH64 +# include "struct_aarch64.h" +# define HAVE_ABI_SIZES FALSE #elif defined HAVE_CPU_PPC # include "struct_ppc32.h" # define HAVE_ABI_SIZES TRUE diff --git a/tests/check/libs/struct_aarch64.h b/tests/check/libs/struct_aarch64.h new file mode 100644 index 0000000..81828f6 --- /dev/null +++ b/tests/check/libs/struct_aarch64.h @@ -0,0 +1,150 @@ + +GstCheckABIStruct list[] = { + {"GstAppSinkCallbacks", sizeof (GstAppSinkCallbacks), 56}, + {"GstAppSinkClass", sizeof (GstAppSinkClass), 864}, + {"GstAppSink", sizeof (GstAppSink), 704}, + {"GstAppSrcCallbacks", sizeof (GstAppSrcCallbacks), 56}, + {"GstAppSrcClass", sizeof (GstAppSrcClass), 872}, + {"GstAppSrc", sizeof (GstAppSrc), 688}, + {"GstAudioCdSrcClass", sizeof (GstAudioCdSrcClass), 1040}, + {"GstAudioCdSrc", sizeof (GstAudioCdSrc), 720}, + {"GstAudioCdSrcTrack", sizeof (GstAudioCdSrcTrack), 48}, + {"GstAudioClockClass", sizeof (GstAudioClockClass), 328}, + {"GstAudioClock", sizeof (GstAudioClock), 240}, + {"GstAudioFilterClass", sizeof (GstAudioFilterClass), 856}, + {"GstAudioFilter", sizeof (GstAudioFilter), 928}, + {"GstAudioSinkClass", sizeof (GstAudioSinkClass), 928}, + {"GstAudioSink", sizeof (GstAudioSink), 792}, + {"GstAudioSrcClass", sizeof (GstAudioSrcClass), 984}, + {"GstAudioSrc", sizeof (GstAudioSrc), 800}, + {"GstAudioBaseSinkClass", sizeof (GstAudioBaseSinkClass), 840}, + {"GstAudioBaseSink", sizeof (GstAudioBaseSink), 752}, + {"GstAudioBaseSrcClass", sizeof (GstAudioBaseSrcClass), 896}, + {"GstAudioBaseSrc", sizeof (GstAudioBaseSrc), 760}, + {"GstRTPBaseAudioPayloadClass", sizeof (GstRTPBaseAudioPayloadClass), 600}, + {"GstRTPBaseAudioPayload", sizeof (GstRTPBaseAudioPayload), 600}, + {"GstRTPBaseDepayloadClass", sizeof (GstRTPBaseDepayloadClass), 552}, + {"GstRTPBaseDepayload", sizeof (GstRTPBaseDepayload), 456}, + {"GstRTPBasePayloadClass", sizeof (GstRTPBasePayloadClass), 568}, + {"GstRTPBasePayload", sizeof (GstRTPBasePayload), 536}, + {"GstColorBalanceChannelClass", sizeof (GstColorBalanceChannelClass), 176}, + {"GstColorBalanceChannel", sizeof (GstColorBalanceChannel), 72}, + {"GstColorBalanceInterface", sizeof (GstColorBalanceInterface), 88}, + {"GstDiscovererClass", sizeof (GstDiscovererClass), 200}, + {"GstDiscoverer", sizeof (GstDiscoverer), 64}, + {"GstFFTF32Complex", sizeof (GstFFTF32Complex), 8}, + {"GstFFTF64Complex", sizeof (GstFFTF64Complex), 16}, + {"GstFFTS16Complex", sizeof (GstFFTS16Complex), 4}, + {"GstFFTS32Complex", sizeof (GstFFTS32Complex), 8}, + {"GstNavigationInterface", sizeof (GstNavigationInterface), 24}, + {"gst_riff_acid", sizeof (gst_riff_acid), 24}, + {"gst_riff_dmlh", sizeof (gst_riff_dmlh), 4}, + {"gst_riff_index_entry", sizeof (gst_riff_index_entry), 16}, + {"gst_riff_strf_auds", sizeof (gst_riff_strf_auds), 16}, + {"gst_riff_strf_iavs", sizeof (gst_riff_strf_iavs), 32}, + {"gst_riff_strf_vids", sizeof (gst_riff_strf_vids), 40}, + {"gst_riff_strh", sizeof (gst_riff_strh), 48}, + {"GstAudioRingBufferClass", sizeof (GstAudioRingBufferClass), 312}, + {"GstAudioRingBuffer", sizeof (GstAudioRingBuffer), 888}, + {"GstAudioRingBufferSpec", sizeof (GstAudioRingBufferSpec), 400}, + {"GstRTCPPacket", sizeof (GstRTCPPacket), 40}, + {"GstRTPPayloadInfo", sizeof (GstRTPPayloadInfo), 80}, + {"GstRTSPExtensionInterface", sizeof (GstRTSPExtensionInterface), 128}, + {"GstRTSPMessage", sizeof (GstRTSPMessage), 88}, + {"GstRTSPRange", sizeof (GstRTSPRange), 8}, + {"GstRTSPTime", sizeof (GstRTSPTime), 16}, + {"GstRTSPTimeRange", sizeof (GstRTSPTimeRange), 88}, + {"GstRTSPTransport", sizeof (GstRTSPTransport), 120}, + {"GstRTSPUrl", sizeof (GstRTSPUrl), 56}, + {"GstRTSPWatchFuncs", sizeof (GstRTSPWatchFuncs), 96}, + {"GstSDPAttribute", sizeof (GstSDPAttribute), 16}, + {"GstSDPBandwidth", sizeof (GstSDPBandwidth), 16}, + {"GstSDPConnection", sizeof (GstSDPConnection), 32}, + {"GstSDPKey", sizeof (GstSDPKey), 16}, + {"GstSDPMedia", sizeof (GstSDPMedia), 80}, + {"GstSDPMessage", sizeof (GstSDPMessage), 184}, + {"GstSDPOrigin", sizeof (GstSDPOrigin), 48}, + {"GstSDPTime", sizeof (GstSDPTime), 24}, + {"GstSDPZone", sizeof (GstSDPZone), 16}, + {"GstStreamVolumeInterface", sizeof (GstStreamVolumeInterface), 16}, + {"GstTagDemuxClass", sizeof (GstTagDemuxClass), 552}, + {"GstTagDemux", sizeof (GstTagDemux), 304}, + {"GstVideoFilterClass", sizeof (GstVideoFilterClass), 872}, + {"GstVideoFilter", sizeof (GstVideoFilter), 920}, + {"GstVideoOrientationInterface", sizeof (GstVideoOrientationInterface), 80}, + {"GstVideoRectangle", sizeof (GstVideoRectangle), 16}, + {"GstVideoSinkClass", sizeof (GstVideoSinkClass), 832}, + {"GstVideoSink", sizeof (GstVideoSink), 712}, + {"GstVideoOverlayInterface", sizeof (GstVideoOverlayInterface), 48}, +#if defined(TEST_GST_GL_ABI_CHECK) + {"GstGLAsyncDebug", sizeof (GstGLAsyncDebug), 120}, + {"GstGLBaseFilter", sizeof (GstGLBaseFilter), 648}, + {"GstGLBaseFilterClass", sizeof (GstGLBaseFilterClass), 880}, + {"GstGLBaseMemory", sizeof (GstGLBaseMemory), 224}, + {"GstGLAllocationParams", sizeof (GstGLAllocationParams), 120}, + {"GstGLBaseMemoryAllocator", sizeof (GstGLBaseMemoryAllocator), 216}, + {"GstGLBaseMemoryAllocatorClass", sizeof (GstGLBaseMemoryAllocatorClass), 312}, + {"GstGLBaseSrc", sizeof (GstGLBaseSrc), 904}, + {"GstGLBaseSrcClass", sizeof (GstGLBaseSrcClass), 920}, + {"GstGLBuffer", sizeof (GstGLBuffer), 240}, + {"GstGLBufferAllocationParams", sizeof (GstGLBufferAllocationParams), 160}, + {"GstGLBufferAllocator", sizeof (GstGLBufferAllocator), 248}, + {"GstGLBufferAllocatorClass", sizeof (GstGLBufferAllocatorClass), 344}, + {"GstGLBufferPool", sizeof (GstGLBufferPool), 184}, + {"GstGLBufferPoolClass", sizeof (GstGLBufferPoolClass), 320}, + {"GstGLColorConvert", sizeof (GstGLColorConvert), 480}, + {"GstGLColorConvertClass", sizeof (GstGLColorConvertClass), 216}, + {"GstGLContext", sizeof (GstGLContext), 152}, + {"GstGLContextClass", sizeof (GstGLContextClass), 312}, + {"GstGLDisplay", sizeof (GstGLDisplay), 136}, + {"GstGLDisplayClass", sizeof (GstGLDisplayClass), 232}, + {"GstGLFilter", sizeof (GstGLFilter), 1064}, + {"GstGLFilterClass", sizeof (GstGLFilterClass), 952}, + {"GstGLFuncs", sizeof (GstGLFuncs), 2968}, + {"GstGLFramebuffer", sizeof (GstGLFramebuffer), 152}, + {"GstGLFramebufferClass", sizeof (GstGLFramebufferClass), 216}, + {"GstGLMemory", sizeof (GstGLMemory), 480}, + {"GstGLVideoAllocationParams", sizeof (GstGLVideoAllocationParams), 184}, + {"GstGLMemoryAllocator", sizeof (GstGLMemoryAllocator), 248}, + {"GstGLMemoryAllocatorClass", sizeof (GstGLMemoryAllocatorClass), 368}, + {"GstGLMemoryPBO", sizeof (GstGLMemoryPBO), 520}, + {"GstGLMemoryPBOAllocator", sizeof (GstGLMemoryPBOAllocator), 280}, + {"GstGLMemoryPBOAllocatorClass", sizeof (GstGLMemoryPBOAllocatorClass), 400}, + {"GstGLRenderbuffer", sizeof (GstGLRenderbuffer), 280}, + {"GstGLRenderbufferAllocationParams", sizeof (GstGLRenderbufferAllocationParams), 168}, + {"GstGLRenderbufferAllocator", sizeof (GstGLRenderbufferAllocator), 248}, + {"GstGLRenderbufferAllocatorClass", sizeof (GstGLRenderbufferAllocatorClass), 344}, + {"GstGLSLStage", sizeof (GstGLSLStage), 136}, + {"GstGLSLStageClass", sizeof (GstGLSLStageClass), 216}, + {"GstGLShader", sizeof (GstGLShader), 136}, + {"GstGLShaderClass", sizeof (GstGLShaderClass), 184}, + {"GstGLUpload", sizeof (GstGLUpload), 136}, + {"GstGLUploadClass", sizeof (GstGLUploadClass), 216}, + {"GstGLOverlayCompositor", sizeof (GstGLOverlayCompositor), 160}, + {"GstGLOverlayCompositorClass", sizeof (GstGLOverlayCompositorClass), 216}, + {"GstGLQuery", sizeof (GstGLQuery), 176}, + {"GstGLViewConvert", sizeof (GstGLViewConvert), 504}, + {"GstGLViewConvertClass", sizeof (GstGLViewConvertClass), 216}, + {"GstGLWindow", sizeof (GstGLWindow), 248}, + {"GstGLWindowClass", sizeof (GstGLWindowClass), 336}, +#if GST_GL_HAVE_PLATFORM_EGL + {"GstGLDisplayEGL", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLDisplayEGLDevice", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLDeviceClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLMemoryEGL", sizeof (GstGLMemoryEGL), 520}, + {"GstGLMemoryEGLAllocator", sizeof (GstGLMemoryEGLAllocator), 280}, + {"GstGLMemoryEGLAllocatorClass", sizeof (GstGLMemoryEGLAllocatorClass), 400}, + {"GstEGLImage", sizeof (GstGLMemoryEGLAllocatorClass), 400}, +#endif +#if GST_GL_HAVE_WINDOW_WAYLAND + {"GstGLDisplayWayland", sizeof (GstGLDisplayWayland), 216}, + {"GstGLDisplayWaylandClass", sizeof (GstGLDisplayWaylandClass), 264}, +#endif +#if GST_GL_HAVE_WINDOW_X11 + {"GstGLDisplayX11", sizeof (GstGLDisplayX11), 200}, + {"GstGLDisplayX11Class", sizeof (GstGLDisplayX11Class), 264}, +#endif +#endif + {NULL, 0, 0} +}; diff --git a/tests/check/libs/struct_arm.h b/tests/check/libs/struct_arm.h index d46b37b..107137e 100644 --- a/tests/check/libs/struct_arm.h +++ b/tests/check/libs/struct_arm.h @@ -76,5 +76,75 @@ GstCheckABIStruct list[] = { {"GstVideoSinkClass", sizeof (GstVideoSinkClass), 384}, {"GstVideoSink", sizeof (GstVideoSink), 432}, {"GstVideoOverlayInterface", sizeof (GstVideoOverlayInterface), 32}, +#if defined(TEST_GST_GL_ABI_CHECK) + {"GstGLAsyncDebug", sizeof (GstGLAsyncDebug), 120}, + {"GstGLBaseFilter", sizeof (GstGLBaseFilter), 648}, + {"GstGLBaseFilterClass", sizeof (GstGLBaseFilterClass), 880}, + {"GstGLBaseMemory", sizeof (GstGLBaseMemory), 224}, + {"GstGLAllocationParams", sizeof (GstGLAllocationParams), 120}, + {"GstGLBaseMemoryAllocator", sizeof (GstGLBaseMemoryAllocator), 216}, + {"GstGLBaseMemoryAllocatorClass", sizeof (GstGLBaseMemoryAllocatorClass), 312}, + {"GstGLBaseSrc", sizeof (GstGLBaseSrc), 904}, + {"GstGLBaseSrcClass", sizeof (GstGLBaseSrcClass), 920}, + {"GstGLBuffer", sizeof (GstGLBuffer), 240}, + {"GstGLBufferAllocationParams", sizeof (GstGLBufferAllocationParams), 160}, + {"GstGLBufferAllocator", sizeof (GstGLBufferAllocator), 248}, + {"GstGLBufferAllocatorClass", sizeof (GstGLBufferAllocatorClass), 344}, + {"GstGLBufferPool", sizeof (GstGLBufferPool), 184}, + {"GstGLBufferPoolClass", sizeof (GstGLBufferPoolClass), 320}, + {"GstGLColorConvert", sizeof (GstGLColorConvert), 480}, + {"GstGLColorConvertClass", sizeof (GstGLColorConvertClass), 216}, + {"GstGLContext", sizeof (GstGLContext), 152}, + {"GstGLContextClass", sizeof (GstGLContextClass), 312}, + {"GstGLDisplay", sizeof (GstGLDisplay), 136}, + {"GstGLDisplayClass", sizeof (GstGLDisplayClass), 232}, + {"GstGLFilter", sizeof (GstGLFilter), 1064}, + {"GstGLFilterClass", sizeof (GstGLFilterClass), 952}, + {"GstGLFuncs", sizeof (GstGLFuncs), 2968}, + {"GstGLFramebuffer", sizeof (GstGLFramebuffer), 152}, + {"GstGLFramebufferClass", sizeof (GstGLFramebufferClass), 216}, + {"GstGLMemory", sizeof (GstGLMemory), 480}, + {"GstGLVideoAllocationParams", sizeof (GstGLVideoAllocationParams), 184}, + {"GstGLMemoryAllocator", sizeof (GstGLMemoryAllocator), 248}, + {"GstGLMemoryAllocatorClass", sizeof (GstGLMemoryAllocatorClass), 368}, + {"GstGLMemoryPBO", sizeof (GstGLMemoryPBO), 520}, + {"GstGLMemoryPBOAllocator", sizeof (GstGLMemoryPBOAllocator), 280}, + {"GstGLMemoryPBOAllocatorClass", sizeof (GstGLMemoryPBOAllocatorClass), 400}, + {"GstGLRenderbuffer", sizeof (GstGLRenderbuffer), 280}, + {"GstGLRenderbufferAllocationParams", sizeof (GstGLRenderbufferAllocationParams), 168}, + {"GstGLRenderbufferAllocator", sizeof (GstGLRenderbufferAllocator), 248}, + {"GstGLRenderbufferAllocatorClass", sizeof (GstGLRenderbufferAllocatorClass), 344}, + {"GstGLSLStage", sizeof (GstGLSLStage), 136}, + {"GstGLSLStageClass", sizeof (GstGLSLStageClass), 216}, + {"GstGLShader", sizeof (GstGLShader), 136}, + {"GstGLShaderClass", sizeof (GstGLShaderClass), 184}, + {"GstGLUpload", sizeof (GstGLUpload), 136}, + {"GstGLUploadClass", sizeof (GstGLUploadClass), 216}, + {"GstGLOverlayCompositor", sizeof (GstGLOverlayCompositor), 160}, + {"GstGLOverlayCompositorClass", sizeof (GstGLOverlayCompositorClass), 216}, + {"GstGLQuery", sizeof (GstGLQuery), 176}, + {"GstGLViewConvert", sizeof (GstGLViewConvert), 504}, + {"GstGLViewConvertClass", sizeof (GstGLViewConvertClass), 216}, + {"GstGLWindow", sizeof (GstGLWindow), 248}, + {"GstGLWindowClass", sizeof (GstGLWindowClass), 336}, +#if GST_GL_HAVE_PLATFORM_EGL + {"GstGLDisplayEGL", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLDisplayEGLDevice", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLDeviceClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLMemoryEGL", sizeof (GstGLMemoryEGL), 520}, + {"GstGLMemoryEGLAllocator", sizeof (GstGLMemoryEGLAllocator), 280}, + {"GstGLMemoryEGLAllocatorClass", sizeof (GstGLMemoryEGLAllocatorClass), 400}, + {"GstEGLImage", sizeof (GstGLMemoryEGLAllocatorClass), 400}, +#endif +#if GST_GL_HAVE_WINDOW_WAYLAND + {"GstGLDisplayWayland", sizeof (GstGLDisplayWayland), 216}, + {"GstGLDisplayWaylandClass", sizeof (GstGLDisplayWaylandClass), 264}, +#endif +#if GST_GL_HAVE_WINDOW_X11 + {"GstGLDisplayX11", sizeof (GstGLDisplayX11), 200}, + {"GstGLDisplayX11Class", sizeof (GstGLDisplayX11Class), 264}, +#endif +#endif {NULL, 0, 0} }; diff --git a/tests/check/libs/struct_i386.h b/tests/check/libs/struct_i386.h index b5d5172..7a9f7c5 100644 --- a/tests/check/libs/struct_i386.h +++ b/tests/check/libs/struct_i386.h @@ -76,5 +76,75 @@ GstCheckABIStruct list[] = { {"GstVideoSinkClass", sizeof (GstVideoSinkClass), 420}, {"GstVideoSink", sizeof (GstVideoSink), 468}, {"GstVideoOverlayInterface", sizeof (GstVideoOverlayInterface), 24}, +#if defined(TEST_GST_GL_ABI_CHECK) + {"GstGLAsyncDebug", sizeof (GstGLAsyncDebug), 120}, + {"GstGLBaseFilter", sizeof (GstGLBaseFilter), 648}, + {"GstGLBaseFilterClass", sizeof (GstGLBaseFilterClass), 880}, + {"GstGLBaseMemory", sizeof (GstGLBaseMemory), 224}, + {"GstGLAllocationParams", sizeof (GstGLAllocationParams), 120}, + {"GstGLBaseMemoryAllocator", sizeof (GstGLBaseMemoryAllocator), 216}, + {"GstGLBaseMemoryAllocatorClass", sizeof (GstGLBaseMemoryAllocatorClass), 312}, + {"GstGLBaseSrc", sizeof (GstGLBaseSrc), 904}, + {"GstGLBaseSrcClass", sizeof (GstGLBaseSrcClass), 920}, + {"GstGLBuffer", sizeof (GstGLBuffer), 240}, + {"GstGLBufferAllocationParams", sizeof (GstGLBufferAllocationParams), 160}, + {"GstGLBufferAllocator", sizeof (GstGLBufferAllocator), 248}, + {"GstGLBufferAllocatorClass", sizeof (GstGLBufferAllocatorClass), 344}, + {"GstGLBufferPool", sizeof (GstGLBufferPool), 184}, + {"GstGLBufferPoolClass", sizeof (GstGLBufferPoolClass), 320}, + {"GstGLColorConvert", sizeof (GstGLColorConvert), 480}, + {"GstGLColorConvertClass", sizeof (GstGLColorConvertClass), 216}, + {"GstGLContext", sizeof (GstGLContext), 152}, + {"GstGLContextClass", sizeof (GstGLContextClass), 312}, + {"GstGLDisplay", sizeof (GstGLDisplay), 136}, + {"GstGLDisplayClass", sizeof (GstGLDisplayClass), 232}, + {"GstGLFilter", sizeof (GstGLFilter), 1064}, + {"GstGLFilterClass", sizeof (GstGLFilterClass), 952}, + {"GstGLFuncs", sizeof (GstGLFuncs), 2968}, + {"GstGLFramebuffer", sizeof (GstGLFramebuffer), 152}, + {"GstGLFramebufferClass", sizeof (GstGLFramebufferClass), 216}, + {"GstGLMemory", sizeof (GstGLMemory), 480}, + {"GstGLVideoAllocationParams", sizeof (GstGLVideoAllocationParams), 184}, + {"GstGLMemoryAllocator", sizeof (GstGLMemoryAllocator), 248}, + {"GstGLMemoryAllocatorClass", sizeof (GstGLMemoryAllocatorClass), 368}, + {"GstGLMemoryPBO", sizeof (GstGLMemoryPBO), 520}, + {"GstGLMemoryPBOAllocator", sizeof (GstGLMemoryPBOAllocator), 280}, + {"GstGLMemoryPBOAllocatorClass", sizeof (GstGLMemoryPBOAllocatorClass), 400}, + {"GstGLRenderbuffer", sizeof (GstGLRenderbuffer), 280}, + {"GstGLRenderbufferAllocationParams", sizeof (GstGLRenderbufferAllocationParams), 168}, + {"GstGLRenderbufferAllocator", sizeof (GstGLRenderbufferAllocator), 248}, + {"GstGLRenderbufferAllocatorClass", sizeof (GstGLRenderbufferAllocatorClass), 344}, + {"GstGLSLStage", sizeof (GstGLSLStage), 136}, + {"GstGLSLStageClass", sizeof (GstGLSLStageClass), 216}, + {"GstGLShader", sizeof (GstGLShader), 136}, + {"GstGLShaderClass", sizeof (GstGLShaderClass), 184}, + {"GstGLUpload", sizeof (GstGLUpload), 136}, + {"GstGLUploadClass", sizeof (GstGLUploadClass), 216}, + {"GstGLOverlayCompositor", sizeof (GstGLOverlayCompositor), 160}, + {"GstGLOverlayCompositorClass", sizeof (GstGLOverlayCompositorClass), 216}, + {"GstGLQuery", sizeof (GstGLQuery), 176}, + {"GstGLViewConvert", sizeof (GstGLViewConvert), 504}, + {"GstGLViewConvertClass", sizeof (GstGLViewConvertClass), 216}, + {"GstGLWindow", sizeof (GstGLWindow), 248}, + {"GstGLWindowClass", sizeof (GstGLWindowClass), 336}, +#if GST_GL_HAVE_PLATFORM_EGL + {"GstGLDisplayEGL", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLDisplayEGLDevice", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLDeviceClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLMemoryEGL", sizeof (GstGLMemoryEGL), 520}, + {"GstGLMemoryEGLAllocator", sizeof (GstGLMemoryEGLAllocator), 280}, + {"GstGLMemoryEGLAllocatorClass", sizeof (GstGLMemoryEGLAllocatorClass), 400}, + {"GstEGLImage", sizeof (GstGLMemoryEGLAllocatorClass), 400}, +#endif +#if GST_GL_HAVE_WINDOW_WAYLAND + {"GstGLDisplayWayland", sizeof (GstGLDisplayWayland), 216}, + {"GstGLDisplayWaylandClass", sizeof (GstGLDisplayWaylandClass), 264}, +#endif +#if GST_GL_HAVE_WINDOW_X11 + {"GstGLDisplayX11", sizeof (GstGLDisplayX11), 200}, + {"GstGLDisplayX11Class", sizeof (GstGLDisplayX11Class), 264}, +#endif +#endif {NULL, 0, 0} }; diff --git a/tests/check/libs/struct_ppc32.h b/tests/check/libs/struct_ppc32.h index 6f2a5e0..0e42282 100644 --- a/tests/check/libs/struct_ppc32.h +++ b/tests/check/libs/struct_ppc32.h @@ -76,5 +76,78 @@ GstCheckABIStruct list[] = { {"GstVideoSinkClass", sizeof (GstVideoSinkClass), 420}, {"GstVideoSink", sizeof (GstVideoSink), 496}, {"GstVideoOverlayInterface", sizeof (GstVideoOverlayInterface), 24}, +#if 0 +/* FIXME: +#if defined(TEST_GST_GL_ABI_CHECK) + {"GstGLAsyncDebug", sizeof (GstGLAsyncDebug), 120}, + {"GstGLBaseFilter", sizeof (GstGLBaseFilter), 648}, + {"GstGLBaseFilterClass", sizeof (GstGLBaseFilterClass), 880}, + {"GstGLBaseMemory", sizeof (GstGLBaseMemory), 224}, + {"GstGLAllocationParams", sizeof (GstGLAllocationParams), 120}, + {"GstGLBaseMemoryAllocator", sizeof (GstGLBaseMemoryAllocator), 216}, + {"GstGLBaseMemoryAllocatorClass", sizeof (GstGLBaseMemoryAllocatorClass), 312}, + {"GstGLBaseSrc", sizeof (GstGLBaseSrc), 904}, + {"GstGLBaseSrcClass", sizeof (GstGLBaseSrcClass), 920}, + {"GstGLBuffer", sizeof (GstGLBuffer), 240}, + {"GstGLBufferAllocationParams", sizeof (GstGLBufferAllocationParams), 160}, + {"GstGLBufferAllocator", sizeof (GstGLBufferAllocator), 248}, + {"GstGLBufferAllocatorClass", sizeof (GstGLBufferAllocatorClass), 344}, + {"GstGLBufferPool", sizeof (GstGLBufferPool), 184}, + {"GstGLBufferPoolClass", sizeof (GstGLBufferPoolClass), 320}, + {"GstGLColorConvert", sizeof (GstGLColorConvert), 480}, + {"GstGLColorConvertClass", sizeof (GstGLColorConvertClass), 216}, + {"GstGLContext", sizeof (GstGLContext), 152}, + {"GstGLContextClass", sizeof (GstGLContextClass), 312}, + {"GstGLDisplay", sizeof (GstGLDisplay), 136}, + {"GstGLDisplayClass", sizeof (GstGLDisplayClass), 232}, + {"GstGLFilter", sizeof (GstGLFilter), 1064}, + {"GstGLFilterClass", sizeof (GstGLFilterClass), 952}, + {"GstGLFuncs", sizeof (GstGLFuncs), 2968}, + {"GstGLFramebuffer", sizeof (GstGLFramebuffer), 152}, + {"GstGLFramebufferClass", sizeof (GstGLFramebufferClass), 216}, + {"GstGLMemory", sizeof (GstGLMemory), 480}, + {"GstGLVideoAllocationParams", sizeof (GstGLVideoAllocationParams), 184}, + {"GstGLMemoryAllocator", sizeof (GstGLMemoryAllocator), 248}, + {"GstGLMemoryAllocatorClass", sizeof (GstGLMemoryAllocatorClass), 368}, + {"GstGLMemoryPBO", sizeof (GstGLMemoryPBO), 520}, + {"GstGLMemoryPBOAllocator", sizeof (GstGLMemoryPBOAllocator), 280}, + {"GstGLMemoryPBOAllocatorClass", sizeof (GstGLMemoryPBOAllocatorClass), 400}, + {"GstGLRenderbuffer", sizeof (GstGLRenderbuffer), 280}, + {"GstGLRenderbufferAllocationParams", sizeof (GstGLRenderbufferAllocationParams), 168}, + {"GstGLRenderbufferAllocator", sizeof (GstGLRenderbufferAllocator), 248}, + {"GstGLRenderbufferAllocatorClass", sizeof (GstGLRenderbufferAllocatorClass), 344}, + {"GstGLSLStage", sizeof (GstGLSLStage), 136}, + {"GstGLSLStageClass", sizeof (GstGLSLStageClass), 216}, + {"GstGLShader", sizeof (GstGLShader), 136}, + {"GstGLShaderClass", sizeof (GstGLShaderClass), 184}, + {"GstGLUpload", sizeof (GstGLUpload), 136}, + {"GstGLUploadClass", sizeof (GstGLUploadClass), 216}, + {"GstGLOverlayCompositor", sizeof (GstGLOverlayCompositor), 160}, + {"GstGLOverlayCompositorClass", sizeof (GstGLOverlayCompositorClass), 216}, + {"GstGLQuery", sizeof (GstGLQuery), 176}, + {"GstGLViewConvert", sizeof (GstGLViewConvert), 504}, + {"GstGLViewConvertClass", sizeof (GstGLViewConvertClass), 216}, + {"GstGLWindow", sizeof (GstGLWindow), 248}, + {"GstGLWindowClass", sizeof (GstGLWindowClass), 336}, +#if GST_GL_HAVE_PLATFORM_EGL + {"GstGLDisplayEGL", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLDisplayEGLDevice", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLDeviceClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLMemoryEGL", sizeof (GstGLMemoryEGL), 520}, + {"GstGLMemoryEGLAllocator", sizeof (GstGLMemoryEGLAllocator), 280}, + {"GstGLMemoryEGLAllocatorClass", sizeof (GstGLMemoryEGLAllocatorClass), 400}, + {"GstEGLImage", sizeof (GstGLMemoryEGLAllocatorClass), 400}, +#endif +#if GST_GL_HAVE_WINDOW_WAYLAND + {"GstGLDisplayWayland", sizeof (GstGLDisplayWayland), 216}, + {"GstGLDisplayWaylandClass", sizeof (GstGLDisplayWaylandClass), 264}, +#endif +#if GST_GL_HAVE_WINDOW_X11 + {"GstGLDisplayX11", sizeof (GstGLDisplayX11), 200}, + {"GstGLDisplayX11Class", sizeof (GstGLDisplayX11Class), 264}, +#endif +#endif +#endif {NULL, 0, 0} }; diff --git a/tests/check/libs/struct_ppc64.h b/tests/check/libs/struct_ppc64.h index e60f624..7732266 100644 --- a/tests/check/libs/struct_ppc64.h +++ b/tests/check/libs/struct_ppc64.h @@ -76,5 +76,78 @@ GstCheckABIStruct list[] = { {"GstVideoSinkClass", sizeof (GstVideoSinkClass), 832}, {"GstVideoSink", sizeof (GstVideoSink), 712}, {"GstVideoOverlayInterface", sizeof (GstVideoOverlayInterface), 48}, +#if 0 +/* FIXME */ +#if defined(TEST_GST_GL_ABI_CHECK) + {"GstGLAsyncDebug", sizeof (GstGLAsyncDebug), 120}, + {"GstGLBaseFilter", sizeof (GstGLBaseFilter), 648}, + {"GstGLBaseFilterClass", sizeof (GstGLBaseFilterClass), 880}, + {"GstGLBaseMemory", sizeof (GstGLBaseMemory), 224}, + {"GstGLAllocationParams", sizeof (GstGLAllocationParams), 120}, + {"GstGLBaseMemoryAllocator", sizeof (GstGLBaseMemoryAllocator), 216}, + {"GstGLBaseMemoryAllocatorClass", sizeof (GstGLBaseMemoryAllocatorClass), 312}, + {"GstGLBaseSrc", sizeof (GstGLBaseSrc), 904}, + {"GstGLBaseSrcClass", sizeof (GstGLBaseSrcClass), 920}, + {"GstGLBuffer", sizeof (GstGLBuffer), 240}, + {"GstGLBufferAllocationParams", sizeof (GstGLBufferAllocationParams), 160}, + {"GstGLBufferAllocator", sizeof (GstGLBufferAllocator), 248}, + {"GstGLBufferAllocatorClass", sizeof (GstGLBufferAllocatorClass), 344}, + {"GstGLBufferPool", sizeof (GstGLBufferPool), 184}, + {"GstGLBufferPoolClass", sizeof (GstGLBufferPoolClass), 320}, + {"GstGLColorConvert", sizeof (GstGLColorConvert), 480}, + {"GstGLColorConvertClass", sizeof (GstGLColorConvertClass), 216}, + {"GstGLContext", sizeof (GstGLContext), 152}, + {"GstGLContextClass", sizeof (GstGLContextClass), 312}, + {"GstGLDisplay", sizeof (GstGLDisplay), 136}, + {"GstGLDisplayClass", sizeof (GstGLDisplayClass), 232}, + {"GstGLFilter", sizeof (GstGLFilter), 1064}, + {"GstGLFilterClass", sizeof (GstGLFilterClass), 952}, + {"GstGLFuncs", sizeof (GstGLFuncs), 2968}, + {"GstGLFramebuffer", sizeof (GstGLFramebuffer), 152}, + {"GstGLFramebufferClass", sizeof (GstGLFramebufferClass), 216}, + {"GstGLMemory", sizeof (GstGLMemory), 480}, + {"GstGLVideoAllocationParams", sizeof (GstGLVideoAllocationParams), 184}, + {"GstGLMemoryAllocator", sizeof (GstGLMemoryAllocator), 248}, + {"GstGLMemoryAllocatorClass", sizeof (GstGLMemoryAllocatorClass), 368}, + {"GstGLMemoryPBO", sizeof (GstGLMemoryPBO), 520}, + {"GstGLMemoryPBOAllocator", sizeof (GstGLMemoryPBOAllocator), 280}, + {"GstGLMemoryPBOAllocatorClass", sizeof (GstGLMemoryPBOAllocatorClass), 400}, + {"GstGLRenderbuffer", sizeof (GstGLRenderbuffer), 280}, + {"GstGLRenderbufferAllocationParams", sizeof (GstGLRenderbufferAllocationParams), 168}, + {"GstGLRenderbufferAllocator", sizeof (GstGLRenderbufferAllocator), 248}, + {"GstGLRenderbufferAllocatorClass", sizeof (GstGLRenderbufferAllocatorClass), 344}, + {"GstGLSLStage", sizeof (GstGLSLStage), 136}, + {"GstGLSLStageClass", sizeof (GstGLSLStageClass), 216}, + {"GstGLShader", sizeof (GstGLShader), 136}, + {"GstGLShaderClass", sizeof (GstGLShaderClass), 184}, + {"GstGLUpload", sizeof (GstGLUpload), 136}, + {"GstGLUploadClass", sizeof (GstGLUploadClass), 216}, + {"GstGLOverlayCompositor", sizeof (GstGLOverlayCompositor), 160}, + {"GstGLOverlayCompositorClass", sizeof (GstGLOverlayCompositorClass), 216}, + {"GstGLQuery", sizeof (GstGLQuery), 176}, + {"GstGLViewConvert", sizeof (GstGLViewConvert), 504}, + {"GstGLViewConvertClass", sizeof (GstGLViewConvertClass), 216}, + {"GstGLWindow", sizeof (GstGLWindow), 248}, + {"GstGLWindowClass", sizeof (GstGLWindowClass), 336}, +#if GST_GL_HAVE_PLATFORM_EGL + {"GstGLDisplayEGL", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLDisplayEGLDevice", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLDeviceClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLMemoryEGL", sizeof (GstGLMemoryEGL), 520}, + {"GstGLMemoryEGLAllocator", sizeof (GstGLMemoryEGLAllocator), 280}, + {"GstGLMemoryEGLAllocatorClass", sizeof (GstGLMemoryEGLAllocatorClass), 400}, + {"GstEGLImage", sizeof (GstGLMemoryEGLAllocatorClass), 400}, +#endif +#if GST_GL_HAVE_WINDOW_WAYLAND + {"GstGLDisplayWayland", sizeof (GstGLDisplayWayland), 216}, + {"GstGLDisplayWaylandClass", sizeof (GstGLDisplayWaylandClass), 264}, +#endif +#if GST_GL_HAVE_WINDOW_X11 + {"GstGLDisplayX11", sizeof (GstGLDisplayX11), 200}, + {"GstGLDisplayX11Class", sizeof (GstGLDisplayX11Class), 264}, +#endif +#endif +#endif {NULL, 0, 0} }; diff --git a/tests/check/libs/struct_x86_64.h b/tests/check/libs/struct_x86_64.h index e60f624..81828f6 100644 --- a/tests/check/libs/struct_x86_64.h +++ b/tests/check/libs/struct_x86_64.h @@ -76,5 +76,75 @@ GstCheckABIStruct list[] = { {"GstVideoSinkClass", sizeof (GstVideoSinkClass), 832}, {"GstVideoSink", sizeof (GstVideoSink), 712}, {"GstVideoOverlayInterface", sizeof (GstVideoOverlayInterface), 48}, +#if defined(TEST_GST_GL_ABI_CHECK) + {"GstGLAsyncDebug", sizeof (GstGLAsyncDebug), 120}, + {"GstGLBaseFilter", sizeof (GstGLBaseFilter), 648}, + {"GstGLBaseFilterClass", sizeof (GstGLBaseFilterClass), 880}, + {"GstGLBaseMemory", sizeof (GstGLBaseMemory), 224}, + {"GstGLAllocationParams", sizeof (GstGLAllocationParams), 120}, + {"GstGLBaseMemoryAllocator", sizeof (GstGLBaseMemoryAllocator), 216}, + {"GstGLBaseMemoryAllocatorClass", sizeof (GstGLBaseMemoryAllocatorClass), 312}, + {"GstGLBaseSrc", sizeof (GstGLBaseSrc), 904}, + {"GstGLBaseSrcClass", sizeof (GstGLBaseSrcClass), 920}, + {"GstGLBuffer", sizeof (GstGLBuffer), 240}, + {"GstGLBufferAllocationParams", sizeof (GstGLBufferAllocationParams), 160}, + {"GstGLBufferAllocator", sizeof (GstGLBufferAllocator), 248}, + {"GstGLBufferAllocatorClass", sizeof (GstGLBufferAllocatorClass), 344}, + {"GstGLBufferPool", sizeof (GstGLBufferPool), 184}, + {"GstGLBufferPoolClass", sizeof (GstGLBufferPoolClass), 320}, + {"GstGLColorConvert", sizeof (GstGLColorConvert), 480}, + {"GstGLColorConvertClass", sizeof (GstGLColorConvertClass), 216}, + {"GstGLContext", sizeof (GstGLContext), 152}, + {"GstGLContextClass", sizeof (GstGLContextClass), 312}, + {"GstGLDisplay", sizeof (GstGLDisplay), 136}, + {"GstGLDisplayClass", sizeof (GstGLDisplayClass), 232}, + {"GstGLFilter", sizeof (GstGLFilter), 1064}, + {"GstGLFilterClass", sizeof (GstGLFilterClass), 952}, + {"GstGLFuncs", sizeof (GstGLFuncs), 2968}, + {"GstGLFramebuffer", sizeof (GstGLFramebuffer), 152}, + {"GstGLFramebufferClass", sizeof (GstGLFramebufferClass), 216}, + {"GstGLMemory", sizeof (GstGLMemory), 480}, + {"GstGLVideoAllocationParams", sizeof (GstGLVideoAllocationParams), 184}, + {"GstGLMemoryAllocator", sizeof (GstGLMemoryAllocator), 248}, + {"GstGLMemoryAllocatorClass", sizeof (GstGLMemoryAllocatorClass), 368}, + {"GstGLMemoryPBO", sizeof (GstGLMemoryPBO), 520}, + {"GstGLMemoryPBOAllocator", sizeof (GstGLMemoryPBOAllocator), 280}, + {"GstGLMemoryPBOAllocatorClass", sizeof (GstGLMemoryPBOAllocatorClass), 400}, + {"GstGLRenderbuffer", sizeof (GstGLRenderbuffer), 280}, + {"GstGLRenderbufferAllocationParams", sizeof (GstGLRenderbufferAllocationParams), 168}, + {"GstGLRenderbufferAllocator", sizeof (GstGLRenderbufferAllocator), 248}, + {"GstGLRenderbufferAllocatorClass", sizeof (GstGLRenderbufferAllocatorClass), 344}, + {"GstGLSLStage", sizeof (GstGLSLStage), 136}, + {"GstGLSLStageClass", sizeof (GstGLSLStageClass), 216}, + {"GstGLShader", sizeof (GstGLShader), 136}, + {"GstGLShaderClass", sizeof (GstGLShaderClass), 184}, + {"GstGLUpload", sizeof (GstGLUpload), 136}, + {"GstGLUploadClass", sizeof (GstGLUploadClass), 216}, + {"GstGLOverlayCompositor", sizeof (GstGLOverlayCompositor), 160}, + {"GstGLOverlayCompositorClass", sizeof (GstGLOverlayCompositorClass), 216}, + {"GstGLQuery", sizeof (GstGLQuery), 176}, + {"GstGLViewConvert", sizeof (GstGLViewConvert), 504}, + {"GstGLViewConvertClass", sizeof (GstGLViewConvertClass), 216}, + {"GstGLWindow", sizeof (GstGLWindow), 248}, + {"GstGLWindowClass", sizeof (GstGLWindowClass), 336}, +#if GST_GL_HAVE_PLATFORM_EGL + {"GstGLDisplayEGL", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLDisplayEGLDevice", sizeof (GstGLDisplayEGL), 184}, + {"GstGLDisplayEGLDeviceClass", sizeof (GstGLDisplayEGLClass), 264}, + {"GstGLMemoryEGL", sizeof (GstGLMemoryEGL), 520}, + {"GstGLMemoryEGLAllocator", sizeof (GstGLMemoryEGLAllocator), 280}, + {"GstGLMemoryEGLAllocatorClass", sizeof (GstGLMemoryEGLAllocatorClass), 400}, + {"GstEGLImage", sizeof (GstGLMemoryEGLAllocatorClass), 400}, +#endif +#if GST_GL_HAVE_WINDOW_WAYLAND + {"GstGLDisplayWayland", sizeof (GstGLDisplayWayland), 216}, + {"GstGLDisplayWaylandClass", sizeof (GstGLDisplayWaylandClass), 264}, +#endif +#if GST_GL_HAVE_WINDOW_X11 + {"GstGLDisplayX11", sizeof (GstGLDisplayX11), 200}, + {"GstGLDisplayX11Class", sizeof (GstGLDisplayX11Class), 264}, +#endif +#endif {NULL, 0, 0} }; diff --git a/tests/check/meson.build b/tests/check/meson.build index c2702f3..57ea006 100644 --- a/tests/check/meson.build +++ b/tests/check/meson.build @@ -11,7 +11,7 @@ base_tests = [ [ 'libs/baseaudiovisualizer.c' ], [ 'libs/discoverer.c' ], [ 'libs/fft.c' ], - [ 'libs/libsabi.c' ], + [ 'libs/libsabi.c', false, [ gstgl_dep ] ], [ 'libs/mikey.c' ], [ 'libs/navigation.c' ], [ 'libs/pbutils.c' ], @@ -128,6 +128,10 @@ if valgrind_dep.found() test_defines += ['-DHAVE_VALGRIND'] endif +if build_gstgl + test_defines += ['-DTEST_GST_GL_ABI_CHECK'] +endif + test_deps = [gst_dep, gst_base_dep, gst_net_dep, gst_check_dep, audio_dep, video_dep, pbutils_dep, rtp_dep, rtsp_dep, tag_dep, allocators_dep, app_dep, fft_dep, riff_dep, sdp_dep, gio_dep, valgrind_dep] + glib_deps -- 2.7.4