You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

208 lines
6.2 KiB

//
// JCMediaDeviceConstants.h
// JCSDK-OC
//
// Created by maikireton on 2017/8/11.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
/// @addtogroup 设备模块
/// @{
/**
*
*/
typedef NS_ENUM(NSInteger, JCMediaDeviceRotateAngle) {
/// 窗口与屏幕角度 0°
JCMediaDeviceRotateAngle0 = 0,
/// 窗口与屏幕角度 90°
JCMediaDeviceRotateAngle90 = 90,
/// 窗口与屏幕角度 180°
JCMediaDeviceRotateAngle180 = 180,
/// 窗口与屏幕角度 270°
JCMediaDeviceRotateAngle270 = 270,
};
/**
*
*/
typedef NS_ENUM(NSInteger, JCMediaDeviceRender) {
/// 铺满窗口,会有裁剪
JCMediaDeviceRenderFullScreen = 0,
/// 全图像显示,会有黑边
JCMediaDeviceRenderFullContent,
/// 自适应
JCMediaDeviceRenderFullAuto,
};
/**
*
*/
typedef NS_ENUM(NSInteger, JCMediaDeviceVideoPixelFormat) {
/// I420
JCMediaDeviceVideoPixelFormatI420 = 1,
/// IYUV
JCMediaDeviceVideoPixelFormatIYUV = 2,
/// RGB24
JCMediaDeviceVideoPixelFormatRGB24 = 3,
/// ABGR
JCMediaDeviceVideoPixelFormatABGR = 4,
/// ARGB
JCMediaDeviceVideoPixelFormatARGB = 5,
/// ARGB444
JCMediaDeviceVideoPixelFormatARGB444 = 6,
/// RGB565
JCMediaDeviceVideoPixelFormatRGB565 = 7,
/// ARGB1555
JCMediaDeviceVideoPixelFormatARGB1555 = 8,
/// YUY2
JCMediaDeviceVideoPixelFormatYUY2 = 9,
/// YV12
JCMediaDeviceVideoPixelFormatYV12 = 10,
/// UYVY
JCMediaDeviceVideoPixelFormatUYVY = 11,
/// MJPG
JCMediaDeviceVideoPixelFormatMJPG = 12,
/// NV21
JCMediaDeviceVideoPixelFormatNV21 = 13,
/// NV12
JCMediaDeviceVideoPixelFormatNV12 = 14,
/// BGRA
JCMediaDeviceVideoPixelFormatBGRA = 15,
};
/**
*
*/
typedef NS_ENUM(NSInteger, JCMediaDeviceVideoAngel) {
/// 自动
JCMediaDeviceVideoAngelAuto = -1,
/// 0°
JCMediaDeviceVideoAngel0 = 0,
/// 90°
JCMediaDeviceVideoAngel90 = 90,
/// 180°
JCMediaDeviceVideoAngel180 = 180,
/// 270°
JCMediaDeviceVideoAngel270 = 270
};
/**
*
*/
typedef NS_ENUM(NSInteger, JCMediaDeviceCameraType) {
/// 未获取到摄像头
JCMediaDeviceCameraTypeNone = 0,
/// 前置摄像头
JCMediaDeviceCameraTypeFront = 1,
/// 后置摄像头
JCMediaDeviceCameraTypeBack = 2,
/// 未知摄像头
JCMediaDeviceCameraTypeUnknown = 3
};
/**
*
*/
typedef NS_ENUM(NSInteger, JCMediaDeviceVideoSource) {
/// 用户
JCMediaDeviceVideoSourcePeer = 0,
/// 采集设备
JCMediaDeviceVideoSourceCapture = 1,
/// 文件
JCMediaDeviceVideoSourceFile = 2,
};
/**
*
*/
typedef NS_ENUM(NSInteger, JCMediaDeviceMirror) {
/// 不镜像
JCMediaDeviceMirrorNone = 0,
/// 水平方向镜像
JCMediaDeviceMirrorHorizontal = 1,
/// 竖直方向镜像
JCMediaDeviceMirrorVertical = 2,
/// 自动选择
JCMediaDeviceMirrorAuto = 3,
/// 转场动画,从左侧翻转
JCMediaDeviceMirrorFromLeft = 4,
/// 转场动画,从上侧翻转
JCMediaDeviceMirrorFromTop = 8,
};
typedef NS_ENUM(NSInteger, JCMediaDeviceAudioAECType) {
/// 开启硬件AEC
JCMediaDeviceAudioAECTypeOn,
/// 关闭硬件AEC
JCMediaDeviceAudioAECTypeOff,
/// 硬件AEC 自动
JCMediaDeviceAudioAECTypeAuto
};
typedef NS_ENUM(NSInteger, JCMediaDeviceAudioAGCType) {
/// 开启硬件AGC
JCMediaDeviceAudioAGCTypeOn,
/// 关闭硬件AGC
JCMediaDeviceAudioAGCTypeOff,
/// 硬件AGC 自动
JCMediaDeviceAudioAGCTypeAuto
};
typedef NS_ENUM(NSInteger, JCMediaDeviceEffectType) {
JCMediaDeviceEffectTypeNone = 0, /**< @brief 无 */
/** 高斯模糊特效\n
* JSON :\n
* "hoffset": 2\n
* "voffset": 2\n
* "iterate": 3\n
* "pixels": \n
* "sigma": sigma越大越模糊\n
*/
JCMediaDeviceEffectTypeBlur = 1, /**< @brief 高斯模糊 */
JCMediaDeviceEffectTypeGrey = 2, /**< @brief 黑白 */
JCMediaDeviceEffectTypeMask = 3, /**< @brief 掩膜 */
/** 放大镜特效\n
* JSON :\n
* "dx": x的宽度偏移量\n
* "dy": y的高度偏移量\n
* "x": x坐标[0, 1]\n
* "y": y坐标[0, 1]\n
* "zoom": 2\n
*"radius": 0.2\n
*/
JCMediaDeviceEffectTypeMagnifier = 4, /**< @brief 放大镜 */
JCMediaDeviceEffectTypeOldTime = 5, /**< @brief 怀旧 */
JCMediaDeviceEffectTypePhotoVerse = 6, /**< @brief 底片 */
JCMediaDeviceEffectTypeLomo = 7, /**< @brief 温暖 */
/** 景深特效\n
* JSON :\n
* "x": x轴中点\n
* "y": y轴中点\n
* "radius": 0.2\n
* "exp": alpha exp, 1.0\n
*/
JCMediaDeviceEffectTypeDepthOfField = 8, /**< @brief 拖动控制景深 */
/**
* 线\n
* JSON :\n
* "status": \n
* 0: \n
* 1: \n
* "yaw": [0360]0\n
* "pitch": [-180180]0\n
* "roll": [0360]0\n
* "fov": (0180)90\n
* fov 0\n
* fov 180\n
* : 45-135\n
* 使2:1\n
* "reset": \n
*/
JCMediaDeviceEffectTypeErtToRect = 9, /**< @brief 远端全景视频 */
};
/// @}