Older/MediaServer/libmov/include/mov-udta.h
amass 08340ad5c8
All checks were successful
Deploy / PullDocker (push) Successful in 11s
Deploy / Build (push) Successful in 1m54s
add codec.
2024-09-30 16:12:57 +00:00

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_ */