M4PTO3GPP_ErrorCodes.h revision 7c9d8018755adf1857571125ba1b3598c96ea506
1/*
2 * Copyright (C) 2004-2011 NXP Software
3 * Copyright (C) 2011 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17/**
18 ******************************************************************************
19 * @file    M4PTO3GPP_ErrorCodes.h
20 * @brief    Picture to 3gpp Service error definitions.
21 * @note
22 ******************************************************************************
23 */
24
25#ifndef __M4PTO3GPP_ErrorCodes_H__
26#define __M4PTO3GPP_ErrorCodes_H__
27
28/**
29 *    OSAL basic types and errors */
30#include "M4OSA_Types.h"
31#include "M4OSA_Error.h"
32
33/**
34 *    OSAL core ID definitions */
35#include "M4OSA_CoreID.h"
36
37
38/**
39 *    The output video format parameter is undefined */
40#define ERR_PTO3GPP_UNDEFINED_OUTPUT_VIDEO_FORMAT    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0001 )
41/**
42 *    The output video frame size parameter is undefined */
43#define ERR_PTO3GPP_UNDEFINED_OUTPUT_VIDEO_FRAME_SIZE        \
44    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0002 )
45/**
46 *    The output video bit-rate parameter is undefined */
47#define ERR_PTO3GPP_UNDEFINED_OUTPUT_VIDEO_BITRATE           \
48    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0003 )
49/**
50 *    The output video frame size parameter is incompatible with H263 encoding */
51#define ERR_PTO3GPP_INVALID_VIDEO_FRAME_SIZE_FOR_H263        \
52    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0004 )
53/**
54 *    The file size is undefined */
55#define ERR_PTO3GPP_INVALID_FILE_SIZE                M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0005 )
56/**
57 * The input audio file contains a track format not handled by PTO3GPP */
58#define ERR_PTO3GPP_UNHANDLED_AUDIO_TRACK_INPUT_FILE         \
59    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0006 )
60/**
61 *    The output video format parameter is undefined */
62#define ERR_PTO3GPP_UNDEFINED_OUTPUT_AUDIO_FORMAT    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0007 )
63
64/**
65 *    The AMR decoder initialization failed */
66#define ERR_PTO3GPP_AMR_DECODER_INIT_ERROR           M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0020 )
67/**
68 *    The AMR decoder failed */
69#define ERR_PTO3GPP_AMR_DECODE_ERROR                 M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0021 )
70/**
71 *    The AMR decoder cleanup failed */
72#define ERR_PTO3GPP_AMR_DECODER_DESTROY_ERROR        M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0022 )
73
74/**
75 *    The video encoder initialization failed */
76#define ERR_PTO3GPP_VIDEO_ENCODER_INIT_ERROR         M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0023 )
77/**
78 *    The video encoder decoding failed */
79#define ERR_PTO3GPP_VIDEO_ENCODE_ERROR               M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0024 )
80/**
81 *    The video encoder cleanup failed */
82#define ERR_PTO3GPP_VIDEO_ENCODER_DESTROY_ERROR      M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0025 )
83
84/**
85 *    The output file size parameter is undefined */
86#define ERR_PTO3GPP_UNDEFINED_OUTPUT_FILE_SIZE       M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0026 )
87
88/**
89 *    The Encoding is completed */
90#define M4PTO3GPP_WAR_END_OF_PROCESSING              M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0027 )
91
92/**
93 *    The Encoding is completed */
94#define M4PTO3GPP_WAR_LAST_PICTURE                   M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0028 )
95
96/**
97 *    The output audio padding parameter is undefined */
98#define ERR_PTO3GPP_UNDEFINED_AUDIO_PADDING          M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0029 )
99
100/**
101 * The video encoder encountered an Acces Unit error: very probably a file write error */
102#define ERR_PTO3GPP_ENCODER_ACCES_UNIT_ERROR         M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x002A )
103
104#endif /* __M4PTO3GPP_ErrorCodes_H__ */
105
106