diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-08-07 15:11:31 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-08-07 15:11:31 +0200 |
| commit | ed7ee12e7ec6d965ceef6a47dca7b92e726218d5 (patch) | |
| tree | ec83724ec1c758d9a841e4f5077e7d3c955326cf /src/include/gtkclass.h | |
| parent | 42d99d2b2a5579a64582b419e1f4080bdc7338b2 (diff) | |
| download | box64-ed7ee12e7ec6d965ceef6a47dca7b92e726218d5.tar.gz box64-ed7ee12e7ec6d965ceef6a47dca7b92e726218d5.zip | |
[GTK] Added wrapped GstVideoBufferPool
Diffstat (limited to 'src/include/gtkclass.h')
| -rw-r--r-- | src/include/gtkclass.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/gtkclass.h b/src/include/gtkclass.h index 9960d74f..54fcb1ce 100644 --- a/src/include/gtkclass.h +++ b/src/include/gtkclass.h @@ -2104,6 +2104,40 @@ typedef struct my_GstAudioFilterClass_s { void* _gst_reserved[20]; } my_GstAudioFilterClass_t; +typedef struct my_GstBufferPool_s { + my_GstObject_t object; + int flushing; + void* priv; //GstBufferPoolPrivate + void* _gst_reserved[4]; +} my_GstBufferPool_t; + +typedef struct my_GstBufferPoolClass_s { + my_GstObjectClass_t object_class; + void* (*get_options) (void* pool); + int (*set_config) (void* pool, void* config); + int (*start) (void* pool); + int (*stop) (void* pool); + int (*acquire_buffer) (void* pool, void* buffer, void* params); + int (*alloc_buffer) (void* pool, void* buffer, void* params); + void (*reset_buffer) (void* pool, void* buffer); + void (*release_buffer) (void* pool, void* buffer); + void (*free_buffer) (void* pool, void* buffer); + void (*flush_start) (void* pool); + void (*flush_stop) (void* pool); + void* _gst_reserved[4 - 2]; +} my_GstBufferPoolClass_t; + +typedef struct my_GstVideoBufferPool_s +{ + my_GstBufferPool_t bufferpool; + void* priv; //GstVideoBufferPoolPrivate +} my_GstVideoBufferPool_t; + +typedef struct my_GstVideoBufferPoolClass_s +{ + my_GstBufferPoolClass_t parent; +} my_GstVideoBufferPoolClass_t; + typedef struct my_GDBusProxy_s { my_GObject_t parent; @@ -2262,6 +2296,8 @@ GTKCLASS(GstGLBaseSrc) \ GTKCLASS(GstAudioDecoder) \ GTKCLASS(GstVideoFilter) \ GTKCLASS(GstAudioFilter) \ +GTKCLASS(GstBufferPool) \ +GTKCLASS(GstVideoBufferPool) \ GTKIFACE(GstURIHandler) \ #define GTKCLASS(A) void Set##A##ID(size_t id); |