Changeset View
Changeset View
Standalone View
Standalone View
ffmpegthumbnailer/moviedecoder.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 36 | public: | |||
---|---|---|---|---|---|
46 | int getHeight(); | 46 | int getHeight(); | ||
47 | int getDuration(); | 47 | int getDuration(); | ||
48 | 48 | | |||
49 | void initialize(const QString& filename); | 49 | void initialize(const QString& filename); | ||
50 | void destroy(); | 50 | void destroy(); | ||
51 | bool getInitialized(); | 51 | bool getInitialized(); | ||
52 | 52 | | |||
53 | private: | 53 | private: | ||
54 | void initializeVideo(); | 54 | bool initializeVideo(); | ||
55 | 55 | | |||
56 | bool decodeVideoPacket(); | 56 | bool decodeVideoPacket(); | ||
57 | bool getVideoPacket(); | 57 | bool getVideoPacket(); | ||
58 | void convertAndScaleFrame(AVPixelFormat format, int scaledSize, bool maintainAspectRatio, int& scaledWidth, int& scaledHeight); | 58 | void convertAndScaleFrame(AVPixelFormat format, int scaledSize, bool maintainAspectRatio, int& scaledWidth, int& scaledHeight); | ||
59 | void createAVFrame(AVFrame** avFrame, quint8** frameBuffer, int width, int height, AVPixelFormat format); | 59 | void createAVFrame(AVFrame** avFrame, quint8** frameBuffer, int width, int height, AVPixelFormat format); | ||
60 | void calculateDimensions(int squareSize, bool maintainAspectRatio, int& destWidth, int& destHeight); | 60 | void calculateDimensions(int squareSize, bool maintainAspectRatio, int& destWidth, int& destHeight); | ||
61 | 61 | | |||
62 | void deleteFilterGraph(); | 62 | void deleteFilterGraph(); | ||
Show All 27 Lines |