using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YoseenPTZ.SDKDef
{
    public class EError
    {
        public const int EError_None = 0;
        public const int EError_InternalError = -1;
        public const int EError_NotSupported = -2;
        public const int EError_NotImplemented = -3;
        public const int EError_SDKUninited = -4;
        public const int EError_NoMemory = -5;
        public const int EError_NoHandle = -6;
        public const int EError_InvalidState = -7;
        public const int EError_InvalidArgs = -8;
        public const int EError_InvalidResp = -9;
        public const int EError_InvalidHandle = -10;
        public const int EError_InvalidData = -11;
        public const int EError_PreviewCreateBuffer = -12;
        public const int EError_PreviewOpenInput = -13;
        public const int EError_PreviewOpenDisplay = -14;
        ////-15; -16
        public const int EError_PreviewRecoverBegin = -17;
        public const int EError_PreviewRecoverEnd = -18;

        //Socket
        public const int EError_SocketOpen = -100;
        public const int EError_SocketConn = -99;
        public const int EError_SocketSend = -98;
        public const int EError_SocketRecv = -97;
        public const int EError_SocketConfig = -96;
        public const int EError_SocketData = -95;

        //File
        public const int EError_FileOpen = -200;
        public const int EError_FileClose = -199;
        public const int EError_FileRead = -198;
        public const int EError_FileWrite = -197;
        public const int EError_FileEOF = -196;
        public const int EError_FileType = -195;
        public const int EError_FileData = -194;

        //Ffmpeg
        public const int EError_FfmpegEncode = -300;
        public const int EError_FfmpegDecode = -299;
        public const int EError_FfmpegMuxOpen = -298;
        public const int EError_FfmpegMuxWrite = -297;
        public const int EError_FfmpegMuxClose = -296;
        public const int EError_FfmpegDemuxOpen = -295;
        public const int EError_FfmpegDemuxRead = -294;
        public const int EError_FfmpegDemuxClose = -293;

        //MVSError = -1000
        //WebError = -2000
    }
}
