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