~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to extra/libkdcraw/libraw/RawSpeed/TiffParserException.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "StdAfx.h"
 
2
#include "TiffParserException.h"
 
3
#if !defined(WIN32) || defined(__MINGW32__)
 
4
#include <stdarg.h>
 
5
#define vsprintf_s(...) vsnprintf(__VA_ARGS__)
 
6
#endif
 
7
 
 
8
/*
 
9
    RawSpeed - RAW file decoder.
 
10
 
 
11
    Copyright (C) 2009 Klaus Post
 
12
 
 
13
    This library is free software; you can redistribute it and/or
 
14
    modify it under the terms of the GNU Lesser General Public
 
15
    License as published by the Free Software Foundation; either
 
16
    version 2 of the License, or (at your option) any later version.
 
17
 
 
18
    This library is distributed in the hope that it will be useful,
 
19
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
21
    Lesser General Public License for more details.
 
22
 
 
23
    You should have received a copy of the GNU Lesser General Public
 
24
    License along with this library; if not, write to the Free Software
 
25
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
26
 
 
27
    http://www.klauspost.com
 
28
*/
 
29
 
 
30
namespace RawSpeed {
 
31
 
 
32
TiffParserException::TiffParserException(const string _msg) : runtime_error(_msg) {
 
33
  _RPT1(0, "TIFF Exception: %s\n", _msg.c_str());
 
34
};
 
35
 
 
36
void ThrowTPE(const char* fmt, ...) {
 
37
  va_list val;
 
38
  va_start(val, fmt);
 
39
  char buf[8192];
 
40
  vsprintf_s(buf, 8192, fmt, val);
 
41
  va_end(val);
 
42
  _RPT1(0, "EXCEPTION: %s\n", buf);
 
43
  throw TiffParserException(buf);
 
44
}
 
45
 
 
46
} // namespace RawSpeed