Home | History | Annotate | Download | only in inc
      1 /*
      2  * Copyright (c) 2010, Texas Instruments Incorporated
      3  * All rights reserved.
      4  *
      5  * Redistribution and use in source and binary forms, with or without
      6  * modification, are permitted provided that the following conditions
      7  * are met:
      8  *
      9  * *  Redistributions of source code must retain the above copyright
     10  *    notice, this list of conditions and the following disclaimer.
     11  *
     12  * *  Redistributions in binary form must reproduce the above copyright
     13  *    notice, this list of conditions and the following disclaimer in the
     14  *    documentation and/or other materials provided with the distribution.
     15  *
     16  * *  Neither the name of Texas Instruments Incorporated nor the names of
     17  *    its contributors may be used to endorse or promote products derived
     18  *    from this software without specific prior written permission.
     19  *
     20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
     22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
     24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
     30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     31  */
     32 
     33 /*
     34  *  @file  omx_ti_core.h
     35  *         This file contains the vendor(TI) specific core extensions
     36  *
     37  *  @path domx/system/omx_core/inc
     38  *
     39  *  @rev 1.0
     40  */
     41 
     42 /*==============================================================
     43  *! Revision History
     44  *! ============================
     45  *! 19-Jul-2010 admonga (at) ti.com : Initial version
     46  *================================================================*/
     47 
     48 #ifndef _OMX_TI_CORE_H_
     49 #define _OMX_TI_CORE_H_
     50 
     51 #ifdef __cplusplus
     52 extern "C" {
     53 #endif /* __cplusplus */
     54 
     55 /******************************************************************
     56     INCLUDE FILES
     57  ******************************************************************/
     58 #include <OMX_Types.h>
     59 #include <OMX_Core.h>
     60 
     61 /*******************************************************************
     62  * EXTERNAL REFERENCE NOTE: only use if not found in header file
     63  *******************************************************************/
     64 /*----------         function prototypes      ------------------- */
     65 /*----------         data declarations        ------------------- */
     66 /*******************************************************************
     67  * PUBLIC DECLARATIONS: defined here, used elsewhere
     68  *******************************************************************/
     69 /*----------         function prototypes      ------------------- */
     70 /*----------         data declarations        ------------------- */
     71 
     72 
     73 
     74 typedef enum OMX_TI_ERRORTYPE
     75 {
     76     /* Vendor specific area for storing TI custom extended events */
     77 
     78     /*Control attribute is pending - Dio_Dequeue will not work until attribute
     79       is retreived*/
     80     OMX_TI_WarningAttributePending = (OMX_S32)((OMX_ERRORTYPE)OMX_ErrorVendorStartUnused + 1),
     81     /*Attribute buffer size is insufficient - reallocate the attribute buffer*/
     82     OMX_TI_WarningInsufficientAttributeSize,
     83     /*EOS buffer has been received*/
     84     OMX_TI_WarningEosReceived,
     85     /*Port enable is called on an already enabled port*/
     86     OMX_TI_ErrorPortIsAlreadyEnabled,
     87     /*Port disable is called on an already disabled port*/
     88     OMX_TI_ErrorPortIsAlreadyDisabled
     89 } OMX_TI_ERRORTYPE;
     90 
     91 
     92 
     93 typedef enum OMX_TI_EVENTTYPE
     94 {
     95     /* Vendor specific area for storing indices */
     96     /*Reference count for the buffer has changed. In the callback, nData1 will
     97       pBufferHeader, nData2 will be present count*/
     98     OMX_TI_EventBufferRefCount = (OMX_S32)((OMX_EVENTTYPE)OMX_EventVendorStartUnused + 1)
     99 }OMX_TI_EVENTTYPE;
    100 
    101 
    102 #ifdef __cplusplus
    103 }
    104 #endif /* __cplusplus */
    105 
    106 #endif /* _OMX_TI_INDEX_H_ */
    107 
    108