diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-06-08 17:07:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-06-08 17:07:24 +0100 |
| commit | 383c3b6c81e916c59b08a765540784d3f2350276 (patch) | |
| tree | 8726ada4d0bf1aa5cb8d97901a53b1fcd1966ea7 /src/lib/ffmpeg_examiner.h | |
| parent | 677344e05e5c8483d39430ab5058f1ff8114fd9e (diff) | |
Auto-rotate videos.
Diffstat (limited to 'src/lib/ffmpeg_examiner.h')
| -rw-r--r-- | src/lib/ffmpeg_examiner.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_examiner.h b/src/lib/ffmpeg_examiner.h index 5cd70d979..67fdcfae0 100644 --- a/src/lib/ffmpeg_examiner.h +++ b/src/lib/ffmpeg_examiner.h @@ -71,6 +71,10 @@ public: boost::optional<int> bits_per_pixel () const; + boost::optional<double> rotation () const { + return _rotation; + } + private: void video_packet (AVCodecContext *); void audio_packet (AVCodecContext *, boost::shared_ptr<FFmpegAudioStream>); @@ -88,6 +92,8 @@ private: Frame _video_length; bool _need_video_length; + boost::optional<double> _rotation; + struct SubtitleStart { SubtitleStart (std::string id_, bool image_, ContentTime time_) |
