diff options
Diffstat (limited to 'src/ocidescriptors.h')
-rw-r--r-- | src/ocidescriptors.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/src/ocidescriptors.h b/src/ocidescriptors.h new file mode 100644 index 0000000..1174aa1 --- /dev/null +++ b/src/ocidescriptors.h @@ -0,0 +1,111 @@ +/* + * The contents of this file are subject to the Mozilla Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is MPEG4IP. + * + * The Initial Developer of the Original Code is Cisco Systems Inc. + * Portions created by Cisco Systems Inc. are + * Copyright (C) Cisco Systems Inc. 2001. All Rights Reserved. + * + * Contributor(s): + * Dave Mackie dmackie@cisco.com + */ + +#ifndef MP4V2_IMPL_OCIDESCRIPTORS_H +#define MP4V2_IMPL_OCIDESCRIPTORS_H + +namespace mp4v2 { +namespace impl { + +/////////////////////////////////////////////////////////////////////////////// + +const uint8_t MP4OCIDescrTagsStart = 0x40; +const uint8_t MP4ContentClassDescrTag = 0x40; +const uint8_t MP4KeywordDescrTag = 0x41; +const uint8_t MP4RatingDescrTag = 0x42; +const uint8_t MP4LanguageDescrTag = 0x43; +const uint8_t MP4ShortTextDescrTag = 0x44; +const uint8_t MP4ExpandedTextDescrTag = 0x45; +const uint8_t MP4ContentCreatorDescrTag = 0x46; +const uint8_t MP4ContentCreationDescrTag = 0x47; +const uint8_t MP4OCICreatorDescrTag = 0x48; +const uint8_t MP4OCICreationDescrTag = 0x49; +const uint8_t MP4SmpteCameraDescrTag = 0x4A; +const uint8_t MP4OCIDescrTagsEnd = 0x5F; + +class MP4ContentClassDescriptor : public MP4Descriptor { +public: + MP4ContentClassDescriptor(); + void Read(MP4File* pFile); +}; + +class MP4KeywordDescriptor : public MP4Descriptor { +public: + MP4KeywordDescriptor(); +protected: + void Mutate(); +}; + +class MP4RatingDescriptor : public MP4Descriptor { +public: + MP4RatingDescriptor(); + void Read(MP4File* pFile); +}; + +class MP4LanguageDescriptor : public MP4Descriptor { +public: + MP4LanguageDescriptor(); +}; + +class MP4ShortTextDescriptor : public MP4Descriptor { +public: + MP4ShortTextDescriptor(); +protected: + void Mutate(); +}; + +class MP4ExpandedTextDescriptor : public MP4Descriptor { +public: + MP4ExpandedTextDescriptor(); +protected: + void Mutate(); +}; + +class MP4CreatorDescriptor : public MP4Descriptor { +public: + MP4CreatorDescriptor(uint8_t tag); +}; + +class MP4CreationDescriptor : public MP4Descriptor { +public: + MP4CreationDescriptor(uint8_t tag); +}; + +class MP4SmpteCameraDescriptor : public MP4Descriptor { +public: + MP4SmpteCameraDescriptor(); +}; + +class MP4UnknownOCIDescriptor : public MP4Descriptor { +public: + MP4UnknownOCIDescriptor(); + void Read(MP4File* pFile); +}; + + +extern MP4Descriptor *CreateOCIDescriptor(uint8_t tag); + +/////////////////////////////////////////////////////////////////////////////// + +} +} // namespace mp4v2::impl + +#endif // MP4V2_IMPL_OCIDESCRIPTORS_H |