|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.info.VideoFileInfo
public class VideoFileInfo
A implementation of the video file information interface
Constructor Summary | |
---|---|
VideoFileInfo(java.io.File mediaFile,
VideoInfoParser parser)
The constructor |
Method Summary | |
---|---|
AspectRatio |
getAspectRatio()
Used to get the display aspect ratio of the video |
java.lang.Long |
getAudioBitRate()
Used to get the audio bit rate (Kbs) or null if one can't be found |
java.lang.String |
getAudioFormatProfile()
Used to get the audio format profile or null if one can't be found |
long |
getFileSize()
Used to get the size of the media file |
java.lang.Float |
getFrameRate()
Used to get the frame rate of the video in frams per second (fps) |
int |
getHeight()
Used to get the height in pixels of the video |
ResolutionFormat |
getResolutionFormat()
Used to get the video resolution format if it's know. |
int |
getWidth()
Used to get the width in pixels of the video |
boolean |
isHighDef()
Used to find out if the video is high definition |
boolean |
isInterlaced()
Used to find out if the video scan type is interlaced or progressive |
boolean |
isWideScreen()
Used to find out if the video is wide screen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VideoFileInfo(java.io.File mediaFile, VideoInfoParser parser) throws XMLParserException
mediaFile
- The file information is been retrieved onparser
- The parse of the media information
XMLParserException
- Thrown if their their is a XML parser problemMethod Detail |
---|
public long getFileSize()
getFileSize
in interface IMediaFileInfo
public int getWidth()
getWidth
in interface IVideoFileInfo
public int getHeight()
getHeight
in interface IVideoFileInfo
public java.lang.Float getFrameRate()
getFrameRate
in interface IVideoFileInfo
public AspectRatio getAspectRatio()
getAspectRatio
in interface IVideoFileInfo
public boolean isWideScreen()
isWideScreen
in interface IVideoFileInfo
public boolean isHighDef()
isHighDef
in interface IVideoFileInfo
public ResolutionFormat getResolutionFormat()
getResolutionFormat
in interface IVideoFileInfo
public boolean isInterlaced()
isInterlaced
in interface IVideoFileInfo
public java.lang.String getAudioFormatProfile()
getAudioFormatProfile
in interface IVideoFileInfo
public java.lang.Long getAudioBitRate()
getAudioBitRate
in interface IVideoFileInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |