1 #ifndef MP4V2_TRACK_PROP_H
2 #define MP4V2_TRACK_PROP_H
14 bool MP4HaveTrackAtom(
17 const char* atomname );
52 const char* MP4GetTrackMediaDataName(
62 bool MP4GetTrackMediaDataOriginalFormat(
69 MP4Duration MP4GetTrackDuration(
175 uint8_t MP4GetTrackAudioMpeg4Type(
177 MP4TrackId trackId );
180 uint8_t MP4GetTrackEsdsObjectTypeId(
182 MP4TrackId trackId );
186 MP4Duration MP4GetTrackFixedSampleDuration(
188 MP4TrackId trackId );
191 uint32_t MP4GetTrackBitRate(
193 MP4TrackId trackId );
196 bool MP4GetTrackVideoMetadata(
200 uint32_t* pConfigSize );
203 bool MP4GetTrackESConfiguration(
207 uint32_t* pConfigSize );
210 bool MP4SetTrackESConfiguration(
213 const uint8_t* pConfig,
214 uint32_t configSize );
241 uint8_t** pSeqHeaders,
242 uint32_t* pSeqHeaderSize,
243 uint8_t** pPictHeader,
244 uint32_t* pPictHeaderSize );
247 bool MP4GetTrackH264ProfileLevel(
254 bool MP4GetTrackH264SeqPictHeaders(
257 uint8_t*** pSeqHeaders,
258 uint32_t** pSeqHeaderSize,
259 uint8_t*** pPictHeader,
260 uint32_t** pPictHeaderSize );
263 bool MP4GetTrackH264LengthSize(
269 MP4SampleId MP4GetTrackNumberOfSamples(
271 MP4TrackId trackId );
274 uint16_t MP4GetTrackVideoWidth(
276 MP4TrackId trackId );
279 uint16_t MP4GetTrackVideoHeight(
281 MP4TrackId trackId );
284 double MP4GetTrackVideoFrameRate(
286 MP4TrackId trackId );
289 int MP4GetTrackAudioChannels(
291 MP4TrackId trackId );
294 bool MP4IsIsmaCrypMediaTrack(
296 MP4TrackId trackId );
301 bool MP4HaveTrackAtom(
304 const char* atomName );
307 bool MP4GetTrackIntegerProperty(
310 const char* propName,
311 uint64_t* retvalue );
314 bool MP4GetTrackFloatProperty(
317 const char* propName,
321 bool MP4GetTrackStringProperty(
324 const char* propName,
325 const char** retvalue );
328 bool MP4GetTrackBytesProperty(
331 const char* propName,
333 uint32_t* pValueSize );
336 bool MP4SetTrackIntegerProperty(
339 const char* propName,
343 bool MP4SetTrackFloatProperty(
346 const char* propName,
350 bool MP4SetTrackStringProperty(
353 const char* propName,
357 bool MP4SetTrackBytesProperty(
360 const char* propName,
361 const uint8_t* pValue,