mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +00:00
This enables necessary functions once for all. As a consequence, define common.h before any other header.
31 lines
536 B
C
31 lines
536 B
C
#ifndef DECODER_H
|
|
#define DECODER_H
|
|
|
|
#include "common.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, const AVCodec *codec);
|
|
|
|
void
|
|
decoder_close(struct decoder *decoder);
|
|
|
|
bool
|
|
decoder_push(struct decoder *decoder, const AVPacket *packet);
|
|
|
|
void
|
|
decoder_interrupt(struct decoder *decoder);
|
|
|
|
#endif
|