1
0

ocidescriptors.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * The contents of this file are subject to the Mozilla Public
  3. * License Version 1.1 (the "License"); you may not use this file
  4. * except in compliance with the License. You may obtain a copy of
  5. * the License at http://www.mozilla.org/MPL/
  6. *
  7. * Software distributed under the License is distributed on an "AS
  8. * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9. * implied. See the License for the specific language governing
  10. * rights and limitations under the License.
  11. *
  12. * The Original Code is MPEG4IP.
  13. *
  14. * The Initial Developer of the Original Code is Cisco Systems Inc.
  15. * Portions created by Cisco Systems Inc. are
  16. * Copyright (C) Cisco Systems Inc. 2001. All Rights Reserved.
  17. *
  18. * Contributor(s):
  19. * Dave Mackie [email protected]
  20. */
  21. #ifndef __OCIDESCRIPTORS_INCLUDED__
  22. #define __OCIDESCRIPTORS_INCLUDED__
  23. const u_int8_t MP4OCIDescrTagsStart = 0x40;
  24. const u_int8_t MP4ContentClassDescrTag = 0x40;
  25. const u_int8_t MP4KeywordDescrTag = 0x41;
  26. const u_int8_t MP4RatingDescrTag = 0x42;
  27. const u_int8_t MP4LanguageDescrTag = 0x43;
  28. const u_int8_t MP4ShortTextDescrTag = 0x44;
  29. const u_int8_t MP4ExpandedTextDescrTag = 0x45;
  30. const u_int8_t MP4ContentCreatorDescrTag = 0x46;
  31. const u_int8_t MP4ContentCreationDescrTag = 0x47;
  32. const u_int8_t MP4OCICreatorDescrTag = 0x48;
  33. const u_int8_t MP4OCICreationDescrTag = 0x49;
  34. const u_int8_t MP4SmpteCameraDescrTag = 0x4A;
  35. const u_int8_t MP4OCIDescrTagsEnd = 0x5F;
  36. class MP4ContentClassDescriptor : public MP4Descriptor {
  37. public:
  38. MP4ContentClassDescriptor();
  39. void Read(MP4File* pFile);
  40. };
  41. class MP4KeywordDescriptor : public MP4Descriptor {
  42. public:
  43. MP4KeywordDescriptor();
  44. protected:
  45. void Mutate();
  46. };
  47. class MP4RatingDescriptor : public MP4Descriptor {
  48. public:
  49. MP4RatingDescriptor();
  50. void Read(MP4File* pFile);
  51. };
  52. class MP4LanguageDescriptor : public MP4Descriptor {
  53. public:
  54. MP4LanguageDescriptor();
  55. };
  56. class MP4ShortTextDescriptor : public MP4Descriptor {
  57. public:
  58. MP4ShortTextDescriptor();
  59. protected:
  60. void Mutate();
  61. };
  62. class MP4ExpandedTextDescriptor : public MP4Descriptor {
  63. public:
  64. MP4ExpandedTextDescriptor();
  65. protected:
  66. void Mutate();
  67. };
  68. class MP4CreatorDescriptor : public MP4Descriptor {
  69. public:
  70. MP4CreatorDescriptor(u_int8_t tag);
  71. };
  72. class MP4CreationDescriptor : public MP4Descriptor {
  73. public:
  74. MP4CreationDescriptor(u_int8_t tag);
  75. };
  76. class MP4SmpteCameraDescriptor : public MP4Descriptor {
  77. public:
  78. MP4SmpteCameraDescriptor();
  79. };
  80. class MP4UnknownOCIDescriptor : public MP4Descriptor {
  81. public:
  82. MP4UnknownOCIDescriptor();
  83. void Read(MP4File* pFile);
  84. };
  85. extern MP4Descriptor *CreateOCIDescriptor(u_int8_t tag);
  86. #endif /* __OCIDESCRIPTORS_INCLUDED__ */