Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 558180 Details for
Bug 673454
net-print/splix-2.0.0_p20130826: Blank printouts on Samsung ML-1610 when host is big endian
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for making algo0x11 always generate LE bands
algo0x11_le.patch (text/plain), 1.20 KB, created by
Marcus Comstedt
on 2018-12-19 20:23:52 UTC
(
hide
)
Description:
Patch for making algo0x11 always generate LE bands
Filename:
MIME Type:
Creator:
Marcus Comstedt
Created:
2018-12-19 20:23:52 UTC
Size:
1.20 KB
patch
obsolete
>--- splix-2.0.0_p20130826/src/algo0x11.cpp.orig 2018-12-19 20:55:03.216127909 +0100 >+++ splix-2.0.0_p20130826/src/algo0x11.cpp 2018-12-19 20:58:21.986353903 +0100 >@@ -89,7 +89,8 @@ > > // Print the table > for (unsigned long i=0; i < TABLE_PTR_SIZE; i++, w += 2) { >- *(uint16_t *)(out + w) = (uint16_t)_ptrArray[i]; >+ out[w + 0] = (uint8_t)_ptrArray[i]; >+ out[w + 1] = (uint8_t)(_ptrArray[i] >> 8); > if (_ptrArray[i] > uncompSize) > uncompSize = _ptrArray[i]; > } >@@ -97,7 +98,10 @@ > // Print the first uncompressed bytes > if (uncompSize > MAX_UNCOMPRESSED_BYTES) > uncompSize = MAX_UNCOMPRESSED_BYTES; >- *(uint32_t *)out = (uint32_t)uncompSize; >+ out[0] = (uint8_t)uncompSize; >+ out[1] = (uint8_t)(uncompSize >> 8); >+ out[2] = (uint8_t)(uncompSize >> 16); >+ out[3] = (uint8_t)(uncompSize >> 24); > for (r=0; r < uncompSize; r++, w++) > out[w] = data[r]; > >@@ -234,7 +238,7 @@ > // Register the result into a band plane > plane = new BandPlane(); > plane->setData(output, outputSize); >- plane->setEndian(BandPlane::Dependant); >+ plane->setEndian(BandPlane::LittleEndian); > plane->setCompression(0x11); > > return plane;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 673454
: 558180