LiteAVSDK
腾讯云音视频 SDK ,服务于数万家企业客户的高可用组件,致力于最大限度地节省您的研发成本。
TXVideoEditConstants

详细描述

视频编辑关键类型定义


结构体说明

◆ com::tencent::ugc::TXVideoEditConstants::TXVideoInfo

class com::tencent::ugc::TXVideoEditConstants::TXVideoInfo
成员变量
int audioSampleRate
int bitrate
Bitmap coverImage
long duration
long fileSize
float fps
int height
int width

◆ com::tencent::ugc::TXVideoEditConstants::TXPreviewParam

class com::tencent::ugc::TXVideoEditConstants::TXPreviewParam
成员变量
int renderMode
FrameLayout videoView

◆ com::tencent::ugc::TXVideoEditConstants::TXGenerateResult

class com::tencent::ugc::TXVideoEditConstants::TXGenerateResult
成员变量
String descMsg
int retCode

◆ com::tencent::ugc::TXVideoEditConstants::TXPreviewError

class com::tencent::ugc::TXVideoEditConstants::TXPreviewError
成员变量
int errorCode
String errorMsg

◆ com::tencent::ugc::TXVideoEditConstants::TXJoinerResult

class com::tencent::ugc::TXVideoEditConstants::TXJoinerResult
成员变量
String descMsg
int retCode

◆ com::tencent::ugc::TXVideoEditConstants::TXSubtitle

class com::tencent::ugc::TXVideoEditConstants::TXSubtitle
成员变量
long endTime
TXRect frame
long startTime
Bitmap titleImage

◆ com::tencent::ugc::TXVideoEditConstants::TXPaster

class com::tencent::ugc::TXVideoEditConstants::TXPaster
成员变量
long endTime
TXRect frame
Bitmap pasterImage
long startTime

◆ com::tencent::ugc::TXVideoEditConstants::TXAnimatedPaster

class com::tencent::ugc::TXVideoEditConstants::TXAnimatedPaster
成员变量
String animatedPasterPathFolder
long endTime
TXRect frame
float rotation
long startTime

◆ com::tencent::ugc::TXVideoEditConstants::TXSpeed

class com::tencent::ugc::TXVideoEditConstants::TXSpeed
成员变量
long endTime
int speedLevel
long startTime

◆ com::tencent::ugc::TXVideoEditConstants::TXRect

class com::tencent::ugc::TXVideoEditConstants::TXRect
成员变量
float width
float x
float y

◆ com::tencent::ugc::TXVideoEditConstants::TXThumbnail

class com::tencent::ugc::TXVideoEditConstants::TXThumbnail
成员变量
int count
int height
int width

◆ com::tencent::ugc::TXVideoEditConstants::ThumbnailTime

class com::tencent::ugc::TXVideoEditConstants::ThumbnailTime
成员变量
int height
long timestamp
int width

◆ com::tencent::ugc::TXVideoEditConstants::TXRepeat

class com::tencent::ugc::TXVideoEditConstants::TXRepeat
成员变量
long endTime
int repeatTimes
long startTime

◆ com::tencent::ugc::TXVideoEditConstants::TXAbsoluteRect

class com::tencent::ugc::TXVideoEditConstants::TXAbsoluteRect
成员变量
int height
int width
int x
int y

◆ com::tencent::ugc::TXVideoEditConstants

class com::tencent::ugc::TXVideoEditConstants

静态 Public 属性

static final int PREVIEW_RENDER_MODE_FILL_SCREEN = 1
 
static final int PREVIEW_RENDER_MODE_FILL_EDGE = 2
 
static final int GENERATE_RESULT_OK = 0
 
static final int GENERATE_RESULT_FAILED = -1
 
static final int GENERATE_RESULT_LICENCE_VERIFICATION_FAILED = -5
 
static final int PREVIEW_ERROR_VIDEO_DECODE_FAIL = -1
 
static final int JOIN_RESULT_OK = 0
 
static final int JOIN_RESULT_FAILED = -1
 
static final int JOIN_RESULT_LICENCE_VERIFICATION_FAILED = -5
 
static final int VIDEO_COMPRESSED_360P = 0
 
static final int VIDEO_COMPRESSED_480P = 1
 
static final int VIDEO_COMPRESSED_540P = 2
 
static final int VIDEO_COMPRESSED_720P = 3
 
static final int VIDEO_COMPRESSED_1080P = 4
 
