]> iEval git - fdkaac.git/blobdiff - src/metadata.h
add --tag-from-json
[fdkaac.git] / src / metadata.h
diff --git a/src/metadata.h b/src/metadata.h
new file mode 100644 (file)
index 0000000..66a8762
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef METADATA_H
+#define METADATA_H
+
+typedef struct aacenc_tag_entry_t {
+    uint32_t    tag;
+    const char *name;
+    const char *data;
+    uint32_t    data_size;
+    int         is_file_name;
+} aacenc_tag_entry_t;
+
+typedef struct aacenc_tag_param_t {
+    aacenc_tag_entry_t *tag_table;
+    unsigned tag_count;
+    unsigned tag_table_capacity;
+} aacenc_tag_param_t;
+
+char *aacenc_load_tag_from_file(const char *path, uint32_t *data_size);
+
+void aacenc_param_add_itmf_entry(aacenc_tag_param_t *params, uint32_t tag,
+                                 const char *key, const char *value,
+                                 uint32_t size, int is_file_name);
+
+void aacenc_put_tags_from_json(m4af_ctx_t *m4af, const char *json_filename);
+
+void aacenc_put_tag_entry(m4af_ctx_t *m4af, const aacenc_tag_entry_t *tag);
+
+#endif
This page took 0.01628 seconds and 4 git commands to generate.