From d782b32c7fdd6713af362534cfa5a4d754190b64 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Wed, 23 Aug 2017 19:02:39 +0200 Subject: Rename managers to encoders --- src/odr-padenc.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/odr-padenc.cpp') diff --git a/src/odr-padenc.cpp b/src/odr-padenc.cpp index 01385d0..c600320 100644 --- a/src/odr-padenc.cpp +++ b/src/odr-padenc.cpp @@ -296,8 +296,8 @@ const int BurstPadEncoder::DLS_REPETITION_WHILE_SLS = 50; // PADs int BurstPadEncoder::Encode() { PADPacketizer pad_packetizer(options.padlen); - DLSManager dls_manager(&pad_packetizer); - SLSManager sls_manager(&pad_packetizer); + DLSEncoder dls_encoder(&pad_packetizer); + SLSEncoder sls_encoder(&pad_packetizer); SlideStore slides; std::chrono::steady_clock::time_point next_run = std::chrono::steady_clock::now(); @@ -314,7 +314,7 @@ int BurstPadEncoder::Encode() { if (!slides.Empty()) { slide_metadata_t slide = slides.GetSlide(); - if (!sls_manager.encodeFile(slide.filepath, slide.fidx, options.raw_slides)) + if (!sls_encoder.encodeSlide(slide.filepath, slide.fidx, options.raw_slides)) fprintf(stderr, "ODR-PadEnc Error: cannot encode file '%s'\n", slide.filepath.c_str()); if (options.erase_after_tx) { @@ -325,7 +325,7 @@ int BurstPadEncoder::Encode() { // while flushing, insert DLS (if present) after a certain PAD amout while (pad_packetizer.QueueFilled()) { if (not options.dls_files.empty()) - dls_manager.writeDLS(options.dls_files[curr_dls_file], options.dl_params); + dls_encoder.encodeLabel(options.dls_files[curr_dls_file], options.dl_params); pad_packetizer.WriteAllPADs(output_fd, DLS_REPETITION_WHILE_SLS); } @@ -333,7 +333,7 @@ int BurstPadEncoder::Encode() { // encode (a last) DLS (if present) if (not options.dls_files.empty()) { - dls_manager.writeDLS(options.dls_files[curr_dls_file], options.dl_params); + dls_encoder.encodeLabel(options.dls_files[curr_dls_file], options.dl_params); // switch to next DLS file curr_dls_file = (curr_dls_file + 1) % options.dls_files.size(); -- cgit v1.2.3