summaryrefslogtreecommitdiff
path: root/src/lib/image.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-28 22:20:07 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-28 22:20:07 +0000
commit0d3f5aae5b99832b7c5d55f32f5bccb365caa3fd (patch)
tree674f3fe851d2ddd619102ca60c54bc1473a56ffe /src/lib/image.cc
parent8bb4ba8f424cac07f7730fca99d5333fcd76a84d (diff)
Various markup and tweaks.
Diffstat (limited to 'src/lib/image.cc')
-rw-r--r--src/lib/image.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc
index b7ac13ab1..268c08173 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -40,6 +40,8 @@ extern "C" {
#include "exceptions.h"
#include "scaler.h"
+#include "i18n.h"
+
using namespace std;
using namespace boost;
using libdcp::Size;
@@ -75,7 +77,7 @@ Image::lines (int n) const
case PIX_FMT_YUV444P10LE:
return size().height;
default:
- throw PixelFormatError ("lines()", _pixel_format);
+ throw PixelFormatError (N_("lines()"), _pixel_format);
}
return 0;
@@ -99,7 +101,7 @@ Image::components () const
case PIX_FMT_RGBA:
return 1;
default:
- throw PixelFormatError ("components()", _pixel_format);
+ throw PixelFormatError (N_("components()"), _pixel_format);
}
return 0;
@@ -218,7 +220,7 @@ Image::post_process (string pp, bool aligned) const
case PIX_FMT_YUV444P10LE:
pp_format = PP_FORMAT_444;
default:
- throw PixelFormatError ("post_process", pixel_format());
+ throw PixelFormatError (N_("post_process"), pixel_format());
}
pp_mode* mode = pp_get_mode_by_name_and_quality (pp.c_str (), PP_QUALITY_MAX);