diff options
author | Sven Göthel <[email protected]> | 2024-01-28 22:05:18 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-28 22:05:18 +0100 |
commit | a19f810c9618e2fa6829f1c157d2e1a88ca178de (patch) | |
tree | 50730d855a37f287330b8aecbdeefbde849cf128 /src/jogl/native/libav/ffmpeg_tool.h | |
parent | 3e95c1994d363bc137ffcf548fd3751ac500ac7b (diff) |
FFMPEGPlayer: Prep for bitmap'ed subtitles: Use glEnable()/glBindTexture() func-ptr in native; readNextPacket0() passes video+subtitle texTarget and texID
For bitmap subtitles we need to push the bitmap into its own texture.
Hence readNextPacket0() must switch to used texture using glEnable() on !core and glBindTexture().
Diffstat (limited to 'src/jogl/native/libav/ffmpeg_tool.h')
-rw-r--r-- | src/jogl/native/libav/ffmpeg_tool.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/native/libav/ffmpeg_tool.h b/src/jogl/native/libav/ffmpeg_tool.h index 852ff8d1e..be186d818 100644 --- a/src/jogl/native/libav/ffmpeg_tool.h +++ b/src/jogl/native/libav/ffmpeg_tool.h @@ -65,6 +65,9 @@ typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLi typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void); typedef void (APIENTRYP PFNGLFLUSH) (void); typedef void (APIENTRYP PFNGLFINISH) (void); +typedef void (APIENTRYP PFNGLENABLE) (GLenum cap); +typedef void (APIENTRYP PFNGLBINDTEXTURE) (GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLACTIVETEXTURE) (GLenum texture); /** * AV_TIME_BASE 1000000 @@ -150,6 +153,8 @@ typedef struct { PFNGLGETERRORPROC procAddrGLGetError; PFNGLFLUSH procAddrGLFlush; PFNGLFINISH procAddrGLFinish; + PFNGLENABLE procAddrGLEnable; + PFNGLBINDTEXTURE procAddrGLBindTexture; AVPacket* packet; AVFormatContext* pFormatCtx; |