Commit 72910851 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/snowenc: set dia_size for the first pass of motion estimation too

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5af62127
......@@ -1654,6 +1654,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s->m.pict_type = pic->pict_type;
s->m.me_method= s->avctx->me_method;
s->m.me.scene_change_score=0;
s->m.me.dia_size = avctx->dia_size;
s->m.flags= s->avctx->flags;
s->m.quarter_sample= (s->avctx->flags & CODEC_FLAG_QPEL)!=0;
s->m.out_format= FMT_H263;
......
#tb 0: 1/25
0, 9, 9, 1, 622080, 0xb3b66c5c
0, 10, 10, 1, 622080, 0xc69368eb
0, 11, 11, 1, 622080, 0x76bdde33
0, 12, 12, 1, 622080, 0x5a04d7a6
0, 13, 13, 1, 622080, 0x68eacaec
0, 14, 14, 1, 622080, 0x1e888865
0, 15, 15, 1, 622080, 0x188ad805
0, 16, 16, 1, 622080, 0x268e94ce
0, 17, 17, 1, 622080, 0x89da806c
0, 18, 18, 1, 622080, 0x507ec6c9
0, 19, 19, 1, 622080, 0xf20ba69b
0, 20, 20, 1, 622080, 0x5786a96e
0, 21, 21, 1, 622080, 0xf9d2fd6e
0, 22, 22, 1, 622080, 0x4b69ef51
0, 23, 23, 1, 622080, 0x19a22b06
0, 24, 24, 1, 622080, 0x13a30e94
0, 25, 25, 1, 622080, 0x02435f86
0, 26, 26, 1, 622080, 0x06794a00
0, 27, 27, 1, 622080, 0x289e8aea
0, 28, 28, 1, 622080, 0x494ab1a4
0, 29, 29, 1, 622080, 0xc1c6f5da
0, 30, 30, 1, 622080, 0x1f6d6764
0, 31, 31, 1, 622080, 0xaa898832
0, 32, 32, 1, 622080, 0x6935c412
0, 33, 33, 1, 622080, 0x825e2a67
0, 34, 34, 1, 622080, 0xd8ee113a
0, 35, 35, 1, 622080, 0x9ffc7f17
0, 36, 36, 1, 622080, 0xa7819ac8
0, 37, 37, 1, 622080, 0xa412377d
0, 38, 38, 1, 622080, 0x538376bc
0, 10, 10, 1, 622080, 0x26a29152
0, 11, 11, 1, 622080, 0x787adddc
0, 12, 12, 1, 622080, 0xcc52df08
0, 13, 13, 1, 622080, 0x53dad126
0, 14, 14, 1, 622080, 0xe1448652
0, 15, 15, 1, 622080, 0x159fd353
0, 16, 16, 1, 622080, 0xcbe893a0
0, 17, 17, 1, 622080, 0x43a67c6b
0, 18, 18, 1, 622080, 0xef30caf9
0, 19, 19, 1, 622080, 0xa9cea62b
0, 20, 20, 1, 622080, 0x4c4cada1
0, 21, 21, 1, 622080, 0x8e91f6de
0, 22, 22, 1, 622080, 0xb03ef044
0, 23, 23, 1, 622080, 0x6b54262b
0, 24, 24, 1, 622080, 0x911e0cea
0, 25, 25, 1, 622080, 0x8320632c
0, 26, 26, 1, 622080, 0x2bde42b2
0, 27, 27, 1, 622080, 0xe9d988c3
0, 28, 28, 1, 622080, 0xa9f0b1db
0, 29, 29, 1, 622080, 0xb5bcf186
0, 30, 30, 1, 622080, 0x469c6717
0, 31, 31, 1, 622080, 0x2ca883e6
0, 32, 32, 1, 622080, 0x4f5fba72
0, 33, 33, 1, 622080, 0xa2e423ca
0, 34, 34, 1, 622080, 0xc1fb0aaf
0, 35, 35, 1, 622080, 0x96a879b8
0, 36, 36, 1, 622080, 0x212e92e6
0, 37, 37, 1, 622080, 0x9f26378a
0, 38, 38, 1, 622080, 0xdeaf77ab
......@@ -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: 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: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39718 size: 3640
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39806 size: 3640
ret: 0 st: 0 flags:0 ts: 0.800000
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 27438 size: 3494
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 27442 size: 3494
ret:-1 st: 0 flags:1 ts:-0.320000
ret:-1 st:-1 flags:0 ts: 2.576668
ret: 0 st:-1 flags:1 ts: 1.470835
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39718 size: 3640
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39806 size: 3640
ret: 0 st: 0 flags:0 ts: 0.360000
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16128 size: 3244
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16134 size: 3244
ret:-1 st: 0 flags:1 ts:-0.760000
ret:-1 st:-1 flags:0 ts: 2.153336
ret: 0 st:-1 flags:1 ts: 1.047503
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 27438 size: 3494
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 27442 size: 3494
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 ts: 2.840000
......@@ -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: 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: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16128 size: 3244
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16134 size: 3244
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 ts: 2.400000
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: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39718 size: 3640
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39806 size: 3640
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:0 ts:-0.920000
......@@ -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 dts: 1.920000 pts: 1.920000 pos: 52608 size: 3582
ret: 0 st:-1 flags:0 ts: 0.883340
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 27438 size: 3494
ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 27442 size: 3494
ret:-1 st:-1 flags:1 ts:-0.222493
ret:-1 st: 0 flags:0 ts: 2.680000
ret: 0 st: 0 flags:1 ts: 1.560000
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39718 size: 3640
ret: 0 st: 0 flags:1 dts: 1.440000 pts: 1.440000 pos: 39806 size: 3640
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16128 size: 3244
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 16134 size: 3244
ret:-1 st:-1 flags:1 ts:-0.645825
09e7402e7a86a1b88c2470ce7b7c5479 *tests/data/fate/vsynth1-snow.avi
136222 tests/data/fate/vsynth1-snow.avi
1b666c20aab90bca35d45732ae6f539f *tests/data/fate/vsynth1-snow.out.rawvideo
stddev: 22.77 PSNR: 20.98 MAXDIFF: 173 bytes: 7603200/ 7603200
67c10f8d52fcd1103caa675a1408bf6e *tests/data/fate/vsynth1-snow.avi
136088 tests/data/fate/vsynth1-snow.avi
bfc0bcc4bc7b956933aa58acc587018d *tests/data/fate/vsynth1-snow.out.rawvideo
stddev: 22.77 PSNR: 20.98 MAXDIFF: 175 bytes: 7603200/ 7603200
a7fcc538cb09bd0d9096690ebc0e12c3 *tests/data/fate/vsynth1-snow-hpel.avi
138572 tests/data/fate/vsynth1-snow-hpel.avi
654064845979137a336aa27cb9605f69 *tests/data/fate/vsynth1-snow-hpel.out.rawvideo
stddev: 22.74 PSNR: 20.99 MAXDIFF: 175 bytes: 7603200/ 7603200
e62ae25d5040d04622a965bcb27fdb1e *tests/data/fate/vsynth1-snow-hpel.avi
138446 tests/data/fate/vsynth1-snow-hpel.avi
57c914cd150f8fc260b5989ce3e5884c *tests/data/fate/vsynth1-snow-hpel.out.rawvideo
stddev: 22.74 PSNR: 20.99 MAXDIFF: 172 bytes: 7603200/ 7603200
f80a52dad2fd125df9dd6fcb0313eba9 *tests/data/fate/vsynth2-snow.avi
72806 tests/data/fate/vsynth2-snow.avi
fb1944b90011ff997e4762eebe3d5ad3 *tests/data/fate/vsynth2-snow.out.rawvideo
stddev: 13.72 PSNR: 25.38 MAXDIFF: 162 bytes: 7603200/ 7603200
0a41e73ddd2f54936490655b46dad4a3 *tests/data/fate/vsynth2-snow.avi
72868 tests/data/fate/vsynth2-snow.avi
34a75f5cf8a71159f1a572d9cedcfef9 *tests/data/fate/vsynth2-snow.out.rawvideo
stddev: 13.73 PSNR: 25.37 MAXDIFF: 162 bytes: 7603200/ 7603200
ca3ca23811d77e8d6b438116675c5550 *tests/data/fate/vsynth_lena-snow.avi
57692 tests/data/fate/vsynth_lena-snow.avi
8890189af71a0dd3447c4e8424c9a76b *tests/data/fate/vsynth_lena-snow.out.rawvideo
stddev: 10.47 PSNR: 27.72 MAXDIFF: 119 bytes: 7603200/ 7603200
8e96f337e8f4ccac7d72ef517e1d2208 *tests/data/fate/vsynth_lena-snow.avi
57680 tests/data/fate/vsynth_lena-snow.avi
90963cfd2359d460001c94d94256dc2b *tests/data/fate/vsynth_lena-snow.out.rawvideo
stddev: 10.48 PSNR: 27.72 MAXDIFF: 119 bytes: 7603200/ 7603200
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
8680d40905f423999d65b996c4dcb984 *tests/data/fate/vsynth_lena-snow-hpel.out.rawvideo
stddev: 10.45 PSNR: 27.74 MAXDIFF: 123 bytes: 7603200/ 7603200
244b0266127fa354d8485234b2c388e4 *tests/data/fate/vsynth_lena-snow-hpel.out.rawvideo
stddev: 10.45 PSNR: 27.74 MAXDIFF: 119 bytes: 7603200/ 7603200
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment