diff options
author | Sven Göthel <[email protected]> | 2024-02-02 14:25:12 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-02-02 14:25:12 +0100 |
commit | 7928ed90104f71fb53ae8201b3140b8e347b83ee (patch) | |
tree | e34c9a984f6a565041735b5c01d3befca4814542 /src/jogl/classes/com/jogamp/opengl/util/av/SubBitmapEvent.java | |
parent | 020f998cad685ce2267751196528b31ce939764c (diff) |
Bug 1493: Supply language code to SubtitleEvent, perhaps allowsing player to select font for ASS/Text rendering; Remove GLMediaPlayer's getStreamLang() as replaced by getLang()
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/av/SubBitmapEvent.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/av/SubBitmapEvent.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/av/SubBitmapEvent.java b/src/jogl/classes/com/jogamp/opengl/util/av/SubBitmapEvent.java index 0032aeffc..078450d2e 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/av/SubBitmapEvent.java +++ b/src/jogl/classes/com/jogamp/opengl/util/av/SubBitmapEvent.java @@ -53,6 +53,7 @@ public class SubBitmapEvent extends SubtitleEvent { /** * Texture Event ctor * @param codec the {@link CodecID} + * @param lang language code, supposed to be 3-letters of `ISO 639-2 language codes` * @param pos texture position * @param dim texture dimension * @param tex the {@link Texture} or {@code null} if unused @@ -60,8 +61,8 @@ public class SubBitmapEvent extends SubtitleEvent { * @param pts_end pts end in ms, often {@link #isEndDefined()} for bitmap'ed types see {@link #pts_end} * @param owner {@link Texture} owner code-stub to release the texture */ - public SubBitmapEvent(final CodecID codec, final Vec2i pos, final Vec2i dim, final Texture tex, final int pts_start, final int pts_end, final TextureOwner owner) { - super(SubtitleEvent.Type.Bitmap, codec, pts_start, pts_end); + public SubBitmapEvent(final CodecID codec, final String lang, final Vec2i pos, final Vec2i dim, final Texture tex, final int pts_start, final int pts_end, final TextureOwner owner) { + super(SubtitleEvent.Type.Bitmap, codec, lang, pts_start, pts_end); position = pos; dimension = dim; texture = tex; |