Home | History | Annotate | Download | only in include
      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 PVMF_AMRFFPARSER_EVENTS_H_INCLUDED
     19 #define PVMF_AMRFFPARSER_EVENTS_H_INCLUDED
     20 
     21 /**
     22  UUID for PV AMR FF parser node error and information event type codes
     23  **/
     24 #define PVMFAMRParserNodeEventTypesUUID PVUuid(0x13f4c2f2,0x2c66,0x46ac,0x95,0x1d,0x7f,0x86,0xb7,0x58,0x14,0x67)
     25 
     26 /**
     27  * An enumeration of error types from PV AMR FF parser node
     28  **/
     29 typedef enum
     30 {
     31     /**
     32      When AMR FF reports error READ_BITRATE_MUTUAL_EXCLUSION_OBJECT_FAILED
     33     **/
     34     PVMFAMRFFParserErrBitRateMutualExclusionObjectFailed = 1024,
     35 
     36     /**
     37      When AMR FF reports error READ_BITRATE_RECORD_FAILED
     38     **/
     39     PVMFAMRFFParserErrBitRateRecordReadFailed,
     40 
     41     /**
     42      When AMR FF reports error READ_CODEC_ENTRY_FAILED
     43     **/
     44     PVMFAMRFFParserErrCodecEntryReadFailed,
     45 
     46     /**
     47      When AMR FF reports error READ_CODEC_LIST_OBJECT_FAILED
     48     **/
     49     PVMFAMRFFParserErrCodecListObjectReadFailed,
     50 
     51     /**
     52      When AMR FF reports error READ_CONTENT_DESCRIPTION_OBJECT_FAILED
     53     **/
     54     PVMFAMRFFParserErrContentDescriptionObjectReadFailed,
     55 
     56     /**
     57      When AMR FF reports error READ_CONTENT_DESCRIPTOR_FAILED
     58     **/
     59     PVMFAMRFFParserErrContentDescriptorReadFailed,
     60 
     61     /**
     62      When AMR FF reports error READ_DATA_OBJECT_FAILED
     63     **/
     64     PVMFAMRFFParserErrDataObjectReadFailed,
     65 
     66     /**
     67      When AMR FF reports error READ_DATA_PACKET_FAILED
     68     **/
     69     PVMFAMRFFParserErrDataPacketReadFailed,
     70 
     71     /**
     72      When AMR FF reports error INCORRECT_ERROR_CORRECTION_DATA_TYPE
     73     **/
     74     PVMFAMRFFParserErrIncorrectErrorCorrectionDataType,
     75 
     76     /**
     77      When AMR FF reports error OPAQUE_DATA_NOT_SUPPORTED
     78     **/
     79     PVMFAMRFFParserErrOpaqueDataNotSupported,
     80 
     81     /**
     82      When AMR FF reports error READ_DATA_PACKET_PAYLOAD_FAILED
     83     **/
     84     PVMFAMRFFParserErrDataPacketPayloadReadFailed,
     85 
     86     /**
     87      When AMR FF reports error ZERO_OR_NEGATIVE_SIZE
     88     **/
     89     PVMFAMRFFParserErrZeroOrNegativeSize,
     90 
     91     /**
     92      When AMR FF reports error READ_ERROR_CORRECTION_OBJECT_FAILED
     93     **/
     94     PVMFAMRFFParserErrErrorCorrectionObjectReadFailed,
     95 
     96     /**
     97      When AMR FF reports error READ_EXTENDED_CONTENT_DESCRIPTION_OBJECT_FAILED
     98     **/
     99     PVMFAMRFFParserErrExtendedContentDescriptionObjectReadFailed,
    100 
    101     /**
    102      When AMR FF reports error READ_FILE_PROPERTIES_OBJECT_FAILED
    103     **/
    104     PVMFAMRFFParserErrFilePropertiesObjectReadFailed,
    105 
    106     /**
    107      When AMR FF reports error INVALID_FILE_PROPERTIES_OBJECT_SIZE
    108     **/
    109     PVMFAMRFFParserErrInvalidFilePropertiesObjectSize,
    110 
    111     /**
    112      When AMR FF reports error INVALID_DATA_PACKET_COUNT
    113     **/
    114     PVMFAMRFFParserErrInvalidDataPacketCount,
    115 
    116     /**
    117      When AMR FF reports error INVALID_PACKET_SIZE
    118     **/
    119     PVMFAMRFFParserErrInvalidDataPacketSize,
    120 
    121     /**
    122      When AMR FF reports error READ_HEADER_EXTENSION_OBJECT_FAILED
    123     **/
    124     PVMFAMRFFParserErrHeaderExtensionObjectReadFailed,
    125 
    126     /**
    127      When AMR FF reports error RES_VAL_IN_HEADER_EXTENSION_OBJ_INCORRECT
    128     **/
    129     PVMFAMRFFParserErrReservedValueInHeaderExtensionObjectIncorrect,
    130 
    131     /**
    132      When AMR FF reports error READ_HEADER_OBJECT_FAILED
    133     **/
    134     PVMFAMRFFParserErrHeaderObjectReadFailed,
    135 
    136     /**
    137      When AMR FF reports error MANDATORY_HEADER_OBJECTS_MISSING
    138     **/
    139     PVMFAMRFFParserErrMandatoryHeaderObjectsMissing,
    140 
    141     /**
    142      When AMR FF reports error NO_STREAM_OBJECTS_IN_FILE
    143     **/
    144     PVMFAMRFFParserErrNoStreamObjectsInFile,
    145 
    146     /**
    147      When AMR FF reports error RES_VALUE_IN_HDR_OBJECT_INCORRECT
    148     **/
    149     PVMFAMRFFParserErrReservedValueInHeaderObjectIncorrect,
    150 
    151     /**
    152      When AMR FF reports error DUPLICATE_OBJECTS
    153     **/
    154     PVMFAMRFFParserErrDuplicateObjects,
    155 
    156     /**
    157      When AMR FF reports error ZERO_OR_NEGATIVE_OBJECT_SIZE
    158     **/
    159     PVMFAMRFFParserErrZeroOrNegativeObjectSize,
    160 
    161     /**
    162      When AMR FF reports error READ_SCRIPT_COMMAND_OBJECT_FAILED
    163     **/
    164     PVMFAMRFFParserErrScriptCommandObjectReadFailed,
    165 
    166     /**
    167      When AMR FF reports error READ_PADDING_OBJECT_FAILED
    168     **/
    169     PVMFAMRFFParserErrPaddingObjectReadFailed,
    170 
    171     /**
    172      When AMR FF reports error READ_MARKER_FAILED
    173     **/
    174     PVMFAMRFFParserErrMarkerReadFailed,
    175 
    176     /**
    177      When AMR FF reports error READ_MARKER_OBJECT_FAILED
    178     **/
    179     PVMFAMRFFParserErrMarkerObjectReadFailed,
    180 
    181     /**
    182      When AMR FF reports error READ_STREAM_BITRATE_PROPERTIES_OBJECT_FAILED
    183     **/
    184     PVMFAMRFFParserErrStreamBitRatePropertiesObjectReadFailed,
    185 
    186     /**
    187      When AMR FF reports error READ_STREAM_PROPERTIES_OBJECT_FAILED
    188     **/
    189     PVMFAMRFFParserErrStreamPropertiesObjectReadFailed,
    190 
    191     /**
    192      When AMR FF reports error INVALID_STREAM_PROPERTIES_OBJECT_SIZE
    193     **/
    194     PVMFAMRFFParserErrInvalidStreamPropertiesObjectSize,
    195 
    196     /**
    197      When AMR FF reports error INVALID_STREAM_NUMBER
    198     **/
    199     PVMFAMRFFParserErrInvalidStreamNumber,
    200 
    201     /**
    202      When AMR FF reports error READ_SIMPLE_INDEX_OBJECT_FAILED
    203     **/
    204     PVMFAMRFFParserErrSimpleIndexObjectReadFailed,
    205 
    206     /**
    207      When AMR FF reports error READ_INDEX_ENTRY_FAILED
    208     **/
    209     PVMFAMRFFParserErrIndexEntryReadFailed,
    210 
    211     /**
    212      When AMR FF reports error NO_MEDIA_STREAMS
    213     **/
    214     PVMFAMRFFParserErrNoMediaStreams,
    215 
    216     /**
    217      When AMR FF reports error READ_UNKNOWN_OBJECT
    218     **/
    219     PVMFAMRFFParserErrReadUnknownObject,
    220 
    221     /**
    222      When AMR FF reports error ASF_FILE_OPEN_FAILED
    223     **/
    224     PVMFAMRFFParserErrFileOpenFailed,
    225 
    226     /**
    227      When AMR FF reports error ASF_SAMPLE_INCOMPLETE
    228     **/
    229     PVMFAMRFFParserErrIncompleteASFSample,
    230 
    231     /**
    232      When AMR FF reports error PARSE_TYPE_SPECIFIC_DATA_FAILED
    233     **/
    234     PVMFAMRFFParserErrParseTypeSpecificDataFailed,
    235 
    236     /**
    237      When AMR FF reports error END_OF_MEDIA_PACKETS
    238     **/
    239     PVMFAMRFFParserErrEndOfMediaPackets,
    240 
    241     /**
    242      When AMR FF reports error READ_CONTENT_ENCRYPTION_OBJECT_FAILED
    243     **/
    244     PVMFAMRFFParserErrContentEncryptionObjectReadFailed,
    245 
    246     /**
    247      When AMR FF reports error READ_EXTENDED_CONTENT_ENCRYPTION_OBJECT_FAILED
    248     **/
    249     PVMFAMRFFParserErrExtendedContentEncryptionObjectReadFailed,
    250 
    251     /**
    252      When AMR FF reports error READ_INDEX_SPECIFIER_FAILED
    253     **/
    254     PVMFAMRFFParserErrIndexSpecifierReadFailed,
    255 
    256     /**
    257      When AMR FF reports error READ_INDEX_BLOCK_FAILED
    258     **/
    259     PVMFAMRFFParserErrIndexBlockReadFailed,
    260 
    261     /**
    262      When AMR FF reports error READ_INDEX_OBJECT_FAILED
    263     **/
    264     PVMFAMRFFParserErrIndexObjectReadFailed,
    265 
    266     PVMFAMRFFParserErrUnableToOpenFile,
    267     PVMFAMRFFParserErrUnableToRecognizeFile,
    268     PVMFAMRFFParserErrUnableToCreateASFFileClass,
    269     PVMFAMRFFParserErrTrackMediaMsgAllocatorCreationFailed,
    270     PVMFAMRFFParserErrUnableToPopulateTrackInfoList,
    271     PVMFAMRFFParserErrInitMetaDataFailed,
    272 
    273     /**
    274      Placeholder for the last PV AMR FF parser error event
    275      **/
    276     PVMFAMRFFParserErrLast = 8191
    277 } PVMFAMRFFParserErrorEventType;
    278 
    279 /**
    280  * An enumeration of informational event types from PV ASF FF parser node
    281  **/
    282 typedef enum
    283 {
    284     /**
    285      Placeholder for the last PV ASF FF parser informational event
    286      **/
    287     PVMFAMRFFParserInfoLast = 10000
    288 
    289 } PVMFAMRFFParserInformationalEventType;
    290 
    291 #endif // PVMF_ASFFFPARSER_EVENTS_H_INCLUDED
    292 
    293 
    294