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
72910851
Commit
72910851
authored
May 10, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/snowenc: set dia_size for the first pass of motion estimation too
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5af62127
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
59 additions
and
58 deletions
+59
-58
snowenc.c
libavcodec/snowenc.c
+1
-0
filter-mcdeint-medium
tests/ref/fate/filter-mcdeint-medium
+29
-29
vsynth_lena-snow
tests/ref/seek/vsynth_lena-snow
+10
-10
vsynth1-snow
tests/ref/vsynth/vsynth1-snow
+4
-4
vsynth1-snow-hpel
tests/ref/vsynth/vsynth1-snow-hpel
+4
-4
vsynth2-snow
tests/ref/vsynth/vsynth2-snow
+4
-4
vsynth_lena-snow
tests/ref/vsynth/vsynth_lena-snow
+4
-4
vsynth_lena-snow-hpel
tests/ref/vsynth/vsynth_lena-snow-hpel
+3
-3
No files found.
libavcodec/snowenc.c
View file @
72910851
...
@@ -1654,6 +1654,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -1654,6 +1654,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s
->
m
.
pict_type
=
pic
->
pict_type
;
s
->
m
.
pict_type
=
pic
->
pict_type
;
s
->
m
.
me_method
=
s
->
avctx
->
me_method
;
s
->
m
.
me_method
=
s
->
avctx
->
me_method
;
s
->
m
.
me
.
scene_change_score
=
0
;
s
->
m
.
me
.
scene_change_score
=
0
;
s
->
m
.
me
.
dia_size
=
avctx
->
dia_size
;
s
->
m
.
flags
=
s
->
avctx
->
flags
;
s
->
m
.
flags
=
s
->
avctx
->
flags
;
s
->
m
.
quarter_sample
=
(
s
->
avctx
->
flags
&
CODEC_FLAG_QPEL
)
!=
0
;
s
->
m
.
quarter_sample
=
(
s
->
avctx
->
flags
&
CODEC_FLAG_QPEL
)
!=
0
;
s
->
m
.
out_format
=
FMT_H263
;
s
->
m
.
out_format
=
FMT_H263
;
...
...
tests/ref/fate/filter-mcdeint-medium
View file @
72910851
#tb 0: 1/25
#tb 0: 1/25
0, 9, 9, 1, 622080, 0xb3b66c5c
0, 9, 9, 1, 622080, 0xb3b66c5c
0, 10, 10, 1, 622080, 0x
c69368eb
0, 10, 10, 1, 622080, 0x
26a29152
0, 11, 11, 1, 622080, 0x7
6bdde33
0, 11, 11, 1, 622080, 0x7
87adddc
0, 12, 12, 1, 622080, 0x
5a04d7a6
0, 12, 12, 1, 622080, 0x
cc52df08
0, 13, 13, 1, 622080, 0x
68eacaec
0, 13, 13, 1, 622080, 0x
53dad126
0, 14, 14, 1, 622080, 0x
1e888865
0, 14, 14, 1, 622080, 0x
e1448652
0, 15, 15, 1, 622080, 0x1
88ad805
0, 15, 15, 1, 622080, 0x1
59fd353
0, 16, 16, 1, 622080, 0x
268e94ce
0, 16, 16, 1, 622080, 0x
cbe893a0
0, 17, 17, 1, 622080, 0x
89da806c
0, 17, 17, 1, 622080, 0x
43a67c6b
0, 18, 18, 1, 622080, 0x
507ec6c
9
0, 18, 18, 1, 622080, 0x
ef30caf
9
0, 19, 19, 1, 622080, 0x
f20ba69
b
0, 19, 19, 1, 622080, 0x
a9cea62
b
0, 20, 20, 1, 622080, 0x
5786a96e
0, 20, 20, 1, 622080, 0x
4c4cada1
0, 21, 21, 1, 622080, 0x
f9d2fd6
e
0, 21, 21, 1, 622080, 0x
8e91f6d
e
0, 22, 22, 1, 622080, 0x
4b69ef51
0, 22, 22, 1, 622080, 0x
b03ef044
0, 23, 23, 1, 622080, 0x
19a22b06
0, 23, 23, 1, 622080, 0x
6b54262b
0, 24, 24, 1, 622080, 0x
13a30e94
0, 24, 24, 1, 622080, 0x
911e0cea
0, 25, 25, 1, 622080, 0x
02435f86
0, 25, 25, 1, 622080, 0x
8320632c
0, 26, 26, 1, 622080, 0x
06794a00
0, 26, 26, 1, 622080, 0x
2bde42b2
0, 27, 27, 1, 622080, 0x
289e8aea
0, 27, 27, 1, 622080, 0x
e9d988c3
0, 28, 28, 1, 622080, 0x
494ab1a4
0, 28, 28, 1, 622080, 0x
a9f0b1db
0, 29, 29, 1, 622080, 0x
c1c6f5da
0, 29, 29, 1, 622080, 0x
b5bcf186
0, 30, 30, 1, 622080, 0x
1f6d6764
0, 30, 30, 1, 622080, 0x
469c6717
0, 31, 31, 1, 622080, 0x
aa898832
0, 31, 31, 1, 622080, 0x
2ca883e6
0, 32, 32, 1, 622080, 0x
6935c41
2
0, 32, 32, 1, 622080, 0x
4f5fba7
2
0, 33, 33, 1, 622080, 0x
825e2a67
0, 33, 33, 1, 622080, 0x
a2e423ca
0, 34, 34, 1, 622080, 0x
d8ee113a
0, 34, 34, 1, 622080, 0x
c1fb0aaf
0, 35, 35, 1, 622080, 0x9
ffc7f17
0, 35, 35, 1, 622080, 0x9
6a879b8
0, 36, 36, 1, 622080, 0x
a7819ac8
0, 36, 36, 1, 622080, 0x
212e92e6
0, 37, 37, 1, 622080, 0x
a412377d
0, 37, 37, 1, 622080, 0x
9f26378a
0, 38, 38, 1, 622080, 0x
538376bc
0, 38, 38, 1, 622080, 0x
deaf77ab
tests/ref/seek/vsynth_lena-snow
View file @
72910851
...
@@ -2,19 +2,19 @@ ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
...
@@ -2,19 +2,19 @@ ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39
718
size: 3640
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39
806
size: 3640
ret: 0 st: 0 flags:0 ts: 0.800000
ret: 0 st: 0 flags:0 ts: 0.800000
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 274
38
size: 3494
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 274
42
size: 3494
ret:-1 st: 0 flags:1 ts:-0.320000
ret:-1 st: 0 flags:1 ts:-0.320000
ret:-1 st:-1 flags:0 ts: 2.576668
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39
718
size: 3640
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39
806
size: 3640
ret: 0 st: 0 flags:0 ts: 0.360000
ret: 0 st: 0 flags:0 ts: 0.360000
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 161
28
size: 3244
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 161
34
size: 3244
ret:-1 st: 0 flags:1 ts:-0.760000
ret:-1 st: 0 flags:1 ts:-0.760000
ret:-1 st:-1 flags:0 ts: 2.153336
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 274
38
size: 3494
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 274
42
size: 3494
ret: 0 st: 0 flags:0 ts:-0.040000
ret: 0 st: 0 flags:0 ts:-0.040000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st: 0 flags:1 ts: 2.840000
ret: 0 st: 0 flags:1 ts: 2.840000
...
@@ -22,13 +22,13 @@ ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
...
@@ -22,13 +22,13 @@ ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 161
28
size: 3244
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 161
34
size: 3244
ret: 0 st: 0 flags:0 ts:-0.480000
ret: 0 st: 0 flags:0 ts:-0.480000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st: 0 flags:1 ts: 2.400000
ret: 0 st: 0 flags:1 ts: 2.400000
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st:-1 flags:0 ts: 1.306672
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39
718
size: 3640
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39
806
size: 3640
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st:-1 flags:1 ts: 0.200839
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st: 0 flags:0 ts:-0.920000
ret: 0 st: 0 flags:0 ts:-0.920000
...
@@ -36,11 +36,11 @@ ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
...
@@ -36,11 +36,11 @@ ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 5652 size: 3035
ret: 0 st: 0 flags:1 ts: 2.000000
ret: 0 st: 0 flags:1 ts: 2.000000
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 274
38
size: 3494
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 274
42
size: 3494
ret:-1 st:-1 flags:1 ts:-0.222493
ret:-1 st:-1 flags:1 ts:-0.222493
ret:-1 st: 0 flags:0 ts: 2.680000
ret:-1 st: 0 flags:0 ts: 2.680000
ret: 0 st: 0 flags:1 ts: 1.560000
ret: 0 st: 0 flags:1 ts: 1.560000
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39
718
size: 3640
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39
806
size: 3640
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 161
28
size: 3244
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 161
34
size: 3244
ret:-1 st:-1 flags:1 ts:-0.645825
ret:-1 st:-1 flags:1 ts:-0.645825
tests/ref/vsynth/vsynth1-snow
View file @
72910851
09e7402e7a86a1b88c2470ce7b7c5479
*tests/data/fate/vsynth1-snow.avi
67c10f8d52fcd1103caa675a1408bf6e
*tests/data/fate/vsynth1-snow.avi
136
222
tests/data/fate/vsynth1-snow.avi
136
088
tests/data/fate/vsynth1-snow.avi
1b666c20aab90bca35d45732ae6f539f
*tests/data/fate/vsynth1-snow.out.rawvideo
bfc0bcc4bc7b956933aa58acc587018d
*tests/data/fate/vsynth1-snow.out.rawvideo
stddev: 22.77 PSNR: 20.98 MAXDIFF: 17
3
bytes: 7603200/ 7603200
stddev: 22.77 PSNR: 20.98 MAXDIFF: 17
5
bytes: 7603200/ 7603200
tests/ref/vsynth/vsynth1-snow-hpel
View file @
72910851
a7fcc538cb09bd0d9096690ebc0e12c3
*tests/data/fate/vsynth1-snow-hpel.avi
e62ae25d5040d04622a965bcb27fdb1e
*tests/data/fate/vsynth1-snow-hpel.avi
138
572
tests/data/fate/vsynth1-snow-hpel.avi
138
446
tests/data/fate/vsynth1-snow-hpel.avi
654064845979137a336aa27cb9605f69
*tests/data/fate/vsynth1-snow-hpel.out.rawvideo
57c914cd150f8fc260b5989ce3e5884c
*tests/data/fate/vsynth1-snow-hpel.out.rawvideo
stddev: 22.74 PSNR: 20.99 MAXDIFF: 17
5
bytes: 7603200/ 7603200
stddev: 22.74 PSNR: 20.99 MAXDIFF: 17
2
bytes: 7603200/ 7603200
tests/ref/vsynth/vsynth2-snow
View file @
72910851
f80a52dad2fd125df9dd6fcb0313eba9
*tests/data/fate/vsynth2-snow.avi
0a41e73ddd2f54936490655b46dad4a3
*tests/data/fate/vsynth2-snow.avi
728
06
tests/data/fate/vsynth2-snow.avi
728
68
tests/data/fate/vsynth2-snow.avi
fb1944b90011ff997e4762eebe3d5ad3
*tests/data/fate/vsynth2-snow.out.rawvideo
34a75f5cf8a71159f1a572d9cedcfef9
*tests/data/fate/vsynth2-snow.out.rawvideo
stddev: 13.7
2 PSNR: 25.38
MAXDIFF: 162 bytes: 7603200/ 7603200
stddev: 13.7
3 PSNR: 25.37
MAXDIFF: 162 bytes: 7603200/ 7603200
tests/ref/vsynth/vsynth_lena-snow
View file @
72910851
ca3ca23811d77e8d6b438116675c5550
*tests/data/fate/vsynth_lena-snow.avi
8e96f337e8f4ccac7d72ef517e1d2208
*tests/data/fate/vsynth_lena-snow.avi
576
92
tests/data/fate/vsynth_lena-snow.avi
576
80
tests/data/fate/vsynth_lena-snow.avi
8890189af71a0dd3447c4e8424c9a76
b *tests/data/fate/vsynth_lena-snow.out.rawvideo
90963cfd2359d460001c94d94256dc2
b *tests/data/fate/vsynth_lena-snow.out.rawvideo
stddev: 10.4
7
PSNR: 27.72 MAXDIFF: 119 bytes: 7603200/ 7603200
stddev: 10.4
8
PSNR: 27.72 MAXDIFF: 119 bytes: 7603200/ 7603200
tests/ref/vsynth/vsynth_lena-snow-hpel
View file @
72910851
189b98a51f6d9f4fe8cc6c08a77e5b46
*tests/data/fate/vsynth_lena-snow-hpel.avi
56b14cb1cbb637536233982e87f7ac3e
*tests/data/fate/vsynth_lena-snow-hpel.avi
61764 tests/data/fate/vsynth_lena-snow-hpel.avi
61764 tests/data/fate/vsynth_lena-snow-hpel.avi
8680d40905f423999d65b996c4dcb98
4 *tests/data/fate/vsynth_lena-snow-hpel.out.rawvideo
244b0266127fa354d8485234b2c388e
4 *tests/data/fate/vsynth_lena-snow-hpel.out.rawvideo
stddev: 10.45 PSNR: 27.74 MAXDIFF: 1
23
bytes: 7603200/ 7603200
stddev: 10.45 PSNR: 27.74 MAXDIFF: 1
19
bytes: 7603200/ 7603200
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