Home | History | Annotate | Download | only in inc
      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 TI_OMX_CONFIG_PARSER_H_INCLUDED
     19 #define TI_OMX_CONFIG_PARSER_H_INCLUDED
     20 
     21 #ifdef __cplusplus
     22 extern "C"
     23 {
     24     OSCL_IMPORT_REF OMX_BOOL TIOMXConfigParser(
     25         OMX_PTR aInputParameters,
     26         OMX_PTR aOutputParameters);
     27 
     28 }
     29 #endif
     30 
     31 
     32 typedef struct
     33 {
     34     OMX_U8* inPtr;             //pointer to codec configuration header
     35     OMX_U32 inBytes;           //length of codec configuration header
     36     OMX_STRING cComponentRole; //OMX component codec type
     37     OMX_STRING cComponentName;  //OMX component name
     38 } OMXConfigParserInputs;
     39 
     40 typedef struct
     41 {
     42     OMX_U16 Channels;
     43     OMX_U16 BitsPerSample;
     44     OMX_U32 SamplesPerSec;
     45 } AudioOMXConfigParserOutputs;
     46 
     47 typedef struct
     48 {
     49     OMX_U32 width;
     50     OMX_U32 height;
     51     OMX_U32 profile;
     52     OMX_U32 level;
     53 } VideoOMXConfigParserOutputs;
     54 
     55 #endif
     56 
     57