Files
Josh Allmann 79e6dcf080 Use ffmpeg parser for H.264 (#431)
Fixes a number of things including a LPMS crash, choppy video
quality, green screens during rotation, inconsistent frame counts
vs software decoding, etc. We also apparently gained GPU
support for MPEG2 decoding.

This is a massive change: we can no longer add outputs up front
due to the ffmpeg hwaccel API, so we have to wait until we receive
a decoded video frame in order to add outputs. This also means
properly queuing up audio and draining things in the same order.
2025-01-17 17:43:04 -08:00

9 lines
321 B
C

#include <libavutil/fifo.h>
#include <libavcodec/avcodec.h>
AVFifo* queue_create();
void queue_free(AVFifo **fifo);
int queue_write(AVFifo *fifo, const AVPacket *pkt, const AVFrame *frame, int decoder_return);
int queue_read(AVFifo *fifo, AVFrame *out_frame, AVPacket *out_pkt, int *stream_index, int *decoder_return);