//
//  NvSDKUtils.h
//  SDKDemo
//
//  Created by 刘东旭 on 2018/10/30.
 //
//

#import <Foundation/Foundation.h>
#import "NvsStreamingContext.h"
#import "NvAsset.h"

NS_ASSUME_NONNULL_BEGIN

// 特效相关
#define NV_EFFECT_UUID_DOUDONG          @"A8A4344D-45DA-460F-A18F-C0E2355FE864"
#define NV_EFFECT_UUID_HUANJUE          @"Video Echo"
#define NV_EFFECT_UUID_LINHUNCHUQIAO    @"C6273A8F-C899-4765-8BFC-E683EE37AA84"
#define NV_EFFECT_UUID_JINGXIANG        @"6B7BE12C-9FA1-4ED0-8E81-E107632FFBC8"
#define NV_EFFECT_UUID_BOLANG           @"1CEE3777-A813-4378-AD52-7B264BD0CC4D"
#define NV_EFFECT_UUID_HEIMOFA          @"C02204D0-F3C3-495E-B65C-9F2C79E68573"
#define NV_EFFECT_COLOR_DOUDONG         @"FCB600"
#define NV_EFFECT_COLOR_HUANJUE         @"FF4D97"
#define NV_EFFECT_COLOR_LINHUNCHUQIAO   @"00ABFC"
#define NV_EFFECT_COLOR_JINGXIANG       @"00FCE0"
#define NV_EFFECT_COLOR_BOLANG          @"F8FC00"
#define NV_EFFECT_COLOR_HEIMOFA         @"5C00FC"
#define NV_EFFECT_COLOR_SLIDER_KNOB     @"52D3FF"

@interface NvSDKUtils : NSObject

+ (NvsStreamingContext *_Nullable)getSDKContext;

+ (NSString *)getMoreTitleName:(AssetType)type;

+ (NSString *)getAssetAspectRatioString:(int)aspectRatio;

+ (NSString *)getAssetPackageSizeString:(int)packageSize;

+ (NSString *)getAssetDownloadPath:(AssetType)assetType;

/**
 * 判断是否为SDK内建滤镜
 */
+ (BOOL)isBuiltinFilter:(nullable NSString *)filterName;

/**
 * 根据素材的本地地址素材版本号。例如脸贴的下载路径：/App/....../uuid.2.zip ,那么返回2
 */
+ (int)getAssetVersionWithPath:(NSString *_Nullable)path;

/**
 * 获取特效颜色
 */
+ (NSString *_Nullable)getEffectColor:(NSString *_Nullable)fxUUID;

/**
 * 获取视频的时长
 */
+ (int64_t)getVideoDuration:(NSString *_Nonnull)path;

/**
 * 获取抖音特效封面名称
 */
+ (NSString *)getEffectCoverName:(NSString *)fxUUID;

+ (NSString *)getFilterCoverName:(NSString *)fxUUID;
+ (NSString *)getTransitionsCoverName:(NSString *)fxUUID;


@end

NS_ASSUME_NONNULL_END
