diff options
Diffstat (limited to 'src/ffmpeg_image.h')
| -rw-r--r-- | src/ffmpeg_image.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ffmpeg_image.h b/src/ffmpeg_image.h index 56b68574..0850b701 100644 --- a/src/ffmpeg_image.h +++ b/src/ffmpeg_image.h @@ -36,6 +36,7 @@ #define LIBDCP_FFMPEG_IMAGE_H +#include "types.h" extern "C" { #include <libavutil/frame.h> } @@ -49,6 +50,8 @@ namespace dcp { class FFmpegImage { public: + explicit FFmpegImage(int64_t pts); + explicit FFmpegImage(AVFrame* frame) : _frame(frame) {} @@ -74,6 +77,21 @@ public: return _frame; } + uint8_t* y(); + int y_stride() const; + + uint8_t* u(); + int u_stride() const; + + uint8_t* v(); + int v_stride() const; + + Size size() const { + return { 1920, 1080 }; + } + + void set_pts(int64_t pts); + private: AVFrame* _frame = nullptr; }; |
