NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_doc_trans_def.h
浏览该文件的文档.
1
8#ifndef NIM_SDK_DLL_EXPORT_HEADERS_NIM_DOC_TRANS_DEF_H_
9#define NIM_SDK_DLL_EXPORT_HEADERS_NIM_DOC_TRANS_DEF_H_
10
11#include "public_defines.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
25};
26
33};
34
43};
44
55};
56
69};
70
97};
98
109static const char* kNIMDocTransCount = "count";
111static const char* kNIMDocTransInfos = "infos";
113static const char* kNIMDocTransId = "id";
115static const char* kNIMDocTransName = "name";
117static const char* kNIMDocTransSourceType = "source_type";
119static const char* kNIMDocTransSize = "size";
121static const char* kNIMDocTransPicType = "pic_type";
123static const char* kNIMDocTransState = "state";
125static const char* kNIMDocTransUrlPrefix = "url_prefix";
127static const char* kNIMDocTransPageNum = "page_num";
129static const char* kNIMDocTransExt = "ext";
131static const char* kNIMDocTransFlag = "flag";
133static const char* kNIMDocTransPicInfo = "pic_info";
135static const char* kNIMDocTransQuality = "quality";
137static const char* kNIMDocTransWidth = "width";
139static const char* kNIMDocTransHeight = "height";
141static const char* kNIMDocTransFilePath = "file_path";
143static const char* kNIMDocTransUploadStatus = "upload_status"; // json extension params for doc trans info
145
153typedef void (*nim_doctrans_opt_cb_func)(int32_t code, const char* json_extension, const void* user_data);
154
155#ifdef __cplusplus
156};
157#endif //__cplusplus
158#endif // NIM_SDK_DLL_EXPORT_HEADERS_NIM_DOC_TRANS_DEF_H_
NIMDocTranscodingState
Definition: nim_doc_trans_def.h:58
@ kNIMDocTranscodingStatePreparing
转码准备中
Definition: nim_doc_trans_def.h:60
@ kNIMDocTranscodingStateCompleted
转码完成
Definition: nim_doc_trans_def.h:66
@ kNIMDocTranscodingStateFailed
转码失败
Definition: nim_doc_trans_def.h:68
@ kNIMDocTranscodingStateOngoing
转码进行中
Definition: nim_doc_trans_def.h:62
@ kNIMDocTranscodingStateTimeout
转码超时
Definition: nim_doc_trans_def.h:64
NIMDocTranscodingFileType
Definition: nim_doc_trans_def.h:18
@ kNIMDocTranscodingFileTypePPT
ppt
Definition: nim_doc_trans_def.h:20
@ kNIMDocTranscodingFileTypePDF
pdf
Definition: nim_doc_trans_def.h:24
@ kNIMDocTranscodingFileTypePPTX
pptx
Definition: nim_doc_trans_def.h:22
static const char * kNIMDocTransFilePath
string 上传文件的路径
Definition: nim_doc_trans_def.h:141
NIMDocContinueUploadState
Definition: nim_doc_trans_def.h:46
@ kNIMDocContinueUploadFailed
文件续传失败
Definition: nim_doc_trans_def.h:52
@ kNIMDocContinueUploadNone
没有进行过上传
Definition: nim_doc_trans_def.h:48
@ kNIMDocContinueUploading
文件续传中
Definition: nim_doc_trans_def.h:50
@ kNIMDocContinueUploadCompleted
文件续传完成
Definition: nim_doc_trans_def.h:54
static const char * kNIMDocTransPicInfo
key 图片信息的key;用于描述各个分辨率的信息
Definition: nim_doc_trans_def.h:133
NIMDocTranscodingImageType
Definition: nim_doc_trans_def.h:28
@ kNIMDocTranscodingImageTypeJPG
转码为 jpg 图片
Definition: nim_doc_trans_def.h:30
@ kNIMDocTranscodingImageTypePNG
转码为 png 图片
Definition: nim_doc_trans_def.h:32
static const char * kNIMDocTransSize
int64 文件大小
Definition: nim_doc_trans_def.h:119
static const char * kNIMDocTransExt
string 发起文档转码时的附带信息
Definition: nim_doc_trans_def.h:129
static const char * kNIMDocTransPageNum
int32 转码文档总页数
Definition: nim_doc_trans_def.h:127
static const char * kNIMDocTransFlag
int32 错误原因NIMDocTranscodingFailFlag,kNIMDocTranscodingStateFailed时有效
Definition: nim_doc_trans_def.h:131
NIMDocTranscodingQuality
Definition: nim_doc_trans_def.h:36
@ kNIMDocTranscodingQualityLow
低清转码质量
Definition: nim_doc_trans_def.h:42
@ kNIMDocTranscodingQualityMedium
中等转码质量
Definition: nim_doc_trans_def.h:40
@ kNIMDocTranscodingQualityHigh
高清转码质量
Definition: nim_doc_trans_def.h:38
static const char * kNIMDocTransState
int32 转码过程状态NIMDocTranscodingState
Definition: nim_doc_trans_def.h:123
static const char * kNIMDocTransCount
int32 计数
Definition: nim_doc_trans_def.h:109
void(* nim_doctrans_opt_cb_func)(int32_t code, const char *json_extension, const void *user_data)
Definition: nim_doc_trans_def.h:153
static const char * kNIMDocTransPicType
int32 转码目标图片的文件类型NIMDocTranscodingImageType
Definition: nim_doc_trans_def.h:121
static const char * kNIMDocTransWidth
int32 图片宽度
Definition: nim_doc_trans_def.h:137
static const char * kNIMDocTransName
string 转码文档名称
Definition: nim_doc_trans_def.h:115
static const char * kNIMDocTransInfos
key 分页获取时文档信息列表的key
Definition: nim_doc_trans_def.h:111
NIMDocTranscodingFailFlag
Definition: nim_doc_trans_def.h:72
@ kNIMDocTransFailFlagDocParseErr
文档解析出错
Definition: nim_doc_trans_def.h:94
@ kNIMDocTransFailFlagUnknown
表示未知错误
Definition: nim_doc_trans_def.h:96
@ kNIMDocTransFailFlagFileTypeErr
文件类型错误
Definition: nim_doc_trans_def.h:78
@ kNIMDocTransFailFlagLinkErr
转码服务器连接错误
Definition: nim_doc_trans_def.h:82
@ kNIMDocTransFailFlagNosErr
nos回调错误
Definition: nim_doc_trans_def.h:92
@ kNIMDocTransFailFlagPicErr
文档转码图片出错
Definition: nim_doc_trans_def.h:86
@ kNIMDocTransFailFlagSuccess
正常
Definition: nim_doc_trans_def.h:74
@ kNIMDocTransFailFlagNotExist
找不到文件
Definition: nim_doc_trans_def.h:76
@ kNIMDocTransFailFlagQualityErr
图片质量处理错误
Definition: nim_doc_trans_def.h:88
@ kNIMDocTransFailFlagPageLimit
页数超限
Definition: nim_doc_trans_def.h:90
@ kNIMDocTransFailFlagServerErr
转码服务器内部错误
Definition: nim_doc_trans_def.h:84
@ kNIMDocTransFailFlagRequstErr
转码请求出现异常
Definition: nim_doc_trans_def.h:80
static const char * kNIMDocTransHeight
int32 图片宽度
Definition: nim_doc_trans_def.h:139
static const char * kNIMDocTransId
string 标识ID
Definition: nim_doc_trans_def.h:113
static const char * kNIMDocTransUrlPrefix
string 转码后的下载地址前缀
Definition: nim_doc_trans_def.h:125
static const char * kNIMDocTransSourceType
int32 转码源文档的文件类型NIMDocTranscodingFileType
Definition: nim_doc_trans_def.h:117
static const char * kNIMDocTransUploadStatus
int32 文件续传状态NIMDocContinueUploadState
Definition: nim_doc_trans_def.h:143
static const char * kNIMDocTransQuality
int32 转码图像清晰度
Definition: nim_doc_trans_def.h:135
NIM SDK 及 NIM ChatRoom SDK 公用头文件