12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef __MP4_CONTAINER_INCLUDED__
- #define __MP4_CONTAINER_INCLUDED__
- class MP4Container {
- public:
- MP4Container() { }
- virtual ~MP4Container();
- void AddProperty(MP4Property* pProperty);
- virtual void Read(MP4File* pFile);
- virtual void Write(MP4File* pFile);
- MP4Property* GetProperty(u_int32_t index) {
- return m_pProperties[index];
- }
-
-
- bool FindProperty(const char* name,
- MP4Property** ppProperty, u_int32_t* pIndex = NULL);
- void FindIntegerProperty(const char* name,
- MP4Property** ppProperty, u_int32_t* pIndex = NULL);
- u_int64_t GetIntegerProperty(const char* name);
- void SetIntegerProperty(const char* name, u_int64_t value);
- void FindFloatProperty(const char* name,
- MP4Property** ppProperty, u_int32_t* pIndex = NULL);
- float GetFloatProperty(const char* name);
- void SetFloatProperty(const char* name, float value);
- void FindStringProperty(const char* name,
- MP4Property** ppProperty, u_int32_t* pIndex = NULL);
- const char* GetStringProperty(const char* name);
- void SetStringProperty(const char* name, const char* value);
- void FindBytesProperty(const char* name,
- MP4Property** ppProperty, u_int32_t* pIndex = NULL);
- void GetBytesProperty(const char* name,
- u_int8_t** ppValue, u_int32_t* pValueSize);
- void SetBytesProperty(const char* name,
- const u_int8_t* pValue, u_int32_t valueSize);
- protected:
- MP4PropertyArray m_pProperties;
- };
- #endif
|