static final int SPEED_LEVEL_SLOWEST = 0
 
static final int SPEED_LEVEL_SLOW = 1
 
static final int SPEED_LEVEL_NORMAL = 2
 
static final int SPEED_LEVEL_FAST = 3
 
static final int SPEED_LEVEL_FASTEST = 4
 
static final int ERR_UNSUPPORT_VIDEO_FORMAT = -1001
 
static final int ERR_UNSUPPORT_LARGE_RESOLUTION = -1002
 
static final int ERR_UNFOUND_FILEINFO = -1003
 
static final int ERR_UNSUPPORT_AUDIO_FORMAT = -1004
 
static final int ERR_SOURCE_NO_FOUND = -100001
 
static final int ERR_SOURCE_DAMAGED = -100002
 
static final int ERR_SOURCE_NO_TRACK = -100003
 
static final int ERR_OUTPUT_EMPTY = -100004
 
static final int ERR_OUTPUT_SAMEAS_INPUT = -100005
 
static final int TXEffectType_SOUL_OUT = 0
 
static final int TXEffectType_SPLIT_SCREEN = 1
 
static final int TXEffectType_DARK_DRAEM = 2
 
static final int TXEffectType_ROCK_LIGHT = 3
 
static final int TXEffectType_WIN_SHADDOW = 4
 
static final int TXEffectType_GHOST_SHADDOW = 5
 
static final int TXEffectType_PHANTOM_SHADDOW = 6
 
static final int TXEffectType_GHOST = 7
 
static final int TXEffectType_LIGHTNING = 8
 
static final int TXEffectType_MIRROR = 9
 
static final int TXEffectType_ILLUSION = 10
 
static final int PICTURE_TRANSITION_OK = 0
 
static final int PICTURE_TRANSITION_FAILED = -1
 
static final int TX_TRANSITION_TYPE_LEFT_RIGHT_SLIPPING = 1
 
static final int TX_TRANSITION_TYPE_UP_DOWN_SLIPPING = 2
 
static final int TX_TRANSITION_TYPE_ROTATIONAL_SCALING = 3
 
static final int TX_TRANSITION_TYPE_ENLARGE = 4
 
static final int TX_TRANSITION_TYPE_NARROW = 5
 
static final int TX_TRANSITION_TYPE_FADEIN_FADEOUT = 6
 

结构体成员变量说明

◆ ERR_OUTPUT_EMPTY

final int ERR_OUTPUT_EMPTY = -100004
static

◆ ERR_OUTPUT_SAMEAS_INPUT

final int ERR_OUTPUT_SAMEAS_INPUT = -100005
static

◆ ERR_SOURCE_DAMAGED

final int ERR_SOURCE_DAMAGED = -100002
static

◆ ERR_SOURCE_NO_FOUND

final int ERR_SOURCE_NO_FOUND = -100001
static

◆ ERR_SOURCE_NO_TRACK

final int ERR_SOURCE_NO_TRACK = -100003
static

◆ ERR_UNFOUND_FILEINFO

final int ERR_UNFOUND_FILEINFO = -1003
static

◆ ERR_UNSUPPORT_AUDIO_FORMAT

final int ERR_UNSUPPORT_AUDIO_FORMAT = -1004
static

◆ ERR_UNSUPPORT_LARGE_RESOLUTION

final int ERR_UNSUPPORT_LARGE_RESOLUTION = -1002
static

◆ ERR_UNSUPPORT_VIDEO_FORMAT

final int ERR_UNSUPPORT_VIDEO_FORMAT = -1001
static

◆ GENERATE_RESULT_FAILED

final int GENERATE_RESULT_FAILED = -1
static

◆ GENERATE_RESULT_LICENCE_VERIFICATION_FAILED

final int GENERATE_RESULT_LICENCE_VERIFICATION_FAILED = -5
static

◆ GENERATE_RESULT_OK

final int GENERATE_RESULT_OK = 0
static

视频编辑结果错误码定义 生成会校验TXUgvSDK.licence,因此会返回校验的错误码

◆ JOIN_RESULT_FAILED

final int JOIN_RESULT_FAILED = -1
static

◆ JOIN_RESULT_LICENCE_VERIFICATION_FAILED

final int JOIN_RESULT_LICENCE_VERIFICATION_FAILED = -5
static

◆ JOIN_RESULT_OK

