mediacodec: use the new push model
pictures, context and video context are now allocated from the mediacodec
module. This simplify a lot of things since MediaCodec is naturally a push API.
The mediacodec decoder module, via the decoder device will now decide of the vd
plugin used: android-display or gles2. It depends on how the LibVLC user setup
its surfaces or if the format need an OpenGL transformation (360 videos). The
decoder module need to know this informations before configuring MediaCodec in
order to choose the good Surface. The Surface will be either the SurfaceView
directly (AWindow_Video) or a SurfaceTexture that will be attached to a GL
texture (AWindow_SurfaceTexture) by the android gl converter.
Signed-off-by:
Steve Lhomme <robux4@ycbcr.xyz>
Showing
- include/vlc_picture.h 1 addition, 1 deletioninclude/vlc_picture.h
- modules/codec/omxil/mediacodec.c 250 additions, 117 deletionsmodules/codec/omxil/mediacodec.c
- modules/video_output/Makefile.am 0 additions, 1 deletionmodules/video_output/Makefile.am
- modules/video_output/android/display.c 79 additions, 223 deletionsmodules/video_output/android/display.c
- modules/video_output/android/display.h 0 additions, 147 deletionsmodules/video_output/android/display.h
- modules/video_output/android/utils.c 15 additions, 0 deletionsmodules/video_output/android/utils.c
- modules/video_output/android/utils.h 10 additions, 0 deletionsmodules/video_output/android/utils.h
- modules/video_output/android/window.c 22 additions, 0 deletionsmodules/video_output/android/window.c
- modules/video_output/opengl/converter_android.c 13 additions, 76 deletionsmodules/video_output/opengl/converter_android.c
Loading
Please register or sign in to comment