Class SubPictureBD

java.lang.Object
bdsup2sub.supstream.SubPicture
bdsup2sub.supstream.bd.SubPictureBD

public class SubPictureBD extends SubPicture
  • Field Details

    • configuration

      private static final Configuration configuration
    • objectID

      private int objectID
      objectID used in decoded object
    • imageObjectList

      private List<ImageObject> imageObjectList
      list of ODS packets containing image info
    • windowWidth

      private int windowWidth
      width of subtitle window (might be larger than image)
    • windowHeight

      private int windowHeight
      height of subtitle window (might be larger than image)
    • xWindowOffset

      private int xWindowOffset
      upper left corner of subtitle window x
    • yWindowOffset

      private int yWindowOffset
      upper left corner of subtitle window y
    • type

      private int type
      FPS type (e.g. 0x10 = 24p)
    • palettes

      private List<List<PaletteInfo>> palettes
      list of (list of) palette info - there are up to 8 palettes per epoch, each can be updated several times
  • Constructor Details

    • SubPictureBD

      public SubPictureBD()
    • SubPictureBD

      public SubPictureBD(SubPictureBD other)
  • Method Details

    • isMergableWith

      public boolean isMergableWith(SubPictureBD previous)
    • isThisImageObjectIdenticalWith

      private boolean isThisImageObjectIdenticalWith(ImageObject previousImageObject)
    • getImageWidth

      public int getImageWidth()
      Overrides:
      getImageWidth in class SubPicture
    • getImageHeight

      public int getImageHeight()
      Overrides:
      getImageHeight in class SubPicture
    • getXOffset

      public int getXOffset()
      Overrides:
      getXOffset in class SubPicture
    • getYOffset

      public int getYOffset()
      Overrides:
      getYOffset in class SubPicture
    • getImageObject

      ImageObject getImageObject(int index)
      Get image object containing RLE data
      Parameters:
      index - index of subtitle
      Returns:
      image object containing RLE data
    • getImageObject

      ImageObject getImageObject()
      Get image object containing RLE data
      Returns:
      image object containing RLE data
    • getObjectID

      int getObjectID()
    • setObjectID

      public void setObjectID(int objectID)
    • getImageObjectList

      public List<ImageObject> getImageObjectList()
    • getWindowWidth

      public int getWindowWidth()
    • setWindowWidth

      public void setWindowWidth(int windowWidth)
    • getWindowHeight

      public int getWindowHeight()
    • setWindowHeight

      public void setWindowHeight(int windowHeight)
    • getXWindowOffset

      int getXWindowOffset()
    • setXWindowOffset

      public void setXWindowOffset(int xWindowOffset)
    • getYWindowOffset

      int getYWindowOffset()
    • setYWindowOffset

      public void setYWindowOffset(int yWindowOffset)
    • getType

      public int getType()
    • setType

      public void setType(int type)
    • getPalettes

      public List<List<PaletteInfo>> getPalettes()