MP4MetadataEditor.h 717 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "mp4.h"
  3. #include "metadata/ifc_metadata_editor.h"
  4. #include "nx/nxuri.h"
  5. class MP4MetadataEditor : public ifc_metadata_editor
  6. {
  7. public:
  8. MP4MetadataEditor();
  9. ~MP4MetadataEditor();
  10. int Initialize(nx_uri_t filename);
  11. private:
  12. MP4FileHandle mp4_file;
  13. int WASABICALL MetadataEditor_Save();
  14. int WASABICALL MetadataEditor_SetField(int field, unsigned int index, nx_string_t value);
  15. int WASABICALL MetadataEditor_SetInteger(int field, unsigned int index, int64_t value);
  16. int WASABICALL MetadataEditor_SetReal(int field, unsigned int index, double value);
  17. int WASABICALL MetadataEditor_SetArtwork(int field, unsigned int index, artwork_t *artwork, data_flags_t flags);
  18. nx_uri_t filename;
  19. };