comparison include/edl.h @ 4:c2408abb258a

*: add dumping to string, rename EDL_file to EDL
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Dec 2023 16:24:16 -0500
parents d00bc412900e
children 7137fbac0b85
comparison
equal deleted inserted replaced
3:bd99b6549eb4 4:c2408abb258a
8 #include <stdbool.h> /* C99 required */ 8 #include <stdbool.h> /* C99 required */
9 #include <stddef.h> 9 #include <stddef.h>
10 10
11 typedef enum { 11 typedef enum {
12 MEDIATYPE_VIDEO, 12 MEDIATYPE_VIDEO,
13 MEDIATYPE_AUDIO 13 MEDIATYPE_AUDIO,
14 MEDIATYPE_UNKNOWN
14 } MediaType; 15 } MediaType;
15 16
16 typedef struct { 17 typedef struct {
17 int id; 18 int id;
18 int track; 19 int track;
48 49
49 typedef struct { 50 typedef struct {
50 EDL_line* arr; 51 EDL_line* arr;
51 int capacity; 52 int capacity;
52 int size; 53 int size;
53 } EDL_file; 54 } EDL;
54 55
55 EDL_file EDL_parse(const char* text, size_t length); 56 EDL EDL_parse(const char* text, size_t length);
56 void EDL_free(EDL_file file); 57 char* EDL_dump(EDL edl);
58 void EDL_free(EDL edl);
57 59
58 #ifdef __cplusplus 60 #ifdef __cplusplus
59 } 61 }
60 #endif 62 #endif
61 63