tencent cloud

User Generated Short Video SDK

iOS

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-05-11 17:46:57

Feature Overview

Filters can change the style and color of video frames. This document introduces how to add and use filters.

Related Interface Classes

Interface Class Name
Description
TAVEditor
SDK operation entry class.

Filter Methods

Add Filter

/// Set filter
/// - Parameters:
/// - lutPath: Filter asset path
/// - strength: Filter intensity
/// - timeRange: Filter effective time range
/// - return: Unique ID generated when creating the filter
- (int)addFilter:(NSString *)lutPath strength:(float)strength timeRange:(CMTimeRange)timeRange;

Adjust Filter Intensity

/// Adjust filter intensity and time range
/// - Parameters:
/// - lutId: Unique ID generated when creating the filter
/// - strength: Filter intensity
/// - timeRange: Filter effective time range
- (void)setFilter:(int)lutId Strength:(float)strength timeRange:(CMTimeRange)timeRange;

Remove Filter

/// Remove filter
/// - Parameter lutId: Unique ID generated when creating the filter
- (void)removeFilter:(int)lutId;

/// Remove all filter effects
- (void)removeAllFilter;


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック