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

Issue 973563002: Adding linear interpolation to rgb->yuv conversion (Closed)

Created:
5 years, 9 months ago by sugoi1
Modified:
5 years, 9 months ago
Reviewers:
scroggo, bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Adding linear interpolation to rgb->yuv conversion When the UV planes are smaller than the Y plane, doing the upscaling in nearest mode was creating artefacts, so I changed it to use linear interpolation to fix the issue. BUG=460380 Committed: https://skia.googlesource.com/skia/+/cd9d42c5167a50f1bf20e969343556d61354171b Committed: https://skia.googlesource.com/skia/+/4ab3dbb636d07d03df1190c8a2b0a730e30e0d29

Patch Set 1 #

Patch Set 2 : Switched YUV textures from Approx to Exact #

Total comments: 2

Patch Set 3 : Only use Exact when necessary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M src/gpu/SkGr.cpp View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M src/gpu/effects/GrYUVtoRGBEffect.cpp View 2 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 29 (5 generated)
sugoi1
5 years, 9 months ago (2015-03-02 20:57:38 UTC) #2
reed1
what does libjpeg do when we ask them to return RGB?
5 years, 9 months ago (2015-03-02 21:29:24 UTC) #4
sugoi1
On 2015/03/02 21:29:24, reed1 wrote: > what does libjpeg do when we ask them to ...
5 years, 9 months ago (2015-03-02 21:55:38 UTC) #5
bsalomon
I thought that the u and v values were shared for a block. bilerp doesn't ...
5 years, 9 months ago (2015-03-02 21:56:02 UTC) #6
reed1
On 2015/03/02 21:55:38, sugoi1 wrote: > On 2015/03/02 21:29:24, reed1 wrote: > > what does ...
5 years, 9 months ago (2015-03-02 21:59:24 UTC) #7
sugoi1
On 2015/03/02 21:56:02, bsalomon wrote: > I thought that the u and v values were ...
5 years, 9 months ago (2015-03-02 22:06:33 UTC) #8
sugoi1
On 2015/03/02 21:59:24, reed1 wrote: > On 2015/03/02 21:55:38, sugoi1 wrote: > > On 2015/03/02 ...
5 years, 9 months ago (2015-03-02 22:07:07 UTC) #9
bsalomon
What is the difference between do_block_smoothing() and do_fancy_upsampling() w/ triangle? We definitely need some tests ...
5 years, 9 months ago (2015-03-02 22:25:58 UTC) #10
sugoi1
On 2015/03/02 22:25:58, bsalomon wrote: > What is the difference between do_block_smoothing() and do_fancy_upsampling() w/ ...
5 years, 9 months ago (2015-03-03 00:17:02 UTC) #11
reed1
Thanks for those details. I didn't realize it was that tricky. I agree about tests. ...
5 years, 9 months ago (2015-03-03 14:46:27 UTC) #12
bsalomon
Perhaps unit testing is too tricky to get right. But I think we should at ...
5 years, 9 months ago (2015-03-03 17:45:10 UTC) #13
sugoi1
On 2015/03/03 17:45:10, bsalomon wrote: > Perhaps unit testing is too tricky to get right. ...
5 years, 9 months ago (2015-03-03 19:33:31 UTC) #14
bsalomon
On 2015/03/03 19:33:31, sugoi1 wrote: > On 2015/03/03 17:45:10, bsalomon wrote: > > Perhaps unit ...
5 years, 9 months ago (2015-03-03 20:07:02 UTC) #15
scroggo
On 2015/03/03 19:33:31, sugoi1 wrote: > On 2015/03/03 17:45:10, bsalomon wrote: > > Perhaps unit ...
5 years, 9 months ago (2015-03-03 20:12:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973563002/1
5 years, 9 months ago (2015-03-03 21:22:36 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/cd9d42c5167a50f1bf20e969343556d61354171b
5 years, 9 months ago (2015-03-03 21:28:34 UTC) #19
reed1
I see that this landed. Regarding the colorwheel, have we compared its GPU quality against ...
5 years, 9 months ago (2015-03-03 21:48:05 UTC) #20
sugoi1
On 2015/03/03 21:48:05, reed1 wrote: > Regarding the colorwheel, have we compared its GPU quality ...
5 years, 9 months ago (2015-03-03 21:59:45 UTC) #21
joshualitt
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/977133002/ by joshualitt@google.com. ...
5 years, 9 months ago (2015-03-04 17:55:18 UTC) #22
sugoi1
Ok, so the issue was a bit weird, but this may fix it. Here's what ...
5 years, 9 months ago (2015-03-05 16:05:15 UTC) #23
bsalomon
https://codereview.chromium.org/973563002/diff/20001/src/gpu/SkGr.cpp File src/gpu/SkGr.cpp (right): https://codereview.chromium.org/973563002/diff/20001/src/gpu/SkGr.cpp#newcode369 src/gpu/SkGr.cpp:369: ctx->refScratchTexture(yuvDesc, GrContext::kExact_ScratchTexMatch)); Maybe only do this if we will ...
5 years, 9 months ago (2015-03-05 16:13:05 UTC) #24
sugoi1
https://codereview.chromium.org/973563002/diff/20001/src/gpu/SkGr.cpp File src/gpu/SkGr.cpp (right): https://codereview.chromium.org/973563002/diff/20001/src/gpu/SkGr.cpp#newcode369 src/gpu/SkGr.cpp:369: ctx->refScratchTexture(yuvDesc, GrContext::kExact_ScratchTexMatch)); On 2015/03/05 16:13:05, bsalomon wrote: > Maybe ...
5 years, 9 months ago (2015-03-05 16:22:35 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973563002/40001
5 years, 9 months ago (2015-03-06 13:13:56 UTC) #28
commit-bot: I haz the power
5 years, 9 months ago (2015-03-06 13:16:56 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/4ab3dbb636d07d03df1190c8a2b0a730e30e0d29

Powered by Google App Engine
This is Rietveld 408576698