package com.huawei.mediacloud.livepushdemo.utils;

import com.huawei.mediacloud.livepushdemo.utils.asset.NvAsset;

/**
 * Created by admin on 2018-5-29.
 */

public class Constants {
    /**
     * sp中用到的key
     */
    public static final String KEY_PARAMTER = "paramter";

    public static final int EDIT_MODE_CAPTION = 0;
    public static final int EDIT_MODE_STICKER = 1;
    public static final int EDIT_MODE_WATERMARK = 2;
    public static final int EDIT_MODE_THEMECAPTION = 3;
    public static final long NS_TIME_BASE = 1000000;

    public static final int MEDIA_TYPE_AUDIO = 1;

    public static final int ACTIVITY_START_CODE_MUSIC_SINGLE = 100;
    public static final int ACTIVITY_START_CODE_MUSIC_MULTI = 101;

    public static final String START_ACTIVITY_FROM_CAPTURE = "start_activity_from_capture";
    public static final String CAN_USE_ARFACE_FROM_MAIN = "can_use_arface_from_main";

    public static final int FROMMAINACTIVITYTOVISIT = 1001;//从主页面进入视频选择页面
    public static final int FROMCLIPEDITACTIVITYTOVISIT = 1002;//从片段编辑页面进入视频选择页面
    public static final int FROMPICINPICACTIVITYTOVISIT = 1003;//从画中画面进入视频选择页面

    //图片运动
    public static final int EDIT_MODE_PHOTO_AREA_DISPLAY = 2001;//图片运动-区域显示
    public static final int EDIT_MODE_PHOTO_TOTAL_DISPLAY = 2002;//图片运动-全图显示

    //自定义贴纸
    public static final int CUSTOMSTICKER_EDIT_FREE_MODE = 2003;//自由
    public static final int CUSTOMSTICKER_EDIT_CIRCLE_MODE = 2004;//圆形
    public static final int CUSTOMSTICKER_EDIT_SQUARE_MODE = 2005;//正方


    public static final String NO_FX = "None"; // 无特效的ID

    // capture
    public static final int RECORD_TYPE_NULL = 3000;
    public static final int RECORD_TYPE_PICTURE = 3001;
    public static final int RECORD_TYPE_VIDEO = 3002;

    public static final String SELECT_MEDIA_FROM = "select_media_from"; // key
    public static final int SELECT_IMAGE_FROM_WATER_MARK = 4001;        // 从水印入口进入单个图片选择页面
    public static final int SELECT_IMAGE_FROM_MAKE_COVER = 4002;        // 从制作封面入口进入单个图片选择页面
    public static final int SELECT_IMAGE_FROM_CUSTOM_STICKER = 4003;    // 从自定义贴纸入口进入单个图片选择页面
    public static final int SELECT_VIDEO_FROM_DOUYINCAPTURE = 4004;     // 从抖音拍摄入口进入单个视频选择页面


    public static final int SELECT_VIDEO_FROM_PARTICLE = 4010;          // 从粒子入口进入视频选择页面

    public static final int POINT16V9 = NvAsset.AspectRatio_16v9;
    public static final int POINT1V1 = NvAsset.AspectRatio_1v1;
    public static final int POINT9V16 = NvAsset.AspectRatio_9v16;
    public static final int POINT3V4 = NvAsset.AspectRatio_3v4;
    public static final int POINT4V3 = NvAsset.AspectRatio_4v3;

    // music
    public static final String MUSIC_EXTRA_AUDIOCLIP = "extra";
    public static final String MUSIC_EXTRA_LAST_AUDIOCLIP = "extra_last";
    public static final long MUSIC_MIN_DURATION = 1000000;

    public static final String SELECT_MUSIC_FROM = "select_music_from";
    public static final int SELECT_MUSIC_FROM_DOUYIN = 5001;
    public static final int SELECT_MUSIC_FROM_EDIT = 5002;

    //视音频音量值
    public static final float VIDEOVOLUME_DEFAULTVALUE = 1.0f;
    public static final float VIDEOVOLUME_MAXVOLUMEVALUE = 2.0f;
    public static final int VIDEOVOLUME_MAXSEEKBAR_VALUE = 100;

    //屏幕点击常量定义
    public final static int HANDCLICK_DURATION = 200;//点击时长，单位微秒
    public final static double HANDMOVE_DISTANCE = 10.0D;//touch移动距离，单位像素值

    // 滤镜相关
    public final static String FX_TRANSFORM_2D = "Transform 2D";
    public final static String FX_TRANSFORM_2D_SCALE_X = "Scale X";
    public final static String FX_TRANSFORM_2D_SCALE_Y = "Scale Y";
    public final static String FX_COLOR_PROPERTY = "Color Property";
    public final static String FX_COLOR_PROPERTY_BRIGHTNESS = "Brightness";
    public final static String FX_COLOR_PROPERTY_BRIGHTNESS_CH = "亮度";
    public final static String FX_COLOR_PROPERTY_CONTRAST = "Contrast";
    public final static String FX_COLOR_PROPERTY_CONTRAST_CH = "对比度";
    public final static String FX_COLOR_PROPERTY_SATURATION = "Saturation";
    public final static String FX_COLOR_PROPERTY_SATURATION_CH = "饱和度";
    public final static String FX_VIGNETTE = "Vignette";
    public final static String FX_VIGNETTE_DEGREE = "Degree";
    public final static String FX_VIGNETTE_DEGREE_CH = "暗角";
    public final static String FX_SHARPEN = "Sharpen";
    public final static String FX_SHARPEN_AMOUNT = "Amount";
    public final static String FX_SHARPEN_AMOUNT_CH = "锐度";


}
