Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d5d699ab
Commit
d5d699ab
authored
Feb 20, 2019
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h264dsp: change loop filter stride argument to ptrdiff_t
parent
5ca7eb36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
34 deletions
+34
-34
h264dsp.h
libavcodec/h264dsp.h
+12
-12
h264dsp_template.c
libavcodec/h264dsp_template.c
+20
-20
h264dsp_init.c
libavcodec/x86/h264dsp_init.c
+2
-2
No files found.
libavcodec/h264dsp.h
View file @
d5d699ab
...
...
@@ -45,32 +45,32 @@ typedef struct H264DSPContext {
h264_biweight_func
biweight_h264_pixels_tab
[
4
];
/* loop filter */
void
(
*
h264_v_loop_filter_luma
)(
uint8_t
*
pix
/*align 16*/
,
in
t
stride
,
void
(
*
h264_v_loop_filter_luma
)(
uint8_t
*
pix
/*align 16*/
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
);
void
(
*
h264_h_loop_filter_luma
)(
uint8_t
*
pix
/*align 4 */
,
in
t
stride
,
void
(
*
h264_h_loop_filter_luma
)(
uint8_t
*
pix
/*align 4 */
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
);
void
(
*
h264_h_loop_filter_luma_mbaff
)(
uint8_t
*
pix
/*align 16*/
,
in
t
stride
,
void
(
*
h264_h_loop_filter_luma_mbaff
)(
uint8_t
*
pix
/*align 16*/
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
);
/* v/h_loop_filter_luma_intra: align 16 */
void
(
*
h264_v_loop_filter_luma_intra
)(
uint8_t
*
pix
,
in
t
stride
,
void
(
*
h264_v_loop_filter_luma_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
);
void
(
*
h264_h_loop_filter_luma_intra
)(
uint8_t
*
pix
,
in
t
stride
,
void
(
*
h264_h_loop_filter_luma_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
);
void
(
*
h264_h_loop_filter_luma_mbaff_intra
)(
uint8_t
*
pix
/*align 16*/
,
in
t
stride
,
int
alpha
,
int
beta
);
void
(
*
h264_v_loop_filter_chroma
)(
uint8_t
*
pix
/*align 8*/
,
in
t
stride
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
);
void
(
*
h264_v_loop_filter_chroma
)(
uint8_t
*
pix
/*align 8*/
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
);
void
(
*
h264_h_loop_filter_chroma
)(
uint8_t
*
pix
/*align 4*/
,
in
t
stride
,
void
(
*
h264_h_loop_filter_chroma
)(
uint8_t
*
pix
/*align 4*/
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
);
void
(
*
h264_h_loop_filter_chroma_mbaff
)(
uint8_t
*
pix
/*align 8*/
,
in
t
stride
,
int
alpha
,
int
beta
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
);
void
(
*
h264_v_loop_filter_chroma_intra
)(
uint8_t
*
pix
/*align 8*/
,
in
t
stride
,
int
alpha
,
int
beta
);
ptrdiff_
t
stride
,
int
alpha
,
int
beta
);
void
(
*
h264_h_loop_filter_chroma_intra
)(
uint8_t
*
pix
/*align 8*/
,
in
t
stride
,
int
alpha
,
int
beta
);
ptrdiff_
t
stride
,
int
alpha
,
int
beta
);
void
(
*
h264_h_loop_filter_chroma_mbaff_intra
)(
uint8_t
*
pix
/*align 8*/
,
in
t
stride
,
int
alpha
,
int
beta
);
ptrdiff_
t
stride
,
int
alpha
,
int
beta
);
// h264_loop_filter_strength: simd only. the C version is inlined in h264_loopfilter.c
void
(
*
h264_loop_filter_strength
)(
int16_t
bS
[
2
][
4
][
4
],
uint8_t
nnz
[
40
],
int8_t
ref
[
2
][
40
],
int16_t
mv
[
2
][
40
][
2
],
...
...
libavcodec/h264dsp_template.c
View file @
d5d699ab
...
...
@@ -101,7 +101,7 @@ H264_WEIGHT(2)
#undef op_scale2
#undef H264_WEIGHT
static
av_always_inline
av_flatten
void
FUNCC
(
h264_loop_filter_luma
)(
uint8_t
*
p_pix
,
int
xstride
,
in
t
ystride
,
int
inner_iters
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
av_always_inline
av_flatten
void
FUNCC
(
h264_loop_filter_luma
)(
uint8_t
*
p_pix
,
ptrdiff_t
xstride
,
ptrdiff_
t
ystride
,
int
inner_iters
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
pixel
*
pix
=
(
pixel
*
)
p_pix
;
int
i
,
d
;
...
...
@@ -149,20 +149,20 @@ static av_always_inline av_flatten void FUNCC(h264_loop_filter_luma)(uint8_t *p_
}
}
}
static
void
FUNCC
(
h264_v_loop_filter_luma
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
void
FUNCC
(
h264_v_loop_filter_luma
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
FUNCC
(
h264_loop_filter_luma
)(
pix
,
stride
,
sizeof
(
pixel
),
4
,
alpha
,
beta
,
tc0
);
}
static
void
FUNCC
(
h264_h_loop_filter_luma
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
void
FUNCC
(
h264_h_loop_filter_luma
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
FUNCC
(
h264_loop_filter_luma
)(
pix
,
sizeof
(
pixel
),
stride
,
4
,
alpha
,
beta
,
tc0
);
}
static
void
FUNCC
(
h264_h_loop_filter_luma_mbaff
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
void
FUNCC
(
h264_h_loop_filter_luma_mbaff
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
FUNCC
(
h264_loop_filter_luma
)(
pix
,
sizeof
(
pixel
),
stride
,
2
,
alpha
,
beta
,
tc0
);
}
static
av_always_inline
av_flatten
void
FUNCC
(
h264_loop_filter_luma_intra
)(
uint8_t
*
p_pix
,
int
xstride
,
in
t
ystride
,
int
inner_iters
,
int
alpha
,
int
beta
)
static
av_always_inline
av_flatten
void
FUNCC
(
h264_loop_filter_luma_intra
)(
uint8_t
*
p_pix
,
ptrdiff_t
xstride
,
ptrdiff_
t
ystride
,
int
inner_iters
,
int
alpha
,
int
beta
)
{
pixel
*
pix
=
(
pixel
*
)
p_pix
;
int
d
;
...
...
@@ -215,20 +215,20 @@ static av_always_inline av_flatten void FUNCC(h264_loop_filter_luma_intra)(uint8
pix
+=
ystride
;
}
}
static
void
FUNCC
(
h264_v_loop_filter_luma_intra
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
)
static
void
FUNCC
(
h264_v_loop_filter_luma_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
)
{
FUNCC
(
h264_loop_filter_luma_intra
)(
pix
,
stride
,
sizeof
(
pixel
),
4
,
alpha
,
beta
);
}
static
void
FUNCC
(
h264_h_loop_filter_luma_intra
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
)
static
void
FUNCC
(
h264_h_loop_filter_luma_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
)
{
FUNCC
(
h264_loop_filter_luma_intra
)(
pix
,
sizeof
(
pixel
),
stride
,
4
,
alpha
,
beta
);
}
static
void
FUNCC
(
h264_h_loop_filter_luma_mbaff_intra
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
)
static
void
FUNCC
(
h264_h_loop_filter_luma_mbaff_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
)
{
FUNCC
(
h264_loop_filter_luma_intra
)(
pix
,
sizeof
(
pixel
),
stride
,
2
,
alpha
,
beta
);
}
static
av_always_inline
av_flatten
void
FUNCC
(
h264_loop_filter_chroma
)(
uint8_t
*
p_pix
,
int
xstride
,
in
t
ystride
,
int
inner_iters
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
av_always_inline
av_flatten
void
FUNCC
(
h264_loop_filter_chroma
)(
uint8_t
*
p_pix
,
ptrdiff_t
xstride
,
ptrdiff_
t
ystride
,
int
inner_iters
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
pixel
*
pix
=
(
pixel
*
)
p_pix
;
int
i
,
d
;
...
...
@@ -261,28 +261,28 @@ static av_always_inline av_flatten void FUNCC(h264_loop_filter_chroma)(uint8_t *
}
}
}
static
void
FUNCC
(
h264_v_loop_filter_chroma
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
void
FUNCC
(
h264_v_loop_filter_chroma
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
FUNCC
(
h264_loop_filter_chroma
)(
pix
,
stride
,
sizeof
(
pixel
),
2
,
alpha
,
beta
,
tc0
);
}
static
void
FUNCC
(
h264_h_loop_filter_chroma
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
void
FUNCC
(
h264_h_loop_filter_chroma
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
FUNCC
(
h264_loop_filter_chroma
)(
pix
,
sizeof
(
pixel
),
stride
,
2
,
alpha
,
beta
,
tc0
);
}
static
void
FUNCC
(
h264_h_loop_filter_chroma_mbaff
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
void
FUNCC
(
h264_h_loop_filter_chroma_mbaff
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
FUNCC
(
h264_loop_filter_chroma
)(
pix
,
sizeof
(
pixel
),
stride
,
1
,
alpha
,
beta
,
tc0
);
}
static
void
FUNCC
(
h264_h_loop_filter_chroma422
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
void
FUNCC
(
h264_h_loop_filter_chroma422
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
FUNCC
(
h264_loop_filter_chroma
)(
pix
,
sizeof
(
pixel
),
stride
,
4
,
alpha
,
beta
,
tc0
);
}
static
void
FUNCC
(
h264_h_loop_filter_chroma422_mbaff
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
static
void
FUNCC
(
h264_h_loop_filter_chroma422_mbaff
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
,
int8_t
*
tc0
)
{
FUNCC
(
h264_loop_filter_chroma
)(
pix
,
sizeof
(
pixel
),
stride
,
2
,
alpha
,
beta
,
tc0
);
}
static
av_always_inline
av_flatten
void
FUNCC
(
h264_loop_filter_chroma_intra
)(
uint8_t
*
p_pix
,
int
xstride
,
in
t
ystride
,
int
inner_iters
,
int
alpha
,
int
beta
)
static
av_always_inline
av_flatten
void
FUNCC
(
h264_loop_filter_chroma_intra
)(
uint8_t
*
p_pix
,
ptrdiff_t
xstride
,
ptrdiff_
t
ystride
,
int
inner_iters
,
int
alpha
,
int
beta
)
{
pixel
*
pix
=
(
pixel
*
)
p_pix
;
int
d
;
...
...
@@ -306,23 +306,23 @@ static av_always_inline av_flatten void FUNCC(h264_loop_filter_chroma_intra)(uin
pix
+=
ystride
;
}
}
static
void
FUNCC
(
h264_v_loop_filter_chroma_intra
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
)
static
void
FUNCC
(
h264_v_loop_filter_chroma_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
)
{
FUNCC
(
h264_loop_filter_chroma_intra
)(
pix
,
stride
,
sizeof
(
pixel
),
2
,
alpha
,
beta
);
}
static
void
FUNCC
(
h264_h_loop_filter_chroma_intra
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
)
static
void
FUNCC
(
h264_h_loop_filter_chroma_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
)
{
FUNCC
(
h264_loop_filter_chroma_intra
)(
pix
,
sizeof
(
pixel
),
stride
,
2
,
alpha
,
beta
);
}
static
void
FUNCC
(
h264_h_loop_filter_chroma_mbaff_intra
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
)
static
void
FUNCC
(
h264_h_loop_filter_chroma_mbaff_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
)
{
FUNCC
(
h264_loop_filter_chroma_intra
)(
pix
,
sizeof
(
pixel
),
stride
,
1
,
alpha
,
beta
);
}
static
void
FUNCC
(
h264_h_loop_filter_chroma422_intra
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
)
static
void
FUNCC
(
h264_h_loop_filter_chroma422_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
)
{
FUNCC
(
h264_loop_filter_chroma_intra
)(
pix
,
sizeof
(
pixel
),
stride
,
4
,
alpha
,
beta
);
}
static
void
FUNCC
(
h264_h_loop_filter_chroma422_mbaff_intra
)(
uint8_t
*
pix
,
in
t
stride
,
int
alpha
,
int
beta
)
static
void
FUNCC
(
h264_h_loop_filter_chroma422_mbaff_intra
)(
uint8_t
*
pix
,
ptrdiff_
t
stride
,
int
alpha
,
int
beta
)
{
FUNCC
(
h264_loop_filter_chroma_intra
)(
pix
,
sizeof
(
pixel
),
stride
,
2
,
alpha
,
beta
);
}
libavcodec/x86/h264dsp_init.c
View file @
d5d699ab
...
...
@@ -101,13 +101,13 @@ void ff_h264_loop_filter_strength_mmxext(int16_t bS[2][4][4], uint8_t nnz[40],
#define LF_FUNC(DIR, TYPE, DEPTH, OPT) \
void ff_deblock_ ## DIR ## _ ## TYPE ## _ ## DEPTH ## _ ## OPT(uint8_t *pix, \
int stride,
\
ptrdiff_t stride,
\
int alpha, \
int beta, \
int8_t *tc0);
#define LF_IFUNC(DIR, TYPE, DEPTH, OPT) \
void ff_deblock_ ## DIR ## _ ## TYPE ## _ ## DEPTH ## _ ## OPT(uint8_t *pix, \
int stride,
\
ptrdiff_t stride,
\
int alpha, \
int beta);
...
...
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