Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Issue 10387099: Add BGRA output format support to qcms (Closed)

Created:
8 years, 7 months ago by Noel Gordon
Modified:
8 years, 7 months ago
Reviewers:
tpayne, tpayne, Hironori Bono, Evan Stade
CC:
chromium-reviews
Visibility:
Public.

Description

Add BGRA output format support to qcms Define QCMS_OUTPUT_BGRX and add qcms_transform_data_type() api to output BGR or BGRA format for GRAY, GRAYA, RGB, and RGBA input data. Update all color transform functions with an output format argument, use that to select RGBX (the default) or BGRX output format. Add google.patch: patch of the BGRA output changes against upstream qcms and add README.chromium details about google.patch. TODO: send the patch to qcms if accepted for review upstream. Disable Visual Studio warnings when needed. BUG=143 TEST=None

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+906 lines, -97 lines) Patch
M third_party/qcms/README.chromium View 1 chunk +5 lines, -1 line 0 comments Download
A third_party/qcms/google.patch View 1 chunk +688 lines, -0 lines 0 comments Download
M third_party/qcms/src/iccread.c View 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/qcms/src/qcms.h View 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/qcms/src/qcmsint.h View 3 chunks +14 lines, -5 lines 0 comments Download
M third_party/qcms/src/qcmstypes.h View 1 chunk +5 lines, -0 lines 4 comments Download
M third_party/qcms/src/transform.c View 17 chunks +138 lines, -63 lines 0 comments Download
M third_party/qcms/src/transform-sse1.c View 8 chunks +20 lines, -14 lines 0 comments Download
M third_party/qcms/src/transform-sse2.c View 7 chunks +20 lines, -14 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Noel Gordon
8 years, 7 months ago (2012-05-12 13:24:56 UTC) #1
Evan Stade
rubber stamp lgtm but I think tpayne should take a look.
8 years, 7 months ago (2012-05-14 21:44:40 UTC) #2
tpayne
On 2012/05/14 21:44:40, Evan Stade wrote: > rubber stamp lgtm but I think tpayne should ...
8 years, 7 months ago (2012-05-14 21:54:23 UTC) #3
Noel Gordon
> On 2012/05/14 21:54:23, tpayne wrote: > As long as there are no special optimizations ...
8 years, 7 months ago (2012-05-15 22:35:49 UTC) #4
Noel Gordon
On 2012/05/14 21:54:23, tpayne wrote: > It seems that the only input format supported is ...
8 years, 7 months ago (2012-05-15 22:38:53 UTC) #5
Noel Gordon
8 years, 7 months ago (2012-05-15 22:39:38 UTC) #6
Noel Gordon
@hbono in WebCore, we currently JPEG decode with a JCS_EXT_BGRA swizzle and it's very fast. ...
8 years, 7 months ago (2012-05-15 22:46:44 UTC) #7
Hironori Bono
Greetings, Sorry for my slow response. In general, JPEG swizzling can remove unnecessary memory copies ...
8 years, 7 months ago (2012-05-16 07:39:32 UTC) #8
Hironori Bono
Greetings, Oops, I forgot noting about JCS_EXT_RGBA. It uses SSE(2) to convert 4 pixels (16 ...
8 years, 7 months ago (2012-05-16 09:05:11 UTC) #9
tpayne
On 2012/05/15 22:35:49, noel chromium wrote: > > On 2012/05/14 21:54:23, tpayne wrote: > > ...
8 years, 7 months ago (2012-05-18 01:52:35 UTC) #10
Hironori Bono
Greetings, Sorry, I forgot sending an LGTM message. Tony, does this change look good for ...
8 years, 7 months ago (2012-05-18 02:13:42 UTC) #11
Noel Gordon
On 2012/05/16 09:05:11, Hironori Bono wrote: > Greetings, > > Oops, I forgot noting about ...
8 years, 7 months ago (2012-05-18 14:49:12 UTC) #12
Noel Gordon
On 2012/05/16 07:39:32, Hironori Bono wrote: > Greetings, > > In general, JPEG swizzling can ...
8 years, 7 months ago (2012-05-18 15:27:32 UTC) #13
Noel Gordon
Tom, you did the alternative approach right? How did that go? I'm happy to go ...
8 years, 7 months ago (2012-05-18 15:37:42 UTC) #14
Noel Gordon
> ... May break compilation on mac/linux. Need to add a > few #if defined ...
8 years, 7 months ago (2012-05-18 15:49:53 UTC) #15
tpayne_google.com
I did do the other approach. It worked fine but I don't know any reason ...
8 years, 7 months ago (2012-05-18 15:52:04 UTC) #16
Noel Gordon
http://codereview.chromium.org/10387099/diff/1/third_party/qcms/src/qcmstypes.h File third_party/qcms/src/qcmstypes.h (right): http://codereview.chromium.org/10387099/diff/1/third_party/qcms/src/qcmstypes.h#newcode90 third_party/qcms/src/qcmstypes.h:90: #pragma warning(push) Note to self: wrap these pragmas in ...
8 years, 7 months ago (2012-05-18 15:53:04 UTC) #17
Noel Gordon
Ignore me. That qcmstypes.h code's in an #if defined(_MSC_VER) block &.&
8 years, 7 months ago (2012-05-18 16:03:13 UTC) #18
Noel Gordon
On 2012/05/18 15:52:04, tpayne_google.com wrote: > I did do the other approach. It worked fine ...
8 years, 7 months ago (2012-05-18 16:09:55 UTC) #19
Noel Gordon
Didn't need to do these at all on inspection. All done. http://codereview.chromium.org/10387099/diff/1/third_party/qcms/src/qcmstypes.h File third_party/qcms/src/qcmstypes.h (right): ...
8 years, 7 months ago (2012-05-18 16:14:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noel@chromium.org/10387099/1
8 years, 7 months ago (2012-05-21 18:11:10 UTC) #21
commit-bot: I haz the power
Try job failure for 10387099-1 (retry) (retry) on win_rel for step "sync_unit_tests". It's a second ...
8 years, 7 months ago (2012-05-21 22:54:35 UTC) #22
Noel Gordon
hbono wrote: > > I assume this library also needs to process huge images and ...
8 years, 7 months ago (2012-05-23 07:54:24 UTC) #23
Noel Gordon
8 years, 7 months ago (2012-05-23 07:57:05 UTC) #24

Powered by Google App Engine
This is Rietveld 408576698