[vlc-devel] [PATCH 2/2] decoder: add a decoder device type for MMAL

Steve Lhomme robux4 at ycbcr.xyz
Tue Jun 25 14:25:05 CEST 2019


In the current MMAL code the pictures are allocated once from the display in a
MMAL_POOL_T. The pool could be created in the decoder (push) and created using
the MMAL_PORT_T. It may not possible to use pictures from different pools but
the display should nonetheless be created with the same MMAL_PORT_T.
---
 include/vlc_codec.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/vlc_codec.h b/include/vlc_codec.h
index 89001d7823..86f092c029 100644
--- a/include/vlc_codec.h
+++ b/include/vlc_codec.h
@@ -491,6 +491,7 @@ enum vlc_decoder_device_type
     VLC_DECODER_DEVICE_DXVA2,
     VLC_DECODER_DEVICE_D3D11VA,
     VLC_DECODER_DEVICE_AWINDOW,
+    VLC_DECODER_DEVICE_MMAL,
 };
 
 /**
@@ -517,6 +518,7 @@ typedef struct vlc_decoder_device
      * DXVA2: IDirect3DDevice9*
      * D3D11VA: ID3D11DeviceContext*
      * AWindow: android AWindowHandler*
+     * MMAL: MMAL_PORT_T*
      */
     void *opaque;
 } vlc_decoder_device;
-- 
2.17.1



More information about the vlc-devel mailing list