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
1d0eab1d
Commit
1d0eab1d
authored
Jan 18, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugs
Originally committed as revision 1469 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e51d4def
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
dsputil.c
libavcodec/dsputil.c
+4
-3
motion_est.c
libavcodec/motion_est.c
+3
-2
motion_est_template.c
libavcodec/motion_est_template.c
+2
-2
mpegvideo.c
libavcodec/mpegvideo.c
+1
-1
No files found.
libavcodec/dsputil.c
View file @
1d0eab1d
...
...
@@ -1894,10 +1894,11 @@ static int rd8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int
run
++
;
}
i
=
scantable
[
last
];
assert
(
level
);
level
=
temp
[
i
]
+
64
;
assert
(
level
-
64
);
if
((
level
&
(
~
127
))
==
0
){
bits
+=
last_length
[
UNI_AC_ENC_INDEX
(
run
,
level
)];
}
else
...
...
libavcodec/motion_est.c
View file @
1d0eab1d
/*
* Motion estimation
* Copyright (c) 2000,2001 Fabrice Bellard.
* Copyright (c) 2002 Michael Niedermayer
* Copyright (c) 2002
-2003
Michael Niedermayer
*
*
* This library is free software; you can redistribute it and/or
...
...
@@ -313,6 +313,7 @@ static inline int get_penalty_factor(MpegEncContext *s, int type){
case
FF_CMP_DCT
:
case
FF_CMP_SATD
:
case
FF_CMP_SSE
:
case
FF_CMP_PSNR
:
return
s
->
qscale
*
8
;
case
FF_CMP_BIT
:
return
1
;
...
...
@@ -1030,7 +1031,7 @@ void ff_estimate_p_frame_motion(MpegEncContext * s,
}
#endif
}
else
{
s
->
scene_change_score
+=
20
;
s
->
scene_change_score
+=
s
->
qscale
;
mb_type
|=
MB_TYPE_INTRA
;
mx
=
0
;
my
=
0
;
...
...
libavcodec/motion_est_template.c
View file @
1d0eab1d
...
...
@@ -160,7 +160,7 @@ static int RENAME(hpel_motion_search)(MpegEncContext * s,
if
(
s
->
avctx
->
me_cmp
!=
s
->
avctx
->
me_sub_cmp
){
CMP_HPEL
(
dmin
,
0
,
0
,
mx
,
my
,
size
);
if
(
mx
||
my
)
if
(
mx
||
my
||
size
>
0
)
dmin
+=
(
mv_penalty
[
2
*
mx
-
pred_x
]
+
mv_penalty
[
2
*
my
-
pred_y
])
*
penalty_factor
;
}
...
...
@@ -290,7 +290,7 @@ static int RENAME(qpel_motion_search)(MpegEncContext * s,
if
(
s
->
avctx
->
me_cmp
!=
s
->
avctx
->
me_sub_cmp
){
CMP_QPEL
(
dmin
,
0
,
0
,
mx
,
my
,
size
);
if
(
mx
||
my
)
if
(
mx
||
my
||
size
>
0
)
dmin
+=
(
mv_penalty
[
4
*
mx
-
pred_x
]
+
mv_penalty
[
4
*
my
-
pred_y
])
*
penalty_factor
;
}
...
...
libavcodec/mpegvideo.c
View file @
1d0eab1d
...
...
@@ -2592,7 +2592,7 @@ static void encode_mb(MpegEncContext *s, int motion_x, int motion_y)
s
->
block_last_index
[
4
]
=
s
->
block_last_index
[
5
]
=
0
;
s
->
block
[
4
][
0
]
=
s
->
block
[
5
][
0
]
=
128
;
s
->
block
[
5
][
0
]
=
(
1024
+
s
->
c_dc_scale
/
2
)
/
s
->
c_dc_scale
;
}
#ifdef CONFIG_ENCODERS
...
...
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