MP4v2

file_prop.h
1#ifndef MP4V2_FILE_PROP_H
2#define MP4V2_FILE_PROP_H
3
4/**************************************************************************/
11/* generic props */
12
24MP4V2_EXPORT
25 bool MP4HaveAtom(
26 MP4FileHandle hFile,
27 const char* atomName );
28
41MP4V2_EXPORT
42 bool MP4GetIntegerProperty(
43 MP4FileHandle hFile,
44 const char* propName,
45 uint64_t* retVal );
46
59MP4V2_EXPORT
60 bool MP4GetFloatProperty(
61 MP4FileHandle hFile,
62 const char* propName,
63 float* retVal );
64
77MP4V2_EXPORT
78 bool MP4GetStringProperty(
79 MP4FileHandle hFile,
80 const char* propName,
81 const char** retVal );
82
100MP4V2_EXPORT
101 bool MP4GetBytesProperty(
102 MP4FileHandle hFile,
103 const char* propName,
104 uint8_t** ppValue,
105 uint32_t* pValueSize );
106
118MP4V2_EXPORT
119 bool MP4SetIntegerProperty(
120 MP4FileHandle hFile,
121 const char* propName,
122 int64_t value );
123
135MP4V2_EXPORT
136 bool MP4SetFloatProperty(
137 MP4FileHandle hFile,
138 const char* propName,
139 float value );
140
152MP4V2_EXPORT
153 bool MP4SetStringProperty(
154 MP4FileHandle hFile,
155 const char* propName,
156 const char* value );
157
170MP4V2_EXPORT
171 bool MP4SetBytesProperty(
172 MP4FileHandle hFile,
173 const char* propName,
174 const uint8_t* pValue,
175 uint32_t valueSize );
176
177/* specific props */
178
193MP4V2_EXPORT
194MP4Duration MP4GetDuration(
195 MP4FileHandle hFile );
196
207MP4V2_EXPORT
208uint32_t MP4GetTimeScale(
209 MP4FileHandle hFile );
210
222MP4V2_EXPORT
223 bool MP4SetTimeScale(
224 MP4FileHandle hFile,
225 uint32_t value );
226
238MP4V2_EXPORT
239 void MP4ChangeMovieTimeScale(
240 MP4FileHandle hFile,
241 uint32_t value );
242
256MP4V2_EXPORT
257uint8_t MP4GetODProfileLevel(
258 MP4FileHandle hFile );
259
283MP4V2_EXPORT
284 bool MP4SetODProfileLevel(
285 MP4FileHandle hFile,
286 uint8_t value );
287
301MP4V2_EXPORT
302uint8_t MP4GetSceneProfileLevel(
303 MP4FileHandle hFile );
304
329MP4V2_EXPORT
330 bool MP4SetSceneProfileLevel(
331 MP4FileHandle hFile,
332 uint8_t value );
333
349MP4V2_EXPORT
350uint8_t MP4GetVideoProfileLevel(
351 MP4FileHandle hFile,
352 MP4TrackId trackId DEFAULT(MP4_INVALID_TRACK_ID) );
353
397MP4V2_EXPORT
398 void MP4SetVideoProfileLevel(
399 MP4FileHandle hFile,
400 uint8_t value );
401
415MP4V2_EXPORT
416uint8_t MP4GetAudioProfileLevel(
417 MP4FileHandle hFile );
418
455MP4V2_EXPORT
456 void MP4SetAudioProfileLevel(
457 MP4FileHandle hFile,
458 uint8_t value );
459
473MP4V2_EXPORT
474uint8_t MP4GetGraphicsProfileLevel(
475 MP4FileHandle hFile );
476
501MP4V2_EXPORT
502 bool MP4SetGraphicsProfileLevel(
503 MP4FileHandle hFile,
504 uint8_t value );
505
508#endif /* MP4V2_FILE_PROP_H */
MP4SetODProfileLevel
bool MP4SetODProfileLevel(MP4FileHandle hFile, uint8_t value)
Sets the minimum MPEG-4 object descriptor profile and level required to render the contents of the fi...
MP4GetFloatProperty
bool MP4GetFloatProperty(MP4FileHandle hFile, const char *propName, float *retVal)
Get the value of a float property.
MP4GetODProfileLevel
uint8_t MP4GetODProfileLevel(MP4FileHandle hFile)
Gets the minimum MPEG-4 object descriptor profile and level required to render the contents of the fi...
MP4SetGraphicsProfileLevel
bool MP4SetGraphicsProfileLevel(MP4FileHandle hFile, uint8_t value)
Sets the minimum MPEG-4 graphics profile and level required to render the contents of the file.
MP4ChangeMovieTimeScale
void MP4ChangeMovieTimeScale(MP4FileHandle hFile, uint32_t value)
Change the general timescale of file hFile.
MP4GetTimeScale
uint32_t MP4GetTimeScale(MP4FileHandle hFile)
Get the time scale of the movie (file).
MP4GetIntegerProperty
bool MP4GetIntegerProperty(MP4FileHandle hFile, const char *propName, uint64_t *retVal)
Get the value of an integer property.
MP4SetTimeScale
bool MP4SetTimeScale(MP4FileHandle hFile, uint32_t value)
Set the time scale of the movie (file).
MP4GetBytesProperty
bool MP4GetBytesProperty(MP4FileHandle hFile, const char *propName, uint8_t **ppValue, uint32_t *pValueSize)
Get the value of a bytes property.
MP4SetIntegerProperty
bool MP4SetIntegerProperty(MP4FileHandle hFile, const char *propName, int64_t value)
Set the value of an integer property.
MP4GetVideoProfileLevel
uint8_t MP4GetVideoProfileLevel(MP4FileHandle hFile, MP4TrackId trackId=MP4_INVALID_TRACK_ID)
Gets the minimum MPEG-4 video profile and level required to render the contents of the file.
MP4GetSceneProfileLevel
uint8_t MP4GetSceneProfileLevel(MP4FileHandle hFile)
Gets the minimum MPEG-4 scene graph profile and level required to render the contents of the file.
MP4GetAudioProfileLevel
uint8_t MP4GetAudioProfileLevel(MP4FileHandle hFile)
Gets the minimum MPEG-4 audio profile and level required to render the contents of the file.
MP4GetDuration
MP4Duration MP4GetDuration(MP4FileHandle hFile)
Get the duration of the movie (file).
MP4SetAudioProfileLevel
void MP4SetAudioProfileLevel(MP4FileHandle hFile, uint8_t value)
Sets the minimum MPEG-4 audio profile and level required to render the contents of the file.
MP4SetFloatProperty
bool MP4SetFloatProperty(MP4FileHandle hFile, const char *propName, float value)
Set the value of a float property.
MP4GetGraphicsProfileLevel
uint8_t MP4GetGraphicsProfileLevel(MP4FileHandle hFile)
Gets the minimum MPEG-4 graphics profile and level required to render the contents of the file.
MP4SetBytesProperty
bool MP4SetBytesProperty(MP4FileHandle hFile, const char *propName, const uint8_t *pValue, uint32_t valueSize)
Set the value of a bytes property.
MP4SetSceneProfileLevel
bool MP4SetSceneProfileLevel(MP4FileHandle hFile, uint8_t value)
Sets the minimum MPEG-4 scene graph profile and level required to render the contents of the file.
MP4SetVideoProfileLevel
void MP4SetVideoProfileLevel(MP4FileHandle hFile, uint8_t value)
Sets the minimum MPEG-4 video profile and level required to render the contents of the file.
MP4SetStringProperty
bool MP4SetStringProperty(MP4FileHandle hFile, const char *propName, const char *value)
Set the value of a string property.
MP4GetStringProperty
bool MP4GetStringProperty(MP4FileHandle hFile, const char *propName, const char **retVal)
Get the value of a string property.
MP4HaveAtom
bool MP4HaveAtom(MP4FileHandle hFile, const char *atomName)
Check for presence of an atom.
MP4_INVALID_TRACK_ID
#define MP4_INVALID_TRACK_ID
Constant: invalid MP4TrackId.
Definition: general.h:49