Skip to content

Commit

Permalink
refine: use images pool for faster allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcseacave committed Oct 9, 2015
1 parent b7389f7 commit fba29be
Show file tree
Hide file tree
Showing 16 changed files with 109 additions and 152 deletions.
9 changes: 1 addition & 8 deletions apps/InterfaceOpenMVG/InterfaceOpenMVG.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/*
* InterfaceOpenMVG.cpp
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
* Pierre MOULON <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -32,9 +28,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#include "../../libs/MVS/Common.h"
Expand Down
9 changes: 1 addition & 8 deletions apps/InterfaceOpenMVG/InterfaceOpenMVG2.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/*
* InterfaceOpenMVG.cpp
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
* Pierre MOULON <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -32,9 +28,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#include "../../libs/MVS/Common.h"
Expand Down
9 changes: 1 addition & 8 deletions apps/ReconstructMesh/ReconstructMesh.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* ReconstructMesh.cpp
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#include "../../libs/MVS/Common.h"
Expand Down
28 changes: 4 additions & 24 deletions libs/Common/AutoPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,12 @@ class CAutoPtr
return m_pointer;
}

inline bool operator==(const CAutoPtr& _Right) const
{ // return pointer to class object
return (m_pointer == _Right.m_pointer);
}

inline bool operator!=(const CAutoPtr& _Right) const
{ // return pointer to class object
return (m_pointer != _Right.m_pointer);
}

inline bool operator==(const void* _Right) const
inline bool operator==(const TypePtr _Right) const
{ // return pointer to class object
return (m_pointer == _Right);
}

inline bool operator!=(const void* _Right) const
inline bool operator!=(const TypePtr _Right) const
{ // return pointer to class object
return (m_pointer != _Right);
}
Expand Down Expand Up @@ -237,22 +227,12 @@ class CAutoPtrArr
return m_pointer;
}

inline bool operator==(const CAutoPtrArr& _Right) const
{ // return pointer to class object
return (m_pointer == _Right.m_pointer);
}

inline bool operator!=(const CAutoPtrArr& _Right) const
{ // return pointer to class object
return (m_pointer != _Right.m_pointer);
}

inline bool operator==(const void* _Right) const
inline bool operator==(const TypePtr _Right) const
{ // return pointer to class object
return (m_pointer == _Right);
}

inline bool operator!=(const void* _Right) const
inline bool operator!=(const TypePtr _Right) const
{ // return pointer to class object
return (m_pointer != _Right);
}
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/Camera.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* Camera.cpp
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#include "Common.h"
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/Camera.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* Camera.h
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#ifndef _MVS_CAMERA_H_
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/Common.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* Common.cpp
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

// Source file that includes just the standard includes
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/Common.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* Common.h
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#ifndef _MVS_COMMON_H_
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/Image.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* Image.cpp
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#include "Common.h"
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/Image.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* Image.h
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#ifndef _MVS_VIEW_H_
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/Platform.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* Platform.cpp
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#include "Common.h"
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/Platform.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* Platform.h
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#ifndef _MVS_PLATFORM_H_
Expand Down
9 changes: 1 addition & 8 deletions libs/MVS/PointCloud.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/*
* PointCloud.cpp
*
* Copyright (c) 2014-2015 FOXEL SA - http://foxel.ch
* Please read <http://foxel.ch/license> for more information.
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <[email protected]>
*
*
* This file is part of the FOXEL project <http://foxel.ch>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand All @@ -31,9 +27,6 @@
* You are required to preserve legal notices and author attributions in
* that material or in the Appropriate Legal Notices displayed by works
* containing it.
*
* You are required to attribute the work as explained in the "Usage and
* Attribution" section of <http://foxel.ch/license>.
*/

#include "Common.h"
Expand Down
Loading

0 comments on commit fba29be

Please sign in to comment.