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
55fa97e2
Commit
55fa97e2
authored
Jan 28, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useage of memalign() from libmpcodecs, not all platforms have memalign().
parent
609bdf81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
vf_perspective.c
libavfilter/libmpcodecs/vf_perspective.c
+2
-2
vf_pp7.c
libavfilter/libmpcodecs/vf_pp7.c
+2
-2
vf_sab.c
libavfilter/libmpcodecs/vf_sab.c
+4
-4
No files found.
libavfilter/libmpcodecs/vf_perspective.c
View file @
55fa97e2
...
...
@@ -108,7 +108,7 @@ static int config(struct vf_instance *vf,
int
i
,
j
;
vf
->
priv
->
pvStride
=
width
;
vf
->
priv
->
pv
=
(
void
*
)
memalign
(
8
,
width
*
height
*
2
*
sizeof
(
int32_t
));
vf
->
priv
->
pv
=
av_malloc
(
width
*
height
*
2
*
sizeof
(
int32_t
));
initPv
(
vf
->
priv
,
width
,
height
);
for
(
i
=
0
;
i
<
SUB_PIXELS
;
i
++
){
...
...
@@ -132,7 +132,7 @@ static int config(struct vf_instance *vf,
static
void
uninit
(
struct
vf_instance
*
vf
){
if
(
!
vf
->
priv
)
return
;
free
(
vf
->
priv
->
pv
);
av_
free
(
vf
->
priv
->
pv
);
vf
->
priv
->
pv
=
NULL
;
free
(
vf
->
priv
);
...
...
libavfilter/libmpcodecs/vf_pp7.c
View file @
55fa97e2
...
...
@@ -350,7 +350,7 @@ static int config(struct vf_instance *vf,
int
h
=
(
height
+
16
+
15
)
&
(
~
15
);
vf
->
priv
->
temp_stride
=
(
width
+
16
+
15
)
&
(
~
15
);
vf
->
priv
->
src
=
memalign
(
8
,
vf
->
priv
->
temp_stride
*
(
h
+
8
)
*
sizeof
(
uint8_t
));
vf
->
priv
->
src
=
av_malloc
(
vf
->
priv
->
temp_stride
*
(
h
+
8
)
*
sizeof
(
uint8_t
));
return
vf_next_config
(
vf
,
width
,
height
,
d_width
,
d_height
,
flags
,
outfmt
);
}
...
...
@@ -410,7 +410,7 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){
static
void
uninit
(
struct
vf_instance
*
vf
){
if
(
!
vf
->
priv
)
return
;
free
(
vf
->
priv
->
src
);
av_
free
(
vf
->
priv
->
src
);
vf
->
priv
->
src
=
NULL
;
free
(
vf
->
priv
);
...
...
libavfilter/libmpcodecs/vf_sab.c
View file @
55fa97e2
...
...
@@ -95,7 +95,7 @@ static int allocStuff(FilterParam *f, int width, int height){
SwsVector
*
vec
;
SwsFilter
swsF
;
int
i
,
x
,
y
;
f
->
preFilterBuf
=
(
uint8_t
*
)
memalign
(
8
,
stride
*
height
);
f
->
preFilterBuf
=
av_malloc
(
stride
*
height
);
f
->
preFilterStride
=
stride
;
vec
=
sws_getGaussianVec
(
f
->
preFilterRadius
,
f
->
quality
);
...
...
@@ -119,7 +119,7 @@ static int allocStuff(FilterParam *f, int width, int height){
vec
=
sws_getGaussianVec
(
f
->
radius
,
f
->
quality
);
f
->
distWidth
=
vec
->
length
;
f
->
distStride
=
(
vec
->
length
+
7
)
&~
7
;
f
->
distCoeff
=
(
int32_t
*
)
memalign
(
8
,
f
->
distWidth
*
f
->
distStride
*
sizeof
(
int32_t
));
f
->
distCoeff
=
av_malloc
(
f
->
distWidth
*
f
->
distStride
*
sizeof
(
int32_t
));
for
(
y
=
0
;
y
<
vec
->
length
;
y
++
){
for
(
x
=
0
;
x
<
vec
->
length
;
x
++
){
...
...
@@ -153,10 +153,10 @@ static void freeBuffers(FilterParam *f){
if
(
f
->
preFilterContext
)
sws_freeContext
(
f
->
preFilterContext
);
f
->
preFilterContext
=
NULL
;
free
(
f
->
preFilterBuf
);
av_
free
(
f
->
preFilterBuf
);
f
->
preFilterBuf
=
NULL
;
free
(
f
->
distCoeff
);
av_
free
(
f
->
distCoeff
);
f
->
distCoeff
=
NULL
;
}
...
...
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