1
0

MP4FileObject.h 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "ifc_mp4file.h"
  3. #include "MP4MetadataBase.h"
  4. #include "mp4.h"
  5. class MP4FileObject : public ifc_mp4file, public MP4MetadataBase
  6. {
  7. public:
  8. MP4FileObject();
  9. ~MP4FileObject();
  10. void Initialize(nx_uri_t filename, MP4FileHandle file_handle);
  11. private:
  12. MP4FileHandle file_handle;
  13. private:
  14. int WASABICALL MP4File_Free(void *buffer);
  15. int WASABICALL MP4File_Track_GetESConfiguration(TrackID track_number, uint8_t **buffer, uint32_t *buffer_size);
  16. int WASABICALL MP4File_Track_GetMaxSampleSize(TrackID track_number, uint32_t *max_sample_size);
  17. int WASABICALL MP4File_Track_ConvertFromTimestamp(TrackID track_number, Timestamp timestamp, double *seconds);
  18. int WASABICALL MP4File_Track_ConvertToDuration(TrackID track_number, double seconds, Duration *duration);
  19. int WASABICALL MP4File_Track_GetMediaDataName(TrackID track_number, const char **name);
  20. int WASABICALL MP4File_Track_GetESDSObjectTypeID(TrackID track_number, uint8_t *type);
  21. int WASABICALL MP4File_Track_GetAudioMPEG4Type(TrackID track_number, uint8_t *type);
  22. int WASABICALL MP4File_Track_GetBytesProperty(TrackID track_number, const char *property_name, uint8_t **buffer, uint32_t *buffer_size);
  23. int WASABICALL MP4File_Metadata_iTunes_FindFreeform(const char *name, const char *mean, metadata_itunes_atom_t *atom);
  24. int WASABICALL MP4File_Metadata_iTunes_GetBinary(metadata_itunes_atom_t atom, const uint8_t **value, size_t *value_length);
  25. int WASABICALL MP4File_Sample_Read(TrackID track_number, SampleID sample_number, uint8_t **bytes, uint32_t *bytes_length, Timestamp *start_time, Duration *duration, Duration *offset, int *is_sync);
  26. int WASABICALL MP4File_Sample_GetFromDuration(TrackID track_number, Duration duration, SampleID *sample_id);
  27. };