diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-01 20:03:12 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-01 20:04:43 -0400 |
commit | b26f27d9e3fd44ec5775accdc3666a339684be4c (patch) | |
tree | e5c7b8b48f5597904190529f90d71a8526ca9800 /ffmpeg_backend.h | |
parent | 7d3dcee5b370c05065eb409ad5c21d0bc64790b1 (diff) |
large changes to bitmap structure
Diffstat (limited to 'ffmpeg_backend.h')
-rw-r--r-- | ffmpeg_backend.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ffmpeg_backend.h b/ffmpeg_backend.h new file mode 100644 index 0000000..d6a6a66 --- /dev/null +++ b/ffmpeg_backend.h @@ -0,0 +1,22 @@ +struct av_codec_info { + real32 AvgPTSPerFrame; + + AVFormatContext *FileFormatContext; + AVCodecParameters *VideoCodecParameters; + const AVCodec* VideoCodec; + const AVCodecHWConfig* VideoHWConfig; + // AVPixelFormat HWPixFormat; + AVCodecContext *VideoCodecContext; + AVStream *VideoStream; +}; + +struct av_packet_info { + uint64 PreviousPTS = -1; // PTS value of the previous frame, used to check timings. + + AVPacket *VideoPacket; + AVFrame *VideoFrame; + SwsContext *RGBContext; +}; + +static bool32 AV_TryFrame(av_codec_info *AV, av_packet_info *AVPacket, int32 *err); // Internal attempt to decode a frame. Typically run in a while loop until it returns true. + |