forked from havlenapetr/FFMpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9a7224
commit 67a901e
Showing
4 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include <android/log.h> | ||
#include "decoder_video.h" | ||
|
||
#define TAG "FFMpegVideoDecoder" | ||
|
||
static DecoderVideo* sInstance; | ||
|
||
DecoderVideo::DecoderVideo(AVCodecContext* codec_ctx) | ||
{ | ||
mQueue = new PacketQueue(); | ||
mCodecCtx = codec_ctx; | ||
sInstance = this; | ||
} | ||
|
||
DecoderVideo::~DecoderVideo() | ||
{ | ||
if(mDecoding) | ||
{ | ||
stop(); | ||
} | ||
} | ||
|
||
bool DecoderVideo::prepare(const char *err) | ||
{ | ||
return false; | ||
} | ||
|
||
bool DecoderVideo::process(AVPacket *packet) | ||
{ | ||
return false; | ||
} | ||
|
||
bool DecoderVideo::decode(void* ptr) | ||
{ | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef FFMPEG_DECODER_VIDEO_H | ||
#define FFMPEG_DECODER_VIDEO_H | ||
|
||
#include "decoder.h" | ||
|
||
class DecoderVideo : public IDecoder | ||
{ | ||
public: | ||
DecoderVideo(AVCodecContext* codec_ctx); | ||
|
||
~DecoderVideo(); | ||
|
||
private: | ||
|
||
bool prepare(const char *err); | ||
bool decode(void* ptr); | ||
bool process(AVPacket *packet); | ||
}; | ||
|
||
#endif //FFMPEG_DECODER_AUDIO_H |