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_MP4FFPARSER_EVENTS_H_INCLUDED 19 #define PVMF_MP4FFPARSER_EVENTS_H_INCLUDED 20 21 /** 22 UUID for PV MP4 FF parser node error and information event type codes 23 **/ 24 #define PVMFMP4FFParserEventTypesUUID PVUuid(0xf86cd94a,0x3b18,0x4597,0x9f,0x54,0xb8,0x0b,0x29,0x4c,0xbb,0x12) 25 26 /** 27 * An enumeration of error types from PV MP4 FF parser node 28 **/ 29 typedef enum 30 { 31 /** 32 When MP4 FF reports error READ_USER_DATA_ATOM_FAILED 33 **/ 34 PVMFMP4FFParserErrUserDataAtomReadFailed = 1024, 35 36 /** 37 When MP4 FF reports error READ_MEDIA_DATA_ATOM_FAILED 38 **/ 39 PVMFMP4FFParserErrMediaDataAtomReadFailed, 40 41 /** 42 When MP4 FF reports error READ_MOVIE_ATOM_FAILED 43 **/ 44 PVMFMP4FFParserErrMovieAtomReadFailed, 45 46 /** 47 When MP4 FF reports error READ_MOVIE_HEADER_ATOM_FAILED 48 **/ 49 PVMFMP4FFParserErrMovieHeaderAtomReadFailed, 50 51 /** 52 When MP4 FF reports error READ_TRACK_ATOM_FAILED 53 **/ 54 PVMFMP4FFParserErrTrackAtomReadFailed, 55 56 /** 57 When MP4 FF reports error READ_TRACK_HEADER_ATOM_FAILED 58 **/ 59 PVMFMP4FFParserErrTrackHeaderAtomReadFailed, 60 61 /** 62 When MP4 FF reports error READ_TRACK_REFERENCE_ATOM_FAILED 63 **/ 64 PVMFMP4FFParserErrTrackReferenceAtomReadFailed, 65 66 /** 67 When MP4 FF reports error READ_TRACK_REFERENCE_TYPE_ATOM_FAILED 68 **/ 69 PVMFMP4FFParserErrTrackReferenceTypeAtomReadFailed, 70 71 /** 72 When MP4 FF reports error READ_OBJECT_DESCRIPTOR_ATOM_FAILED 73 **/ 74 PVMFMP4FFParserErrObjectDescriptorAtomReadFailed, 75 76 /** 77 When MP4 FF reports error READ_INITIAL_OBJECT_DESCRIPTOR_FAILED 78 **/ 79 PVMFMP4FFParserErrInitialObjectDescriptorReadFailed, 80 81 /** 82 When MP4 FF reports error READ_OBJECT_DESCRIPTOR_FAILED 83 **/ 84 PVMFMP4FFParserErrObjectDescriptorReadFailed, 85 86 /** 87 When MP4 FF reports error READ_MEDIA_ATOM_FAILED 88 **/ 89 PVMFMP4FFParserErrMediaAtomReadFailed, 90 91 /** 92 When MP4 FF reports error READ_MEDIA_HEADER_ATOM_FAILED 93 **/ 94 PVMFMP4FFParserErrMediaHeaderAtomReadFailed, 95 96 /** 97 When MP4 FF reports error READ_HANDLER_ATOM_FAILED 98 **/ 99 PVMFMP4FFParserErrHandlerAtomReadFailed, 100 101 /** 102 When MP4 FF reports error READ_MEDIA_INFORMATION_ATOM_FAILED 103 **/ 104 PVMFMP4FFParserErrMediaInformationAtomReadFailed, 105 106 /** 107 When MP4 FF reports error READ_MEDIA_INFORMATION_HEADER_ATOM_FAILED 108 **/ 109 PVMFMP4FFParserErrMediaInformationHeaderAtomReadFailed, 110 111 /** 112 When MP4 FF reports error READ_VIDEO_MEDIA_HEADER_ATOM_FAILED 113 **/ 114 PVMFMP4FFParserErrVideoMediaHeaderAtomReadFailed, 115 116 /** 117 When MP4 FF reports error READ_SOUND_MEDIA_HEADER_ATOM_FAILED 118 **/ 119 PVMFMP4FFParserErrSoundMediaHeaderAtomReadFailed, 120 121 /** 122 When MP4 FF reports error READ_HINT_MEDIA_HEADER_ATOM_FAILED 123 **/ 124 PVMFMP4FFParserErrHintMediaHeaderAtomReadFailed, 125 126 /** 127 When MP4 FF reports error READ_MPEG4_MEDIA_HEADER_ATOM_FAILED 128 **/ 129 PVMFMP4FFParserErrMPEG4MediaHeaderAtomReadFailed, 130 131 /** 132 When MP4 FF reports error READ_DATA_INFORMATION_ATOM_FAILED 133 **/ 134 PVMFMP4FFParserErrDataInformationAtomReadFailed, 135 136 /** 137 When MP4 FF reports error READ_DATA_REFERENCE_ATOM_FAILED 138 **/ 139 PVMFMP4FFParserErrDataReferenceAtomReadFailed, 140 141 /** 142 When MP4 FF reports error READ_DATA_ENTRY_URL_ATOM_FAILED 143 **/ 144 PVMFMP4FFParserErrDataEntryURLAtomReadFailed, 145 146 /** 147 When MP4 FF reports error READ_DATA_ENTRY_URN_ATOM_FAILED 148 **/ 149 PVMFMP4FFParserErrDataEntryURNAtomReadFailed, 150 151 /** 152 When MP4 FF reports error READ_SAMPLE_TABLE_ATOM_FAILED 153 **/ 154 PVMFMP4FFParserErrSampleTableAtomReadFailed, 155 156 /** 157 When MP4 FF reports error READ_TIME_TO_SAMPLE_ATOM_FAILED 158 **/ 159 PVMFMP4FFParserErrTimeToSampleAtomReadFailed, 160 161 /** 162 When MP4 FF reports error READ_SAMPLE_DESCRIPTION_ATOM_FAILED 163 **/ 164 PVMFMP4FFParserErrSampleDescriptionAtomReadFailed, 165 166 /** 167 When MP4 FF reports error READ_SAMPLE_SIZE_ATOM_FAILED 168 **/ 169 PVMFMP4FFParserErrSampleSizeAtomReadFailed, 170 171 /** 172 When MP4 FF reports error READ_SAMPLE_TO_CHUNK_ATOM_FAILED 173 **/ 174 PVMFMP4FFParserErrSampleToChunkAtomReadFailed, 175 176 /** 177 When MP4 FF reports error READ_CHUNK_OFFSET_ATOM_FAILED 178 **/ 179 PVMFMP4FFParserErrChunkOffsetAtomReadFailed, 180 181 /** 182 When MP4 FF reports error READ_SYNC_SAMPLE_ATOM_FAILED 183 **/ 184 PVMFMP4FFParserErrSyncSampleAtomReadFailed, 185 186 /** 187 When MP4 FF reports error READ_SAMPLE_ENTRY_FAILED 188 **/ 189 PVMFMP4FFParserErrSampleEntryReadFailed, 190 191 /** 192 When MP4 FF reports error READ_AUDIO_SAMPLE_ENTRY_FAILED 193 **/ 194 PVMFMP4FFParserErrAudioSampleEntryReadFailed, 195 196 /** 197 When MP4 FF reports error READ_VISUAL_SAMPLE_ENTRY_FAILED 198 **/ 199 PVMFMP4FFParserErrVisualSampleEntryReadFailed, 200 201 /** 202 When MP4 FF reports error READ_HINT_SAMPLE_ENTRY_FAILED 203 **/ 204 PVMFMP4FFParserErrHintSampleEntryReadFailed, 205 206 /** 207 When MP4 FF reports error READ_MPEG_SAMPLE_ENTRY_FAILED 208 **/ 209 PVMFMP4FFParserErrMPEGSampleEntryReadFailed, 210 211 /** 212 When MP4 FF reports error READ_AUDIO_HINT_SAMPLE_FAILED 213 **/ 214 PVMFMP4FFParserErrAudioHintSampleReadFailed, 215 216 /** 217 When MP4 FF reports error READ_VIDEO_HINT_SAMPLE_FAILED 218 **/ 219 PVMFMP4FFParserErrVideoHintSampleReadFailed, 220 221 /** 222 When MP4 FF reports error READ_ESD_ATOM_FAILED 223 **/ 224 PVMFMP4FFParserErrESDAtomReadFailed, 225 226 /** 227 When MP4 FF reports error READ_ES_DESCRIPTOR_FAILED 228 **/ 229 PVMFMP4FFParserErrESDescriptorReadFailed, 230 231 /** 232 When MP4 FF reports error READ_SL_CONFIG_DESCRIPTOR_FAILED 233 **/ 234 PVMFMP4FFParserErrSLConfigDescriptorReadFailed, 235 236 /** 237 When MP4 FF reports error READ_DECODER_CONFIG_DESCRIPTOR_FAILED 238 **/ 239 PVMFMP4FFParserErrDecoderConfigDescriptorReadFailed, 240 241 /** 242 When MP4 FF reports error READ_DECODER_SPECIFIC_INFO_FAILED 243 **/ 244 PVMFMP4FFParserErrDecoderSpecificInfoReadFailed, 245 246 /** 247 When MP4 FF reports error READ_FILE_TYPE_ATOM_FAILED 248 **/ 249 PVMFMP4FFParserErrFileTypeAtomReadFailed, 250 251 /** 252 When MP4 FF reports error READ_PVTI_SESSION_INFO_FAILED 253 **/ 254 PVMFMP4FFParserErrPVTISessionInfoReadFailed, 255 256 /** 257 When MP4 FF reports error READ_PVTI_MEDIA_INFO_FAILED 258 **/ 259 PVMFMP4FFParserErrPVTIMediaInfoReadFailed, 260 261 /** 262 When MP4 FF reports error READ_CONTENT_VERSION_FAILED 263 **/ 264 PVMFMP4FFParserErrContentVersionReadFailed, 265 266 /** 267 When MP4 FF reports error READ_DOWNLOAD_ATOM_FAILED 268 **/ 269 PVMFMP4FFParserErrDownloadAtomReadFailed, 270 271 /** 272 When MP4 FF reports error READ_TRACK_INFO_ATOM_FAILED 273 **/ 274 PVMFMP4FFParserErrTrackInfoAtomReadFailed, 275 276 /** 277 When MP4 FF reports error READ_REQUIREMENTS_ATOM_FAILED 278 **/ 279 PVMFMP4FFParserErrRequirementsAtomReadFailed, 280 281 /** 282 When MP4 FF reports error READ_WMF_SET_MEDIA_ATOM_FAILED 283 **/ 284 PVMFMP4FFParserErrWMFSetMediaAtomReadFailed, 285 286 /** 287 When MP4 FF reports error READ_WMF_SET_SESSION_ATOM_FAILED 288 **/ 289 PVMFMP4FFParserErrWMFSetSessionAtomReadFailed, 290 291 /** 292 When MP4 FF reports error READ_PV_CONTENT_TYPE_ATOM_FAILED 293 **/ 294 PVMFMP4FFParserErrPVContentTypeAtomReadFailed, 295 296 /** 297 When MP4 FF reports error READ_PV_USER_DATA_ATOM_FAILED 298 **/ 299 PVMFMP4FFParserErrPVUserDataAtomReadFailed, 300 301 /** 302 When MP4 FF reports error READ_VIDEO_INFORMATION_ATOM_FAILED 303 **/ 304 PVMFMP4FFParserErrVideoInformationAtomReadFailed, 305 306 /** 307 When MP4 FF reports error READ_RANDOM_ACCESS_ATOM_FAILED 308 **/ 309 PVMFMP4FFParserErrRandomAccessAtomReadFailed, 310 311 /** 312 When MP4 FF reports error READ_AMR_SAMPLE_ENTRY_FAILED 313 **/ 314 PVMFMP4FFParserErrAMRSampleEntryReadFailed, 315 316 /** 317 When MP4 FF reports error READ_H263_SAMPLE_ENTRY_FAILED 318 **/ 319 PVMFMP4FFParserErrH263SampleEntryReadFailed, 320 321 /** 322 When MP4 FF reports error READ_UUID_ATOM_FAILED 323 **/ 324 PVMFMP4FFParserErrUUIDAtomReadFailed, 325 326 /** 327 When MP4 FF reports error READ_DRM_ATOM_FAILED 328 **/ 329 PVMFMP4FFParserErrDRMAtomReadFailed, 330 331 /** 332 When MP4 FF reports error READ_DCMD_ATOM_FAILED 333 **/ 334 PVMFMP4FFParserErrDCMDAtomReadFailed, 335 336 /** 337 When MP4 FF reports error READ_COPYRIGHT_ATOM_FAILED 338 **/ 339 PVMFMP4FFParserErrCopyrightAtomReadFailed, 340 341 /** 342 When MP4 FF reports error READ_FONT_TABLE_ATOM_FAILED 343 **/ 344 PVMFMP4FFParserErrFontTableAtomReadFailed, 345 346 /** 347 When MP4 FF reports error READ_FONT_RECORD_FAILED 348 **/ 349 PVMFMP4FFParserErrFontRecordReadFailed, 350 351 /** 352 When MP4 FF reports error READ_PV_ENTITY_TAG_ATOM_FAILED 353 **/ 354 PVMFMP4FFParserErrPVEntityTagAtomReadFailed, 355 356 /** 357 When MP4 FF reports error READ_EDIT_ATOM_FAILED 358 **/ 359 PVMFMP4FFParserErrEditAtomReadFailed, 360 361 /** 362 When MP4 FF reports error READ_EDITLIST_ATOM_FAILED 363 **/ 364 PVMFMP4FFParserErrEditlistAtomReadFailed, 365 366 /** 367 When MP4 FF reports error READ_UDTA_TITL_FAILED 368 **/ 369 PVMFMP4FFParserErrUDTATITLReadFailed, 370 371 /** 372 When MP4 FF reports error READ_UDTA_DSCP_FAILED 373 **/ 374 PVMFMP4FFParserErrUDTADSCPReadFailed, 375 376 /** 377 When MP4 FF reports error READ_UDTA_CPRT_FAILED 378 **/ 379 PVMFMP4FFParserErrUDTACPRTReadFailed, 380 381 /** 382 When MP4 FF reports error READ_UDTA_PERF_FAILED 383 **/ 384 PVMFMP4FFParserErrUDTAPERFReadFailed, 385 386 /** 387 When MP4 FF reports error READ_UDTA_AUTH_FAILED 388 **/ 389 PVMFMP4FFParserErrUDTAUTHReadFailed, 390 391 /** 392 When MP4 FF reports error READ_UDTA_GNRE_FAILED 393 **/ 394 PVMFMP4FFParserErrUDTAGNREReadFailed, 395 396 /** 397 When MP4 FF reports error READ_UDTA_RTNG_FAILED 398 **/ 399 PVMFMP4FFParserErrUDTARTNGReadFailed, 400 401 /** 402 When MP4 FF reports error READ_UDTA_CLSF_FAILED 403 **/ 404 PVMFMP4FFParserErrUDTACLSFReadFailed, 405 406 /** 407 When MP4 FF reports error READ_UDTA_KYWD_FAILED 408 **/ 409 PVMFMP4FFParserErrUDTAKYWDReadFailed, 410 411 /** 412 When MP4 FF reports error DUPLICATE_MOVIE_ATOMS 413 **/ 414 PVMFMP4FFParserErrDuplicateMovieAtoms, 415 416 /** 417 When MP4 FF reports error NO_MOVIE_ATOM_PRESENT 418 **/ 419 PVMFMP4FFParserErrNoMovieAtomPresent, 420 421 /** 422 When MP4 FF reports error DUPLICATE_OBJECT_DESCRIPTORS 423 **/ 424 PVMFMP4FFParserErrDuplicateObjectDescriptors, 425 426 /** 427 When MP4 FF reports error NO_OBJECT_DESCRIPTOR_ATOM_PRESENT 428 **/ 429 PVMFMP4FFParserErrNoObjectDescriptorAtomPresent, 430 431 /** 432 When MP4 FF reports error DUPLICATE_MOVIE_HEADERS 433 **/ 434 PVMFMP4FFParserErrDuplicateMovieHeaders, 435 436 /** 437 When MP4 FF reports error NO_MOVIE_HEADER_ATOM_PRESENT 438 **/ 439 PVMFMP4FFParserErrNoMovieHeaderAtomPresent, 440 441 /** 442 When MP4 FF reports error DUPLICATE_TRACK_REFERENCE_ATOMS 443 **/ 444 PVMFMP4FFParserErrDuplicateTrackReferenceAtoms, 445 446 /** 447 When MP4 FF reports error DUPLICATE_TRACK_HEADER_ATOMS 448 **/ 449 PVMFMP4FFParserErrDuplicateTrackHeaderAtoms, 450 451 /** 452 When MP4 FF reports error NO_TRACK_HEADER_ATOM_PRESENT 453 **/ 454 PVMFMP4FFParserErrNoTrackHeaderAtomPresent, 455 456 /** 457 When MP4 FF reports error DUPLICATE_MEDIA_ATOMS 458 **/ 459 PVMFMP4FFParserErrDuplicateMediaAtoms, 460 461 /** 462 When MP4 FF reports error NO_MEDIA_ATOM_PRESENT 463 **/ 464 PVMFMP4FFParserErrNoMediaAtomPresent, 465 466 /** 467 When MP4 FF reports error READ_UNKOWN_ATOM 468 **/ 469 PVMFMP4FFParserErrUnknownAtom, 470 471 /** 472 When MP4 FF reports error NON_PV_CONTENT 473 **/ 474 PVMFMP4FFParserErrNonPVContent, 475 476 /** 477 When MP4 FF reports error FILE_NOT_STREAMABLE 478 **/ 479 PVMFMP4FFParserErrFileNotStreamable, 480 481 /** 482 When MP4 FF reports error INVALID_SAMPLE_SIZE 483 **/ 484 PVMFMP4FFParserErrInvalidSampleSize, 485 486 /** 487 When MP4 FF reports error INVALID_CHUNK_OFFSET 488 **/ 489 PVMFMP4FFParserErrInvalidChunkOffset, 490 491 /** 492 When MP4 FF reports error MEMORY_ALLOCATION_FAILED 493 **/ 494 PVMFMP4FFParserErrMemoryAllocationFailed, 495 496 /** 497 When MP4 FF reports error ZERO_OR_NEGATIVE_ATOM_SIZE 498 **/ 499 PVMFMP4FFParserErrZeroOrNegativeAtomSize, 500 501 /** 502 When MP4 FF reports error NO_MEDIA_TRACKS_IN_FILE 503 **/ 504 PVMFMP4FFParserErrNoMediaTracksInFile, 505 506 /** 507 When MP4 FF reports error NO_META_DATA_FOR_MEDIA_TRACKS 508 **/ 509 PVMFMP4FFParserErrNoMetadataForMediaTracks, 510 511 /** 512 When MP4 FF reports error MEDIA_DATA_NOT_SELF_CONTAINED 513 **/ 514 PVMFMP4FFParserErrMediaDataNotSelfContained, 515 516 /** 517 When MP4 FF reports error FILE_VERSION_NOT_SUPPORTED 518 **/ 519 PVMFMP4FFParserErrFileVersionNotSupported, 520 521 /** 522 When MP4 FF reports error TRACK_VERSION_NOT_SUPPORTED 523 **/ 524 PVMFMP4FFParserErrTrackVersioNotSupported, 525 526 /** 527 When MP4 FF reports error FILE_PSEUDO_STREAMABLE 528 **/ 529 PVMFMP4FFParserErrPseudostreamableFile, 530 531 /** 532 When MP4 FF reports error FILE_NOT_PSEUDO_STREAMABLE 533 **/ 534 PVMFMP4FFParserErrNotPseudostreamableFile, 535 536 /** 537 When MP4 FF reports error DUPLICATE_FILE_TYPE_ATOMS 538 **/ 539 PVMFMP4FFParserErrDuplicateFileTypeAtoms, 540 541 /** 542 When MP4 FF reports error UNSUPPORTED_FILE_TYPE 543 **/ 544 PVMFMP4FFParserErrUnsupportedFileType, 545 546 /** 547 When MP4 FF reports error FILE_TYPE_ATOM_NOT_FOUND 548 **/ 549 PVMFMP4FFParserErrFileTypeAtomNotFound, 550 551 /** 552 When MP4 FF reports error ATOM_VERSION_NOT_SUPPORTED 553 **/ 554 PVMFMP4FFParserErrAtomVersionNotSupported, 555 556 /** 557 When MP4 FF reports error READ_AVC_SAMPLE_ENTRY_FAILED 558 **/ 559 PVMFMP4FFParserErrReadAVCSampleEntryFailed, 560 561 /** 562 When MP4 FF reports error READ_AVC_CONFIG_BOX_FAILED 563 **/ 564 PVMFMP4FFParserErrReadAVCConfigBoxFailed, 565 566 /** 567 When MP4 FF reports error READ_MPEG4_BITRATE_BOX_FAILED 568 **/ 569 PVMFMP4FFParserErrReadMPEG4BitRateBoxFailed, 570 571 /** 572 Placeholder for the last PV MP4 FF parser error event 573 **/ 574 PVMFMP4FFParserErrLast = 8191 575 } PVMFMP4FFParserErrorEventType; 576 577 /** 578 * An enumeration of informational event types from PV MP4 FF parser node 579 **/ 580 typedef enum 581 { 582 /** 583 MP4 file is pseudostreamable 584 **/ 585 PVMFMP4FFParserInfoPseudostreamableFile = 8192, 586 587 /** 588 MP4 file is non-pseudostreamable 589 **/ 590 PVMFMP4FFParserInfoNotPseudostreamableFile, 591 592 /** 593 Placeholder for the last PV MP4 FF parser informational event 594 **/ 595 PVMFMP4FFParserInfoLast = 10000 596 597 } PVMFMP4FFParserInformationalEventType; 598 599 #endif // PVMF_MP4FFPARSER_EVENTS_H_INCLUDED 600 601 602