Commit Graph

187 Commits

Author SHA1 Message Date
Michael Niedermayer
fcfee63b12 split ff_h263_decode_mb() into h263 and mpeg4 versions
Originally committed as revision 2554 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-12-03 01:16:35 +00:00
Michael Niedermayer
332f9ac4e3 h263 loop filter
fixed h263 modified quantization
CODEC_FLAG_OBMC

Originally committed as revision 2549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-12-01 15:23:14 +00:00
Michael Niedermayer
68b94c354d rv20 decoder
Originally committed as revision 2543 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-11-30 14:35:35 +00:00
Michel Bardiaux
9b87956678 av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
Originally committed as revision 2469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-11-03 13:26:22 +00:00
Michael Niedermayer
5f1948111a pts fix and related fixes
Originally committed as revision 2452 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-10-30 16:58:49 +00:00
Michael Niedermayer
5ff85f1d8b AVRational
sample_aspect_ratio
aspect ratio in JPEG JFIF is SAR not DAR !
removed nonsense SAR guessing code
various related cleanups
bugs?

Originally committed as revision 2403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-10-20 20:23:46 +00:00
Michael Niedermayer
a573cc27f5 emu_edge checks simplification and avoid redundant checks for mpeg1/2 if emu_edge is set
Originally committed as revision 2395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-10-17 18:56:01 +00:00
Michael Niedermayer
bcc7125e1d fix "first frame is no keyframe" bug
Originally committed as revision 2388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-10-15 15:37:25 +00:00
Michael Niedermayer
ac0c66382d dont check if the ac esc 3 could have been stored as vlc as this detects only very few errors allthough it detects several buggy encoders
Originally committed as revision 2370 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-10-13 11:13:10 +00:00
Michael Niedermayer
8025405fcd 10l ?
Originally committed as revision 2345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-10-04 23:59:14 +00:00
Michael Niedermayer
541ae14095 AVI stream header FCC / more reliable detection of old xvid files
Originally committed as revision 2258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-09-10 23:40:55 +00:00
Michael Niedermayer
8fc6c2b537 detect old xvid with fourcc=DIVX
remove "this file was encoded with ..." stuff (use debug=4096 if u want to know that)

Originally committed as revision 2253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-09-10 11:28:18 +00:00
Fabrice Bellard
1df1df0b44 removed warnings
Originally committed as revision 2246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-09-09 22:50:44 +00:00
Fabrice Bellard
d99ce8d7de spelling fix
Originally committed as revision 2172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-08-28 13:30:03 +00:00
Michael Niedermayer
9b6a5b87a6 xvid edge bug (if i understand the mpeg4 spec correctly) autodetection
improved edge & padding bug detection for old files
tested with *.avi *.mp4 on my HD

Originally committed as revision 2163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-08-25 12:50:15 +00:00
Michael Niedermayer
ffba1dc02b make the h263 decoder more error tolerant
Originally committed as revision 2099 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-08-01 11:00:03 +00:00
Michael Niedermayer
7d1c3fc1d6 rate distortion mb decision support
fix decoding of old %16!=0 divx
fix assertion failure in motion_est.c

Originally committed as revision 2094 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-07-29 02:09:12 +00:00
Michael Niedermayer
e9174ba460 last frame decoding fix
Originally committed as revision 2074 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-07-23 09:58:02 +00:00
Michael Niedermayer
7a06ff148d AVCodec.flush()
ff_draw_horiz_band() in coded order / cleanup

Originally committed as revision 2064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-07-17 12:29:07 +00:00
Michael Niedermayer
6674a12696 fix edge repeating bug for %16!=0 files, this fixes Quicktime mpeg4 (they arent buggy)
note, encoding wasnt affected by that

Originally committed as revision 2052 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-07-16 18:12:14 +00:00
Garrick Meeker
d4f5d74a54 flash video (flv) support patch by (Garrick Meeker <gmeeker at theoryllc dot com>)
Originally committed as revision 2024 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-07-09 23:10:59 +00:00
Michael Niedermayer
aef95c8cb9 fix last_block_index<=0 bug
Originally committed as revision 2004 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-07-03 22:35:39 +00:00
Michael Niedermayer
db6e779506 motion vector vissualization for mpeg1/2
mpeg1/2 cleanup/bugfix
error resilience bugfix

