25 #ifndef DIGIKAM_VIDEO_DECODER_PRIVATE_H
26 #define DIGIKAM_VIDEO_DECODER_PRIVATE_H
34 #include <libswscale/swscale.h>
35 #include <libavcodec/avcodec.h>
36 #include <libavutil/imgutils.h>
37 #include <libavformat/avformat.h>
38 #include <libavfilter/avfilter.h>
39 #include <libavfilter/buffersrc.h>
40 #include <libavfilter/buffersink.h>
72 enum AVPixelFormat lastPixfmt;
76 bool initializeVideo();
77 bool getVideoPacket();
78 bool decodeVideoPacket()
const;
80 void convertAndScaleFrame(AVPixelFormat format,
82 bool maintainAspectRatio,
86 bool processFilterGraph(AVFrame*
const dst,
87 const AVFrame*
const src,
88 enum AVPixelFormat pixfmt,
92 void deleteFilterGraph();
96 bool initFilterGraph(
enum AVPixelFormat pixfmt,
int width,
int height);
98 void calculateDimensions(
int squareSize,
99 bool maintainAspectRatio,
103 void createAVFrame(AVFrame**
const avFrame,
104 quint8**
const frameBuffer,
107 AVPixelFormat format);
110 int decodeVideoNew(AVCodecContext*
const avContext,
111 AVFrame*
const avFrame,
113 AVPacket*
const avPacket)
const;
Definition: videodecoder_p.h:47
int lastWidth
Definition: videodecoder_p.h:70
int videoStream
Definition: videodecoder_p.h:55
bool allowSeek
Definition: videodecoder_p.h:64
quint8 * pFrameBuffer
Definition: videodecoder_p.h:62
AVFilterContext * bufferSinkContext
Definition: videodecoder_p.h:66
AVFilterGraph * filterGraph
Definition: videodecoder_p.h:68
AVFrame * filterFrame
Definition: videodecoder_p.h:69
AVPacket * pPacket
Definition: videodecoder_p.h:63
AVCodecContext * pVideoCodecContext
Definition: videodecoder_p.h:57
AVStream * pVideoStream
Definition: videodecoder_p.h:60
AVCodec * pVideoCodec
Definition: videodecoder_p.h:59
int lastHeight
Definition: videodecoder_p.h:71
bool initialized
Definition: videodecoder_p.h:65
AVFilterContext * bufferSourceContext
Definition: videodecoder_p.h:67
AVFrame * pFrame
Definition: videodecoder_p.h:61
AVFormatContext * pFormatContext
Definition: videodecoder_p.h:56
AVCodecParameters * pVideoCodecParameters
Definition: videodecoder_p.h:58
Definition: videodecoder.h:40
Definition: datefolderview.cpp:43