diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-07-07 16:50:49 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-07-07 16:50:49 +0200 |
| commit | 7a57543bd2f20f663259e5c97c910fc4f11714e8 (patch) | |
| tree | f56c7653553fa43f94ea542879caa5fb1367d95b /src/lib/grok_context.h | |
| parent | 5c6bd7a9be5f2bf16fc887272a4bc02413c3f5fd (diff) | |
Run clang-format on the previous commit.
Diffstat (limited to 'src/lib/grok_context.h')
| -rw-r--r-- | src/lib/grok_context.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/grok_context.h b/src/lib/grok_context.h index 411e2f79f..6a5cbfd93 100644 --- a/src/lib/grok_context.h +++ b/src/lib/grok_context.h @@ -206,7 +206,7 @@ public: auto fp = _messenger->retrieve(clientFrameId, success); if (!success) { return; -} + } auto encoded = std::make_shared<dcp::ArrayData>(fp.vf.encode_locally()); _dcpomatic_context.writer_.write(encoded, fp.vf.index(), fp.vf.eyes()); @@ -234,31 +234,31 @@ public: { if (!_messenger) { return false; -} + } if (_launched) { return true; -} + } std::unique_lock<std::mutex> lk_global(launchMutex); if (!_messenger) { return false; -} + } if (_launched) { return true; -} + } if (MessengerInit::first_launch(true)) { auto s = dcpv.get_size(); _dcpomatic_context.set_dimensions(s.width, s.height); auto config = Config::instance(); _messenger->launch_grok(_dcpomatic_context.location_, - _dcpomatic_context.width_, _dcpomatic_context.width_, - _dcpomatic_context.height_, - 3, 12, device, - _dcpomatic_context.film_->resolution() == Resolution::FOUR_K, - _dcpomatic_context.film_->video_frame_rate(), - _dcpomatic_context.film_->j2k_bandwidth(), - config->gpu_license_server(), - config->gpu_license_port(), - config->gpu_license()); + _dcpomatic_context.width_, _dcpomatic_context.width_, + _dcpomatic_context.height_, + 3, 12, device, + _dcpomatic_context.film_->resolution() == Resolution::FOUR_K, + _dcpomatic_context.film_->video_frame_rate(), + _dcpomatic_context.film_->j2k_bandwidth(), + config->gpu_license_server(), + config->gpu_license_port(), + config->gpu_license()); } _launched = _messenger->wait_for_client_init(); @@ -269,7 +269,7 @@ public: { if (!_messenger) { return false; -} + } auto fp = FrameProxy(vf.index(), vf.eyes(), vf); auto cvt = [this, &fp](BufferSrc src) { @@ -283,15 +283,15 @@ public: { if (!_messenger) { return; -} + } std::unique_lock<std::mutex> lk_global(launchMutex); if (!_messenger) { return; -} + } if (_launched) { _messenger->shutdown(); -} + } delete _messenger; _messenger = nullptr; } |
