info.h 330 B

123456789101112131415161718
  1. #pragma once
  2. #include "avi_reader.h"
  3. #include <map>
  4. namespace nsavi
  5. {
  6. typedef std::map<uint32_t, const char*> InfoMap;
  7. class Info : public InfoMap
  8. {
  9. public:
  10. Info();
  11. ~Info();
  12. int Read(avi_reader* reader, uint32_t data_len);
  13. const char* GetMetadata(uint32_t id);
  14. void Set(uint32_t chunk_id, const char* data);
  15. };
  16. };