org.xnap.io
Class VideoMetaInfo

java.lang.Object
  extended by org.xnap.io.VideoMetaInfo

public class VideoMetaInfo
extends java.lang.Object

Class to extract a video's play length and resolution. The video parsing code for avi and mpg files is taken from the ziga project. See README for more information. The video parsing code for asf files is taken from the avifile project (http://avifile.sourceforge.net/).


Nested Class Summary
static class VideoMetaInfo.Provider
           
 
Field Summary
protected static int ASF_FILE_PROPERTIES_SIZE
           
protected static int ASF_STREAM_PROPERTIES_SIZE
           
protected static int GROUP_START_CODE
           
protected static int GUID_SIZE
           
protected static int MAX_BACKWARD_READ_LENGTH
           
protected static int MAX_FORWARD_READ_LENGTH
           
protected static int PACK_START_CODE
           
protected static int SEQ_START_CODE
           
 
Constructor Summary
VideoMetaInfo(MetaInfoFile file)
           
 
Method Summary
 int getHeight()
           
 java.lang.String getInfo()
           
 int getLength()
           
 int getWidth()
           
static boolean handle(MetaInfoFile file)
           
static boolean hasInfo(MetaInfoFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACK_START_CODE

protected static final int PACK_START_CODE
See Also:
Constant Field Values

SEQ_START_CODE

protected static final int SEQ_START_CODE
See Also:
Constant Field Values

GROUP_START_CODE

protected static final int GROUP_START_CODE
See Also:
Constant Field Values

MAX_FORWARD_READ_LENGTH

protected static final int MAX_FORWARD_READ_LENGTH
See Also:
Constant Field Values

MAX_BACKWARD_READ_LENGTH

protected static final int MAX_BACKWARD_READ_LENGTH
See Also:
Constant Field Values

ASF_FILE_PROPERTIES_SIZE

protected static final int ASF_FILE_PROPERTIES_SIZE
See Also:
Constant Field Values

ASF_STREAM_PROPERTIES_SIZE

protected static final int ASF_STREAM_PROPERTIES_SIZE
See Also:
Constant Field Values

GUID_SIZE

protected static final int GUID_SIZE
See Also:
Constant Field Values
Constructor Detail

VideoMetaInfo

public VideoMetaInfo(MetaInfoFile file)
Method Detail

handle

public static boolean handle(MetaInfoFile file)

hasInfo

public static boolean hasInfo(MetaInfoFile file)

getHeight

public int getHeight()

getInfo

public java.lang.String getInfo()

getLength

public int getLength()

getWidth

public int getWidth()


Copyright © 2001-2005 XNap Team. All Rights Reserved.