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   M4OSA_CoreID.h
19 * @brief  defines the uniques component identifiers used for memory management
20 *         and optionID mechanism
21 * @note
22 ************************************************************************
23*/
24#ifndef __M4OSA_COREID_H__
25#define __M4OSA_COREID_H__
26
27/* CoreId are defined on 14 bits */
28/* we start from 0x0100, lower values are reserved for osal core components */
29
30/* reader shells*/
31#define M4READER_COMMON     0x0100
32#define M4READER_AVI        0x0101
33#define M4READER_AMR        0x0102
34#define M4READER_3GP        0x0103
35#define M4READER_NET        0x0104
36#define M4READER_3GP_HTTP   0x0105
37#define M4READER_MP3        0x0106
38#define M4READER_WAV        0x0107
39#define M4READER_MIDI       0x0108
40#define M4READER_ASF        0x0109
41#define M4READER_REAL        0x010A
42#define M4READER_AAC        0x010B
43#define M4READER_FLEX        0x010C
44#define M4READER_BBA        0x010D
45#define M4READER_SYNTHESIS_AUDIO    0x010E
46#define M4READER_JPEG        0x010F
47
48
49/* writer shells*/
50#define M4WRITER_COMMON     0x0110
51#define M4WRITER_AVI        0x0111
52#define M4WRITER_AMR        0x0112
53#define M4WRITER_3GP        0x0113
54#define M4WRITER_JPEG        0x0116
55#define M4WRITER_MP3        0x0117
56
57/* decoder shells */
58#define M4DECODER_COMMON    0x0120
59#define M4DECODER_JPEG      0x0121
60#define M4DECODER_MPEG4     0x0122
61#define M4DECODER_AUDIO     0x0123
62#define M4DECODER_AVC       0x0124
63#define M4DECODER_MIDI      0x0125
64#define M4DECODER_WMA        0x0126
65#define M4DECODER_WMV        0x0127
66#define M4DECODER_RMV        0x0128
67#define M4DECODER_RMA        0x0129
68#define M4DECODER_AAC       0x012A
69#define M4DECODER_BEATBREW  0x012B
70#define M4DECODER_EXTERNAL  0x012C
71
72/* encoder shells */
73#define M4ENCODER_COMMON    0x0130
74#define M4ENCODER_JPEG      0x0131
75#define M4ENCODER_MPEG4     0x0132
76#define M4ENCODER_AUDIO     0x0133
77#define M4ENCODER_VID_NULL  0x0134
78#define M4ENCODER_MJPEG        0x0135
79#define M4ENCODER_MP3        0x0136
80#define M4ENCODER_H264        0x0137
81#define M4ENCODER_AAC        0x0138
82#define M4ENCODER_AMRNB        0x0139
83#define M4ENCODER_AUD_NULL  0x013A
84#define M4ENCODER_EXTERNAL  0x013B
85
86/* cores */
87#define M4JPG_DECODER       0x0140
88#define M4JPG_ENCODER       0x0141
89
90#define M4MP4_DECODER       0x0142
91#define M4MP4_ENCODER       0x0143
92
93#define M4AVI_COMMON        0x0144
94#define M4AVI_READER        0x0145
95#define M4AVI_WRITER        0x0146
96
97#define M4HTTP_ENGINE       0x0147
98
99#define M4OSA_TMPFILE       0x0148
100#define M4TOOL_TIMER        0x0149
101
102#define M4AMR_READER        0x014A
103
104#define M4MP3_READER        0x014B
105
106#define M4WAV_READER        0x014C
107#define M4WAV_WRITER        0x014D
108#define M4WAV_COMMON        0x014E
109
110#define M4ADTS_READER        0x014F
111#define M4ADIF_READER        0x016A
112
113#define M4SPS               0x0150
114#define M4EXIF_DECODER      0x0151
115#define M4EXIF_ENCODER      0x0152
116#define M4GIF_DECODER       0x0153
117#define M4GIF_ENCODER       0x0154
118#define M4PNG_DECODER       0x0155
119#define M4PNG_ENCODER       0x0156
120#define M4WBMP_DECODER      0x0157
121#define M4WBMP_ENCODER      0x0158
122
123#define M4AMR_WRITER        0x0159    /**< no room to put it along M4AMR_READER */
124
125
126#define M4AVC_DECODER       0x015A
127#define M4AVC_ENCODER       0x015B
128
129#define M4ASF_READER        0x015C
130#define M4WMDRM_AGENT        0x015D
131#define M4MIDI_READER        0x0162    /**< no room before the presenters */
132#define M4RM_READER         0x163
133#define M4RMV_DECODER        0x164
134#define M4RMA_DECODER        0x165
135
136#define M4TOOL_XML            0x0166
137#define M4TOOL_EFR            0x0167    /**< Decryption module for Video Artist */
138#define M4IAL_FTN            0x0168    /* FTN implementation of the IAL */
139#define M4FTN                0x0169    /* FTN library */
140
141/* presenter */
142#define M4PRESENTER_AUDIO   0x0160
143#define M4PRESENTER_VIDEO   0x0161
144
145/* high level interfaces (vps, etc..)*/
146#define M4VPS               0x0170
147#define M4VTS               0x0171
148#define M4VXS               0x0172
149#define M4CALLBACK          0x0173
150#define M4VES               0x0174
151#define M4PREPROCESS_VIDEO  0x0175
152#define M4GRAB_AUDIO        0x0176
153#define M4GRAB_VIDEO        0x0177
154#define M4VSSAVI            0x0178
155#define M4VSS3GPP           0x0179
156#define M4PTO3GPP           0x017A
157#define M4PVX_PARSER        0x017B
158#define M4VCS                0x017C
159#define M4MCS                0x017D
160#define M4MNMC                0x0180    /**< mnm controller */
161#define M4TTEXT_PARSER      0x0181    /**< timed text */
162#define M4MM                0x0182    /**< Music manager */
163#define M4MDP                0x0183    /**< Metadata parser */
164#define M4MMSQLCORE            0x0184
165#define M4VPSIL                0x0185
166#define M4FILEIL            0x0186 /* IL file Interface */
167#define M4MU                0x0187
168#define M4VEE                0x0188  /**< Video effect engine */
169#define M4VA                0x0189 /* VideoArtist */
170#define M4JTS                0x018A
171#define M4JTSIL                0x018B
172#define M4AIR                0x018C  /**< AIR */
173#define M4SPE                0x018D  /**< Still picture editor */
174#define M4VS                0x018E    /**< Video Studio (xVSS) */
175#define M4VESIL                0x018F    /**< VES il */
176#define M4ID3                0x0190    /**< ID3 Tag Module */
177#define M4SC                0x0191    /**< Media Scanner */
178#define M4TG                0x0192  /**< Thumbnail Generator*/
179#define M4TS                0x0193    /**< Thumbnail storage */
180#define M4MB                0x0194    /**< Media browser */
181
182/* high level application (test or client app) */
183#define M4APPLI             0x0200
184#define M4VA_APPLI            0x0201    /**< Video Artist test application */
185
186/* external components (HW video codecs, etc.) */
187#define M4VD_EXTERNAL        0x0300
188#define M4VE_EXTERNAL        0x0301
189
190
191/* priority to combine with module ids */
192#define M4HIGH_PRIORITY     0xC000
193#define M4MEDIUM_PRIORITY   0x8000
194#define M4LOW_PRIORITY      0x4000
195#define M4DEFAULT_PRIORITY  0x0000
196
197
198#endif /*__M4OSA_COREID_H__*/
199
200