summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/vss/inc/M4PTO3GPP_ErrorCodes.h
blob: 57bd54ffec816ca4ba94722cc1feb8530e334f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
 * Copyright (C) 2011 The Android Open Source Project
 *
 * 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.
 */
/**
 ******************************************************************************
 * @file    M4PTO3GPP_ErrorCodes.h
 * @brief    Picture to 3gpp Service error definitions.
 * @note
 ******************************************************************************
 */

#ifndef __M4PTO3GPP_ErrorCodes_H__
#define __M4PTO3GPP_ErrorCodes_H__

/**
 *    OSAL basic types and errors */
#include "M4OSA_Types.h"
#include "M4OSA_Error.h"

/**
 *    OSAL core ID definitions */
#include "M4OSA_CoreID.h"


/**
 *    The output video format parameter is undefined */
#define ERR_PTO3GPP_UNDEFINED_OUTPUT_VIDEO_FORMAT    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0001 )
/**
 *    The output video frame size parameter is undefined */
#define ERR_PTO3GPP_UNDEFINED_OUTPUT_VIDEO_FRAME_SIZE        \
    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0002 )
/**
 *    The output video bit-rate parameter is undefined */
#define ERR_PTO3GPP_UNDEFINED_OUTPUT_VIDEO_BITRATE           \
    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0003 )
/**
 *    The output video frame size parameter is incompatible with H263 encoding */
#define ERR_PTO3GPP_INVALID_VIDEO_FRAME_SIZE_FOR_H263        \
    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0004 )
/**
 *    The file size is undefined */
#define ERR_PTO3GPP_INVALID_FILE_SIZE                M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0005 )
/**
 * The input audio file contains a track format not handled by PTO3GPP */
#define ERR_PTO3GPP_UNHANDLED_AUDIO_TRACK_INPUT_FILE         \
    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0006 )
/**
 *    The output video format parameter is undefined */
#define ERR_PTO3GPP_UNDEFINED_OUTPUT_AUDIO_FORMAT    M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0007 )

/**
 *    The AMR decoder initialization failed */
#define ERR_PTO3GPP_AMR_DECODER_INIT_ERROR           M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0020 )
/**
 *    The AMR decoder failed */
#define ERR_PTO3GPP_AMR_DECODE_ERROR                 M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0021 )
/**
 *    The AMR decoder cleanup failed */
#define ERR_PTO3GPP_AMR_DECODER_DESTROY_ERROR        M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0022 )

/**
 *    The video encoder initialization failed */
#define ERR_PTO3GPP_VIDEO_ENCODER_INIT_ERROR         M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0023 )
/**
 *    The video encoder decoding failed */
#define ERR_PTO3GPP_VIDEO_ENCODE_ERROR               M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0024 )
/**
 *    The video encoder cleanup failed */
#define ERR_PTO3GPP_VIDEO_ENCODER_DESTROY_ERROR      M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0025 )

/**
 *    The output file size parameter is undefined */
#define ERR_PTO3GPP_UNDEFINED_OUTPUT_FILE_SIZE       M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0026 )

/**
 *    The Encoding is completed */
#define M4PTO3GPP_WAR_END_OF_PROCESSING              M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0027 )

/**
 *    The Encoding is completed */
#define M4PTO3GPP_WAR_LAST_PICTURE                   M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0028 )

/**
 *    The output audio padding parameter is undefined */
#define ERR_PTO3GPP_UNDEFINED_AUDIO_PADDING          M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x0029 )

/**
 * The video encoder encountered an Acces Unit error: very probably a file write error */
#define ERR_PTO3GPP_ENCODER_ACCES_UNIT_ERROR         M4OSA_ERR_CREATE( M4_ERR, M4PTO3GPP, 0x002A )

#endif /* __M4PTO3GPP_ErrorCodes_H__ */