aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-12-30 21:18:16 +0100
committerSven Gothel <[email protected]>2023-12-30 21:18:16 +0100
commit68b2dad19bd6d84f18b22f967ce320b448e8a270 (patch)
treee4d49a1eadc12ef9a456f1eb1d5303eddfe192c8 /src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java
parentc6e39c6e313a34688ca0164d7a34b6465e92396f (diff)
GLMediaPlayer/FFMPEGMediaPlayer: Add chapter metadata support and use com.jogamp.common.av.PTS.millisToTimeStr(..)
Chapter metadata is now supported via our FFMPEGMediaPlayer implementation. Added public method: 'Chapters[] GLMediaPlayer.getChapters()'
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java
index 9099bfb08..03b61b9ef 100644
--- a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java
+++ b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGNatives.java
@@ -71,6 +71,12 @@ import com.jogamp.opengl.util.texture.TextureSequence.TextureFrame;
abstract int getAudioPTS0(long moviePtr);
+ abstract int getChapterCount0(long moviePtr);
+ abstract int getChapterID0(long moviePtr, int idx);
+ abstract int getChapterStartPTS0(long moviePtr, int idx);
+ abstract int getChapterEndPTS0(long moviePtr, int idx);
+ abstract String getChapterTitle0(long moviePtr, int idx);
+
/**
* @return resulting current video PTS, or {@link TextureFrame#INVALID_PTS}
*/