[vlc-commits] va_surface: make the va_pool structure private

Steve Lhomme git at videolan.org
Fri Oct 18 11:02:14 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Oct 17 16:17:36 2019 +0200| [8c18fe2201b171a5278d92842d400699ab4fa1cd] | committer: Steve Lhomme

va_surface: make the va_pool structure private

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c18fe2201b171a5278d92842d400699ab4fa1cd
---

 modules/codec/avcodec/va_surface.c          | 12 ++++++++++++
 modules/codec/avcodec/va_surface_internal.h | 13 +------------
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/modules/codec/avcodec/va_surface.c b/modules/codec/avcodec/va_surface.c
index e9a010129d..aac1634445 100644
--- a/modules/codec/avcodec/va_surface.c
+++ b/modules/codec/avcodec/va_surface.c
@@ -40,6 +40,18 @@
 
 #define MAX_GET_RETRIES  ((VLC_TICK_FROM_SEC(1) + VOUT_OUTMEM_SLEEP) / VOUT_OUTMEM_SLEEP)
 
+struct va_pool_t
+{
+    /* */
+    unsigned     surface_count;
+    unsigned     surface_width;
+    unsigned     surface_height;
+
+    vlc_va_surface_t *surface[MAX_SURFACE_COUNT];
+
+    const struct va_pool_cfg *callbacks;
+};
+
 struct vlc_va_surface_t {
     atomic_uintptr_t     refcount; // 1 ref for the surface existance, 1 per surface/clone in-flight
     picture_context_t    *pic_va_ctx;
diff --git a/modules/codec/avcodec/va_surface_internal.h b/modules/codec/avcodec/va_surface_internal.h
index 11378a28fd..e4d974e599 100644
--- a/modules/codec/avcodec/va_surface_internal.h
+++ b/modules/codec/avcodec/va_surface_internal.h
@@ -32,20 +32,9 @@
 
 /* */
 typedef struct vlc_va_surface_t vlc_va_surface_t;
+typedef struct va_pool_t va_pool_t;
 
 #define MAX_SURFACE_COUNT (64)
-typedef struct
-{
-    /* */
-    unsigned     surface_count;
-    int          surface_width;
-    int          surface_height;
-
-    vlc_va_surface_t *surface[MAX_SURFACE_COUNT];
-
-    const struct va_pool_cfg *callbacks;
-
-} va_pool_t;
 
 struct va_pool_cfg {
     int (*pf_create_device)(vlc_va_t *);



More information about the vlc-commits mailing list