• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
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
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 #ifndef PV_OMX_CONFIG_PARSER_H_INCLUDED
19 #define PV_OMX_CONFIG_PARSER_H_INCLUDED
20 
21 #ifndef PV_OMXDEFS_H_INCLUDED
22 #include "pv_omxdefs.h"
23 #endif
24 
25 #ifndef PV_OMX_QUEUE_H_INCLUDED
26 #include "pv_omx_queue.h"
27 #endif
28 
29 #ifndef OMX_Types_h
30 #include "OMX_Types.h"
31 #endif
32 
33 #ifndef OSCL_BASE_INCLUDED_H
34 #include "oscl_base.h"
35 #endif
36 
37 #ifndef OMX_Core_h
38 #include "OMX_Core.h"
39 #endif
40 
41 #ifndef PV_AUDIO_CONFIG_PARSER_H
42 #include "pv_audio_config_parser.h"
43 #endif
44 
45 #ifndef PV_VIDEO_CONFIG_PARSER_H
46 #include "pv_video_config_parser.h"
47 #endif
48 
49 
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif
54     OSCL_IMPORT_REF OMX_BOOL OMXConfigParser(
55         OMX_PTR aInputParameters,
56         OMX_PTR aOutputParameters);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 
63 typedef struct
64 {
65     OMX_U8* inPtr;             //pointer to codec configuration header
66     OMX_U32 inBytes;           //length of codec configuration header
67     OMX_STRING cComponentRole; //OMX component codec type
68     OMX_STRING cComponentName;  //OMX component name
69 } OMXConfigParserInputs;
70 
71 typedef struct
72 {
73     OMX_U16 Channels;
74     OMX_U16 BitsPerSample;
75     OMX_U32 SamplesPerSec;
76 } AudioOMXConfigParserOutputs;
77 
78 typedef struct
79 {
80     OMX_U32 width;
81     OMX_U32 height;
82     OMX_U32 profile;
83     OMX_U32 level;
84 } VideoOMXConfigParserOutputs;
85 
86 #endif
87 
88