Gather and store chroma subsampling information for video content.
[dcpomatic.git] / src / lib / ffmpeg_examiner.cc
index 853db90be3e3ef1ec36cc834a51f0ff6754468e9..c63bca647de2be0f52f9011bf0114a0b69014740 100644 (file)
@@ -480,3 +480,18 @@ FFmpegExaminer::range () const
                return VideoRange::FULL;
        }
 }
+
+
+int
+FFmpegExaminer::log2_chroma_width () const
+{
+       return av_pix_fmt_desc_get(video_codec_context()->pix_fmt)->log2_chroma_w;
+}
+
+
+int
+FFmpegExaminer::log2_chroma_height () const
+{
+       return av_pix_fmt_desc_get(video_codec_context()->pix_fmt)->log2_chroma_h;
+}
+