54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
#ifndef _mov_udta_h_
|
|
#define _mov_udta_h_
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
// https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/Metadata/Metadata.html
|
|
|
|
struct mov_udta_meta_t
|
|
{
|
|
//char* title;
|
|
//char* artist;
|
|
//char* album_artist;
|
|
//char* album;
|
|
//char* date;
|
|
//char* comment;
|
|
//char* genre;
|
|
//char* copyright;
|
|
//char* lyrics;
|
|
//char* description;
|
|
//char* synopsis;
|
|
//char* show;
|
|
//char* episode_id;
|
|
//char* network;
|
|
//char* keywords;
|
|
//char* season_num;
|
|
//char* media_type;
|
|
//char* hd_video;
|
|
//char* gapless_playback;
|
|
//char* compilation;
|
|
|
|
uint8_t* cover; // cover binary data, jpeg/png only
|
|
int cover_size; // cover binnary data length in byte
|
|
};
|
|
|
|
int mov_udta_meta_write(const struct mov_udta_meta_t* meta, void* data, int bytes);
|
|
|
|
struct mov_udta_chapter_t
|
|
{
|
|
uint64_t timestamp; // 1s = 10 * 1000 * 1000
|
|
const char* title; // optional
|
|
};
|
|
int mov_udta_chapter_write(const struct mov_udta_chapter_t* chapters, int count, void* data, int bytes);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !_mov_udta_h_ */
|