Android OpenCore error code定义

Android OpenCore error code定义在pv_return_codes.h文件中,下面是具体的错误码定义:

其中的RTSP错误码可以参考:标准RTSP 消息的错误代码

  1. typedef int32 PVMFStatus;  
  2.   
  3. // Return codes  
  4. /* 
  5.  Return code for general success 
  6.  */  
  7. const PVMFStatus PVMFSuccess = 1;  
  8. /* 
  9.  Return code for pending completion 
  10.  */  
  11. const PVMFStatus PVMFPending = 0;  
  12. /* 
  13.  Return code for never set 
  14.  */  
  15. const PVMFStatus PVMFNotSet = 2;  
  16. /* 
  17.  Return code for Command Complete 
  18.  */  
  19. const PVMFStatus PVMFCmdCompleted = 3;  
  20.   
  21.   
  22. // Error codes (negative values)  
  23.   
  24. /* 
  25.  Definition of first error event in range (not an actual error code). 
  26.  */  
  27. const PVMFStatus PVMFErrFirst = (-1);  
  28. /* 
  29.  Return code for general failure 
  30.  */  
  31. const PVMFStatus PVMFFailure = (-1);  
  32. /* 
  33.  Error due to cancellation 
  34.  */  
  35. const PVMFStatus PVMFErrCancelled = (-2);  
  36. /* 
  37.  Error due to no memory being available 
  38.  */  
  39. const PVMFStatus PVMFErrNoMemory = (-3);  
  40. /* 
  41.  Error due to request not being supported 
  42.  */  
  43. const PVMFStatus PVMFErrNotSupported = (-4);  
  44. /* 
  45.  Error due to invalid argument 
  46.  */  
  47. const PVMFStatus PVMFErrArgument = (-5);  
  48. /* 
  49.  Error due to invalid resource handle being specified 
  50.  */  
  51. const PVMFStatus PVMFErrBadHandle = (-6);  
  52. /* 
  53.  Error due to resource already exists and another one cannot be created 
  54.  */  
  55. const PVMFStatus PVMFErrAlreadyExists = (-7);  
  56. /* 
  57.  Error due to resource being busy and request cannot be handled 
  58.  */  
  59. const PVMFStatus PVMFErrBusy = (-8);  
  60. /* 
  61.  Error due to resource not ready to accept request 
  62.  */  
  63. const PVMFStatus PVMFErrNotReady = (-9);  
  64. /* 
  65.  Error due to data corruption being detected 
  66.  */  
  67. const PVMFStatus PVMFErrCorrupt = (-10);  
  68. /* 
  69.  Error due to request timing out 
  70.  */  
  71. const PVMFStatus PVMFErrTimeout = (-11);  
  72. /* 
  73.  Error due to general overflow 
  74.  */  
  75. const PVMFStatus PVMFErrOverflow = (-12);  
  76. /* 
  77.  Error due to general underflow 
  78.  */  
  79. const PVMFStatus PVMFErrUnderflow = (-13);  
  80. /* 
  81.  Error due to resource being in wrong state to handle request 
  82.  */  
  83. const PVMFStatus PVMFErrInvalidState = (-14);  
  84. /* 
  85.  Error due to resource not being available 
  86.  */  
  87. const PVMFStatus PVMFErrNoResources = (-15);  
  88. /* 
  89.  Error due to invalid configuration of resource 
  90.  */  
  91. const PVMFStatus PVMFErrResourceConfiguration = (-16);  
  92. /* 
  93.  Error due to general error in underlying resource 
  94.  */  
  95. const PVMFStatus PVMFErrResource = (-17);  
  96. /* 
  97.  Error due to general data processing 
  98.  */  
  99. const PVMFStatus PVMFErrProcessing = (-18);  
  100. /* 
  101.  Error due to general port processing 
  102.  */  
  103. const PVMFStatus PVMFErrPortProcessing = (-19);  
  104. /* 
  105.  Error due to lack of authorization to access a resource. 
  106.  */  
  107. const PVMFStatus PVMFErrAccessDenied = (-20);  
  108. /* 
  109.  Unused error code.  Can be re-defined. 
  110.  */  
  111. const PVMFStatus PVMFErrUnused_01 = (-21);  
  112. /* 
  113.  Unused error code.  Can be re-defined. 
  114.  */  
  115. const PVMFStatus PVMFErrUnused_02 = (-22);  
  116. /* 
  117.  Error due to the download content length larger than the maximum request size 
  118.  */  
  119. const PVMFStatus PVMFErrContentTooLarge = (-23);  
  120. /* 
  121.  Error due to a maximum number of objects in use 
  122.  */  
  123. const PVMFStatus PVMFErrMaxReached = (-24);  
  124. /* 
  125.  Return code for low disk space 
  126.  */  
  127. const PVMFStatus PVMFLowDiskSpace = (-25);  
  128. /* 
  129.  Error due to the requirement of user-id and password input from app for HTTP basic/digest authentication 
  130.  */  
  131. const PVMFStatus PVMFErrHTTPAuthenticationRequired = (-26);  
  132. /* 
  133.  PVMFMediaClock specific error. Callback has become invalid due to change in direction of NPT clock. 
  134. */  
  135. const PVMFStatus PVMFErrCallbackHasBecomeInvalid = (-27);  
  136. /* 
  137.  PVMFMediaClock specific error. Callback is called as clock has stopped. 
  138. */  
  139. const PVMFStatus PVMFErrCallbackClockStopped = (-28);  
  140. /* 
  141.  Error due to missing call for ReleaseMatadataValue() API 
  142.  */  
  143. const PVMFStatus PVMFErrReleaseMetadataValueNotDone = (-29);  
  144. /* 
  145.  Error due to the redirect error 
  146. */  
  147. const PVMFStatus PVMFErrRedirect = (-30);  
  148. /* 
  149.  Error if a given method or API is not implemented. This is NOT the same as PVMFErrNotSupported. 
  150. */  
  151. const PVMFStatus PVMFErrNotImplemented = (-31);  
  152.   
  153. /* 
  154. DRM license not found 
  155. */  
  156. const PVMFStatus PVMFErrDrmLicenseNotFound = (-32);  
  157. /* 
  158. DRM license has expired due to end time or usage count restriction 
  159. */  
  160. const PVMFStatus PVMFErrDrmLicenseExpired = (-33);  
  161. /* 
  162. DRM license has a start time restriction and current time is too early 
  163. */  
  164. const PVMFStatus PVMFErrDrmLicenseNotYetValid = (-34);  
  165. /* 
  166. DRM rights are insufficient for the requested operation 
  167. */  
  168. const PVMFStatus PVMFErrDrmInsufficientRights = (-35);  
  169. /* 
  170. DRM rights require higher output protection level than supported by the device 
  171. */  
  172. const PVMFStatus PVMFErrDrmOutputProtectionLevel = (-36);  
  173. /* 
  174. DRM clock rollback detected. 
  175. */  
  176. const PVMFStatus PVMFErrDrmClockRollback = (-37);  
  177. /* 
  178. DRM clock is not available or cannot be read 
  179. */  
  180. const PVMFStatus PVMFErrDrmClockError = (-38);  
  181. /* 
  182. DRM license store is corrupted 
  183. */  
  184. const PVMFStatus PVMFErrDrmLicenseStoreCorrupt = (-39);  
  185. /* 
  186. DRM license store is not valid for the device. 
  187. */  
  188. const PVMFStatus PVMFErrDrmLicenseStoreInvalid = (-40);  
  189. /* 
  190. DRM license store access failed 
  191. */  
  192. const PVMFStatus PVMFErrDrmLicenseStoreAccess = (-41);  
  193. /* 
  194. DRM Device data access failed 
  195. */  
  196. const PVMFStatus PVMFErrDrmDeviceDataAccess = (-42);  
  197. /* 
  198. DRM network error occurred in server communication 
  199. */  
  200. const PVMFStatus PVMFErrDrmNetworkError = (-43);  
  201. /* 
  202. DRM device ID cannot be determined 
  203. */  
  204. const PVMFStatus PVMFErrDrmDeviceIDUnavailable = (-44);  
  205. /* 
  206. DRM data is not matched to device 
  207. */  
  208. const PVMFStatus PVMFErrDrmDeviceDataMismatch = (-45);  
  209. /* 
  210. DRM cryptography operation failed 
  211. */  
  212. const PVMFStatus PVMFErrDrmCryptoError = (-46);  
  213. /* 
  214. DRM license not found, but a preview of the content is available. 
  215. */  
  216. const PVMFStatus PVMFErrDrmLicenseNotFoundPreviewAvailable = (-47);  
  217. /* 
  218. Error due to unable to communicate with server 
  219. */  
  220. const PVMFStatus PVMFErrDrmServerError = (-48);  
  221. /* 
  222. Error when a license server requests registration to a domain. 
  223. */  
  224. const PVMFStatus PVMFErrDrmDomainRequired = (-49);  
  225. /* 
  226. Error when a license server requests renewal of a domain registration. 
  227. */  
  228. const PVMFStatus PVMFErrDrmDomainRenewRequired = (-50);  
  229. /* 
  230. Error when a license server reports that the device is not part of the domain. 
  231. */  
  232. const PVMFStatus PVMFErrDrmDomainNotAMember = (-51);  
  233. /* 
  234. Error due to device currently not activated for drm-protected content playback 
  235. */  
  236. const PVMFStatus PVMFErrDrmDeviceNotActivated = (-52);  
  237. /* 
  238. The metering certificate was not found in the store. 
  239. */  
  240. const PVMFStatus PVMFErrDrmMeterCertNotFound = (-53);  
  241. /* 
  242. Service specific server error. 
  243. */  
  244. const PVMFStatus PVMFErrDrmServerServiceSpecific = (-54);  
  245. /* 
  246. An internal server error occurred. 
  247. */  
  248. const PVMFStatus PVMFErrDrmServerInternalError = (-55);  
  249. /* 
  250. The device limit for the domain has been reached. 
  251. */  
  252. const PVMFStatus PVMFErrDrmServerDeviceLimitReached = (-56);  
  253. /* 
  254. The metering identifier is unknown. 
  255. */  
  256. const PVMFStatus PVMFErrDrmServerUnknownMeteringID = (-57);  
  257. /* 
  258. The computer limit for the domain has been reached. 
  259. */  
  260. const PVMFStatus PVMFErrDrmServerComputerLimitReached = (-58);  
  261. /* 
  262. The protocol version specified was not supported by the server. 
  263. */  
  264. const PVMFStatus PVMFErrDrmServerProtocolVersionMismatch = (-59);  
  265. /* 
  266. The account identifier is unknown. 
  267. */  
  268. const PVMFStatus PVMFErrDrmServerUnknownAccountID = (-60);  
  269. /* 
  270. Server redirected request to different server due to protocol mismatch. 
  271. */  
  272. const PVMFStatus PVMFErrDrmServerProtocolRedirect = (-61);  
  273. /* 
  274. */  
  275.   
  276. /* 
  277. ... this range reserved for future DRM-related errors 
  278. */  
  279. /* 
  280. DRM Operational Error not otherwise specified 
  281. */  
  282. const PVMFStatus PVMFErrDrmOperationFailed = (-81);  
  283. /* 
  284. Error returned when the video container is not valid for progressive playback. 
  285. */  
  286. const PVMFStatus PVMFErrContentInvalidForProgressivePlayback = (-82);  
  287.   
  288. /* 
  289. RTSP Error codes 
  290. */  
  291. const PVMFStatus PVMFErrRTSP400BadRequest = (-83);  
  292. const PVMFStatus PVMFErrRTSP401Unauthorized = (-84);  
  293. const PVMFStatus PVMFErrRTSP402CodePaymentRequired = (-85);  
  294. const PVMFStatus PVMFErrRTSP403Forbidden = (-86);  
  295. const PVMFStatus PVMFErrRTSP404NotFound = (-87);  
  296. const PVMFStatus PVMFErrRTSP405MethodNotAllowed = (-88);  
  297. const PVMFStatus PVMFErrRTSP406NotAcceptable = (-89);  
  298. const PVMFStatus PVMFErrRTSP407ProxyAuthenticationRequired = (-90);  
  299. const PVMFStatus PVMFErrRTSP408RequestTimeOut = (-91);  
  300.   
  301. const PVMFStatus PVMFErrRTSP410Gone = (-92);  
  302. const PVMFStatus PVMFErrRTSP411LengthRequired = (-93);  
  303. const PVMFStatus PVMFErrRTSP412PreconditionFailed = (-94);  
  304. const PVMFStatus PVMFErrRTSP413RequestEntityTooLarge = (-95);  
  305. const PVMFStatus PVMFErrRTSP414RequestURITooLarge = (-96);  
  306. const PVMFStatus PVMFErrRTSP415UnsupportedMediaType = (-97);  
  307.   
  308. const PVMFStatus PVMFErrRTSP451ParameterNotUnderstood = (-98);  
  309. const PVMFStatus PVMFErrRTSP452ConferenceNotFound = (-99);  
  310. const PVMFStatus PVMFErrRTSP453NotEnoughBandwidth = (-100);  
  311. const PVMFStatus PVMFErrRTSP454SessionNotFound = (-101);  
  312. const PVMFStatus PVMFErrRTSP455MethodNotValidInThisState = (-102);  
  313. const PVMFStatus PVMFErrRTSP456HeaderFieldNotValidForResource = (-103);  
  314. const PVMFStatus PVMFErrRTSP457InvalidRange = (-104);  
  315. const PVMFStatus PVMFErrRTSP458ParameterIsReadOnly = (-105);  
  316. const PVMFStatus PVMFErrRTSP459AggregateOperationNotAllowed = (-106);  
  317. const PVMFStatus PVMFErrRTSP460OnlyAggregateOperationAllowed = (-107);  
  318. const PVMFStatus PVMFErrRTSP461UnsupportedTransport = (-108);  
  319. const PVMFStatus PVMFErrRTSP462DestinationUnreachable = (-109);  
  320. const PVMFStatus PVMFErrRTSP480UnsupportedClient = (-110);  
  321.   
  322. const PVMFStatus PVMFErrRTSP500InternalServerError = (-111);  
  323. const PVMFStatus PVMFErrRTSP501NotImplemented = (-112);  
  324. const PVMFStatus PVMFErrRTSP502BadGateway = (-113);  
  325. const PVMFStatus PVMFErrRTSP503ServiceUnavailable = (-114);  
  326. const PVMFStatus PVMFErrRTSP504GatewayTimeout = (-115);  
  327. const PVMFStatus PVMFErrRTSP505RTSPVersionNotSupported = (-116);  
  328.   
  329. const PVMFStatus PVMFErrRTSP551OptionNotSupported = (-117);  
  330. /* 
  331. Reserve for future error code extensions 
  332. */  
  333. const PVMFStatus PVMFErrRTSPExtensionCode = (-137);  
  334.   
  335. /* 
  336.  Placeholder for last event in range. 
  337.  */  
  338. const PVMFStatus PVMFErrLast = (-137);  
  339. /* 
  340.  Macro to tell if a value is in PVMFErr range 
  341.  */  
  342. #define IsPVMFErrCode(s) ((PVMFErrLast<=s)&&(s<=PVMFErrFirst))  
  343.   
  344. // Informational codes (positive values)  
  345.   
  346. const PVMFStatus PVMFInfoFirst = 10;  
  347.   
  348. /* 
  349.  Notification that a port was created 
  350.  */  
  351. const PVMFStatus PVMFInfoPortCreated = 10;  
  352. /* 
  353.  Notification that a port was deleted 
  354.  */  
  355. const PVMFStatus PVMFInfoPortDeleted = 11;  
  356. /* 
  357.  Notification that a port was connected 
  358.  */  
  359. const PVMFStatus PVMFInfoPortConnected = 12;  
  360. /* 
  361.  Notification that a port was disconnected 
  362.  */  
  363. const PVMFStatus PVMFInfoPortDisconnected = 13;  
  364. /* 
  365.  Notification that an overflow occurred (not fatal error) 
  366.  */  
  367. const PVMFStatus PVMFInfoOverflow = 14;  
  368. /* 
  369.  Notification that an underflow occurred (not fatal error) 
  370.  */  
  371. const PVMFStatus PVMFInfoUnderflow = 15;  
  372. /* 
  373.  Notification that a processing failure occurred (not fatal error) 
  374.  */  
  375. const PVMFStatus PVMFInfoProcessingFailure = 16;  
  376. /* 
  377.  Notification that end of data stream has been reached 
  378.  */  
  379. const PVMFStatus PVMFInfoEndOfData = 17;  
  380. /* 
  381.  Notification that a data buffer has been created 
  382.  */  
  383. const PVMFStatus PVMFInfoBufferCreated = 18;  
  384. /* 
  385.  Notification that buffering of data has started 
  386.  */  
  387. const PVMFStatus PVMFInfoBufferingStart = 19;  
  388. /* 
  389.  Notification for data buffering level status 
  390.  */  
  391. const PVMFStatus PVMFInfoBufferingStatus = 20;  
  392. /* 
  393.  Notification that data buffering has completed 
  394.  */  
  395. const PVMFStatus PVMFInfoBufferingComplete = 21;  
  396. /* 
  397.  Notification that data is ready for use 
  398.  */  
  399. const PVMFStatus PVMFInfoDataReady = 22;  
  400. /* 
  401.  Notification for position status 
  402.  */  
  403. const PVMFStatus PVMFInfoPositionStatus = 23;  
  404. /* 
  405.  Notification for node state change 
  406.  */  
  407. const PVMFStatus PVMFInfoStateChanged = 24;  
  408. /* 
  409.  Notification that data was discarded during synchronization. 
  410.  */  
  411. const PVMFStatus PVMFInfoDataDiscarded = 25;  
  412. /* 
  413.  Notification that error handling has started 
  414.  */  
  415. const PVMFStatus PVMFInfoErrorHandlingStart = 26;  
  416. /* 
  417.  Notification that error handling has completed 
  418.  */  
  419. const PVMFStatus PVMFInfoErrorHandlingComplete = 27;  
  420. /* 
  421.  Notification from a remote source 
  422.  */  
  423. const PVMFStatus PVMFInfoRemoteSourceNotification = 28;  
  424. /* 
  425.  Notification that license acquisition has started. 
  426.  */  
  427. const PVMFStatus PVMFInfoLicenseAcquisitionStarted = 29;  
  428. /* 
  429.  Notification that download content length is available 
  430.  */  
  431. const PVMFStatus PVMFInfoContentLength = 30;  
  432. /* 
  433.  Notification that downloaded content reaches the maximum request size, and will 
  434.  be truncated, especially for the case of unavailable content length 
  435.  */  
  436. const PVMFStatus PVMFInfoContentTruncated = 31;  
  437. /* 
  438.  Notification that source format is not supported, typically sent 
  439.  during protocol rollover 
  440.  */  
  441. const PVMFStatus PVMFInfoSourceFormatNotSupported = 32;  
  442. /* 
  443.  Notification that a clip transition has occurred while playing a playlist 
  444.  */  
  445. const PVMFStatus PVMFInfoPlayListClipTransition = 33;  
  446. /* 
  447.  Notification that content type for download or HTTP streaming is available 
  448.  */  
  449. const PVMFStatus PVMFInfoContentType = 34;  
  450. /* 
  451.  Notification that paticular track is disable. This one is on a per track basis. 
  452.  */  
  453. const PVMFStatus PVMFInfoTrackDisable = 35;  
  454. /* 
  455.  Notification that unexpected data has been obtained, especially for download, 
  456.  when client receives from server more data than requested in content-length header 
  457.  */  
  458. const PVMFStatus PVMFInfoUnexpectedData = 36;  
  459. /* 
  460.  Notification that server discnnect happens after download is complete 
  461.  */  
  462. const PVMFStatus PVMFInfoSessionDisconnect = 37;  
  463. /* 
  464.  Notification that new meadi stream has been started 
  465.  */  
  466. const PVMFStatus PVMFInfoStartOfData = 38;  
  467. /* 
  468.  Notification that node has processed a command with ReportObserver marker info 
  469.  */  
  470. const PVMFStatus PVMFInfoReportObserverRecieved = 39;  
  471. /* 
  472.  Notification that meta data is available with source node 
  473.  */  
  474. const PVMFStatus PVMFInfoMetadataAvailable = 40;  
  475. /* 
  476.  Notification that duration is available with source node 
  477.  */  
  478. const PVMFStatus PVMFInfoDurationAvailable = 41;  
  479. /* 
  480.  Notification that Change Position request not supported 
  481.  */  
  482. const PVMFStatus PVMFInfoChangePlaybackPositionNotSupported = 42;  
  483. /* 
  484.  Notification that the content is poorly inter-leaved 
  485.  */  
  486. const PVMFStatus PVMFInfoPoorlyInterleavedContent = 43;  
  487. /* 
  488.  Notification for actual playback position after repositioning 
  489.  */  
  490. const PVMFStatus PVMFInfoActualPlaybackPosition = 44;  
  491. /* 
  492.  Notification that the live buffer is empty 
  493.  */  
  494. const PVMFStatus PVMFInfoLiveBufferEmpty = 45;  
  495. /* 
  496.  Notification that a server has responded with 200 OK to a Playlist play request 
  497.  */  
  498. const PVMFStatus PVMFInfoPlayListSwitch = 46;  
  499. /* 
  500.  Notification of configuration complete 
  501.  */  
  502. const PVMFStatus PVMFMIOConfigurationComplete = 47;  
  503. /* 
  504.  Notification that the video track is falling behind 
  505.  */  
  506. const PVMFStatus PVMFInfoVideoTrackFallingBehind = 48;  
  507. /* 
  508.  Notification that memory is not available for new RTP packets 
  509.  */  
  510. const PVMFStatus PVMFInfoSourceOverflow = 49;  
  511. /* 
  512.  Notification for Media data length in shoutcast session 
  513.  */  
  514. const PVMFStatus PVMFInfoShoutcastMediaDataLength = 50;  
  515. /* 
  516.  Notification for clip bitrate in shoutcast session 
  517.  */  
  518. const PVMFStatus PVMFInfoShoutcastClipBitrate = 51;  
  519. /* 
  520.  Notification for shoutcast session 
  521.  */  
  522. const PVMFStatus PVMFInfoIsShoutcastSesssion = 52;  
  523. /* 
  524.  Notification that the engine must select tracks (for e.g. during a 3GPP FCS) 
  525.  */  
  526. const PVMFStatus PVMFInfoTrackSelectionNeeded = 53;  
  527. /* 
  528.  Notification for corrupted clip during playlist playback 
  529.  */  
  530. const PVMFStatus PVMFInfoClipCorrupted = 54;  
  531. /* 
  532.  Notification that source format has been updated 
  533.  */  
  534. const PVMFStatus PVMFInfoSourceFormatUpdated = 55;  
  535. /* 
  536. Notification for invalid ts in the RTP packet 
  537. */  
  538. const PVMFStatus PVMFErrInvalidRTPTimeInPkt = 56;  
  539. /* 
  540.  Notification that pvmiGetBufferAllocatorSpecificInfoSync was unsuccessful 
  541.  */  
  542. const PVMFStatus PVMFPvmiBufferAllocatorNotAcquired = 55;  
  543. /* 
  544.  Notification that pvmiGetBufferAllocatorSpecificInfoSync was successful 
  545.  */  
  546. const PVMFStatus PVMFPvmiBufferAlloctorAcquired = 56;  
  547.   
  548. /* 
  549.  Placeholder for end of range 
  550.  */  
  551. const PVMFStatus PVMFInfoLast = 100; 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值