[gimp] plug-ins: rename s/YUV/YCbCr/ s/eYCC/xvYCC/ s/RGB/sRGB/.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: rename s/YUV/YCbCr/ s/eYCC/xvYCC/ s/RGB/sRGB/.
- Date: Tue, 20 Mar 2018 16:10:30 +0000 (UTC)
commit 34b68a2c1d304202fe48ab3b036a0b930483b732
Author: Jehan <jehan girinstud io>
Date: Tue Mar 20 17:01:28 2018 +0100
plug-ins: rename s/YUV/YCbCr/ s/eYCC/xvYCC/ s/RGB/sRGB/.
Exchanging with OpenJPEG developers and searching more on the topic, it
seems that YUV is more often refered to as YCbCr. Wikipedia says:
> typically the terms YCbCr and YUV are used interchangeably, leading to
> some confusion. The main difference is that YUV is analog and YCbCr is
> digital
As for eYCC, I am told this is extended YCC. It seems this is refered as
xvYCC (I really can't find much under "eYCC"). So let's rename it too.
Hopefully I made no mistakes!
plug-ins/common/file-jp2-load.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/plug-ins/common/file-jp2-load.c b/plug-ins/common/file-jp2-load.c
index 0c94c23..bbf324f 100644
--- a/plug-ins/common/file-jp2-load.c
+++ b/plug-ins/common/file-jp2-load.c
@@ -137,7 +137,7 @@ query (void)
{ GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" },
{ GIMP_PDB_STRING, "filename", "The name of the file to load." },
{ GIMP_PDB_STRING, "raw-filename", "The name entered" },
- { GIMP_PDB_INT32, "colorspace", "Color space { UNKNOWN (0), GRAYSCALE (1), RGB (2), CMYK (3), YUV
(4), YCC (5) }" },
+ { GIMP_PDB_INT32, "colorspace", "Color space { UNKNOWN (0), GRAYSCALE (1), RGB (2), CMYK (3), YCbCr
(4), xvYCC (5) }" },
};
static const GimpParamDef load_return_vals[] =
@@ -970,18 +970,18 @@ open_dialog (const gchar *filename,
if (num_components == 3)
{
- /* Can be RGB, YUC and YCC. */
- combo = gimp_int_combo_box_new (_("RGB"), OPJ_CLRSPC_SRGB,
- _("YUC"), OPJ_CLRSPC_SYCC,
- _("e-YCC"), OPJ_CLRSPC_EYCC,
+ /* Can be RGB, YUV and YCC. */
+ combo = gimp_int_combo_box_new (_("sRGB"), OPJ_CLRSPC_SRGB,
+ _("YCbCr"), OPJ_CLRSPC_SYCC,
+ _("xvYCC"), OPJ_CLRSPC_EYCC,
NULL);
}
else if (num_components == 4)
{
- /* Can be RGB, YUC and YCC with alpha or CMYK. */
- combo = gimp_int_combo_box_new (_("RGB"), OPJ_CLRSPC_SRGB,
- _("YUC"), OPJ_CLRSPC_SYCC,
- _("e-YCC"), OPJ_CLRSPC_EYCC,
+ /* Can be RGB, YUV and YCC with alpha or CMYK. */
+ combo = gimp_int_combo_box_new (_("sRGB"), OPJ_CLRSPC_SRGB,
+ _("YCbCr"), OPJ_CLRSPC_SYCC,
+ _("xvYCC"), OPJ_CLRSPC_EYCC,
_("CMYK"), OPJ_CLRSPC_CMYK,
NULL);
}
@@ -1200,7 +1200,7 @@ load_image (const gchar *filename,
if (! color_sycc_to_rgb (image))
{
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Couldn't convert YUV JP2 image '%s' to RGB."),
+ _("Couldn't convert YCbCr JP2 image '%s' to RGB."),
gimp_filename_to_utf8 (filename));
goto out;
}
@@ -1220,7 +1220,7 @@ load_image (const gchar *filename,
if (! color_esycc_to_rgb (image))
{
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Couldn't convert YCC JP2 image in '%s' to RGB."),
+ _("Couldn't convert xvYCC JP2 image in '%s' to RGB."),
gimp_filename_to_utf8 (filename));
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]