add header decode and pipeline construction to image reader

This commit is contained in:
2025-02-02 20:57:43 +00:00
parent 0a2919a424
commit 605a4ba810
3 changed files with 119 additions and 0 deletions

19
src/read.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef READ_H_
#define READ_H_
#include "status.h"
#include <stdio.h>
#include <stdint.h>
struct ec3_reader;
struct ec3_tag_reader;
extern enum ec3_status ec3_reader_create(FILE *inp, struct ec3_reader **out);
extern void ec3_reader_finish(struct ec3_reader *reader);
extern enum ec3_status ec3_reader_open_tag(struct ec3_reader *reader, uint64_t tag_ident, struct ec3_tag_reader **out);
extern enum ec3_status ec3_tag_reader_close(struct ec3_tag_reader *tag);
#endif