public class VideoScale extends Object
| 构造器和说明 |
|---|
VideoScale() |
VideoScale(int width,
int height)
初始化视频缩放比例
|
| 限定符和类型 | 方法和说明 |
|---|---|
static VideoScale |
get1080P()
1920 x 1080
|
static VideoScale |
get480P()
720 x 480
|
static VideoScale |
get4K()
3840 x 2160
|
static VideoScale |
get720P()
1280 x 720
|
static VideoScale |
get8K()
7680 x 4320
|
int |
getHeight()
高度
|
int |
getWidth()
宽度
|
void |
setHeight(int height)
高度
|
void |
setWidth(int width)
宽度
|
String |
toString()
返回 ffmpeg 所需的命令格式
|
public VideoScale()
public VideoScale(int width,
int height)
width - 宽度height - 高度public static VideoScale get480P()
public static VideoScale get720P()
public static VideoScale get1080P()
public static VideoScale get4K()
public static VideoScale get8K()
public int getWidth()
public void setWidth(int width)
width - the width to setpublic int getHeight()
public void setHeight(int height)
height - the height to setCopyright © 2021. All rights reserved.