Refactor parameter passing to decoders and split backend/decode-only and frontend renderers
This commit is contained in:
parent
9dcd770df2
commit
25e5175c54
16 changed files with 173 additions and 168 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <SDL.h>
|
||||
|
||||
#include "streaming/video/decoder.h"
|
||||
#include "streaming/video/overlaymanager.h"
|
||||
|
||||
extern "C" {
|
||||
|
|
@ -16,12 +17,7 @@ public:
|
|||
PACING_ANY
|
||||
};
|
||||
|
||||
virtual bool initialize(SDL_Window* window,
|
||||
int videoFormat,
|
||||
int width,
|
||||
int height,
|
||||
int maxFps,
|
||||
bool enableVsync) = 0;
|
||||
virtual bool initialize(PDECODER_PARAMETERS params) = 0;
|
||||
virtual bool prepareDecoderContext(AVCodecContext* context) = 0;
|
||||
virtual void renderFrame(AVFrame* frame) = 0;
|
||||
virtual bool needsTestFrame() = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue