/* * Copyright (C) 2014 Amlogic Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _PLAYER_ERROR_H_ #define _PLAYER_ERROR_H_ #define P_PRE (0x02000000) #define F_PRE (0x03000000) #define X_PRE (0x04000000) #define D_PRE (0x05000000) #define PLAYER_SUCCESS (0) #define PLAYER_FAILED (-(P_PRE|0x01)) #define PLAYER_NOMEM (-(P_PRE|0x02)) #define PLAYER_EMPTY_P (-(P_PRE|0x03)) #define PLAYER_NOT_VALID_PID (-(P_PRE|0x04)) #define PLAYER_CAN_NOT_CREAT_THREADS (-(P_PRE|0x05)) #define PLAYER_ERROR_PARAM (-(P_PRE|0x06)) #define PLAYER_ERROR_CALLBACK (-(P_PRE|0x07)) #define PLAYER_RD_FAILED (-(P_PRE|0x11)) #define PLAYER_RD_EMPTYP (-(P_PRE|0x12)) #define PLAYER_RD_TIMEOUT (-(P_PRE|0x13)) #define PLAYER_RD_AGAIN (-(P_PRE|0x14)) #define PLAYER_WR_FAILED (-(P_PRE|0x21)) #define PLAYER_WR_EMPTYP (-(P_PRE|0x22)) #define PLAYER_WR_AGAIN (-(P_PRE|0x23)) #define PLAYER_WR_FINISH (P_PRE|0x1) #define PLAYER_PTS_ERROR (-(P_PRE|0x31)) #define PLAYER_NO_DECODER (-(P_PRE|0x32)) #define DECODER_RESET_FAILED (-(P_PRE|0x33)) #define DECODER_INIT_FAILED (-(P_PRE|0x34)) #define PLAYER_UNSUPPORT (-(P_PRE|0x35)) #define PLAYER_UNSUPPORT_VIDEO (-(P_PRE|0x36)) #define PLAYER_UNSUPPORT_AUDIO (-(P_PRE|0x37)) #define PLAYER_SEEK_OVERSPILL (-(P_PRE|0x38)) #define PLAYER_CHECK_CODEC_ERROR (-(P_PRE|0x39)) #define PLAYER_INVALID_CMD (-(P_PRE|0x40)) #define PLAYER_REAL_AUDIO_FAILED (-(P_PRE|0x41)) #define PLAYER_ADTS_NOIDX (-(P_PRE|0x42)) #define PLAYER_SEEK_FAILED (-(P_PRE|0x43)) #define PLAYER_NO_VIDEO (-(P_PRE|0x44)) #define PLAYER_NO_AUDIO (-(P_PRE|0x45)) #define PLAYER_SET_NOVIDEO (-(P_PRE|0x46)) #define PLAYER_SET_NOAUDIO (-(P_PRE|0x47)) #define PLAYER_FFFB_UNSUPPORT (-(P_PRE|0x48)) #define PLAYER_UNSUPPORT_VCODEC (-(P_PRE|0x49)) #define PLAYER_UNSUPPORT_ACODEC (-(P_PRE|0x4a)) #define FFMPEG_SUCCESS (0) #define FFMPEG_OPEN_FAILED (-(F_PRE|0x1)) #define FFMPEG_PARSE_FAILED (-(F_PRE|0x2)) #define FFMPEG_EMP_POINTER (-(F_PRE|0x3)) #define FFMPEG_NO_FILE (-(F_PRE|0x4)) #define DIVX_SUCCESS (0) #define DIVX_AUTHOR_ERR (-(X_PRE|0x1)) #define DIVX_EXPIRED (-(X_PRE|0x2)) #define DRM_NOERROR (0) #define DRM_UNSUPPORT (-(D_PRE|0x1)) char * player_error_msg(int error); #endif