net.sourceforge.dvb.projectx.parser
Class StreamParserBase

java.lang.Object
  |
  +--net.sourceforge.dvb.projectx.parser.StreamParserBase
Direct Known Subclasses:
StreamParserESAudio, StreamParserESSubpicture, StreamParserESVideo, StreamParserPESPrimary, StreamParserPESSecondary, StreamParserPVA, StreamParserTS

public class StreamParserBase
extends java.lang.Object

main thread


Field Summary
static boolean CreateD2vIndex
           
static java.util.List demuxList
           
 int ERRORCODE
           
static java.lang.String fchild
           
static java.lang.String fparent
           
 int MainBufferSize
           
static boolean SplitProjectFile
           
static StreamConverter streamconverter
           
static StreamDemultiplexer streamdemultiplexer
           
static java.util.Hashtable streamobjects
           
 
Constructor Summary
StreamParserBase()
           
 
Method Summary
 void addCellTime(JobProcessing job_processing)
           
 void addCellTimeFromFileSegment(JobProcessing job_processing)
           
 void createStreamProcess(int es_streamtype, JobCollection collection, java.lang.String[] values, java.lang.String key_value)
           
 java.lang.String formatIDString(java.lang.String str1, int pid, int id, int subid)
           
 java.util.Hashtable getStreamObjects(JobProcessing job_processing)
           
 void init()
           
 void initConversion(JobCollection collection, java.lang.String parent, int action, int source, int splitpart)
          init conversions
 long nextFilePTS(JobCollection collection, int parser_type, int pes_streamtype, long lastpts, int file_number)
          nextfile PTS check returns new pts offset to append
 long nextFilePTS(JobCollection collection, int parser_type, int pes_streamtype, long lastpts, int file_number, long startPoint)
          nextfile PTS check returns new pts offset to append
 long nextFilePTS(JobCollection collection, int parser_type, int pes_streamtype, long lastpts, long ptsoffset, int file_number, long startPoint)
          nextfile PTS check returns new pts offset to append
 java.lang.String parseStream(JobCollection collection, XInputFile aXInputFile, int pes_streamtype, int action, java.lang.String vptslog)
           
 boolean pause()
           
 java.lang.String processElementaryStreams(java.lang.String vptslog, int action, int[] clv, JobCollection collection, JobProcessing job_processing)
           
 void processNonVideoElementaryStreams(java.lang.String vptslog, int action, int[] clv, JobCollection collection, JobProcessing job_processing)
           
 void processNonVideoElementaryStreams(java.lang.String vptslog, int action, int[] clv, JobCollection collection, JobProcessing job_processing, java.util.List tempfiles, XInputFile aXInputFile)
           
 void setFileName(JobCollection collection, JobProcessing job_processing, XInputFile aXInputFile)
           
 void setFileName(JobCollection collection, JobProcessing job_processing, XInputFile aXInputFile, java.lang.String extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERRORCODE

public int ERRORCODE

MainBufferSize

public int MainBufferSize

streamdemultiplexer

public static StreamDemultiplexer streamdemultiplexer

streamconverter

public static StreamConverter streamconverter

demuxList

public static java.util.List demuxList

streamobjects

public static java.util.Hashtable streamobjects

CreateD2vIndex

public static boolean CreateD2vIndex

SplitProjectFile

public static boolean SplitProjectFile

fchild

public static java.lang.String fchild

fparent

public static java.lang.String fparent
Constructor Detail

StreamParserBase

public StreamParserBase()
Method Detail

init

public void init()

parseStream

public java.lang.String parseStream(JobCollection collection,
                                    XInputFile aXInputFile,
                                    int pes_streamtype,
                                    int action,
                                    java.lang.String vptslog)

setFileName

public void setFileName(JobCollection collection,
                        JobProcessing job_processing,
                        XInputFile aXInputFile)

setFileName

public void setFileName(JobCollection collection,
                        JobProcessing job_processing,
                        XInputFile aXInputFile,
                        java.lang.String extension)

pause

public boolean pause()

nextFilePTS

public long nextFilePTS(JobCollection collection,
                        int parser_type,
                        int pes_streamtype,
                        long lastpts,
                        int file_number)
nextfile PTS check returns new pts offset to append

nextFilePTS

public long nextFilePTS(JobCollection collection,
                        int parser_type,
                        int pes_streamtype,
                        long lastpts,
                        int file_number,
                        long startPoint)
nextfile PTS check returns new pts offset to append

nextFilePTS

public long nextFilePTS(JobCollection collection,
                        int parser_type,
                        int pes_streamtype,
                        long lastpts,
                        long ptsoffset,
                        int file_number,
                        long startPoint)
nextfile PTS check returns new pts offset to append

getStreamObjects

public java.util.Hashtable getStreamObjects(JobProcessing job_processing)

processElementaryStreams

public java.lang.String processElementaryStreams(java.lang.String vptslog,
                                                 int action,
                                                 int[] clv,
                                                 JobCollection collection,
                                                 JobProcessing job_processing)

processNonVideoElementaryStreams

public void processNonVideoElementaryStreams(java.lang.String vptslog,
                                             int action,
                                             int[] clv,
                                             JobCollection collection,
                                             JobProcessing job_processing)

processNonVideoElementaryStreams

public void processNonVideoElementaryStreams(java.lang.String vptslog,
                                             int action,
                                             int[] clv,
                                             JobCollection collection,
                                             JobProcessing job_processing,
                                             java.util.List tempfiles,
                                             XInputFile aXInputFile)

formatIDString

public java.lang.String formatIDString(java.lang.String str1,
                                       int pid,
                                       int id,
                                       int subid)

createStreamProcess

public void createStreamProcess(int es_streamtype,
                                JobCollection collection,
                                java.lang.String[] values,
                                java.lang.String key_value)

addCellTimeFromFileSegment

public void addCellTimeFromFileSegment(JobProcessing job_processing)

addCellTime

public void addCellTime(JobProcessing job_processing)

initConversion

public void initConversion(JobCollection collection,
                           java.lang.String parent,
                           int action,
                           int source,
                           int splitpart)
init conversions