include/mp4v2/file_prop.h Source File
file_prop.h
1 #ifndef MP4V2_FILE_PROP_H
2 #define MP4V2_FILE_PROP_H
3 
4 /**************************************************************************/
11 /* generic props */
12 
13 MP4V2_EXPORT
14 bool MP4HaveAtom(
15  MP4FileHandle hFile,
16  const char* atomName );
17 
18 MP4V2_EXPORT
19 bool MP4GetIntegerProperty(
20  MP4FileHandle hFile,
21  const char* propName,
22  uint64_t* retval );
23 
24 MP4V2_EXPORT
25 bool MP4GetFloatProperty(
26  MP4FileHandle hFile,
27  const char* propName,
28  float* retvalue );
29 
30 MP4V2_EXPORT
31 bool MP4GetStringProperty(
32  MP4FileHandle hFile,
33  const char* propName,
34  const char** retvalue );
35 
36 MP4V2_EXPORT
37 bool MP4GetBytesProperty(
38  MP4FileHandle hFile,
39  const char* propName,
40  uint8_t** ppValue,
41  uint32_t* pValueSize );
42 
43 MP4V2_EXPORT
44 bool MP4SetIntegerProperty(
45  MP4FileHandle hFile,
46  const char* propName,
47  int64_t value );
48 
49 MP4V2_EXPORT
50 bool MP4SetFloatProperty(
51  MP4FileHandle hFile,
52  const char* propName,
53  float value );
54 
55 MP4V2_EXPORT
56 bool MP4SetStringProperty(
57  MP4FileHandle hFile,
58  const char* propName,
59  const char* value );
60 
61 MP4V2_EXPORT
62 bool MP4SetBytesProperty(
63  MP4FileHandle hFile,
64  const char* propName,
65  const uint8_t* pValue,
66  uint32_t valueSize );
67 
68 /* specific props */
69 
70 MP4V2_EXPORT
71 MP4Duration MP4GetDuration( MP4FileHandle hFile );
72 
83 MP4V2_EXPORT
84 uint32_t MP4GetTimeScale( MP4FileHandle hFile );
85 
97 MP4V2_EXPORT
98 bool MP4SetTimeScale( MP4FileHandle hFile, uint32_t value );
99 
111 MP4V2_EXPORT
112 void MP4ChangeMovieTimeScale( MP4FileHandle hFile, uint32_t value );
113 
114 MP4V2_EXPORT
115 uint8_t MP4GetODProfileLevel( MP4FileHandle hFile );
116 
117 MP4V2_EXPORT
118 bool MP4SetODProfileLevel( MP4FileHandle hFile, uint8_t value );
119 
120 MP4V2_EXPORT
121 uint8_t MP4GetSceneProfileLevel( MP4FileHandle hFile );
122 
123 MP4V2_EXPORT
124 bool MP4SetSceneProfileLevel( MP4FileHandle hFile, uint8_t value );
125 
126 MP4V2_EXPORT
127 uint8_t MP4GetVideoProfileLevel(
128  MP4FileHandle hFile,
129  MP4TrackId trackId DEFAULT(MP4_INVALID_TRACK_ID) );
130 
131 MP4V2_EXPORT
132 void MP4SetVideoProfileLevel( MP4FileHandle hFile, uint8_t value );
133 
134 MP4V2_EXPORT
135 uint8_t MP4GetAudioProfileLevel( MP4FileHandle hFile );
136 
137 MP4V2_EXPORT
138 void MP4SetAudioProfileLevel( MP4FileHandle hFile, uint8_t value );
139 
140 MP4V2_EXPORT
141 uint8_t MP4GetGraphicsProfileLevel( MP4FileHandle hFile );
142 
143 MP4V2_EXPORT
144 bool MP4SetGraphicsProfileLevel( MP4FileHandle hFile, uint8_t value );
145 
148 #endif /* MP4V2_FILE_PROP_H */
MP4ChangeMovieTimeScale
void MP4ChangeMovieTimeScale(MP4FileHandle hFile, uint32_t value)
Change the general timescale of file hFile.
MP4_INVALID_TRACK_ID
#define MP4_INVALID_TRACK_ID
Constant: invalid MP4TrackId.
Definition: general.h:49
MP4SetTimeScale
bool MP4SetTimeScale(MP4FileHandle hFile, uint32_t value)
Set the time scale of the movie (file).
MP4GetTimeScale
uint32_t MP4GetTimeScale(MP4FileHandle hFile)
Get the time scale of the movie (file).