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
3422e7c3
Commit
3422e7c3
authored
Jun 07, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/rectangle: change assert to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
107b4238
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
rectangle.h
libavcodec/rectangle.h
+7
-7
No files found.
libavcodec/rectangle.h
View file @
3422e7c3
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
#ifndef AVCODEC_RECTANGLE_H
#ifndef AVCODEC_RECTANGLE_H
#define AVCODEC_RECTANGLE_H
#define AVCODEC_RECTANGLE_H
#include <assert.h>
#include "config.h"
#include "config.h"
#include "libavutil/common.h"
#include "libavutil/common.h"
#include "libavutil/avassert.h"
#include "dsputil.h"
#include "dsputil.h"
/**
/**
...
@@ -41,14 +41,14 @@
...
@@ -41,14 +41,14 @@
*/
*/
static
av_always_inline
void
fill_rectangle
(
void
*
vp
,
int
w
,
int
h
,
int
stride
,
uint32_t
val
,
int
size
){
static
av_always_inline
void
fill_rectangle
(
void
*
vp
,
int
w
,
int
h
,
int
stride
,
uint32_t
val
,
int
size
){
uint8_t
*
p
=
(
uint8_t
*
)
vp
;
uint8_t
*
p
=
(
uint8_t
*
)
vp
;
a
ssert
(
size
==
1
||
size
==
2
||
size
==
4
);
a
v_assert2
(
size
==
1
||
size
==
2
||
size
==
4
);
a
ssert
(
w
<=
4
);
a
v_assert2
(
w
<=
4
);
w
*=
size
;
w
*=
size
;
stride
*=
size
;
stride
*=
size
;
a
ssert
((((
long
)
vp
)
&
(
FFMIN
(
w
,
STRIDE_ALIGN
)
-
1
))
==
0
);
a
v_assert2
((((
long
)
vp
)
&
(
FFMIN
(
w
,
STRIDE_ALIGN
)
-
1
))
==
0
);
a
ssert
((
stride
&
(
w
-
1
))
==
0
);
a
v_assert2
((
stride
&
(
w
-
1
))
==
0
);
if
(
w
==
2
){
if
(
w
==
2
){
const
uint16_t
v
=
size
==
4
?
val
:
val
*
0x0101
;
const
uint16_t
v
=
size
==
4
?
val
:
val
*
0x0101
;
*
(
uint16_t
*
)(
p
+
0
*
stride
)
=
v
;
*
(
uint16_t
*
)(
p
+
0
*
stride
)
=
v
;
...
@@ -118,8 +118,8 @@ static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride,
...
@@ -118,8 +118,8 @@ static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride,
*
(
uint32_t
*
)(
p
+
12
+
3
*
stride
)
=
val
;
*
(
uint32_t
*
)(
p
+
12
+
3
*
stride
)
=
val
;
#endif
#endif
}
else
}
else
a
ssert
(
0
);
a
v_assert2
(
0
);
a
ssert
(
h
==
4
);
a
v_assert2
(
h
==
4
);
}
}
#endif
/* AVCODEC_RECTANGLE_H */
#endif
/* AVCODEC_RECTANGLE_H */
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