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