Merge
Demosaicing and pre-processing parameters selectable for each image. Dark frames subtraction and badpixels file support Fast loading in editor.
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef __UTILS_
|
||||
#define __UTILS_
|
||||
#ifndef __GUI_UTILS_
|
||||
#define __GUI_UTILS_
|
||||
|
||||
#include <gtkmm.h>
|
||||
#include <rtengine.h>
|
||||
@@ -28,4 +28,47 @@ Glib::ustring removeExtension (const Glib::ustring& filename);
|
||||
Glib::ustring getExtension (const Glib::ustring& filename);
|
||||
void drawCrop (Cairo::RefPtr<Cairo::Context> cr, int imx, int imy, int imw, int imh, int startx, int starty, double scale, const rtengine::procparams::CropParams& cparams);
|
||||
|
||||
/**
|
||||
* @brief Lock GTK for critical section.
|
||||
*
|
||||
* Will unlock on destruction. To use:
|
||||
*
|
||||
* <code>
|
||||
* {
|
||||
* GThreadLock lock;
|
||||
* // critical code
|
||||
* }
|
||||
* </code>
|
||||
*/
|
||||
class GThreadLock
|
||||
{
|
||||
public:
|
||||
GThreadLock()
|
||||
{
|
||||
gdk_threads_enter();
|
||||
}
|
||||
~GThreadLock()
|
||||
{
|
||||
gdk_threads_leave();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Unlock GTK critical section.
|
||||
*
|
||||
* Will relock on destruction.
|
||||
*/
|
||||
class GThreadUnLock
|
||||
{
|
||||
public:
|
||||
GThreadUnLock()
|
||||
{
|
||||
gdk_threads_leave();
|
||||
}
|
||||
~GThreadUnLock()
|
||||
{
|
||||
gdk_threads_enter();
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user