diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-22 09:34:08 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-22 09:34:08 +0000 |
| commit | 17b2501eb80f96296f76e5cae7a4253b3a1efacd (patch) | |
| tree | 9d882e1485675f2f70b1c76e1a909b3694f53f0b /src/plugins/Input/ffmpeg/decoder_ffmpeg.h | |
| parent | 21b9524ea5326ff9828c6ce2ec0e973180e93603 (diff) | |
| download | qmmp-17b2501eb80f96296f76e5cae7a4253b3a1efacd.tar.gz qmmp-17b2501eb80f96296f76e5cae7a4253b3a1efacd.tar.bz2 qmmp-17b2501eb80f96296f76e5cae7a4253b3a1efacd.zip | |
enabled ffmpeg plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1061 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/ffmpeg/decoder_ffmpeg.h')
| -rw-r--r-- | src/plugins/Input/ffmpeg/decoder_ffmpeg.h | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/src/plugins/Input/ffmpeg/decoder_ffmpeg.h b/src/plugins/Input/ffmpeg/decoder_ffmpeg.h index 5c789d24d..bd4dddfb9 100644 --- a/src/plugins/Input/ffmpeg/decoder_ffmpeg.h +++ b/src/plugins/Input/ffmpeg/decoder_ffmpeg.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2008 by Ilya Kotov * + * Copyright (C) 2006-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -51,34 +51,26 @@ public: // Standard Decoder API bool initialize(); qint64 totalTime(); - void seek(qint64); - void stop(); + int bitrate(); private: - // thread run function - void run(); - // helper functions - void flush(bool = FALSE); - void deinit(); - void ffmpeg_out(int size); - bool inited, user_stop; - - // output buffer - char *output_buf; - qint64 output_bytes, output_at; + qint64 readAudio(char *audio, qint64 maxSize); + void seekAudio(qint64 time); + //helper functions + void fillBuffer(); + qint64 ffmpeg_decode(char *audio, qint64 maxSize); AVFormatContext *ic; AVCodecContext *c; - uint wma_st_buff, wma_idx, wma_idx2; - uint8_t *wma_outbuf; + uint wma_st_buff, wma_idx2; + int m_bitrate, wma_idx; + QString m_path; - unsigned int bks; - bool done, m_finish; - long freq, bitrate; - int chan; - qint64 output_size; qint64 m_totalTime, seekTime; - QString m_path; + + AVPacket m_pkt; + uint8_t *m_inbuf_ptr; + int m_size; }; |
