From 88b9fa7ad5c0e251b854bb0145a85cc6806c9f5c Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Thu, 24 Aug 2017 11:01:15 +0200 Subject: Move some objects to PAD encoder base class --- src/odr-padenc.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/odr-padenc.h') diff --git a/src/odr-padenc.h b/src/odr-padenc.h index f6f037c..0158f55 100644 --- a/src/odr-padenc.h +++ b/src/odr-padenc.h @@ -76,12 +76,23 @@ struct PadEncoderOptions { class PadEncoder { protected: PadEncoderOptions options; + PADPacketizer pad_packetizer; + DLSEncoder dls_encoder; + SLSEncoder sls_encoder; + SlideStore slides; int output_fd; std::mutex status_mutex; bool do_exit; - PadEncoder(PadEncoderOptions options) : options(options), output_fd(-1), do_exit(false) {} + PadEncoder(PadEncoderOptions options) : + options(options), + pad_packetizer(PADPacketizer(options.padlen)), + dls_encoder(DLSEncoder(&pad_packetizer)), + sls_encoder(SLSEncoder(&pad_packetizer)), + output_fd(-1), + do_exit(false) + {} virtual int Encode() = 0; public: -- cgit v1.2.3