Originally committed as revision 1911 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-05-27 12:31:03 +00:00
Michael Niedermayer
d07f90433a truncated h263 decoding support / H263-ES "demuxer"
Originally committed as revision 1898 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-05-22 14:12:22 +00:00
Michael Niedermayer
067ff8b1ee tired
Originally committed as revision 1825 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-04-27 01:33:39 +00:00
Michael Niedermayer
80097bbf71 cleanup mpeg1/2 bitstream parser
Originally committed as revision 1813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-04-22 13:55:12 +00:00
Michael Niedermayer
487bce53eb 10l (use before malloc)
Originally committed as revision 1768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-04-12 15:00:32 +00:00
Michael Niedermayer
7bc9090a41 simplified adressing of most mb based arrays (mb_x + mb_y*s->mb_stride) now instead of mb_x + mb_y*mb_width and 1+mb_x + (1+mb_y)*(mb_width+2) and ... mixture
more direct use of the new mb_type stuff instead of codec specific stuff
runtime mb_type debug output h264/h263 variants/mpeg1/2/4
error concealment /resilience for mpeg1/2
various minor optimizations

Originally committed as revision 1746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-04-10 13:18:38 +00:00
Michael Niedermayer
0aae3f43e4 fixing slice decoding, dunno why the regression tests didnt catch that ...
Originally committed as revision 1744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-04-10 01:39:53 +00:00
Michael Niedermayer
d5a2117228 better non conformant divx packed bitstream detection, so unpacked (no b frames) divx MPEG4-ES streams can be read
Originally committed as revision 1695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-20 17:52:30 +00:00
Michael Niedermayer
46b4feec06 error resilience cleanup (its faster too...)
Originally committed as revision 1692 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-20 01:00:57 +00:00
Michael Niedermayer
b536d0aad2 field pic decoding cleanup
Originally committed as revision 1686 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-16 20:22:22 +00:00
Michael Niedermayer
1c6dcb0f42 cleaner & more flexible edge bug workaround
Originally committed as revision 1685 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-15 20:47:09 +00:00
Zdenek Kabelac
a77146abfe * 'externaly' visible option list begins avoptions_ prefix
* fixed FLAG AVOption

