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
a52f598d
Commit
a52f598d
authored
May 30, 2011
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port libmpcodec fixes from MPlayer.
parent
a54dceb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
vf_detc.c
libavfilter/libmpcodecs/vf_detc.c
+1
-1
vf_dint.c
libavfilter/libmpcodecs/vf_dint.c
+6
-6
vf_divtc.c
libavfilter/libmpcodecs/vf_divtc.c
+3
-3
No files found.
libavfilter/libmpcodecs/vf_detc.c
View file @
a52f598d
...
...
@@ -382,7 +382,7 @@ static void uninit(struct vf_instance *vf)
}
static
struct
{
char
*
name
;
c
onst
c
har
*
name
;
int
(
*
func
)(
struct
vf_priv_s
*
p
,
mp_image_t
*
new
,
mp_image_t
*
old
);
int
needread
;
}
anal_funcs
[]
=
{
...
...
libavfilter/libmpcodecs/vf_dint.c
View file @
a52f598d
...
...
@@ -32,7 +32,7 @@ struct vf_priv_s {
float
sense
;
// first parameter
float
level
;
// second parameter
unsigned
int
imgfmt
;
char
diff
;
int
diff
;
uint32_t
max
;
// int dfr;
// int rdfr;
...
...
@@ -73,7 +73,7 @@ static int config (struct vf_instance *vf,
vf
->
priv
->
diff
=
31
;
mp_msg
(
MSGT_VFILTER
,
MSGL_INFO
,
"Drop-interlaced: %dx%d diff %d / level %u
\n
"
,
vf
->
priv
->
pmpi
->
width
,
vf
->
priv
->
pmpi
->
height
,
(
int
)
vf
->
priv
->
diff
,
(
unsigned
int
)
vf
->
priv
->
max
);
vf
->
priv
->
diff
,
(
unsigned
int
)
vf
->
priv
->
max
);
// vf->priv->rdfr = vf->priv->dfr = 0;
vf
->
priv
->
was_dint
=
0
;
return
vf_next_config
(
vf
,
width
,
height
,
d_width
,
d_height
,
flags
,
outfmt
);
...
...
@@ -81,10 +81,10 @@ static int config (struct vf_instance *vf,
static
int
put_image
(
struct
vf_instance
*
vf
,
mp_image_t
*
mpi
,
double
pts
)
{
char
rrow0
[
MAXROWSIZE
];
char
rrow1
[
MAXROWSIZE
];
char
rrow2
[
MAXROWSIZE
];
char
*
row0
=
rrow0
,
*
row1
=
rrow1
,
*
row2
=
rrow2
/*, *row3 = rrow3*/
;
int8_t
rrow0
[
MAXROWSIZE
];
int8_t
rrow1
[
MAXROWSIZE
];
int8_t
rrow2
[
MAXROWSIZE
];
int8_t
*
row0
=
rrow0
,
*
row1
=
rrow1
,
*
row2
=
rrow2
/*, *row3 = rrow3*/
;
int
rowsize
=
mpi
->
width
;
uint32_t
nok
=
0
,
max
=
vf
->
priv
->
max
;
int
diff
=
vf
->
priv
->
diff
;
...
...
libavfilter/libmpcodecs/vf_divtc.c
View file @
a52f598d
...
...
@@ -42,7 +42,7 @@ struct vf_priv_s
ocount
,
sum
[
5
];
double
threshold
;
FILE
*
file
;
char
*
bdata
;
int8_t
*
bdata
;
unsigned
int
*
csdata
;
int
*
history
;
};
...
...
@@ -384,8 +384,8 @@ static int analyze(struct vf_priv_s *p)
{
int
*
buf
=
0
,
*
bp
,
bufsize
=
0
,
n
,
b
,
f
,
i
,
j
,
m
,
s
;
unsigned
int
*
cbuf
=
0
,
*
cp
;
char
*
pbuf
;
char
lbuf
[
256
];
int8_t
*
pbuf
;
int8_t
lbuf
[
256
];
int
sum
[
5
];
double
d
;
...
...
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