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
994923ec
Commit
994923ec
authored
Aug 11, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwt: switch to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
58825a18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
dwt.c
libavcodec/dwt.c
+9
-8
No files found.
libavcodec/dwt.c
View file @
994923ec
...
...
@@ -20,6 +20,7 @@
*/
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "dsputil.h"
#include "dwt.h"
#include "libavcodec/x86/dwt.h"
...
...
@@ -62,8 +63,8 @@ IDWTELEM *ff_slice_buffer_load_line(slice_buffer *buf, int line)
{
IDWTELEM
*
buffer
;
a
ssert
(
buf
->
data_stack_top
>=
0
);
// a
ssert
(!buf->line[line]);
a
v_assert0
(
buf
->
data_stack_top
>=
0
);
// a
v_assert1
(!buf->line[line]);
if
(
buf
->
line
[
line
])
return
buf
->
line
[
line
];
...
...
@@ -78,8 +79,8 @@ void ff_slice_buffer_release(slice_buffer *buf, int line)
{
IDWTELEM
*
buffer
;
a
ssert
(
line
>=
0
&&
line
<
buf
->
line_count
);
a
ssert
(
buf
->
line
[
line
]);
a
v_assert1
(
line
>=
0
&&
line
<
buf
->
line_count
);
a
v_assert1
(
buf
->
line
[
line
]);
buffer
=
buf
->
line
[
line
];
buf
->
data_stack_top
++
;
...
...
@@ -188,7 +189,7 @@ static av_always_inline void liftS(DWTELEM *dst, DWTELEM *src, DWTELEM *ref,
const
int
w
=
(
width
>>
1
)
-
1
+
(
highpass
&
width
);
int
i
;
a
ssert
(
shift
==
4
);
a
v_assert1
(
shift
==
4
);
#define LIFTS(src, ref, inv) \
((inv) ? (src) + (((ref) + 4 * (src)) >> shift) \
: -((-16 * (src) + (ref) + add / \
...
...
@@ -222,7 +223,7 @@ static av_always_inline void inv_liftS(IDWTELEM *dst, IDWTELEM *src,
const
int
w
=
(
width
>>
1
)
-
1
+
(
highpass
&
width
);
int
i
;
a
ssert
(
shift
==
4
);
a
v_assert1
(
shift
==
4
);
#define LIFTS(src, ref, inv) \
((inv) ? (src) + (((ref) + 4 * (src)) >> shift) \
: -((-16 * (src) + (ref) + add / \
...
...
@@ -931,7 +932,7 @@ static inline int w_c(void *v, uint8_t *pix1, uint8_t *pix2, int line_size,
ff_spatial_dwt
(
tmp
,
tmp2
,
w
,
h
,
32
,
type
,
dec_count
);
s
=
0
;
a
ssert
(
w
==
h
);
a
v_assert1
(
w
==
h
);
for
(
level
=
0
;
level
<
dec_count
;
level
++
)
for
(
ori
=
level
?
1
:
0
;
ori
<
4
;
ori
++
)
{
int
size
=
w
>>
(
dec_count
-
level
);
...
...
@@ -946,7 +947,7 @@ static inline int w_c(void *v, uint8_t *pix1, uint8_t *pix2, int line_size,
s
+=
FFABS
(
v
);
}
}
a
ssert
(
s
>=
0
);
a
v_assert1
(
s
>=
0
);
return
s
>>
9
;
}
...
...
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