diff options
Diffstat (limited to 'core/HBInternal.h')
-rw-r--r-- | core/HBInternal.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/core/HBInternal.h b/core/HBInternal.h new file mode 100644 index 000000000..169451980 --- /dev/null +++ b/core/HBInternal.h @@ -0,0 +1,81 @@ +/* $Id: HBInternal.h,v 1.4 2004/01/16 20:55:21 titer Exp $ + + This file is part of the HandBrake source code. + Homepage: <http://handbrake.m0k.org/>. + It may be used under the terms of the GNU General Public License. */ + +#ifndef HB_INTERNAL_H +#define HB_INTERNAL_H + +#include "HandBrake.h" +#include "Fifo.h" +#include "Thread.h" +#include "Work.h" + +/* Demuxer */ +HBDVDRead * HBDVDReadInit( HBHandle *, HBTitle * ); +void HBDVDReadClose( HBDVDRead ** ); + +/* Decoders */ +HBWork * HBMpeg2DecInit( HBHandle *, HBTitle * ); +void HBMpeg2DecClose( HBWork ** ); +HBWork * HBAc3DecInit( HBHandle *, HBAudio * ); +void HBAc3DecClose( HBWork ** ); +HBWork * HBMadDecInit( HBHandle *, HBAudio * ); +void HBMadDecClose( HBWork ** ); + +/* Scaler */ +HBWork * HBScaleInit( HBHandle *, HBTitle * ); +void HBScaleClose( HBWork ** ); + +/* Encoders */ +HBWork * HBFfmpegEncInit( HBHandle *, HBTitle * ); +void HBFfmpegEncClose( HBWork ** ); +HBWork * HBXvidEncInit( HBHandle *, HBTitle * ); +void HBXvidEncClose( HBWork ** ); +HBWork * HBX264EncInit( HBHandle *, HBTitle * ); +void HBX264EncClose( HBWork ** ); +HBWork * HBMp3EncInit( HBHandle *, HBAudio * ); +void HBMp3EncClose( HBWork ** ); +HBWork * HBFaacEncInit( HBHandle *, HBAudio * ); +void HBFaacEncClose( HBWork ** ); +HBWork * HBVorbisEncInit ( HBHandle *, HBAudio * ); +void HBVorbisEncClose( HBWork ** ); + +/* Muxers */ +HBAviMux * HBAviMuxInit( HBHandle *, HBTitle * ); +void HBAviMuxClose( HBAviMux ** ); +HBMp4Mux * HBMp4MuxInit( HBHandle *, HBTitle * ); +void HBMp4MuxClose( HBMp4Mux ** ); +HBOgmMux * HBOgmMuxInit( HBHandle *, HBTitle * ); +void HBOgmMuxClose( HBOgmMux ** ); + +/* Scanner */ +HBScan * HBScanInit( HBHandle *, const char * device, int title ); +void HBScanClose( HBScan ** ); + +/* Called by HBScan to tell the GUI how far we've been */ +void HBScanning( HBHandle *, int title, int titleCount ); + +/* Called by HBScan. titleList is a list of all valid titles which + should be shown on the interface */ +void HBScanDone( HBHandle *, HBList * titleList ); + +/* Used to create temporary files (/tmp/HB.pid.whatever) */ +int HBGetPid( HBHandle * ); + +/* Called by every thread involved in the rip process. Returns + immediately is rip isn't paused, blocks until the rip is resumed + otherwise */ +void HBCheckPaused( HBHandle * ); + +/* Called by the decoders when the last packet is being proceeded */ +void HBDone( HBHandle * ); + +/* Called by the video encoder to update the GUI progress */ +void HBPosition( HBHandle *, float ); + +/* Called by any thread which couldn't continue and asks to stop */ +void HBErrorOccured( HBHandle *, int error ); + +#endif |