41 lines
676 B
Objective-C
41 lines
676 B
Objective-C
//
|
|
// FFMPEGDecoder.h
|
|
// FFMPEG
|
|
//
|
|
// Created by Andre Reffhaug on 2/26/08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "Plugin.h"
|
|
|
|
#define __FRAMEWORK__
|
|
#import <FFMPEG/avcodec.h>
|
|
#import <FFMPEG/avformat.h>
|
|
#undef __FRAMEWORK__
|
|
|
|
@interface FFMPEGDecoder : NSObject <CogDecoder>
|
|
{
|
|
id<CogSource> source;
|
|
void *sampleBuffer;
|
|
int sampleBufferSize;
|
|
int numFrames;
|
|
int samplePos;
|
|
|
|
int streamIndex;
|
|
AVFormatContext *ic;
|
|
AVCodecContext *c;
|
|
AVCodec *codec;
|
|
|
|
BOOL seekable;
|
|
BOOL floatingPoint;
|
|
int bitsPerSample;
|
|
int bitrate;
|
|
int channels;
|
|
float frequency;
|
|
long totalFrames;
|
|
long framesPlayed;
|
|
}
|
|
|
|
@end
|