mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-15 10:54:40 +01:00
Improved manually with the help of neovim LSP warnings and iwyu:
iwyu -Ibuilddir/app/ -Iapp/src/ app/src/XXX.c
26 lines
574 B
C
26 lines
574 B
C
#ifndef SC_DECODER_H
|
|
#define SC_DECODER_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <libavcodec/avcodec.h>
|
|
|
|
#include "trait/frame_source.h"
|
|
#include "trait/packet_sink.h"
|
|
|
|
struct sc_decoder {
|
|
struct sc_packet_sink packet_sink; // packet sink trait
|
|
struct sc_frame_source frame_source; // frame source trait
|
|
|
|
const char *name; // must be statically allocated (e.g. a string literal)
|
|
|
|
AVCodecContext *ctx;
|
|
AVFrame *frame;
|
|
};
|
|
|
|
// The name must be statically allocated (e.g. a string literal)
|
|
void
|
|
sc_decoder_init(struct sc_decoder *decoder, const char *name);
|
|
|
|
#endif
|