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;


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백