mirror of
https://github.com/Genymobile/scrcpy.git
synced 2024-09-19 05:31:21 +02:00
aeda583a2c
Limit source code to 80 chars, and declare functions return type and modifiers on a separate line. This allows to avoid very long lines, and all function names are aligned. (We do this on VLC, and I like it.)
29 lines
519 B
C
29 lines
519 B
C
#ifndef DECODER_H
|
|
#define DECODER_H
|
|
|
|
#include <libavformat/avformat.h>
|
|
#include <SDL2/SDL_stdinc.h>
|
|
|
|
struct video_buffer;
|
|
|
|
struct decoder {
|
|
struct video_buffer *video_buffer;
|
|
AVCodecContext *codec_ctx;
|
|
};
|
|
|
|
void
|
|
decoder_init(struct decoder *decoder, struct video_buffer *vb);
|
|
|
|
SDL_bool
|
|
decoder_open(struct decoder *decoder, AVCodec *codec);
|
|
|
|
void
|
|
decoder_close(struct decoder *decoder);
|
|
|
|
SDL_bool
|
|
decoder_push(struct decoder *decoder, AVPacket *packet);
|
|
|
|
void
|
|
decoder_interrupt(struct decoder *decoder);
|
|
|
|
#endif
|