Class VeCutProcessRenderTask


  • public class VeCutProcessRenderTask
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      销毁渲染资源,必须调用
      java.lang.String getErrorMsg()  
      boolean render()
      启动渲染
      void setAnchor​(int anchorX, int anchorY)
      设置锚点坐标
      void setBitrateControl​(float control)
      设置视频比特率参数,范围 > 0, 默认值 0.25
      void setDuration​(float duration)
      设置裁剪时长, 单位: 秒
      void setPosition​(int posX, int posY)
      设置移动坐标
      void setRotation​(float rotation)
      设置旋转角度
      void setScale​(float scale)
      设置缩放比例
      void setSize​(int width, int height)
      设置输出宽高, 单位 px, 默认值: 源文件宽高
      void setStartTime​(float startTime)
      设置裁剪开始时间,单位: 秒 eg : 从第 10 秒开始 : -10
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VeCutProcessRenderTask

        public VeCutProcessRenderTask​(java.lang.String inputPath,
                                      java.lang.String outputPath,
                                      CutTaskType type)
    • Method Detail

      • getErrorMsg

        public java.lang.String getErrorMsg()
      • 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 轴位置 px
        anchorY - , 矩阵变换锚点 y 轴位置 px
      • setPosition

        public void setPosition​(int posX,
                                int posY)
        设置移动坐标
        Parameters:
        posX - , 矩阵移动位置 x 轴位置 px
        posY - , 矩阵移动位置 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()
        销毁渲染资源,必须调用