]>
Commit | Line | Data |
---|---|---|
cbb23cdb | 1 | #ifndef METADATA_H |
2 | #define METADATA_H | |
3 | ||
4 | typedef struct aacenc_tag_entry_t { | |
5 | uint32_t tag; | |
6 | const char *name; | |
7 | const char *data; | |
8 | uint32_t data_size; | |
9 | int is_file_name; | |
10 | } aacenc_tag_entry_t; | |
11 | ||
12 | typedef struct aacenc_tag_param_t { | |
13 | aacenc_tag_entry_t *tag_table; | |
14 | unsigned tag_count; | |
15 | unsigned tag_table_capacity; | |
16 | } aacenc_tag_param_t; | |
17 | ||
18 | char *aacenc_load_tag_from_file(const char *path, uint32_t *data_size); | |
19 | ||
20 | void aacenc_param_add_itmf_entry(aacenc_tag_param_t *params, uint32_t tag, | |
21 | const char *key, const char *value, | |
22 | uint32_t size, int is_file_name); | |
23 | ||
24 | void aacenc_put_tags_from_json(m4af_ctx_t *m4af, const char *json_filename); | |
25 | ||
26 | void aacenc_put_tag_entry(m4af_ctx_t *m4af, const aacenc_tag_entry_t *tag); | |
27 | ||
28 | #endif |