1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Deleted all trailing whitespace.

This commit is contained in:
Roman Donchenko
2013-08-21 16:44:09 +04:00
parent 0d8cb2e319
commit f55740da70
193 changed files with 1685 additions and 1685 deletions
@@ -3,7 +3,7 @@
//////////////////////////////////////////////////////////////////////////
// AsyncCallback [template]
//
// Description:
// Description:
// Helper class that routes IMFAsyncCallback::Invoke calls to a class
// method on the parent class.
//
@@ -24,7 +24,7 @@
template<class T>
class AsyncCallback : public IMFAsyncCallback
{
public:
public:
typedef HRESULT (T::*InvokeFn)(IMFAsyncResult *pAsyncResult);
AsyncCallback(T *pParent, InvokeFn fn) : m_pParent(pParent), m_pInvokeFn(fn)
@@ -32,13 +32,13 @@ public:
}
// IUnknown
STDMETHODIMP_(ULONG) AddRef() {
STDMETHODIMP_(ULONG) AddRef() {
// Delegate to parent class.
return m_pParent->AddRef();
return m_pParent->AddRef();
}
STDMETHODIMP_(ULONG) Release() {
STDMETHODIMP_(ULONG) Release() {
// Delegate to parent class.
return m_pParent->Release();
return m_pParent->Release();
}
STDMETHODIMP QueryInterface(REFIID iid, void** ppv)
{
@@ -36,7 +36,7 @@ public:
//////////////////////////////////////////////////////////////////////////
// AutoLock
// Description: Provides automatic locking and unlocking of a
// Description: Provides automatic locking and unlocking of a
// of a critical section.
//
// Note: The AutoLock object must go out of scope before the CritSec.
@@ -13,9 +13,9 @@
#pragma once
// Notes:
//
// The List class template implements a simple double-linked list.
// It uses STL's copy semantics.
//
// The List class template implements a simple double-linked list.
// It uses STL's copy semantics.
// There are two versions of the Clear() method:
// Clear(void) clears the list w/out cleaning up the object.
@@ -90,7 +90,7 @@ public:
private:
const Node *pNode;
POSITION(Node *p) : pNode(p)
POSITION(Node *p) : pNode(p)
{
}
};
@@ -123,7 +123,7 @@ protected:
}
Node *pAfter = pBefore->next;
pBefore->next = pNode;
pAfter->prev = pNode;
@@ -336,12 +336,12 @@ public:
}
HRESULT GetItemPos(POSITION pos, T *ppItem)
{
{
if (pos.pNode)
{
return GetItem(pos.pNode, ppItem);
}
else
else
{
return E_FAIL;
}
@@ -359,7 +359,7 @@ public:
}
}
// Remove an item at a position.
// Remove an item at a position.
// The item is returns in ppItem, unless ppItem is nullptr.
// NOTE: This method invalidates the POSITION object.
HRESULT Remove(POSITION& pos, T *ppItem)
@@ -390,7 +390,7 @@ public:
class ComAutoRelease
{
public:
public:
void operator()(IUnknown *p)
{
if (p)
@@ -399,10 +399,10 @@ public:
}
}
};
class MemDelete
{
public:
public:
void operator()(void *p)
{
if (p)
@@ -416,9 +416,9 @@ public:
// ComPtrList class
// Derived class that makes it safer to store COM pointers in the List<> class.
// It automatically AddRef's the pointers that are inserted onto the list
// (unless the insertion method fails).
// (unless the insertion method fails).
//
// T must be a COM interface type.
// T must be a COM interface type.
// example: ComPtrList<IUnknown>
//
// NULLABLE: If true, client can insert nullptr pointers. This means GetItem can
@@ -487,7 +487,7 @@ protected:
HRESULT RemoveItem(Node *pNode, Ptr *ppItem)
{
// ppItem can be nullptr, but we need to get the
// item so that we can release it.
// item so that we can release it.
// If ppItem is not nullptr, we will AddRef it on the way out.
@@ -5,7 +5,7 @@ import "Windows.Media.idl";
namespace OcvTransform
{
[version(NTDDI_WIN8)]
runtimeclass OcvImageManipulations
runtimeclass OcvImageManipulations
{
}
}
@@ -1333,7 +1333,7 @@ HRESULT OcvImageManipulations::OnProcessOutput(IMFMediaBuffer *pIn, IMFMediaBuff
const int mHistSize[] = {25};
const float baseRabge[] = {0.f,256.f};
const float* ranges[] = {baseRabge};
const cv::Scalar mColorsY[] = { cv::Scalar(76), cv::Scalar(149), cv::Scalar(29) };
const cv::Scalar mColorsUV[] = { cv::Scalar(84, 255), cv::Scalar(43, 21), cv::Scalar(255, 107) };
@@ -1370,7 +1370,7 @@ HRESULT OcvImageManipulations::OnProcessOutput(IMFMediaBuffer *pIn, IMFMediaBuff
mP2.y /= 2;
cv::line(OutputUV, mP1, mP2, mColorsUV[c], thikness/2);
}
}
}
} break;
default:
break;
@@ -47,7 +47,7 @@ HRESULT WINAPI DllGetActivationFactory( _In_ HSTRING activatibleClassId, _Outptr
HRESULT WINAPI DllCanUnloadNow()
{
auto &module = Microsoft::WRL::Module<Microsoft::WRL::InProc>::GetModule();
auto &module = Microsoft::WRL::Module<Microsoft::WRL::InProc>::GetModule();
return (module.Terminate()) ? S_OK : S_FALSE;
}