Finish implementation of AVDecoder and the old implementation based on

MediaInfo is removed.
Removed old broadcast class.
This commit is contained in:
codestation
2013-08-19 23:15:23 -04:30
parent e777a5bfcd
commit 45a8366f9e
11 changed files with 130 additions and 267 deletions

View File

@@ -15,13 +15,17 @@ class AVDecoder
{
public:
AVDecoder();
~AVDecoder();
bool open(const QString filename);
QByteArray getAudioThumbnail(int width, int height);
QByteArray getVideoThumbnail(int width, int height);
void getPictureMetadata(metadata_t &metadata);
void getAudioMetadata(metadata_t &metadata);
void getVideoMetadata(metadata_t &metadata);
void close();
static void init();
private:
void AVFrameToQImage(AVFrame &frame, QImage &image, int width, int height);
AVFrame *getDecodedFrame(AVCodecContext *pCodecCtx, int stream_index);