summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_examiner.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-21 19:12:44 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-21 19:12:44 +0100
commitfe771b1f0ed9f794bc98faa4cca2a15651f28e87 (patch)
treeae4366fcdd84796bcb75d3012893929f7bc2c71f /src/lib/ffmpeg_examiner.h
parent6ec7654b77b22d32cb1ca0dd35c8d66e16ca36d6 (diff)
Add more video properties to content properties dialog.
Also implement the whole properties thing more neatly.
Diffstat (limited to 'src/lib/ffmpeg_examiner.h')
-rw-r--r--src/lib/ffmpeg_examiner.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_examiner.h b/src/lib/ffmpeg_examiner.h
index 7b64b508a..f2bdea0c2 100644
--- a/src/lib/ffmpeg_examiner.h
+++ b/src/lib/ffmpeg_examiner.h
@@ -46,6 +46,22 @@ public:
return _first_video;
}
+ AVColorRange color_range () const {
+ return video_codec_context()->color_range;
+ }
+
+ AVColorPrimaries color_primaries () const {
+ return video_codec_context()->color_primaries;
+ }
+
+ AVColorTransferCharacteristic color_trc () const {
+ return video_codec_context()->color_trc;
+ }
+
+ AVColorSpace colorspace () const {
+ return video_codec_context()->colorspace;
+ }
+
private:
void video_packet (AVCodecContext *);
void audio_packet (AVCodecContext *, boost::shared_ptr<FFmpegAudioStream>);