4 #define TRRO_EXPORT __attribute__((visibility("default"))) 5 #define DEPRECATED __attribute__((deprecated)) 13 #define TRRO_SUCCED 0x00000001 20 #define TRRO_COMMON_ERROR 0x00FFFFFF 28 #define TRRO_CONFIG_ERROR 0x01FFFFFF 35 #define TRRO_CONFIG_PARSE_FAILED 0x01000002 42 #define TRRO_CONFIG_ILLEGAL 0x01000003 49 #define TRRO_CONFIG_UNEXIST 0x01000004 56 #define TRRO_CONFIG_CER_FAILED 0x01000005 63 #define TRRO_CONFIG_LIC_FAILED 0x01000006 70 #define TRRO_CONFIG_STREAMS_SIZE_ERROR 0x01000007 77 #define TRRO_CONIFG_PORT_RANGE_ILLEGAL 0x01000008 84 #define TRRO_CONFIG_LOG_PERMISSON_DENIED 0x01000009 92 #define TRRO_INIT_ERROR 0x02FFFFFF 99 #define TRRO_INIT_INPUT_ILLEGAL 0x02000002 106 #define TRRO_INIT_PARSE_FAILED 0x02000003 113 #define TRRO_INIT_CREAT_MEDIAMODE_FAILED 0x02000004 120 #define TRRO_INIT_PRM_ERROR 0x02000005 127 #define TRRO_INIT_INVALUDE_INPUT 0x02000006 134 #define TRRO_INIT_REPEAT 0x02000007 142 #define TRRO_INIT_LICENSE_CHECK_FAILED 0x02000010 149 #define TRRO_INIT_LICENSE_FILE_ERROR 0x02000011 156 #define TRRO_INIT_LICENSE_CHECK_TIME_FAILED 0x02000012 163 #define TRRO_INIT_LICENSE_CHECK_DEVICE_FAILED 0x02000013 170 #define TRRO_INIT_LICENSE_CHECK_STREM_FAILED 0x02000014 177 #define TRRO_INIT_LICENSE_CHECK_ID_FAILED 0x02000015 185 #define TRRO_INIT_PUBLIC_LICENSE_CHECK_TIMEOUT 0x02000100 192 #define TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_BIND 0x02000101 199 #define TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_ENOUGH 0x02000102 206 #define TRRO_INIT_PUBLIC_LICENSE_CHECK_OVERTIME 0x02000103 213 #define TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_DURATION 0x02000104 222 #define TRRO_SIGNAL_ERROR 0x03FFFFFF 229 #define TRRO_SIGNAL_REGIST_FAILED 0x03000002 236 #define TRRO_SIGNAL_STATUS_ABNORMAL 0x03000003 243 #define TRRO_SIGNAL_MESSAGE_FAILED 0x03000004 250 #define TRRO_SIGNAL_CONNECT_OUTTIME 0x03000005 257 #define TRRO_SIGNAL_DEVICEID_OR_PASSWORD_INCORRECT 0x03000006 264 #define TRRO_DEVICE_ALREADY_LOGIN 0x03000007 273 #define TRRO_CAPTURE_ERROR 0x04FFFFFF 280 #define TRRO_CAPTURE_OPENDEVICE_FAILED 0x04000002 287 #define TRRO_CAPTURE_GETSOURCE_FAILED 0x04000003 294 #define TRRO_CAPTURE_UNKNOWN_CAPTURETYPE 0x04000004 303 #define TRRO_CONNECT_ERROR 0x05FFFFFF 310 #define TRRO_CONNECT_OUTTIME 0x05000002 317 #define TRRO_MESSAGE_ERROR 0x06FFFFFF 324 #define TRRO_MESSAGE_CHANNEL 0x06000002 331 #define TRRO_MESSAGE_BYTE_EXCEED 0x06000003 338 #define TRRO_STOR_ERROR 0x07FFFFFF 345 #define TRRO_STOR_UNENABLE 0x07000001 352 #define TRRO_STOR_IDEXIST 0x07000002 359 #define TRRO_STOR_ID_ILLEGAL 0x07000003 366 #define TRRO_STOR_PARAM_ILLEGAL 0x07000004 373 #define TRRO_STOR_UNSET_FILENAME 0x07000005 380 #define TRRO_START_CAPTURE_IDEXIST 0x07000006 387 #define TRRO_EXTERNAL_RESIZE 0x08000001 395 #define TRRO_ERROR_CALLBACK_CAMERA 0x09010000 402 #define TRRO_ERROR_CALLBACK_MIC 0x09020000 409 #define TRRO_ERROR_CALLBACK_BANDWIDTH_LIMIT 0x09030000 416 #define TRRO_ERROR_CALLBACK_RESERVE_DEGRADE 0x09040000 423 #define TRRO_UNSUPPORT 0x0F000001 539 typedef void TRRO_onControlData(
void *context,
const char *controller_id,
const char* msg,
int len,
int qos);
598 typedef void TRRO_onMediaState(
void* context,
int stream_id,
int fps,
int bps,
int rtt,
long long lost,
long long packets_send,
int stun);
908 const char* filename,
const char* config);
void TRRO_onSignalState(void *context, SignalState state)
Definition: trro_field.h:608
TrroState
Definition: trro_field.h:428
TrroColor
Definition: trro_field.h:446
Definition: trro_field.h:439
void TRRO_onVideoCaptureData(void *context, const char *data, int width, int height, int type, int stream_id)
Definition: trro_field.h:552
TRRO_EXPORT int TRRO_registerControlDataCallback(void *context, TRRO_onControlData *callback)
TRRO_EXPORT int TRRO_externalVideoDataNv(int stream_id, const char *data, int real_width, int real_height, int type)
TRRO_EXPORT int TRRO_setCurrentDevice(MediaDeviceType type, int index)
TRRO_EXPORT int TRRO_getDeviceCount(MediaDeviceType type)
Definition: trro_field.h:487
扬声器类型设备
Definition: trro_field.h:497
TRRO_EXPORT int TRRO_start()
FrameType
Definition: trro_field.h:465
int text_border_size
Definition: trro_field.h:737
Definition: trro_field.h:474
TRRO_EXPORT int TRRO_testNetworkQuality(int *stream_ids, int stream_size, int test_time)
TRRO_EXPORT DEPRECATED int TRRO_externalVideoData(int stream_id, const char *data, int width, int height, int type, int dataSize=0, const char *text="", int point_x=0, int point_y=0)
MediaDeviceType
Definition: trro_field.h:493
TRRO_EXPORT const char * TRRO_getDeviceName(MediaDeviceType type, int index)
TRRO_EXPORT int TRRO_stopVideoCapture(unsigned long long capture_id)
TRRO_EXPORT int TRRO_registerAudioMediaState(void *context, TRRO_onMediaState *callback)
Definition: trro_field.h:459
TRRO_EXPORT int TRRO_switchRecorderFile(int recorderID, const char *filename)
Definition: trro_field.h:451
void TRRO_onControlData(void *context, const char *controller_id, const char *msg, int len, int qos)
Definition: trro_field.h:539
TRRO_EXPORT void TRRO_setChineseFontAndSize(const char *font_path, float size, const char *input)
void TRRO_OnState(void *context, int stream_id, int state)
Definition: trro_field.h:517
int point_y
Definition: trro_field.h:736
Definition: trro_field.h:450
TRRO_EXPORT const char * TRRO_getSdkVersion()
TRRO_EXPORT int TRRO_externAudioData(const char *data, int data_size, int channel, int sample_rate)
Definition: trro_field.h:466
Definition: trro_field.h:505
TRRO_EXPORT int TRRO_registerOnState(void *context, TRRO_OnState *callback)
TRRO_EXPORT void TRRO_stop()
TRRO_EXPORT int TRRO_sendControlData(const char *msg, int len, int qos=0)
TRRO_EXPORT const char * getErrorMsg(int errorCode)
TRRO_EXPORT int TRRO_externVideoMJPEGDecode(int stream_id, const char *data, int data_size, int width, int height)
Definition: trro_field.h:447
TRRO_EXPORT int TRRO_setOperationPermission(const char *remote_devid, int permission)
const char * text
Definition: trro_field.h:734
void TRRO_OnLogData(void *context, const char *msg, int level)
Definition: trro_field.h:562
TRRO_EXPORT int TRRO_sendRecordVideoData(int recorderID, const char *data, int width, int height, int format)
TRRO_EXPORT int TRRO_initGwPathWithLicense(const char *cfg_path, const char *license_path, int mode=0)
TRRO_EXPORT int TRRO_audioMute(const char *userid, bool mute)
TRRO_EXPORT int TRRO_startVideoCapture(void *context, const char *url, VideoCaptureProtocol protocol, TrroColor color_format, int width, int height, int fps, TRRO_onVideoCaptureFrame callback, unsigned long long *capture_id)
void TRRO_OnErrorEvent(void *context, int error_code, const char *error_msg)
Definition: trro_field.h:527
TRRO_EXPORT int TRRO_externalEncodeVideoData(int stream_id, const char *data, int width, int height, int size, FrameType type)
void TRRO_onOperationPermissionRequest(void *context, const char *remote_devid, int permission)
Definition: trro_field.h:617
void TRRO_onMediaState(void *context, int stream_id, int fps, int bps, int rtt, long long lost, long long packets_send, int stun)
Definition: trro_field.h:598
int text_color[4]
Definition: trro_field.h:738
Definition: trro_field.h:475
#define DEPRECATED
Definition: trro_field.h:5
Definition: trro_field.h:486
void TRRO_onEncodeFrameInfo(void *context, int stream_id, int type, int bitrate)
Definition: trro_field.h:573
TRRO_EXPORT int TRRO_initGwPath(const char *cfg_path, int mode=0)
Definition: trro_field.h:506
Definition: trro_field.h:454
TRRO_EXPORT int TRRO_registerOperationPermissionRequest(void *context, TRRO_onOperationPermissionRequest *callback)
TRRO_EXPORT int TRRO_reinitRtc(const char *config)
Definition: trro_field.h:458
Definition: trro_field.h:476
Definition: trro_field.h:452
Definition: trro_field.h:467
Definition: trro_field.h:448
TRRO_EXPORT int TRRO_setEncodeRoi(int stream_id, TRRO_RoiRect *roi_rects, int len)
Definition: trro_field.h:504
int point_x
Definition: trro_field.h:735
Definition: trro_field.h:430
Definition: trro_field.h:440
Definition: trro_field.h:477
TRRO_EXPORT int TRRO_externalVideoDataWithText(int stream_id, const char *data, int width, int height, int type, int dataSize=0, TRRO_TextFormat *text_format=NULL)
Definition: trro_field.h:453
TRRO_EXPORT int TRRO_registerVideoCaptureCallback(void *context, TRRO_onVideoCaptureData *callback)
int text_border_color[4]
Definition: trro_field.h:739
Definition: trro_field.h:429
Definition: trro_field.h:432
TRRO_EXPORT int TRRO_registerMediaState(void *context, TRRO_onMediaState *callback)
TRRO_EXPORT int TRRO_registerEncodeFrameInfoCallback(void *context, TRRO_onEncodeFrameInfo *callback)
TRRO_EXPORT int TRRO_stopRecorder(int recorderID)
#define TRRO_EXPORT
Definition: trro_field.h:4
TrroLogLevel
Definition: trro_field.h:484
TRRO_EXPORT int TRRO_externalVideoDataDmaNative(int stream_id, int fd, int real_width, int real_height, int type)
TRRO_EXPORT int TRRO_initGwJsonWithLicense(const char *json_str, const char *license_path, int mode=0)
Definition: trro_field.h:457
TRRO_EXPORT int TRRO_registerLatencyCallback(void *context, TRRO_onLatencyReport *callback)
TRRO_EXPORT int TRRO_startRecorder(int recorderID, int format, int width, int heigh, int jump, int fps, int bps, const char *filename, const char *config)
TrroPermission
Definition: trro_field.h:438
TRRO_EXPORT int TRRO_registerSignalStateCallback(void *context, TRRO_onSignalState *callback)
Definition: trro_field.h:733
VideoCaptureProtocol
Definition: trro_field.h:503
Definition: trro_field.h:449
SignalState
Definition: trro_field.h:473
Definition: trro_field.h:485
Definition: trro_field.h:431
TRRO_EXPORT int TRRO_initGwJson(const char *json_str, int mode=0)
TRRO_EXPORT int TRRO_registerOnErrorEvent(void *context, TRRO_OnErrorEvent *callback)
Definition: trro_field.h:1071
麦克风类型设备
Definition: trro_field.h:495
void TRRO_onLatencyReport(void *context, int stream_id, int vcct)
Definition: trro_field.h:583
void TRRO_onVideoCaptureFrame(void *context, unsigned long long capture_id, const char *data, int length, int width, int height, TrroColor color_format)
Definition: trro_field.h:631
Definition: trro_field.h:478
TRRO_EXPORT int TRRO_registerLogCallback(void *context, TRRO_OnLogData *callback)