public class VideoFormat
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
fps
Frame rate (frames per second).
|
private int |
height
Video height in pixels.
|
private int |
width
Video width in pixels.
|
| Constructor and Description |
|---|
VideoFormat()
Default constructor.
|
VideoFormat(int width,
int height,
int fps)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFps()
Gets the frame rate.
|
int |
getHeight()
Gets the video height.
|
int |
getWidth()
Gets the video width.
|
void |
setFps(int fps)
Sets the frame rate.
|
void |
setHeight(int height)
Sets the video height.
|
void |
setWidth(int width)
Sets the video width.
|
private int width
private int height
private int fps
public VideoFormat()
public VideoFormat(int width,
int height,
int fps)
width - Video width in pixelsheight - Video height in pixelsfps - Frame rate (frames per second)public int getWidth()
public void setWidth(int width)
width - Video width in pixelspublic int getHeight()
public void setHeight(int height)
height - Video height in pixelspublic int getFps()
public void setFps(int fps)
fps - Frame rate (frames per second)