diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/replicant/mp4/MP4FileObject.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/replicant/mp4/MP4FileObject.h')
-rw-r--r-- | Src/replicant/mp4/MP4FileObject.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Src/replicant/mp4/MP4FileObject.h b/Src/replicant/mp4/MP4FileObject.h new file mode 100644 index 00000000..dfc5a934 --- /dev/null +++ b/Src/replicant/mp4/MP4FileObject.h @@ -0,0 +1,33 @@ +#pragma once +#include "ifc_mp4file.h" +#include "MP4MetadataBase.h" +#include "mp4.h" + +class MP4FileObject : public ifc_mp4file, public MP4MetadataBase +{ +public: + MP4FileObject(); + ~MP4FileObject(); + void Initialize(nx_uri_t filename, MP4FileHandle file_handle); + +private: + MP4FileHandle file_handle; + +private: + int WASABICALL MP4File_Free(void *buffer); + + int WASABICALL MP4File_Track_GetESConfiguration(TrackID track_number, uint8_t **buffer, uint32_t *buffer_size); + int WASABICALL MP4File_Track_GetMaxSampleSize(TrackID track_number, uint32_t *max_sample_size); + int WASABICALL MP4File_Track_ConvertFromTimestamp(TrackID track_number, Timestamp timestamp, double *seconds); + int WASABICALL MP4File_Track_ConvertToDuration(TrackID track_number, double seconds, Duration *duration); + int WASABICALL MP4File_Track_GetMediaDataName(TrackID track_number, const char **name); + int WASABICALL MP4File_Track_GetESDSObjectTypeID(TrackID track_number, uint8_t *type); + int WASABICALL MP4File_Track_GetAudioMPEG4Type(TrackID track_number, uint8_t *type); + int WASABICALL MP4File_Track_GetBytesProperty(TrackID track_number, const char *property_name, uint8_t **buffer, uint32_t *buffer_size); + + int WASABICALL MP4File_Metadata_iTunes_FindFreeform(const char *name, const char *mean, metadata_itunes_atom_t *atom); + int WASABICALL MP4File_Metadata_iTunes_GetBinary(metadata_itunes_atom_t atom, const uint8_t **value, size_t *value_length); + + 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); + int WASABICALL MP4File_Sample_GetFromDuration(TrackID track_number, Duration duration, SampleID *sample_id); +};
\ No newline at end of file |