net.sf.dc.core.objects.movie
Class MovieFile

java.lang.Object
  extended bynet.sf.dc.core.objects.movie.MovieFile

public class MovieFile
extends java.lang.Object

Since:
1.3
Version:
DC0.90
Author:
Robert-Jan van der Waals

Constructor Summary
MovieFile(java.lang.String sFilename)
          Initializes the Movie File and parses the file for information
 
Method Summary
 int getAudioBitRate()
           
 java.lang.String getAudioChannel()
           
 java.lang.String getAudioCodec()
           
 int getAudioSamplingRate()
           
 java.lang.String getFileName()
           
 double getFPS()
           
 int getFrames()
           
 int getHeight()
           
 java.lang.String getName()
           
 double getPlayLength()
           
 int getSize()
           
 double getVideoBitrate()
           
 java.lang.String getVideoCodec()
           
 int getWidth()
           
 int read_2int(int pos, int off)
          Reads 2 bytes and return it as int
 int read_4int(int pos)
          Reads a word and return it as an int
 java.lang.String read_str(int pos)
          Reads a word and return it as string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovieFile

public MovieFile(java.lang.String sFilename)
          throws java.io.IOException
Initializes the Movie File and parses the file for information

Parameters:
sFilename - movie file to parse
Method Detail

getName

public java.lang.String getName()

getFileName

public java.lang.String getFileName()

getSize

public int getSize()

getHeight

public int getHeight()

getWidth

public int getWidth()

getFPS

public double getFPS()

getFrames

public int getFrames()

getPlayLength

public double getPlayLength()

getVideoCodec

public java.lang.String getVideoCodec()

getAudioCodec

public java.lang.String getAudioCodec()

getAudioBitRate

public int getAudioBitRate()

getAudioSamplingRate

public int getAudioSamplingRate()

getAudioChannel

public java.lang.String getAudioChannel()

getVideoBitrate

public double getVideoBitrate()

read_str

public java.lang.String read_str(int pos)
Reads a word and return it as string

Parameters:
pos - startposition for reading
Returns:
the read string

read_4int

public int read_4int(int pos)
Reads a word and return it as an int

Parameters:
pos - startposition for reading
Returns:
the read int

read_2int

public int read_2int(int pos,
                     int off)
Reads 2 bytes and return it as int

Parameters:
pos - startposition for reading
Returns:
the read string