NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_doc_trans_helper.h
浏览该文件的文档.
1
7#ifndef _NIM_SDK_CPP_DOC_TRANS_HELPER_H_
8#define _NIM_SDK_CPP_DOC_TRANS_HELPER_H_
9
10#include <functional>
11#include <list>
12#include <string>
14#include "nim_define_include.h"
20namespace nim {
26 int width_;
30 int64_t size_;
33 , width_(0)
34 , height_(0)
35 , size_(0) {}
36};
37
73
80NIM_SDK_CPPWRAPPER_DLL_API bool ParseDocTransInfo(const std::string& json, DocTransInfo& info);
81
88NIM_SDK_CPPWRAPPER_DLL_API int32_t ParseDocTransInfos(const std::string& json, std::list<DocTransInfo>& info_list);
89
90} // namespace nim
91
92#endif //_NIM_SDK_CPP_DOC_TRANS_HELPER_H_
namespace nim
int32_t ParseDocTransInfos(const std::string &json, std::list< DocTransInfo > &info_list)
解析一组文档传输信息
Definition nim_doc_trans_helper.cpp:46
bool ParseDocTransInfo(const std::string &json, DocTransInfo &info)
解析文档传输信息
Definition nim_doc_trans_helper.cpp:12
NIM 公共数据类型定义总的包含文件
NIMDocTranscodingState
Definition nim_doc_trans_def.h:58
@ kNIMDocTranscodingStatePreparing
转码准备中
Definition nim_doc_trans_def.h:60
NIMDocTranscodingFileType
Definition nim_doc_trans_def.h:18
@ kNIMDocTranscodingFileTypePPT
ppt
Definition nim_doc_trans_def.h:20
NIMDocContinueUploadState
Definition nim_doc_trans_def.h:46
@ kNIMDocContinueUploadNone
没有进行过上传
Definition nim_doc_trans_def.h:48
NIMDocTranscodingImageType
Definition nim_doc_trans_def.h:28
@ kNIMDocTranscodingImageTypeJPG
转码为 jpg 图片
Definition nim_doc_trans_def.h:30
NIMDocTranscodingQuality
Definition nim_doc_trans_def.h:36
@ kNIMDocTranscodingQualityHigh
高清转码质量
Definition nim_doc_trans_def.h:38
JSON辅助方法
定义导出宏
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition nim_sdk_cpp_wrapper.h:38
文档传输信息
Definition nim_doc_trans_helper.h:39
std::string upload_file_path
客户端本地扩展:上传文件路径
Definition nim_doc_trans_helper.h:62
std::string id_
标识ID
Definition nim_doc_trans_helper.h:41
DocTransInfo()
Definition nim_doc_trans_helper.h:65
std::string name_
转码文档名称
Definition nim_doc_trans_helper.h:43
std::string ext_
发起文档转码时的附带信息
Definition nim_doc_trans_helper.h:57
NIMDocTranscodingImageType pic_type_
转码目标图片的文件类型
Definition nim_doc_trans_helper.h:49
NIMDocContinueUploadState continue_upload_state_
客户端本地扩展:续传文件状态
Definition nim_doc_trans_helper.h:64
std::string url_prefix_
转码后的下载地址前缀
Definition nim_doc_trans_helper.h:53
std::list< PictureInfo > pic_info_
图片信息的key
Definition nim_doc_trans_helper.h:59
int page_num_
转码文档总页数
Definition nim_doc_trans_helper.h:55
NIMDocTranscodingFileType source_type_
转码源文档的文件类型
Definition nim_doc_trans_helper.h:45
int64_t size_
文件大小
Definition nim_doc_trans_helper.h:47
NIMDocTranscodingState state_
转码过程状态
Definition nim_doc_trans_helper.h:51
文档传输的图片信息
Definition nim_doc_trans_helper.h:22
PictureInfo()
Definition nim_doc_trans_helper.h:31
NIMDocTranscodingQuality quality_
转码图像清晰度
Definition nim_doc_trans_helper.h:24
int64_t size_
文件大小
Definition nim_doc_trans_helper.h:30
int width_
图片宽度
Definition nim_doc_trans_helper.h:26
int height_
图片宽度
Definition nim_doc_trans_helper.h:28