net.sourceforge.dvb.projectx.subtitle
Class Subpicture

java.lang.Object
  |
  +--net.sourceforge.dvb.projectx.subtitle.Subpicture

public class Subpicture
extends java.lang.Object


Field Summary
 DVBSubpicture dvb
           
 
Constructor Summary
Subpicture()
           
 
Method Summary
 int decode_picture(byte[] packet, int off, boolean decode, java.lang.Object obj)
           
 int decode_picture(byte[] packet, int off, boolean decode, java.lang.Object obj, long pts, boolean save, boolean visible)
           
 java.lang.String getArea()
           
 java.awt.Image getImage()
           
 int getMaximumLines()
           
 java.awt.Image getScaledImage()
           
 java.util.ArrayList getUserColorTable()
           
 java.lang.Object[] getUserColorTableArray()
           
 java.lang.String isForced_Msg()
           
 void paintPicture(byte[] array, int _width, int _height, int _scansize, int _x, int _y)
          paint any picture, for export it should only have 2bit depth
 void repaint()
           
 void reset()
           
 void resetUserColorTable()
           
 void set_XY_Offset(int x_value, int y_value)
          modify X,Y Position
 int[] set(java.lang.String nm, java.lang.String values)
          set user packet ("Font pointsize; Backgr.
 int[] set(java.lang.String nm, java.lang.String values, boolean keepColourTable)
          set user packet ("Font pointsize; Backgr.
 void set2()
           
 void setDisplayMode(int value)
          modify force display flag
 int setPGClinks()
           
 byte[] setTime(byte[] tmp, long out_time)
          set display time
 void showPicTTX(java.lang.Object[] _str, java.lang.Object obj)
          paint pic from ttx
 void updateUserColorTable(Bitmap new_bitmap)
           
 byte[] writeRLE(Bitmap new_bitmap)
           
 byte[] writeRLE(long start_time, int onscreen_time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dvb

public DVBSubpicture dvb
Constructor Detail

Subpicture

public Subpicture()
Method Detail

repaint

public void repaint()

getImage

public java.awt.Image getImage()

getScaledImage

public java.awt.Image getScaledImage()

paintPicture

public void paintPicture(byte[] array,
                         int _width,
                         int _height,
                         int _scansize,
                         int _x,
                         int _y)
paint any picture, for export it should only have 2bit depth

showPicTTX

public void showPicTTX(java.lang.Object[] _str,
                       java.lang.Object obj)
paint pic from ttx

setTime

public byte[] setTime(byte[] tmp,
                      long out_time)
set display time

resetUserColorTable

public void resetUserColorTable()

getUserColorTableArray

public java.lang.Object[] getUserColorTableArray()

getUserColorTable

public java.util.ArrayList getUserColorTable()

updateUserColorTable

public void updateUserColorTable(Bitmap new_bitmap)

writeRLE

public byte[] writeRLE(long start_time,
                       int onscreen_time)
                throws java.io.IOException

writeRLE

public byte[] writeRLE(Bitmap new_bitmap)
                throws java.io.IOException

setPGClinks

public int setPGClinks()

set2

public void set2()

getMaximumLines

public int getMaximumLines()

set

public int[] set(java.lang.String nm,
                 java.lang.String values)
set user packet ("Font pointsize; Backgr. Alpha value; Yoffset; Xoffset; Screenwidth");

set

public int[] set(java.lang.String nm,
                 java.lang.String values,
                 boolean keepColourTable)
set user packet ("Font pointsize; Backgr. Alpha value; Yoffset; Xoffset; Screenwidth");

getArea

public java.lang.String getArea()

isForced_Msg

public java.lang.String isForced_Msg()

reset

public void reset()

set_XY_Offset

public void set_XY_Offset(int x_value,
                          int y_value)
modify X,Y Position

setDisplayMode

public void setDisplayMode(int value)
modify force display flag

decode_picture

public int decode_picture(byte[] packet,
                          int off,
                          boolean decode,
                          java.lang.Object obj)

decode_picture

public int decode_picture(byte[] packet,
                          int off,
                          boolean decode,
                          java.lang.Object obj,
                          long pts,
                          boolean save,
                          boolean visible)