Originally committed as revision 1661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-10 11:48:33 +00:00
Michael Niedermayer
7004ffb3d7 merging fourcc with codec_tag
Originally committed as revision 1645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-08 01:40:52 +00:00
Michael Niedermayer
983e3246b7 per file doxy
Originally committed as revision 1634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-06 11:32:04 +00:00
Michael Niedermayer
640950c700 mpeg2 field pictures + sliced mode (doesnt work with mplayer though, dunno why)
Originally committed as revision 1626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-03-05 20:03:15 +00:00
Michael Niedermayer
d671e2feac fixing padding bug autodetection for some rare files, closes bug #647941
Originally committed as revision 1613 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-28 01:59:56 +00:00
Zdenek Kabelac
0c1a9edad4 * UINTX -> uintx_t INTX -> intx_t
Originally committed as revision 1578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-11 16:35:48 +00:00
Michael Niedermayer
c40c34828a direct blocksize in bframes fix (might fix qpel+bframe bug)
Originally committed as revision 1557 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-08 18:23:39 +00:00
Michael Niedermayer
36df880581 divx503 decoding fix
Originally committed as revision 1538 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-02-02 23:34:30 +00:00
Michael Niedermayer
49c79e6c5a drawing cute arrows instead of lame lines for motion vector visualization
Originally committed as revision 1512 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-26 23:11:08 +00:00
Michael Niedermayer
b7a22d846b cleanup
Originally committed as revision 1487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-21 21:30:48 +00:00
Michael Niedermayer
68f593b484 GetBitContext.size is allways multiplied by 8 -> use size_in_bits to avoid useless *8 in a few inner loops
Originally committed as revision 1486 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-21 17:34:12 +00:00
Michael Niedermayer
cb7c98d6e2 padding bug autodetection improvement 2nd try
Originally committed as revision 1458 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-13 13:20:21 +00:00
Michael Niedermayer
650faac6de better padding/stuffing bug autodetection
Originally committed as revision 1457 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-13 12:57:39 +00:00
Michael Niedermayer
db79495376 qpel fix
Originally committed as revision 1426 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-09 20:42:37 +00:00
Michael Niedermayer
2826984994 fixed wmv2 slices
Originally committed as revision 1425 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-01-09 11:37:08 +00:00
Michael Niedermayer
5fe061a027 better set pix_fmt explicitly
Originally committed as revision 1372 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-29 22:20:03 +00:00
Michael Niedermayer
a6a494fb2d xvid build 3 still has the padding wrong in 1/8 of the cases :(((((
having the padding right in 7/8 of the cases confuses the autodetection code too

Originally committed as revision 1371 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-29 01:27:50 +00:00
Michael Niedermayer
1457ab5233 qpel encoding
4mv+b frames encoding finally fixed
chroma ME
5 comparission functions for ME
b frame encoding speedup
wmv2 codec (unfinished)
user specified diamond size for EPZS

Originally committed as revision 1365 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-27 23:51:46 +00:00
Michael Niedermayer
8fc698950b support dumping the qscale stuff to the screen
Originally committed as revision 1339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-18 09:23:24 +00:00
Michael Niedermayer
96d9cb220b fixing playback of DaveMatthews_Crash_PocketPC.avi
Originally committed as revision 1335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-11 08:56:28 +00:00
Michael Niedermayer
492cd3a920 AVVideoFrame -> AVFrame
Originally committed as revision 1327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-09 12:03:43 +00:00
Michael Niedermayer
4e00e76b3c cleanup / messup?
fixes 20% speedloss bug
removes redundant variables from MpegEncContext
release buffers in avcodec_flush_buffers() (untested)

Originally committed as revision 1325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-09 00:29:17 +00:00
Michael Niedermayer
2b2719acff ump4 decoding fixed
Originally committed as revision 1322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-07 11:38:26 +00:00
Michael Niedermayer
b92be2af42 workaround old xvid bug
Originally committed as revision 1306 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-04 12:36:18 +00:00
Michael Niedermayer
1e491e29c2 cleanup
adding AVVideoFrame
 moving quality, pict_type, key_frame, qscale_table, ... to AVVideoFrame
 removing obsolete variables in AVCodecContext
 skiping of MBs in b frames
 correctly initalizing AVCodecContext
 picture buffer cleanup

Originally committed as revision 1302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-12-04 10:04:03 +00:00
Michael Niedermayer
525e51e8a3 10l
Originally committed as revision 1274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-25 09:57:58 +00:00
Michael Niedermayer
58b0b0dd93 fixing aspect
Originally committed as revision 1273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-25 09:23:19 +00:00
Michael Niedermayer
f8fd15e03f moving init of some variables (hurry_up,...) to MPV_frame_start()
Originally committed as revision 1271 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-23 09:12:57 +00:00
Michael Niedermayer
5d3cea3a86 aspect ratio cleanup
Originally committed as revision 1254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-20 13:08:04 +00:00
Zdenek Kabelac
eb4b3dd3c3 * using DSPContext - so each codec could use its local (sub)set of CPU extension
Originally committed as revision 1194 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-11 09:40:17 +00:00
Michael Niedermayer
347ae22ecf hurry_up>=5 -> skip everything except header & set pict_type&key_frame
Originally committed as revision 1182 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-10 10:54:07 +00:00
Michael Niedermayer
d7425f59d5 cleanup (breaks compatibility, requested by fabrice)
remove CODEC_FLAG_NOT_TRUNCATED & add CODEC_FLAG_TRUNCATED
add CODEC_CAP_TRUNCATED
add alpha plane to AVPicture
remove CODEC_ID_MSMPEG4
remove various unused stuff
support "truncated" mpeg4 streams

Originally committed as revision 1175 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-08 18:35:39 +00:00
Michael Niedermayer
9f9c322930 support forcing low_delay during decoding
Originally committed as revision 1150 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-02 18:47:51 +00:00
Michael Niedermayer
8671359bfc better padding bug detection
Originally committed as revision 1139 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-02 00:05:06 +00:00
Michael Niedermayer
6a70098ac6 fixing msmpeg4v3 with mb_height % slice_height != 0
Originally committed as revision 1137 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-11-01 18:55:03 +00:00
Michael Niedermayer
d6db1c9c6a handle direct rendering buffer allocation failure
Originally committed as revision 1075 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-27 00:02:23 +00:00
Michael Niedermayer
4a3d7fbcbc fixing interlaced MC & edge-emu
Originally committed as revision 1066 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-23 08:14:12 +00:00
Michael Niedermayer
7da71a5c68 xvid qpel bug autodetect
Originally committed as revision 1064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-22 19:48:52 +00:00
Michael Niedermayer
03e93d35b0 xvid qpel bug workaround
Originally committed as revision 1063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-22 18:55:20 +00:00
Michael Niedermayer
35aa136a77 fixing h263 slice decoding (again)
Originally committed as revision 1051 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-19 23:48:08 +00:00
Michael Niedermayer
8b32880cc9 fixing h263 decoding (did segfault)
Originally committed as revision 1049 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-19 01:31:26 +00:00
Michael Niedermayer
46fd0de8a7 fixing alt_scan for the first frame (variable was reset)
Originally committed as revision 1045 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-16 17:23:18 +00:00
Michael Niedermayer
a61f82653e better padding bug detection
Originally committed as revision 1039 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-14 19:53:04 +00:00
Michael Niedermayer
b704e7420b mpeg4 header parser clenup (needed for parsing of VOL header in avctx->extradata)
Originally committed as revision 1032 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-14 12:21:54 +00:00
Michael Niedermayer
4d2858deac better/cleaner error resilience (done in a 2nd pass after decoding)
h263/mpeg4 out of order slice decoding

Originally committed as revision 1030 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-13 13:16:04 +00:00
Michael Niedermayer
3a3d3a42c2 fixing custom quantizer matrix decoding
minor optimizations

Originally committed as revision 993 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-02 22:56:58 +00:00
Michael Niedermayer
3994623df2 optimization
Originally committed as revision 992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-10-02 17:07:39 +00:00
Michael Niedermayer
202ef8b819 ff_get_fourcc() & XVIX support
Originally committed as revision 975 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-27 10:27:57 +00:00
Alex Beregszaszi
050fe8bab5 aspect (ext. par too) support for h263 and mpeg4 (inc. build becouse of new vars)
Originally committed as revision 941 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-13 19:31:32 +00:00
Michael Niedermayer
7727783512 avoid nonsense frame-skip messages
Originally committed as revision 929 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-12 15:00:09 +00:00
Michael Niedermayer
dae9ffc440 uninitialized var ...
Originally committed as revision 927 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-12 14:43:44 +00:00
Michael Niedermayer
7866eeff46 m4v input support
return the correct number of bytes consumed for decding h263 like formats (needed for reading raw streams) this could break some divx files with b frames, so please tell me ASAP if u notice any problems

Originally committed as revision 924 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-09-12 11:10:33 +00:00
Michael Niedermayer
32b9092155 10l found by Rémi Guyomarch <rguyom at pobox dot com>
Originally committed as revision 834 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-08-01 23:23:48 +00:00
Michael Niedermayer
38274ea268 dump bits per frame / qp / frame complexity support
Originally committed as revision 827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-27 14:48:44 +00:00
Michael Niedermayer
fe072fb4ee exporting mbskip_table after it has been allocated
Originally committed as revision 768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-16 11:45:14 +00:00
Michael Niedermayer
0fd90455ec uvlinesize
export has_b_frames
mb_skip with more than 2 ip buffers

Originally committed as revision 762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-15 14:15:10 +00:00
Michael Niedermayer
93a21abde5 direct rendering method 1 support
Originally committed as revision 759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-14 18:37:35 +00:00
Michael Niedermayer
71529954c6 return buf_size again, i hope kabi is finally happy now ;)
Originally committed as revision 749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-13 15:03:47 +00:00
Michael Niedermayer
9d07682305 returning the number of consumed bytes (2nd try)
Originally committed as revision 738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 20:21:00 +00:00
Michael Niedermayer
ebd62a2402 return the number of consumed bytes instead of 0 or buf_size
Originally committed as revision 731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-07-10 10:25:11 +00:00
Michael Niedermayer
8f8402e49c dc scale simplification/optimization
Originally committed as revision 695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-18 00:46:02 +00:00
Michael Niedermayer
b50eef3ae0 grayscale only decoding
Originally committed as revision 677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-09 13:35:56 +00:00
Michael Niedermayer
4136dd2437 100l divx501+ seeking bugfix
Originally committed as revision 651 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 22:08:04 +00:00
Michael Niedermayer
6733417a5f error concealment / error resilience
merging s->first_gob_line & s->first_slice_line

Originally committed as revision 640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-06-02 12:16:28 +00:00
Fabrice Bellard
ff4ec49e64 license/copyright change
Originally committed as revision 599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-25 22:45:33 +00:00
Michael Niedermayer
92ba5ffbb5 workaround dc_scale bug in old ffmpeg msmpeg4v3 encoder (set workaround_bugs=1 for this)
Originally committed as revision 561 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-21 23:13:57 +00:00
Fabrice Bellard
6000abfa89 removed useless header includes - use av memory functions
Originally committed as revision 522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2002-05-18 23:03:29 +00:00