Package com.seeshiontech.vesdk
Class VeCutProcessRenderTask
- java.lang.Object
-
- com.seeshiontech.vesdk.VeCutProcessRenderTask
-
public class VeCutProcessRenderTask extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description VeCutProcessRenderTask(java.lang.String inputPath, java.lang.String outputPath, CutTaskType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()销毁渲染资源,必须调用java.lang.StringgetBackgroundColor()java.lang.StringgetErrorMsg()RenderCutFillTypegetFillType()booleanrender()启动渲染voidsetAnchor(int anchorX, int anchorY)设置锚点坐标voidsetBackgroundColor(java.lang.String backgroundColor)voidsetBitrateControl(float control)设置视频比特率参数,范围 > 0, 默认值 0.25voidsetDuration(float duration)设置裁剪时长, 单位: 秒voidsetFillType(RenderCutFillType fillType)voidsetPosition(int posX, int posY)设置移动坐标voidsetRotation(float rotation)设置旋转角度voidsetScale(float scale)设置缩放比例voidsetSize(int width, int height)设置输出宽高, 单位 px, 默认值: 源文件宽高voidsetStartTime(float startTime)设置裁剪开始时间,单位: 秒 eg : 从第 10 秒开始 : -10
-
-
-
Constructor Detail
-
VeCutProcessRenderTask
public VeCutProcessRenderTask(java.lang.String inputPath, java.lang.String outputPath, CutTaskType type)
-
-
Method Detail
-
getErrorMsg
public java.lang.String getErrorMsg()
-
render
public boolean render() throws InvalidLicenseException, RenderException, NotSupportedTemplateException启动渲染- Returns:
- boolean
- Throws:
InvalidLicenseExceptionRenderExceptionNotSupportedTemplateException
-
setSize
public void setSize(int width, int height)设置输出宽高, 单位 px, 默认值: 源文件宽高- Parameters:
width-height-
-
setStartTime
public void setStartTime(float startTime)
设置裁剪开始时间,单位: 秒 eg : 从第 10 秒开始 : -10- Parameters:
startTime- ,范围 < 0
-
setDuration
public void setDuration(float duration)
设置裁剪时长, 单位: 秒- Parameters:
duration-
-
setAnchor
public void setAnchor(int anchorX, int anchorY)设置锚点坐标- Parameters:
anchorX- , 矩阵变换锚点 x 轴位置 pxanchorY- , 矩阵变换锚点 y 轴位置 px
-
setPosition
public void setPosition(int posX, int posY)设置移动坐标- Parameters:
posX- , 矩阵移动位置 x 轴位置 pxposY- , 矩阵移动位置 y 轴位置 px
-
setScale
public void setScale(float scale)
设置缩放比例- Parameters:
scale- , 缩放比例, 0 - 1
-
setRotation
public void setRotation(float rotation)
设置旋转角度- Parameters:
rotation- , 旋转角度
-
setBitrateControl
public void setBitrateControl(float control)
设置视频比特率参数,范围 > 0, 默认值 0.25- Parameters:
control- , 范围 > 0, 默认值 0.25
-
destroy
public void destroy()
销毁渲染资源,必须调用
-
getFillType
public RenderCutFillType getFillType()
-
setFillType
public void setFillType(RenderCutFillType fillType)
-
getBackgroundColor
public java.lang.String getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(java.lang.String backgroundColor)
-
-