// // FFMPEGDecoder.h // FFMPEG // // Created by Andre Reffhaug on 2/26/08. // Copyright 2008 __MyCompanyName__. All rights reserved. // #import #import "Plugin.h" #include #include extern int ffmpeg_read(void *opaque, uint8_t *buf, int buf_size); extern int ffmpeg_write(void *opaque, uint8_t *buf, int buf_size); int64_t ffmpeg_seek(void *opaque, int64_t offset, int whence); @interface FFMPEGDecoder : NSObject { id source; BOOL seekable; int channels; uint32_t channelConfig; int bitsPerSample; BOOL floatingPoint; BOOL lossy; float frequency; long totalFrames; long framesRead; int bitrate; int subsong; int64_t startTime; int64_t endTime; BOOL seekedToStart; @private unsigned char *buffer; AVIOContext *ioCtx; int streamIndex; AVFormatContext *formatCtx; AVCodecContext *codecCtx; AVFrame *lastDecodedFrame; AVPacket *lastReadPacket; BOOL metadataUpdated; int prebufferedAudio; uint8_t *prebufferedAudioData; BOOL rawDSD; BOOL rawDSDReverseBits; BOOL rawDSDPlanar; int bytesConsumedFromDecodedFrame; BOOL readNextPacket; int64_t seekFrame; int64_t skipSamples; BOOL endOfStream; BOOL endOfAudio; int metadataIndex; int attachedPicIndex; NSData *albumArt; NSDictionary *metaDict; NSDictionary *id3Metadata; } @end