7#ifndef _NIM_SDK_CPP_DOC_TRANS_HELPER_H_
8#define _NIM_SDK_CPP_DOC_TRANS_HELPER_H_
80NIM_SDK_CPPWRAPPER_DLL_API
bool ParseDocTransInfo(
const std::string& json, DocTransInfo& info);
88NIM_SDK_CPPWRAPPER_DLL_API int32_t
ParseDocTransInfos(
const std::string& json, std::list<DocTransInfo>& info_list);
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
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
文档传输信息
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
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
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