From 4928ece9b10df775ab3003c024f52bdd30d8f591 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 26 Jul 2012 22:17:58 +0100 Subject: Implemented but faulty. --- src/lib/decoder.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/decoder.h') diff --git a/src/lib/decoder.h b/src/lib/decoder.h index d85510470..198dfb8dc 100644 --- a/src/lib/decoder.h +++ b/src/lib/decoder.h @@ -29,6 +29,9 @@ #include #include #include +extern "C" { +#include +} #include "util.h" class Job; @@ -65,6 +68,7 @@ public: virtual int audio_sample_rate () const = 0; /** @return format of audio samples */ virtual AVSampleFormat audio_sample_format () const = 0; + virtual int64_t audio_channel_layout () const = 0; void process_begin (); bool pass (); @@ -128,10 +132,15 @@ private: AVFilterContext* _buffer_src_context; AVFilterContext* _buffer_sink_context; + SwrContext* _swr_context; + bool _have_setup_video_filters; DelayLine* _delay_line; int _delay_in_bytes; + /* Number of audio frames that we have pushed to the encoder + (at the DCP sample rate). + */ int _audio_frames_processed; }; -- cgit v1.2.3