mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Normalised all whitespace before args in std::function
This commit is contained in:
parent
3283f2224a
commit
d510b73cdf
62 changed files with 149 additions and 149 deletions
|
|
@ -146,7 +146,7 @@ Component* CameraDevice::createViewerComponent()
|
|||
return new ViewerComponent (*this);
|
||||
}
|
||||
|
||||
void CameraDevice::takeStillPicture (std::function<void(const Image&)> pictureTakenCallback)
|
||||
void CameraDevice::takeStillPicture (std::function<void (const Image&)> pictureTakenCallback)
|
||||
{
|
||||
pimpl->takeStillPicture (pictureTakenCallback);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public:
|
|||
int maxWidth = 1024, int maxHeight = 768,
|
||||
bool highQuality = true);
|
||||
|
||||
using OpenCameraResultCallback = std::function<void(CameraDevice*, const String& /*error*/)>;
|
||||
using OpenCameraResultCallback = std::function<void (CameraDevice*, const String& /*error*/)>;
|
||||
|
||||
/** Asynchronously opens a camera device on iOS (iOS 7+) or Android (API 21+).
|
||||
On other platforms, the function will simply call openDevice(). Upon completion,
|
||||
|
|
@ -119,7 +119,7 @@ public:
|
|||
|
||||
Android does not support simultaneous video recording and still picture capture.
|
||||
*/
|
||||
void takeStillPicture (std::function<void(const Image&)> pictureTakenCallback);
|
||||
void takeStillPicture (std::function<void (const Image&)> pictureTakenCallback);
|
||||
|
||||
/** Starts recording video to the specified file.
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ public:
|
|||
|
||||
/** Set this callback to be notified whenever an error occurs. You may need to close
|
||||
and reopen the device to be able to use it further. */
|
||||
std::function<void(const String& /*error*/)> onErrorOccurred;
|
||||
std::function<void (const String& /*error*/)> onErrorOccurred;
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -477,7 +477,7 @@ private:
|
|||
struct CameraDevice::Pimpl
|
||||
: private ActivityLifecycleCallbacks
|
||||
{
|
||||
using InternalOpenCameraResultCallback = std::function<void(const String& /*cameraId*/, const String& /*error*/)>;
|
||||
using InternalOpenCameraResultCallback = std::function<void (const String& /*cameraId*/, const String& /*error*/)>;
|
||||
|
||||
Pimpl (CameraDevice& ownerToUse, const String& cameraIdToUse, int /*index*/,
|
||||
int minWidthToUse, int minHeightToUse, int maxWidthToUse, int maxHeightToUse,
|
||||
|
|
@ -553,7 +553,7 @@ struct CameraDevice::Pimpl
|
|||
|
||||
bool openedOk() const noexcept { return scopedCameraDevice->openedOk(); }
|
||||
|
||||
void takeStillPicture (std::function<void(const Image&)> pictureTakenCallbackToUse)
|
||||
void takeStillPicture (std::function<void (const Image&)> pictureTakenCallbackToUse)
|
||||
{
|
||||
if (pictureTakenCallbackToUse == nullptr || currentCaptureSessionMode == nullptr)
|
||||
{
|
||||
|
|
@ -2926,7 +2926,7 @@ private:
|
|||
CriticalSection listenerLock;
|
||||
ListenerList<Listener> listeners;
|
||||
|
||||
std::function<void(const Image&)> pictureTakenCallback;
|
||||
std::function<void (const Image&)> pictureTakenCallback;
|
||||
|
||||
Time firstRecordedFrameTimeMs;
|
||||
bool notifiedOfCameraOpening = false;
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ struct VideoComponent::Pimpl
|
|||
}
|
||||
}
|
||||
|
||||
void loadAsync (const URL& url, std::function<void(const URL&, Result)> callback)
|
||||
void loadAsync (const URL& url, std::function<void (const URL&, Result)> callback)
|
||||
{
|
||||
close();
|
||||
wasOpen = false;
|
||||
|
|
@ -1742,7 +1742,7 @@ private:
|
|||
#endif
|
||||
GlobalRef surfaceHolderCallback;
|
||||
|
||||
std::function<void(const URL&, Result)> loadFinishedCallback;
|
||||
std::function<void (const URL&, Result)> loadFinishedCallback;
|
||||
|
||||
bool wasOpen = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
struct CameraDevice::Pimpl
|
||||
{
|
||||
using InternalOpenCameraResultCallback = std::function<void(const String& /*cameraId*/, const String& /*error*/)>;
|
||||
using InternalOpenCameraResultCallback = std::function<void (const String& /*cameraId*/, const String& /*error*/)>;
|
||||
|
||||
Pimpl (CameraDevice& ownerToUse, const String& cameraIdToUse, int /*index*/,
|
||||
int /*minWidth*/, int /*minHeight*/, int /*maxWidth*/, int /*maxHeight*/,
|
||||
|
|
@ -72,7 +72,7 @@ struct CameraDevice::Pimpl
|
|||
|
||||
bool openedOk() const noexcept { return captureSession.openedOk(); }
|
||||
|
||||
void takeStillPicture (std::function<void(const Image&)> pictureTakenCallbackToUse)
|
||||
void takeStillPicture (std::function<void (const Image&)> pictureTakenCallbackToUse)
|
||||
{
|
||||
if (pictureTakenCallbackToUse == nullptr)
|
||||
{
|
||||
|
|
@ -1214,7 +1214,7 @@ private:
|
|||
CriticalSection listenerLock;
|
||||
ListenerList<Listener> listeners;
|
||||
|
||||
std::function<void(const Image&)> pictureTakenCallback;
|
||||
std::function<void (const Image&)> pictureTakenCallback;
|
||||
|
||||
CaptureSession captureSession;
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ struct CameraDevice::Pimpl
|
|||
//==============================================================================
|
||||
bool openedOk() const noexcept { return openingError.isEmpty(); }
|
||||
|
||||
void takeStillPicture (std::function<void(const Image&)> pictureTakenCallbackToUse)
|
||||
void takeStillPicture (std::function<void (const Image&)> pictureTakenCallbackToUse)
|
||||
{
|
||||
if (pictureTakenCallbackToUse == nullptr)
|
||||
{
|
||||
|
|
@ -368,7 +368,7 @@ private:
|
|||
CriticalSection listenerLock;
|
||||
ListenerList<Listener> listeners;
|
||||
|
||||
std::function<void(const Image&)> pictureTakenCallback = nullptr;
|
||||
std::function<void (const Image&)> pictureTakenCallback = nullptr;
|
||||
|
||||
//==============================================================================
|
||||
JUCE_DECLARE_WEAK_REFERENCEABLE (Pimpl)
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ struct VideoComponent::Pimpl : public Base
|
|||
return Result::fail ("Couldn't open movie");
|
||||
}
|
||||
|
||||
void loadAsync (const URL& url, std::function<void(const URL&, Result)> callback)
|
||||
void loadAsync (const URL& url, std::function<void (const URL&, Result)> callback)
|
||||
{
|
||||
if (url.isEmpty())
|
||||
{
|
||||
|
|
@ -770,7 +770,7 @@ private:
|
|||
|
||||
PlayerController playerController;
|
||||
|
||||
std::function<void(const URL&, Result)> loadFinishedCallback;
|
||||
std::function<void (const URL&, Result)> loadFinishedCallback;
|
||||
|
||||
double playSpeedMult = 1.0;
|
||||
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster
|
|||
|
||||
bool openedOk() const noexcept { return openedSuccessfully; }
|
||||
|
||||
void takeStillPicture (std::function<void(const Image&)> pictureTakenCallbackToUse)
|
||||
void takeStillPicture (std::function<void (const Image&)> pictureTakenCallbackToUse)
|
||||
{
|
||||
{
|
||||
const ScopedLock sl (pictureTakenCallbackLock);
|
||||
|
|
@ -551,7 +551,7 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster
|
|||
ListenerList<Listener> listeners;
|
||||
|
||||
CriticalSection pictureTakenCallbackLock;
|
||||
std::function<void(const Image&)> pictureTakenCallback;
|
||||
std::function<void (const Image&)> pictureTakenCallback;
|
||||
|
||||
bool isRecording = false, openedSuccessfully = false;
|
||||
int width = 0, height = 0;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ Result VideoComponent::load (const URL& url)
|
|||
return loadInternal (url, false);
|
||||
}
|
||||
|
||||
void VideoComponent::loadAsync (const URL& url, std::function<void(const URL&, Result)> callback)
|
||||
void VideoComponent::loadAsync (const URL& url, std::function<void (const URL&, Result)> callback)
|
||||
{
|
||||
if (callback == nullptr)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ public:
|
|||
|
||||
@see load
|
||||
*/
|
||||
void loadAsync (const URL& url, std::function<void(const URL&, Result)> loadFinishedCallback);
|
||||
void loadAsync (const URL& url, std::function<void (const URL&, Result)> loadFinishedCallback);
|
||||
|
||||
/** Closes the video and resets the component. */
|
||||
void closeVideo();
|
||||
|
|
@ -161,7 +161,7 @@ public:
|
|||
|
||||
/** Set this callback to be notified whenever an error occurs. Upon error, you
|
||||
may need to load the video again. */
|
||||
std::function<void(const String& /*error*/)> onErrorOccurred;
|
||||
std::function<void (const String& /*error*/)> onErrorOccurred;
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue