MeiCam SDK For Android
1.0.0
|
Video clip, description of the video file. More...
Public Member Functions | |
int | getVideoType () |
Gets clip type. More... | |
int | getRoleInTheme () |
Gets the role of the clip in the theme. More... | |
void | setPlayInReverse (boolean playInReverse) |
Sets whether the clip is reversed. More... | |
boolean | getPlayInReverse () |
Gets whether the clip is reversed. More... | |
void | setExtraVideoRotation (int rotation) |
Sets the video's extra rotation angle. More... | |
int | getExtraVideoRotation () |
Gets the video's extra rotation angle. More... | |
void | setSoftWareDecoding (boolean softwareUsed) |
Sets whether to apply software decoding on the video. More... | |
boolean | isSoftWareDeocedUsed () |
Gets whether to apply software decoding on the video. More... | |
void | disableAmbiguousCrop (boolean disable) |
Sets whether to disable the ambiguous cropping of the screen on video. More... | |
boolean | isAmbiguousCropDisabled () |
Gets whether to disable the ambiguous cropping of the screen on video. More... | |
void | setPanAndScan (float pan, float scan) |
Sets pan and scan. More... | |
NvsPanAndScan | getPanAndScan () |
Gets pan and scan. More... | |
int | getSourceBackgroundMode () |
Gets background mode. More... | |
void | setSourceBackgroundMode (int mode) |
Sets background mode. More... | |
int | getImageMotionMode () |
Gets image clip operation mode. More... | |
void | setImageMotionMode (int mode) |
Sets image mode of operation. More... | |
boolean | getImageMotionAnimationEnabled () |
Gets image animation status. More... | |
void | setImageMotionAnimationEnabled (boolean enabled) |
Sets whether to support image animation. More... | |
RectF | getStartROI () |
Gets the image clip's starting ROI. More... | |
RectF | getEndROI () |
Gets image clip's terminating ROI. More... | |
void | setImageMotionROI (RectF startROI, RectF endROI) |
Sets image clip's dynamic move ROI. More... | |
RectF | getImageMaskROI () |
Gets image clip's mask ROI. More... | |
void | setImageMaskROI (RectF maskROI) |
Sets image clip‘s mask ROI. More... | |
void | setClipWrapMode (int wrapMode) |
Sets the clip's loop mode. More... | |
int | getClipWrapMode () |
Gets video loop mode. More... | |
NvsVideoFx | appendBuiltinFx (String fxName) |
Appends built-in effect to clips. More... | |
NvsVideoFx | insertBuiltinFx (String fxName, int fxIndex) |
Inserts a built-in effect at the specified effect index on the clip. More... | |
NvsVideoFx | appendPackagedFx (String fxPackageId) |
Appends package effect to the clip. More... | |
NvsVideoFx | insertPackagedFx (String fxPackageId, int fxIndex) |
Inserts package effect at the specified effect index on the clip. More... | |
NvsVideoFx | appendCustomFx (NvsCustomVideoFx.Renderer customVideoFxRender) |
Appends custom video effect to the clip. More... | |
NvsVideoFx | insertCustomFx (NvsCustomVideoFx.Renderer customVideoFxRender, int fxIndex) |
Inserts a custom video effect at the specified effect index on the clip. More... | |
NvsVideoFx | appendBeautyFx () |
Adds a beauty effect to the clip. More... | |
NvsVideoFx | insertBeautyFx (int fxIndex) |
Inserts a beauty effect at the specified effect index on the clip. More... | |
boolean | removeFx (int fxIndex) |
Remove effect by index. More... | |
boolean | removeAllFx () |
Removes all effects. More... | |
NvsVideoFx | getFxByIndex (int fxIndex) |
Gets special effect by index. More... | |
![]() | |
long | getTrimIn () |
Gets the trim in point of the clip. More... | |
long | getTrimOut () |
Gets the trim out point of the clip. More... | |
long | getInPoint () |
Gets the in-point of the clip on the timeline. More... | |
long | getOutPoint () |
Gets the out-point of the clip on the timeline. More... | |
int | getType () |
Gets the clip type (video clip, audio clip). More... | |
int | getIndex () |
Gets the index of the clip on the track. More... | |
String | getFilePath () |
Gets the clip file path. More... | |
int | getFxCount () |
Gets the number of effects on the clip. Note: The effect index on the clip starts from 0. More... | |
long | changeTrimInPoint (long newTrimInPoint, boolean affectSibling) |
Modifies the trim in point of the clip. More... | |
long | changeTrimOutPoint (long newTrimOutPoint, boolean affectSibling) |
Modifies the trim out point of the clip. More... | |
double | getSpeed () |
Get the playback speed of the clip. More... | |
void | changeSpeed (double newSpeed) |
Changes the playback speed of the clip. More... | |
void | changeSpeed (double newSpeed, boolean keepAudioPitch) |
Changes the playback speed of the clip. More... | |
void | setVolumeGain (float leftVolumeGain, float rightVolumeGain) |
Sets the volume. More... | |
NvsVolume | getVolumeGain () |
Gets volume. More... | |
![]() | |
void | setAttachment (String key, Object value) |
Adds additional data to the NvsObject object to identify the NvsObject object or for other purpose. More... | |
Object | getAttachment (String key) |
Gets an attachment to NvsObject. More... | |
Static Public Attributes | |
Clip type | |
static final int | VIDEO_CLIP_TYPE_AV = 0 |
Audio and video type. More... | |
static final int | VIDEO_CLIP_TYPE_IMAGE = 1 |
Image type. More... | |
The clip's role in themes. | |
static final int | ROLE_IN_THEME_GENERAL = 0 |
General. More... | |
static final int | ROLE_IN_THEME_TITLE = 1 |
Title. More... | |
static final int | ROLE_IN_THEME_TRAILER = 2 |
Trailer. More... | |
Clip motion mode | |
static final int | CLIP_MOTIONMODE_LETTERBOX_ZOOMIN = 0 |
Zoom in. More... | |
static final int | ClIP_MOTIONMODE_LETTERBOX_ZOOMOUT = 1 |
Zoom out. More... | |
static final int | IMAGE_CLIP_MOTIONMMODE_ROI = 2 |
Image clip's ROI(Region Of Interesting) More... | |
Clip loop mode | |
static final int | CLIP_WRAPMODE_REPEAT_LASTFRAME = 0 |
First frame. More... | |
static final int | ClIP_WRAPMODE_REPEAT_FIRSTFRAME = 1 |
Last frame. More... | |
static final int | ClIP_WRAPMODE_REPEAT = 2 |
Extra rotation of the video | |
static final int | ClIP_EXTRAVIDEOROTATION_0 = 0 |
0 degree More... | |
static final int | ClIP_EXTRAVIDEOROTATION_90 = 1 |
90 degree More... | |
static final int | ClIP_EXTRAVIDEOROTATION_180 = 2 |
180 degree More... | |
static final int | ClIP_EXTRAVIDEOROTATION_270 = 3 |
Clip background display mode | |
static final int | ClIP_BACKGROUNDMODE_COLOR_SOLID = 0 |
Solid color. More... | |
static final int | ClIP_BACKGROUNDMODE_BLUR = 1 |
![]() | |
static final int | CLIP_TYPE_VIDEO = 0 |
video clip type More... | |
static final int | CLIP_TYPE_AUDIO = 1 |
audio clip type More... | |
Additional Inherited Members | |
![]() | |
void | setInternalObject (long internalObject) |
long | getInternalObject () |
![]() | |
long | m_internalObject = 0 |
Video clip, description of the video file.
The video clip source can be a video or an image. Each video clip can be modified for its in and out point and playback speed, as well as pan and scan. When editing a video, users can add or insert multiple video effects by the type of effect (built-in effects, wrapped effects, beauty effects). When adding a resource package effect, users have to install it firstly. When installation is successful, users can get the package Id to use, and the built-in effect can be used only by obtaining the effect name.
|
inline |
Adds a beauty effect to the clip.
|
inline |
Appends built-in effect to clips.
fxName | The effect name. To get the video effect name, please refer to getAllBuiltinVideoFxNames() or built-in effect name list. |
|
inline |
Appends custom video effect to the clip.
customVideoFxRender | User-implemented custom video effect renderer interface. |
|
inline |
Appends package effect to the clip.
fxPackageId | Effect resource package ID. |
|
inline |
Sets whether to disable the ambiguous cropping of the screen on video.
disable | whether to disable or not. |
|
inline |
|
inline |
Gets image clip's terminating ROI.
|
inline |
Gets the video's extra rotation angle.
|
inline |
Gets special effect by index.
fxIndex | Special effect index, please refer to getFxCount(). |
|
inline |
Gets image clip's mask ROI.
|
inline |
Gets image animation status.
|
inline |
Gets image clip operation mode.
|
inline |
|
inline |
Gets whether the clip is reversed.
|
inline |
Gets the role of the clip in the theme.
|
inline |
Gets background mode.
|
inline |
Gets the image clip's starting ROI.
|
inline |
Gets clip type.
|
inline |
Inserts a beauty effect at the specified effect index on the clip.
fxIndex | Effect index to insert at, please refer togetFxCount(). |
|
inline |
Inserts a built-in effect at the specified effect index on the clip.
fxName | The effect name. To get the video effect name, please refer to getAllBuiltinVideoFxNames() or Built-in Effect Name List. |
fxIndex | Effect index to insert at. |
|
inline |
Inserts a custom video effect at the specified effect index on the clip.
customVideoFxRender | User-implemented custom video effects renderer interface. |
fxIndex | Effect index to insert at. |
|
inline |
Inserts package effect at the specified effect index on the clip.
fxPackageId | Effect resource package ID. |
fxIndex | Effect index to insert at, please refer to getFxCount(). |
|
inline |
Gets whether to disable the ambiguous cropping of the screen on video.
|
inline |
Gets whether to apply software decoding on the video.
|
inline |
Removes all effects.
|
inline |
Remove effect by index.
fxIndex | Special effect index, please refer togetFxCount(). |
|
inline |
Sets the clip's loop mode.
wrapMode | Loop mode. |
< Loop mode is between 0 and 2
|
inline |
Sets the video's extra rotation angle.
rotation | The extra rotation angle of the video. Please refer to Video Extra Rotation Angle. |
|
inline |
Sets image clip‘s mask ROI.
For details, please refer to Image CLip's ROI Topics.
maskROI | Image clip's mask ROI. |
|
inline |
Sets whether to support image animation.
enabled | Whether to support image animation. A value of true supports image animation, and false does not. |
|
inline |
Sets image mode of operation.
mode | Image clip mode of operation. Please refer to Fragment Operation Mode. |
|
inline |
Sets image clip's dynamic move ROI.
For details, please refer to Image Clip's ROI Topics.
startROI | Image clip's starting ROI. |
endROI | Image clip's terminating ROI. |
|
inline |
Sets pan and scan.
The pan and scan functions are used to adapt the position and size of the image on the display window. For details, please refer to Pan and Scan topic.
pan | Pan |
scan | Scan |
|
inline |
Sets whether the clip is reversed.
Note: Please use the clip reverse playback to ensure that the current video file is a I frame video, otherwise the playback efficiency of the reverse playback is extremely low! Users can use Meishe SDK to record the logo. Uses STREAMING_ENGINE_RECORDING_FLAG_VIDEO_INTRA_FRAME_ONLY to generate a all I frame video file. If the file imported from other files cannot be guaranteed to be a all I frame video and users want to use the reverse function, users can use Meishe transcoding SDK to directly transcode the original video into a reversed file.
playInReverse | Whether the clip is reversed. |
|
inline |
Sets whether to apply software decoding on the video.
softwareUsed | Whether to use software decoder to decode. |
|
inline |
|
static |
Blur
|
static |
Solid color.
|
static |
0 degree
|
static |
180 degree
|
static |
270 degree
|
static |
90 degree
|
static |
Zoom in.
|
static |
Zoom out.
|
static |
Repeat
|
static |
Last frame.
|
static |
First frame.
|
static |
Image clip's ROI(Region Of Interesting)
|
static |
General.
|
static |
Title.
|
static |
Trailer.
|
static |
Audio and video type.
|
static |
Image type.