NIM 跨平台 C++ SDK
|
文档转换 接口相关的常量函数等定义头文件 更多...
#include "public_defines.h"
类型定义 | |
typedef void(* | nim_doctrans_opt_cb_func) (int32_t code, const char *json_extension, const void *user_data) |
变量 | |
json extension params for doc trans info | |
for example pic_info: "pic_info":[{"height":1080,"quality":1,"size":77599,"width":1439},{"height":720,"quality":2,"size":46287,"width":959},{"height":480,"quality":3,"size":27577,"width":639}] for example one info: {"ext":"ext_test","id":"8c17c252...","name":"name_test","page_num":0,"pic_type":11,"size":568351,"source_type":2,"state":2,"url_prefix":"http://......"} {"ext":"ext","id":"7b004b82...","name":"name","page_num":1,"pic_info":[...],"pic_type":11,"size":106496,"source_type":1,"state":4,"url_prefix":"http..."} for example infolist: {"count":3,"infos":[{"ext":"ext_test" ...},{"ext":"ext_test" ...},{"ext":"ext_test" ...}]} | |
static const char * | kNIMDocTransCount = "count" |
int32 计数 | |
static const char * | kNIMDocTransInfos = "infos" |
key 分页获取时文档信息列表的key | |
static const char * | kNIMDocTransId = "id" |
string 标识ID | |
static const char * | kNIMDocTransName = "name" |
string 转码文档名称 | |
static const char * | kNIMDocTransSourceType = "source_type" |
int32 转码源文档的文件类型NIMDocTranscodingFileType | |
static const char * | kNIMDocTransSize = "size" |
int64 文件大小 | |
static const char * | kNIMDocTransPicType = "pic_type" |
int32 转码目标图片的文件类型NIMDocTranscodingImageType | |
static const char * | kNIMDocTransState = "state" |
int32 转码过程状态NIMDocTranscodingState | |
static const char * | kNIMDocTransUrlPrefix = "url_prefix" |
string 转码后的下载地址前缀 | |
static const char * | kNIMDocTransPageNum = "page_num" |
int32 转码文档总页数 | |
static const char * | kNIMDocTransExt = "ext" |
string 发起文档转码时的附带信息 | |
static const char * | kNIMDocTransFlag = "flag" |
int32 错误原因NIMDocTranscodingFailFlag,kNIMDocTranscodingStateFailed时有效 | |
static const char * | kNIMDocTransPicInfo = "pic_info" |
key 图片信息的key;用于描述各个分辨率的信息 | |
static const char * | kNIMDocTransQuality = "quality" |
int32 转码图像清晰度 | |
static const char * | kNIMDocTransWidth = "width" |
int32 图片宽度 | |
static const char * | kNIMDocTransHeight = "height" |
int32 图片宽度 | |
static const char * | kNIMDocTransFilePath = "file_path" |
string 上传文件的路径 | |
static const char * | kNIMDocTransUploadStatus = "upload_status" |
int32 文件续传状态NIMDocContinueUploadState | |
文档转换 接口相关的常量函数等定义头文件
void(* nim_doctrans_opt_cb_func)(int32_t code, const char *json_extension, const void *user_data) |
nim callback function for doc trans result
[out] | code | 200为成功,其他为失败 |
[out] | json_extension | json扩展数据,如果查询成功返回文档信息 |
[out] | user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
转码失败原因
|
static |
int32 计数
|
static |
string 发起文档转码时的附带信息
|
static |
string 上传文件的路径
|
static |
int32 错误原因NIMDocTranscodingFailFlag,kNIMDocTranscodingStateFailed时有效
|
static |
int32 图片宽度
|
static |
string 标识ID
|
static |
key 分页获取时文档信息列表的key
|
static |
string 转码文档名称
|
static |
int32 转码文档总页数
|
static |
key 图片信息的key;用于描述各个分辨率的信息
|
static |
int32 转码目标图片的文件类型NIMDocTranscodingImageType
|
static |
int32 转码图像清晰度
|
static |
int64 文件大小
|
static |
int32 转码源文档的文件类型NIMDocTranscodingFileType
|
static |
int32 转码过程状态NIMDocTranscodingState
|
static |
int32 文件续传状态NIMDocContinueUploadState
|
static |
string 转码后的下载地址前缀
|
static |
int32 图片宽度