Class SubBitmapEvent

    • Field Detail

      • position

        public final com.jogamp.math.Vec2i position
        Subtitle texture position
      • dimension

        public final com.jogamp.math.Vec2i dimension
        Subtitle texture dimension
      • texture

        public Texture texture
        Subtitle texture or null if unused
    • Constructor Detail

      • SubBitmapEvent

        public SubBitmapEvent​(CodecID codec,
                              String lang,
                              com.jogamp.math.Vec2i pos,
                              com.jogamp.math.Vec2i dim,
                              Texture tex,
                              int pts_start,
                              int pts_end,
                              SubBitmapEvent.TextureOwner owner)
        Texture Event ctor
        Parameters:
        codec - the CodecID
        lang - language code, supposed to be 3-letters of `ISO 639-2 language codes`
        pos - texture position
        dim - texture dimension
        tex - the Texture or null if unused
        pts_start - pts start in ms
        pts_end - pts end in ms, often SubtitleEvent.isEndDefined() for bitmap'ed types see SubtitleEvent.pts_end
        owner - Texture owner code-stub to release the texture
    • Method Detail

      • release

        public void release()
        Release the resources, if any, back to the owner.

        The texture is released back to the owner

        Specified by:
        release in class SubtitleEvent