First import.
This commit is contained in:
1 parent
4e61250dc6
commit
796e9691ce
114 files changed
+37004
-44
No files matched your search
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// SBVobSubConverter.h
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 26/03/11.
|
||||
// Copyright 2011 Damiano Galassi. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "MP42ConverterProtocol.h"
|
||||
#import "MP42Fifo.h"
|
||||
|
||||
#include <avcodec.h>
|
||||
|
||||
@class MP42SampleBuffer;
|
||||
@class MP42SubtitleTrack;
|
||||
@class MP42OCRWrapper;
|
||||
|
||||
@interface MP42BitmapSubConverter : NSObject <MP42ConverterProtocol> {
|
||||
NSThread *decoderThread;
|
||||
NSThread *encoderThread;
|
||||
|
||||
MP42OCRWrapper *ocr;
|
||||
AVCodec *avCodec;
|
||||
AVCodecContext *avContext;
|
||||
AVSubtitle subtitle;
|
||||
|
||||
MP42Fifo *_inputSamplesBuffer;
|
||||
MP42Fifo *_outputSamplesBuffer;
|
||||
|
||||
int compressed;
|
||||
UInt32 paletteG[16];
|
||||
NSData *srcMagicCookie;
|
||||
|
||||
uint8_t *codecData;
|
||||
unsigned int bufferSize;
|
||||
|
||||
int32_t _readerDone;
|
||||
int32_t _encoderDone;
|
||||
dispatch_semaphore_t _done;
|
||||
}
|
||||
|
||||
- (instancetype)initWithTrack:(MP42SubtitleTrack *)track error:(NSError **)outError;
|
||||
|
||||
- (void)addSample:(MP42SampleBuffer *)sample;
|
||||
- (MP42SampleBuffer *)copyEncodedSample;
|
||||
|
||||
- (void)cancel;
|
||||
|
||||
- (BOOL)encoderDone;
|
||||
- (void)setInputDone;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user