dfed1b250e
Scrcpy is a C11 project. Use the C99 standard types instead of the SDL-specific types: SDL_bool -> bool SintXX -> intXX_t UintXX -> uintXX_t
30 lines
503 B
C
30 lines
503 B
C
#ifndef DECODER_H
|
|
#define DECODER_H
|
|
|
|
#include <stdbool.h>
|
|
#include <libavformat/avformat.h>
|
|
|
|
struct video_buffer;
|
|
|
|
struct decoder {
|
|
struct video_buffer *video_buffer;
|
|
AVCodecContext *codec_ctx;
|
|
};
|
|
|
|
void
|
|
decoder_init(struct decoder *decoder, struct video_buffer *vb);
|
|
|
|
bool
|
|
decoder_open(struct decoder *decoder, AVCodec *codec);
|
|
|
|
void
|
|
decoder_close(struct decoder *decoder);
|
|
|
|
bool
|
|
decoder_push(struct decoder *decoder, AVPacket *packet);
|
|
|
|
void
|
|
decoder_interrupt(struct decoder *decoder);
|
|
|
|
#endif
|