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
be64d5f5
Commit
be64d5f5
authored
Jun 23, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snow.c: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f7595fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
snow.c
libavcodec/snow.c
+5
-8
No files found.
libavcodec/snow.c
View file @
be64d5f5
...
...
@@ -31,9 +31,6 @@
#include "mathops.h"
#include "h263.h"
#undef NDEBUG
#include <assert.h>
void
ff_snow_inner_add_yblock
(
const
uint8_t
*
obmc
,
const
int
obmc_stride
,
uint8_t
*
*
block
,
int
b_w
,
int
b_h
,
int
src_x
,
int
src_y
,
int
src_stride
,
slice_buffer
*
sb
,
int
add
,
uint8_t
*
dst8
){
...
...
@@ -147,7 +144,7 @@ static void mc_block(Plane *p, uint8_t *dst, const uint8_t *src, int stride, int
int16_t
*
tmpI
=
tmpIt
;
uint8_t
*
tmp2
=
tmp2t
[
0
];
const
uint8_t
*
hpel
[
11
];
a
ssert
(
dx
<
16
&&
dy
<
16
);
a
v_assert2
(
dx
<
16
&&
dy
<
16
);
r
=
brane
[
dx
+
16
*
dy
]
&
15
;
l
=
brane
[
dx
+
16
*
dy
]
>>
4
;
...
...
@@ -347,8 +344,8 @@ void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, int stride,
// assert(b_w == b_h || 2*b_w == b_h || b_w == 2*b_h);
// assert(!(b_w&(b_w-1)));
a
ssert
(
b_w
>
1
&&
b_h
>
1
);
a
ssert
((
tab_index
>=
0
&&
tab_index
<
4
)
||
b_w
==
32
);
a
v_assert2
(
b_w
>
1
&&
b_h
>
1
);
a
v_assert2
((
tab_index
>=
0
&&
tab_index
<
4
)
||
b_w
==
32
);
if
((
dx
&
3
)
||
(
dy
&
3
)
||
!
(
b_w
==
b_h
||
2
*
b_w
==
b_h
||
b_w
==
2
*
b_h
)
||
(
b_w
&
(
b_w
-
1
))
||
!
s
->
plane
[
plane_index
].
fast_mc
)
mc_block
(
&
s
->
plane
[
plane_index
],
dst
,
src
,
stride
,
b_w
,
b_h
,
dx
,
dy
);
else
if
(
b_w
==
32
){
...
...
@@ -363,7 +360,7 @@ void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, int stride,
s
->
dsp
.
put_h264_qpel_pixels_tab
[
tab_index
+
1
][
dy
+
(
dx
>>
2
)](
dst
,
src
+
3
+
3
*
stride
,
stride
);
s
->
dsp
.
put_h264_qpel_pixels_tab
[
tab_index
+
1
][
dy
+
(
dx
>>
2
)](
dst
+
b_h
,
src
+
3
+
b_h
+
3
*
stride
,
stride
);
}
else
{
a
ssert
(
2
*
b_w
==
b_h
);
a
v_assert2
(
2
*
b_w
==
b_h
);
s
->
dsp
.
put_h264_qpel_pixels_tab
[
tab_index
][
dy
+
(
dx
>>
2
)](
dst
,
src
+
3
+
3
*
stride
,
stride
);
s
->
dsp
.
put_h264_qpel_pixels_tab
[
tab_index
][
dy
+
(
dx
>>
2
)](
dst
+
b_w
*
stride
,
src
+
3
+
3
*
stride
+
b_w
*
stride
,
stride
);
}
...
...
@@ -372,7 +369,7 @@ void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, int stride,
#define mca(dx,dy,b_w)\
static void mc_block_hpel ## dx ## dy ## b_w(uint8_t *dst, const uint8_t *src, int stride, int h){\
a
ssert
(h==b_w);\
a
v_assert2
(h==b_w);\
mc_block(NULL, dst, src-(HTAPS_MAX/2-1)-(HTAPS_MAX/2-1)*stride, stride, b_w, b_w, dx, dy);\
}
...
...
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