24#ifndef MP4V2_IMPL_ITMF_COVERARTBOX_H
25#define MP4V2_IMPL_ITMF_COVERARTBOX_H
27namespace mp4v2 {
namespace impl {
namespace itmf {
82 static bool add( MP4FileHandle hFile,
const Item& item );
92 static bool set( MP4FileHandle hFile,
const Item& item, uint32_t index );
104 static bool get( MP4FileHandle hFile,
Item& item, uint32_t index );
114 static bool remove( MP4FileHandle hFile, uint32_t index = numeric_limits<uint32_t>::max() );
Data object for covr-box item.
Definition CoverArtBox.h:41
uint32_t size
size of covr-box buffer size in bytes.
Definition CoverArtBox.h:56
bool autofree
when true invoke free(buffer) upon destruction.
Definition CoverArtBox.h:57
uint8_t * buffer
buffer point to raw covr-box data.
Definition CoverArtBox.h:55
BasicType type
covr-box type.
Definition CoverArtBox.h:54
void reset()
Reset to state of newly constructed object.
Functional class for covr-box (Cover-art Box) support.
Definition CoverArtBox.h:34
static bool get(MP4FileHandle hFile, Item &item, uint32_t index)
Fetch covr-box item from file.
vector< Item > ItemList
Object representing a list of covr-box items.
Definition CoverArtBox.h:61
static bool add(MP4FileHandle hFile, const Item &item)
Add covr-box item to file.
static bool list(MP4FileHandle hFile, ItemList &out)
Fetch list of covr-box items from file.
static bool remove(MP4FileHandle hFile, uint32_t index=numeric_limits< uint32_t >::max())
Remove covr-box item from file.
static bool set(MP4FileHandle hFile, const Item &item, uint32_t index)
Replace covr-box item in file.
BasicType
Basic set of types as detailed in spec.
Definition type.h:33