Package com.igrium.videolib.vlc
Class VLCVideoPlayer.VLCCodecInterface
java.lang.Object
com.igrium.videolib.vlc.VLCVideoPlayer.VLCCodecInterface
- All Implemented Interfaces:
CodecInterface
- Enclosing class:
- VLCVideoPlayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the aspect ratio of this video.float
Get the frame rate of this video.int
Get the height of the video.int
getWidth()
Get the width of the video.
-
Constructor Details
-
VLCCodecInterface
public VLCCodecInterface()
-
-
Method Details
-
getWidth
public int getWidth()Description copied from interface:CodecInterface
Get the width of the video.- Specified by:
getWidth
in interfaceCodecInterface
- Returns:
- Width in pixels.
-
getHeight
public int getHeight()Description copied from interface:CodecInterface
Get the height of the video.- Specified by:
getHeight
in interfaceCodecInterface
- Returns:
- Height in pixels.
-
getFrameRate
public float getFrameRate()Description copied from interface:CodecInterface
Get the frame rate of this video.- Specified by:
getFrameRate
in interfaceCodecInterface
- Returns:
- Frames per second.
-
getAspectRatio
public float getAspectRatio()Description copied from interface:CodecInterface
Get the aspect ratio of this video.- Specified by:
getAspectRatio
in interfaceCodecInterface
- Returns:
- The aspect ratio in the form
[x]:1
, wherex
is this return value. If the video uses square pixels, this is equivilent togetWidth() / getHeight()
-