net.sourceforge.dvb.projectx.parser
Class StreamDemultiplexer

java.lang.Object
  |
  +--net.sourceforge.dvb.projectx.parser.StreamDemultiplexer

public class StreamDemultiplexer
extends java.lang.Object

demuxes all packetized data


Constructor Summary
StreamDemultiplexer(JobCollection collection)
           
StreamDemultiplexer(JobCollection collection, long val)
           
 
Method Summary
 java.lang.String[] close(JobProcessing job_processing, java.lang.String _vptslog)
           
 java.lang.String closeVideo(JobProcessing job_processing, java.lang.String workouts)
           
 int getID()
          returns PES pes_ID for later selection
 int getnewID()
          returns newID for later selection /or subid
 int getNum()
          Object yet intialized
 int getPackCount()
          returns packet counter
 int getPID()
          get PID for later selection
 long getPTS()
          last PTS
 int getStreamNumber()
           
 int getStreamType()
          returns stream tpye, vdr/es/mpeg1/2...
 int getType()
          returns es_streamtype
 void init(JobCollection collection, java.lang.String _name, int _buffersize, int _lfn, int _parsertype)
          main init nonVideo
 void init2(JobCollection collection, java.lang.String _name)
          re-init nonVideo
 void initVideo(JobCollection collection, java.lang.String _name, int _buffersize, int _lfn, int _parsertype)
           
 void initVideo2(JobCollection collection, java.lang.String _name)
           
 boolean isTTX()
          is it TTX?
 void PTSOffset(long val)
          PTS offset if needed
 void resetVideo()
          clean Up for next foreign inputfile in case of multiple
 void setID(int val)
          set pes_ID for later selection
 void setnewID(int val)
          set newID for later selection /or subid
 void setPID(int val)
          set PID for later selection
 void setStreamNumber(int val)
           
 void setStreamType(int val)
          sets stream tpye, vdr/es/mpeg1/2...
 void setsubID(int val)
          sets subid
 void setTTX(boolean b)
          set ttx
 void setType(int val)
          sets type
 boolean StreamEnabled()
          stream type preselector
 int subID()
          returns subid
 void write(JobProcessing job_processing, byte[] pes_packet, boolean pes_hasHeader)
          process nonvideo data = 1 pespacket from demux
 void write(JobProcessing job_processing, byte[] pes_packet, int pes_packetoffset, int pes_payloadlength, boolean pes_hasHeader)
          process nonvideo data = 1 pespacket from demux
 void writeVideo(JobProcessing job_processing, byte[] pes_packet, boolean pes_hasHeader, java.util.List CutpointList, java.util.List ChapterpointList)
          write video data = 1 pespacket from demux
 void writeVideo(JobProcessing job_processing, byte[] pes_packet, int pes_packetoffset, int pes_payloadlength, boolean pes_hasHeader, java.util.List CutpointList, java.util.List ChapterpointList)
          write video data = 1 pespacket from demux
 void writeVideoES(JobProcessing job_processing, IDDBufferedOutputStream _out, byte[] _vidbuf, byte[] _vptsbytes, java.io.DataOutputStream _pts_log, java.lang.String _parentname, int[] _MPGVideotype, java.util.List _CutpointList, java.util.List _ChapterpointList, boolean _doWrite)
          temporary redirected access to goptest from video-es
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamDemultiplexer

public StreamDemultiplexer(JobCollection collection)

StreamDemultiplexer

public StreamDemultiplexer(JobCollection collection,
                           long val)
Method Detail

getNum

public int getNum()
Object yet intialized

getPID

public int getPID()
get PID for later selection

getID

public int getID()
returns PES pes_ID for later selection

setPID

public void setPID(int val)
set PID for later selection

setID

public void setID(int val)
set pes_ID for later selection

setnewID

public void setnewID(int val)
set newID for later selection /or subid

getnewID

public int getnewID()
returns newID for later selection /or subid

getPackCount

public int getPackCount()
returns packet counter

getType

public int getType()
returns es_streamtype

setStreamType

public void setStreamType(int val)
sets stream tpye, vdr/es/mpeg1/2...

getStreamType

public int getStreamType()
returns stream tpye, vdr/es/mpeg1/2...

setType

public void setType(int val)
sets type

setsubID

public void setsubID(int val)
sets subid

subID

public int subID()
returns subid

isTTX

public boolean isTTX()
is it TTX?

setTTX

public void setTTX(boolean b)
set ttx

getPTS

public long getPTS()
last PTS

PTSOffset

public void PTSOffset(long val)
PTS offset if needed

setStreamNumber

public void setStreamNumber(int val)

getStreamNumber

public int getStreamNumber()

StreamEnabled

public boolean StreamEnabled()
stream type preselector

init

public void init(JobCollection collection,
                 java.lang.String _name,
                 int _buffersize,
                 int _lfn,
                 int _parsertype)
main init nonVideo

init2

public void init2(JobCollection collection,
                  java.lang.String _name)
re-init nonVideo

write

public void write(JobProcessing job_processing,
                  byte[] pes_packet,
                  boolean pes_hasHeader)
process nonvideo data = 1 pespacket from demux

write

public void write(JobProcessing job_processing,
                  byte[] pes_packet,
                  int pes_packetoffset,
                  int pes_payloadlength,
                  boolean pes_hasHeader)
process nonvideo data = 1 pespacket from demux

close

public java.lang.String[] close(JobProcessing job_processing,
                                java.lang.String _vptslog)

initVideo

public void initVideo(JobCollection collection,
                      java.lang.String _name,
                      int _buffersize,
                      int _lfn,
                      int _parsertype)

initVideo2

public void initVideo2(JobCollection collection,
                       java.lang.String _name)

resetVideo

public void resetVideo()
clean Up for next foreign inputfile in case of multiple

closeVideo

public java.lang.String closeVideo(JobProcessing job_processing,
                                   java.lang.String workouts)

writeVideoES

public void writeVideoES(JobProcessing job_processing,
                         IDDBufferedOutputStream _out,
                         byte[] _vidbuf,
                         byte[] _vptsbytes,
                         java.io.DataOutputStream _pts_log,
                         java.lang.String _parentname,
                         int[] _MPGVideotype,
                         java.util.List _CutpointList,
                         java.util.List _ChapterpointList,
                         boolean _doWrite)
temporary redirected access to goptest from video-es

writeVideo

public void writeVideo(JobProcessing job_processing,
                       byte[] pes_packet,
                       boolean pes_hasHeader,
                       java.util.List CutpointList,
                       java.util.List ChapterpointList)
write video data = 1 pespacket from demux

writeVideo

public void writeVideo(JobProcessing job_processing,
                       byte[] pes_packet,
                       int pes_packetoffset,
                       int pes_payloadlength,
                       boolean pes_hasHeader,
                       java.util.List CutpointList,
                       java.util.List ChapterpointList)
write video data = 1 pespacket from demux