[gimp] app: "bpc" is bytes not bits per pixel in the new XCF endian code
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: "bpc" is bytes not bits per pixel in the new XCF endian code
- Date: Sat, 16 Sep 2017 20:35:25 +0000 (UTC)
commit 54ac0feb5a999dc6999cf4590bfe72a18753cc01
Author: Michael Natterer <mitch gimp org>
Date: Sat Sep 16 22:34:44 2017 +0200
app: "bpc" is bytes not bits per pixel in the new XCF endian code
app/xcf/xcf-read.c | 16 ++++++++--------
app/xcf/xcf-write.c | 16 ++++++++--------
2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/app/xcf/xcf-read.c b/app/xcf/xcf-read.c
index 46b80a7..420da70 100644
--- a/app/xcf/xcf-read.c
+++ b/app/xcf/xcf-read.c
@@ -207,16 +207,16 @@ xcf_read_component (XcfInfo *info,
{
switch (bpc)
{
- case 8:
+ case 1:
return xcf_read_int8 (info, data, count);
- case 16:
+ case 2:
return xcf_read_int16 (info, (guint16 *) data, count);
- case 32:
+ case 4:
return xcf_read_int32 (info, (guint32 *) data, count);
- case 64:
+ case 8:
return xcf_read_int64 (info, (guint64 *) data, count);
default:
@@ -235,10 +235,10 @@ xcf_read_from_be (gint bpc,
switch (bpc)
{
- case 8:
+ case 1:
break;
- case 16:
+ case 2:
{
guint16 *d = (guint16 *) data;
@@ -247,7 +247,7 @@ xcf_read_from_be (gint bpc,
}
break;
- case 32:
+ case 4:
{
guint32 *d = (guint32 *) data;
@@ -256,7 +256,7 @@ xcf_read_from_be (gint bpc,
}
break;
- case 64:
+ case 8:
{
guint64 *d = (guint64 *) data;
diff --git a/app/xcf/xcf-write.c b/app/xcf/xcf-write.c
index 023722d..4609f3b 100644
--- a/app/xcf/xcf-write.c
+++ b/app/xcf/xcf-write.c
@@ -256,16 +256,16 @@ xcf_write_component (XcfInfo *info,
{
switch (bpc)
{
- case 8:
+ case 1:
return xcf_write_int8 (info, data, count, error);
- case 16:
+ case 2:
return xcf_write_int16 (info, (const guint16 *) data, count, error);
- case 32:
+ case 4:
return xcf_write_int32 (info, (const guint32 *) data, count, error);
- case 64:
+ case 8:
return xcf_write_int64 (info, (const guint64 *) data, count, error);
default:
@@ -286,10 +286,10 @@ xcf_write_to_be (gint bpc,
switch (bpc)
{
- case 8:
+ case 1:
break;
- case 16:
+ case 2:
{
guint16 *d = (guint16 *) data;
@@ -298,7 +298,7 @@ xcf_write_to_be (gint bpc,
}
break;
- case 32:
+ case 4:
{
guint32 *d = (guint32 *) data;
@@ -307,7 +307,7 @@ xcf_write_to_be (gint bpc,
}
break;
- case 64:
+ case 8:
{
guint64 *d = (guint64 *) data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]