Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
François Cartegnie
dav1d
Commits
2df2aab9
Commit
2df2aab9
authored
Oct 17, 2018
by
David Michael Barr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move chroma-from-luma alpha to last parameter
This will help when writing x86_64 assembly.
parent
5cfbafea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
src/ipred.c
src/ipred.c
+9
-9
src/ipred.h
src/ipred.h
+1
-2
src/recon.c
src/recon.c
+1
-1
No files found.
src/ipred.c
View file @
2df2aab9
...
...
@@ -71,7 +71,7 @@ splat_dc(pixel *dst, const ptrdiff_t stride,
static
NOINLINE
void
cfl_pred
(
pixel
*
dst
,
const
ptrdiff_t
stride
,
const
int
width
,
const
int
height
,
const
unsigned
dc
,
const
int
8
_t
alpha
,
const
int
16_t
*
ac
)
const
int
16
_t
*
ac
,
const
int
alpha
)
{
for
(
int
y
=
0
;
y
<
height
;
y
++
)
{
for
(
int
x
=
0
;
x
<
width
;
x
++
)
{
...
...
@@ -101,9 +101,9 @@ static void ipred_dc_top_c(pixel *dst, const ptrdiff_t stride,
static
void
ipred_cfl_top_c
(
pixel
*
dst
,
const
ptrdiff_t
stride
,
const
pixel
*
const
topleft
,
const
int
width
,
const
int
height
,
const
int
8
_t
alpha
,
const
int
16_t
*
ac
)
const
int
16
_t
*
ac
,
const
int
alpha
)
{
cfl_pred
(
dst
,
stride
,
width
,
height
,
dc_gen_top
(
topleft
,
width
),
alpha
,
ac
);
cfl_pred
(
dst
,
stride
,
width
,
height
,
dc_gen_top
(
topleft
,
width
),
a
c
,
a
lpha
);
}
static
unsigned
dc_gen_left
(
const
pixel
*
const
topleft
,
const
int
height
)
...
...
@@ -124,10 +124,10 @@ static void ipred_dc_left_c(pixel *dst, const ptrdiff_t stride,
static
void
ipred_cfl_left_c
(
pixel
*
dst
,
const
ptrdiff_t
stride
,
const
pixel
*
const
topleft
,
const
int
width
,
const
int
height
,
const
int
8
_t
alpha
,
const
int
16_t
*
ac
)
const
int
16
_t
*
ac
,
const
int
alpha
)
{
unsigned
dc
=
dc_gen_left
(
topleft
,
height
);
cfl_pred
(
dst
,
stride
,
width
,
height
,
dc
,
alpha
,
ac
);
cfl_pred
(
dst
,
stride
,
width
,
height
,
dc
,
a
c
,
a
lpha
);
}
#if BITDEPTH == 8
...
...
@@ -168,10 +168,10 @@ static void ipred_dc_c(pixel *dst, const ptrdiff_t stride,
static
void
ipred_cfl_c
(
pixel
*
dst
,
const
ptrdiff_t
stride
,
const
pixel
*
const
topleft
,
const
int
width
,
const
int
height
,
const
int
8
_t
alpha
,
const
int
16_t
*
ac
)
const
int
16
_t
*
ac
,
const
int
alpha
)
{
unsigned
dc
=
dc_gen
(
topleft
,
width
,
height
);
cfl_pred
(
dst
,
stride
,
width
,
height
,
dc
,
alpha
,
ac
);
cfl_pred
(
dst
,
stride
,
width
,
height
,
dc
,
a
c
,
a
lpha
);
}
#undef MULTIPLIER_1x2
...
...
@@ -188,9 +188,9 @@ static void ipred_dc_128_c(pixel *dst, const ptrdiff_t stride,
static
void
ipred_cfl_128_c
(
pixel
*
dst
,
const
ptrdiff_t
stride
,
const
pixel
*
const
topleft
,
const
int
width
,
const
int
height
,
const
int
8
_t
alpha
,
const
int
16_t
*
ac
)
const
int
16
_t
*
ac
,
const
int
alpha
)
{
cfl_pred
(
dst
,
stride
,
width
,
height
,
1
<<
(
BITDEPTH
-
1
),
alpha
,
ac
);
cfl_pred
(
dst
,
stride
,
width
,
height
,
1
<<
(
BITDEPTH
-
1
),
a
c
,
a
lpha
);
}
static
void
ipred_v_c
(
pixel
*
dst
,
const
ptrdiff_t
stride
,
...
...
src/ipred.h
View file @
2df2aab9
...
...
@@ -61,8 +61,7 @@ typedef decl_cfl_ac_fn(*cfl_ac_fn);
*/
#define decl_cfl_pred_fn(name) \
void (name)(pixel *dst, ptrdiff_t stride, const pixel *topleft, \
int width, int height, const int8_t alpha, \
const int16_t *ac)
int width, int height, const int16_t *ac, int alpha)
typedef
decl_cfl_pred_fn
(
*
cfl_pred_fn
);
/*
...
...
src/recon.c
View file @
2df2aab9
...
...
@@ -879,7 +879,7 @@ void bytefn(dav1d_recon_b_intra)(Dav1dTileContext *const t, const enum BlockSize
dsp
->
ipred
.
cfl_pred
[
m
](
uv_dst
[
pl
],
stride
,
edge
,
uv_t_dim
->
w
*
4
,
uv_t_dim
->
h
*
4
,
b
->
cfl_alpha
[
pl
]
,
ac
);
ac
,
b
->
cfl_alpha
[
pl
]);
}
if
(
DEBUG_BLOCK_INFO
&&
DEBUG_B_PIXELS
)
{
ac_dump
(
ac
,
4
*
cbw4
,
4
*
cbh4
,
"ac"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment