Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.17.0 #26

Merged
merged 53 commits into from
Sep 3, 2021
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
192b017
v1.17.0
octu0 Apr 23, 2021
207e72a
add select partition to likely
octu0 Apr 23, 2021
edc4d27
tune canny
octu0 Apr 23, 2021
ac6f551
select likely
octu0 Apr 28, 2021
7b6944b
add -O2
octu0 Apr 28, 2021
d18409a
update binary
octu0 Apr 28, 2021
2736a06
add -O2
octu0 Apr 28, 2021
29f744e
update binary
octu0 Apr 28, 2021
df07721
remove genrun O2 opt for debugging
octu0 Apr 30, 2021
cac14f4
O2 opt use benchmark
octu0 Apr 30, 2021
fb56656
add convert test
octu0 Aug 23, 2021
baf3018
halide v12.0.1
octu0 Aug 23, 2021
fe9f98a
Halide
octu0 Aug 23, 2021
6ed733f
bgra,argb,abgr
octu0 Aug 24, 2021
570cf46
bgra
octu0 Aug 24, 2021
6b8b658
bgra
octu0 Aug 24, 2021
a896561
memory endian order log
octu0 Aug 24, 2021
8bca9cd
from argb,abgr,gbra,rabg
octu0 Aug 24, 2021
896ae22
bridge to buffer
octu0 Aug 24, 2021
d671b06
include bridge.h to buffer.h
octu0 Aug 24, 2021
fe7a5e1
zero clear
octu0 Aug 24, 2021
a7a483f
halide 12.0.1
octu0 Aug 24, 2021
4e2eea8
generate convert from argb,abgr,gbra,rabg
octu0 Aug 24, 2021
3d9690f
halide 12.0.1
octu0 Aug 24, 2021
fc2bec5
halide 12.0.1 binary
octu0 Aug 24, 2021
4d7d221
typo
octu0 Aug 24, 2021
fc30baa
convert from i420 test
octu0 Aug 24, 2021
1c60470
yuv i420 data
octu0 Aug 24, 2021
c9b5797
realize() with a vector<int>
octu0 Aug 25, 2021
44922e6
read_from_i420
octu0 Aug 26, 2021
2af9cdb
Func to Expr
octu0 Aug 26, 2021
b83d76d
var naming rule
octu0 Aug 26, 2021
773e3fc
yuv to rgb color
octu0 Aug 26, 2021
91d2086
yuv color space bt.2020
octu0 Aug 26, 2021
d5f3396
convert from/to yuv
octu0 Sep 2, 2021
044df91
convert from/to yuv
octu0 Sep 2, 2021
ff5a7ed
naming
octu0 Sep 2, 2021
4c824b3
yuv 444,420
octu0 Sep 2, 2021
d09f725
tune
octu0 Sep 2, 2021
e7d2412
4x4
octu0 Sep 2, 2021
a97ed2b
update benchmark v12.0.1
octu0 Sep 2, 2021
fd28265
from i444
octu0 Sep 2, 2021
26007bc
add convert_from_yuv_i444
octu0 Sep 2, 2021
8773ff9
add library
octu0 Sep 2, 2021
b7aefbc
convert argb,abgr,bgra...,yuv go
octu0 Sep 3, 2021
6827b25
rename i420 to 420, i444 to 444
octu0 Sep 3, 2021
6aef187
convert from/to yuv
octu0 Sep 3, 2021
c74ad73
rename bridge to cgo
octu0 Sep 3, 2021
0f11280
rename
octu0 Sep 3, 2021
727cf60
convert rgba color model
octu0 Sep 3, 2021
63bb97b
convert from yuv
octu0 Sep 3, 2021
ca8c76b
convert to yuv
octu0 Sep 3, 2021
fa43293
add convert RGBA color model, YUV
octu0 Sep 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Func to Expr
  • Loading branch information
octu0 committed Aug 26, 2021
commit 2af9cdb356e43c8c899e99372d865ec76eb02bef
22 changes: 12 additions & 10 deletions blurry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,20 @@ Func read_from_i420(Func in_y, Func in_u, Func in_v, const char *name) {
Func vf = Func("v_float");
vf(x, y) = cast<float>((in_v(x / 2, y / 2) & 0xff) - float128);

Func r = Func("r");
Func g = Func("g");
Func b = Func("b");
r(x, y) = yf(x, y) + (1.370705f * vf(x, y));
g(x, y) = yf(x, y) - ((0.698001f * vf(x, y)) - (0.71414f * uf(x, y)));
b(x, y) = yf(x, y) + (1.732446f * uf(x, y));

Func f = Func(name);

Expr r = yf(x, y) + (1.370705f * vf(x, y));
Expr g = yf(x, y) - ((0.698001f * vf(x, y)) - (0.71414f * uf(x, y)));
Expr b = yf(x, y) + (1.732446f * uf(x, y));

Expr rr = clamp(r, float0, float255);
Expr gg = clamp(g, float0, float255);
Expr bb = clamp(b, float0, float255);

Expr v = select(
ch == 0, clamp(r(x, y), float0, float255), // R
ch == 1, clamp(g(x, y), float0, float255), // G
ch == 2, clamp(b(x, y), float0, float255), // B
ch == 0, r, // R
ch == 1, g, // G
ch == 2, b, // B
likely(float255) // A always 0xff
);
f(x, y, ch) = cast<uint8_t>(v);
Expand Down