diff options
author | Stefan Pöschel <github@basicmaster.de> | 2017-08-24 11:01:15 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2017-08-24 11:01:15 +0200 |
commit | 88b9fa7ad5c0e251b854bb0145a85cc6806c9f5c (patch) | |
tree | 7fa10c0ccf15d095f42e66a498c8aacf6d233275 /src/odr-padenc.h | |
parent | ea629edd86ed9358243a673845b62a1be7d6a6b3 (diff) | |
download | ODR-PadEnc-88b9fa7ad5c0e251b854bb0145a85cc6806c9f5c.tar.gz ODR-PadEnc-88b9fa7ad5c0e251b854bb0145a85cc6806c9f5c.tar.bz2 ODR-PadEnc-88b9fa7ad5c0e251b854bb0145a85cc6806c9f5c.zip |
Move some objects to PAD encoder base class
Diffstat (limited to 'src/odr-padenc.h')
-rw-r--r-- | src/odr-padenc.h | 13 |
1 files changed, 12 insertions, 1 deletions
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: |