final int JOIN_RESULT_OK = 0
static

视频合成结果错误码定义 合成会校验TXUgvSDK.licence,因此会返回校验的错误码

◆ PICTURE_TRANSITION_FAILED

final int PICTURE_TRANSITION_FAILED = -1
static

◆ PICTURE_TRANSITION_OK

final int PICTURE_TRANSITION_OK = 0
static

◆ PREVIEW_ERROR_VIDEO_DECODE_FAIL

final int PREVIEW_ERROR_VIDEO_DECODE_FAIL = -1
static

视频编辑结果错误码定义 生成会校验TXUgvSDK.licence,因此会返回校验的错误码

◆ PREVIEW_RENDER_MODE_FILL_EDGE

final int PREVIEW_RENDER_MODE_FILL_EDGE = 2
static

◆ PREVIEW_RENDER_MODE_FILL_SCREEN

final int PREVIEW_RENDER_MODE_FILL_SCREEN = 1
static

短视频预览参数

◆ SPEED_LEVEL_FAST

final int SPEED_LEVEL_FAST = 3
static

◆ SPEED_LEVEL_FASTEST

final int SPEED_LEVEL_FASTEST = 4
static

◆ SPEED_LEVEL_NORMAL

final int SPEED_LEVEL_NORMAL = 2
static

◆ SPEED_LEVEL_SLOW

final int SPEED_LEVEL_SLOW = 1
static

◆ SPEED_LEVEL_SLOWEST

final int SPEED_LEVEL_SLOWEST = 0
static

变速速度

◆ TX_TRANSITION_TYPE_ENLARGE

final int TX_TRANSITION_TYPE_ENLARGE = 4
static

◆ TX_TRANSITION_TYPE_FADEIN_FADEOUT

final int TX_TRANSITION_TYPE_FADEIN_FADEOUT = 6
static

◆ TX_TRANSITION_TYPE_LEFT_RIGHT_SLIPPING

final int TX_TRANSITION_TYPE_LEFT_RIGHT_SLIPPING = 1
static

图片转视频的转场类型

◆ TX_TRANSITION_TYPE_NARROW

final int TX_TRANSITION_TYPE_NARROW = 5
static

◆ TX_TRANSITION_TYPE_ROTATIONAL_SCALING

final int TX_TRANSITION_TYPE_ROTATIONAL_SCALING = 3
static

◆ TX_TRANSITION_TYPE_UP_DOWN_SLIPPING

final int TX_TRANSITION_TYPE_UP_DOWN_SLIPPING = 2
static

◆ TXEffectType_DARK_DRAEM

final int TXEffectType_DARK_DRAEM = 2
static

◆ TXEffectType_GHOST

final int TXEffectType_GHOST = 7
static

◆ TXEffectType_GHOST_SHADDOW

final int TXEffectType_GHOST_SHADDOW = 5
static

◆ TXEffectType_ILLUSION

final int TXEffectType_ILLUSION = 10
static

◆ TXEffectType_LIGHTNING

final int TXEffectType_LIGHTNING = 8
static

◆ TXEffectType_MIRROR

final int TXEffectType_MIRROR = 9
static

◆ TXEffectType_PHANTOM_SHADDOW

final int TXEffectType_PHANTOM_SHADDOW = 6
static

◆ TXEffectType_ROCK_LIGHT

final int TXEffectType_ROCK_LIGHT = 3
static

◆ TXEffectType_SOUL_OUT

final int TXEffectType_SOUL_OUT = 0
static

滤镜特效类型定义

◆ TXEffectType_SPLIT_SCREEN

final int TXEffectType_SPLIT_SCREEN = 1
static

◆ TXEffectType_WIN_SHADDOW

final int TXEffectType_WIN_SHADDOW = 4
static

◆ VIDEO_COMPRESSED_1080P

final int VIDEO_COMPRESSED_1080P = 4
static

◆ VIDEO_COMPRESSED_360P

final int VIDEO_COMPRESSED_360P = 0
static

短视频压缩质量 注意压缩到的目标分辨率要小于原画的分辨率,否则不会生效

◆ VIDEO_COMPRESSED_480P

final int VIDEO_COMPRESSED_480P = 1
static

◆ VIDEO_COMPRESSED_540P

final int VIDEO_COMPRESSED_540P = 2
static

◆ VIDEO_COMPRESSED_720P

final int VIDEO_COMPRESSED_720P = 3
static