/* Host stand-in for the parts of codecs.h that libm4a/demux.c uses */ #ifndef CODECS_H #define CODECS_H #include #include #include #include enum { AFMT_MP4_AAC = 1, AFMT_MP4_AAC_HE, AFMT_MP4_ALAC }; struct mp3entry { unsigned long length; int codectype; }; #define CODEC_SIZE (128 * 1024) /* yp3.h, near enough */ struct codec_api { size_t filesize, curpos; struct mp3entry *id3; size_t (*read_filebuf)(void *ptr, size_t size); void (*advance_buffer)(size_t amount); bool (*seek_buffer)(size_t newpos); void (*yield)(void); void (*debugf)(const char *fmt, ...); bool (*load_progress)(int percent); }; extern struct codec_api *ci; #define ROCKBOX_LITTLE_ENDIAN 1 #define MIN(a, b) ((a) < (b) ? (a) : (b)) #endif