2008-02-26 20:53:18 +00:00
|
|
|
//
|
2013-10-07 17:33:35 +00:00
|
|
|
// FFMPEGDecoder.h
|
|
|
|
// FFMPEG
|
2008-02-26 20:53:18 +00:00
|
|
|
//
|
|
|
|
// Created by Andre Reffhaug on 2/26/08.
|
|
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "Plugin.h"
|
|
|
|
|
2013-10-02 21:58:18 +00:00
|
|
|
#define __FRAMEWORK__
|
2013-10-07 17:33:35 +00:00
|
|
|
#import <FFMPEG/avcodec.h>
|
|
|
|
#import <FFMPEG/avformat.h>
|
2013-10-02 21:58:18 +00:00
|
|
|
#undef __FRAMEWORK__
|
2008-02-26 20:53:18 +00:00
|
|
|
|
2013-10-07 17:33:35 +00:00
|
|
|
@interface FFMPEGDecoder : NSObject <CogDecoder>
|
2008-02-28 05:33:56 +00:00
|
|
|
{
|
2013-10-11 03:55:32 +00:00
|
|
|
BOOL seekable;
|
|
|
|
int channels;
|
|
|
|
int bitsPerSample;
|
2013-10-05 21:15:09 +00:00
|
|
|
BOOL floatingPoint;
|
2013-10-11 03:55:32 +00:00
|
|
|
float frequency;
|
|
|
|
long totalFrames;
|
|
|
|
long framesRead;
|
|
|
|
int bitrate;
|
|
|
|
|
|
|
|
@private
|
|
|
|
int streamIndex;
|
|
|
|
AVFormatContext *formatCtx;
|
|
|
|
AVCodecContext *codecCtx;
|
|
|
|
AVFrame *lastDecodedFrame;
|
|
|
|
AVPacket *lastReadPacket;
|
|
|
|
int bytesConsumedFromDecodedFrame;
|
|
|
|
int bytesReadFromPacket;
|
|
|
|
BOOL readNextPacket;
|
2008-02-26 20:53:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|