blob: c30185015c9ce5c84c6399a2f6a182ab89193189 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
/*
* 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 [email protected]
*/
#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(MP4Atom& parentAtom);
void Read(MP4File& file);
private:
MP4ContentClassDescriptor();
MP4ContentClassDescriptor ( const MP4ContentClassDescriptor &src );
MP4ContentClassDescriptor &operator= ( const MP4ContentClassDescriptor &src );
};
class MP4KeywordDescriptor : public MP4Descriptor {
public:
MP4KeywordDescriptor(MP4Atom& parentAtom);
protected:
void Mutate();
private:
MP4KeywordDescriptor();
MP4KeywordDescriptor ( const MP4KeywordDescriptor &src );
MP4KeywordDescriptor &operator= ( const MP4KeywordDescriptor &src );
};
class MP4RatingDescriptor : public MP4Descriptor {
public:
MP4RatingDescriptor(MP4Atom& parentAtom);
void Read(MP4File& file);
private:
MP4RatingDescriptor();
MP4RatingDescriptor ( const MP4RatingDescriptor &src );
MP4RatingDescriptor &operator= ( const MP4RatingDescriptor &src );
};
class MP4LanguageDescriptor : public MP4Descriptor {
public:
MP4LanguageDescriptor(MP4Atom& parentAtom);
private:
MP4LanguageDescriptor();
MP4LanguageDescriptor ( const MP4LanguageDescriptor &src );
MP4LanguageDescriptor &operator= ( const MP4LanguageDescriptor &src );
};
class MP4ShortTextDescriptor : public MP4Descriptor {
public:
MP4ShortTextDescriptor(MP4Atom& parentAtom);
protected:
void Mutate();
private:
MP4ShortTextDescriptor();
MP4ShortTextDescriptor ( const MP4ShortTextDescriptor &src );
MP4ShortTextDescriptor &operator= ( const MP4ShortTextDescriptor &src );
};
class MP4ExpandedTextDescriptor : public MP4Descriptor {
public:
MP4ExpandedTextDescriptor(MP4Atom& parentAtom);
protected:
void Mutate();
private:
MP4ExpandedTextDescriptor();
MP4ExpandedTextDescriptor ( const MP4ExpandedTextDescriptor &src );
MP4ExpandedTextDescriptor &operator= ( const MP4ExpandedTextDescriptor &src );
};
class MP4CreatorDescriptor : public MP4Descriptor {
public:
MP4CreatorDescriptor(MP4Atom& parentAtom, uint8_t tag);
private:
MP4CreatorDescriptor();
MP4CreatorDescriptor ( const MP4CreatorDescriptor &src );
MP4CreatorDescriptor &operator= ( const MP4CreatorDescriptor &src );
};
class MP4CreationDescriptor : public MP4Descriptor {
public:
MP4CreationDescriptor(MP4Atom& parentAtom, uint8_t tag);
private:
MP4CreationDescriptor();
MP4CreationDescriptor ( const MP4CreationDescriptor &src );
MP4CreationDescriptor &operator= ( const MP4CreationDescriptor &src );
};
class MP4SmpteCameraDescriptor : public MP4Descriptor {
public:
MP4SmpteCameraDescriptor(MP4Atom& parentAtom);
private:
MP4SmpteCameraDescriptor();
MP4SmpteCameraDescriptor ( const MP4SmpteCameraDescriptor &src );
MP4SmpteCameraDescriptor &operator= ( const MP4SmpteCameraDescriptor &src );
};
class MP4UnknownOCIDescriptor : public MP4Descriptor {
public:
MP4UnknownOCIDescriptor(MP4Atom& parentAtom);
void Read(MP4File& file);
private:
MP4UnknownOCIDescriptor();
MP4UnknownOCIDescriptor ( const MP4UnknownOCIDescriptor &src );
MP4UnknownOCIDescriptor &operator= ( const MP4UnknownOCIDescriptor &src );
};
extern MP4Descriptor *CreateOCIDescriptor(MP4Atom& parentAtom, uint8_t tag);
///////////////////////////////////////////////////////////////////////////////
}
} // namespace mp4v2::impl
#endif // MP4V2_IMPL_OCIDESCRIPTORS_H
|