Statistics
| Branch: | Revision:

ffmpeg / libavcodec / mpegvideo.c @ be7109c1

History | View | Annotate | Download (100 KB)

# Date Author Comment
ad324c93 09/01/2002 04:52 PM Michael Niedermayer

dct cleanup
more accurate mmx dct (dont discard bits for fun)
fixing mmx quantizer bug for qscale%2==1 (bias was slightly wrong)

Originally committed as revision 895 to svn://svn.ffmpeg.org/ffmpeg/trunk

c7e07931 08/30/2002 06:17 PM Martin Olschewski

sun solaris compilation bugfix, patch by (Martin Olschewski <olschewski at zpr dot uni-koeln dot de>)

Originally committed as revision 882 to svn://svn.ffmpeg.org/ffmpeg/trunk

28db7fce 08/29/2002 11:55 PM Michael Niedermayer

slow but accurate integer dct from IJG (should be ok with the LGPL as the old DCT is the fast integer DCT from IJG)
per context DCT selection

Originally committed as revision 878 to svn://svn.ffmpeg.org/ffmpeg/trunk

fd7db0fd 08/27/2002 04:28 PM Michael Niedermayer

mpeg4 interlaced decoding support (not completly implemented/tested due to lack of samples)

Originally committed as revision 870 to svn://svn.ffmpeg.org/ffmpeg/trunk

e769f053 08/26/2002 08:45 PM Alex Beregszaszi

added aspected_width/height for EXTENDED_PAR

Originally committed as revision 869 to svn://svn.ffmpeg.org/ffmpeg/trunk

3aa102be 08/25/2002 09:19 PM Michael Niedermayer

new ratecontrol code

Originally committed as revision 862 to svn://svn.ffmpeg.org/ffmpeg/trunk

7806197d 08/24/2002 01:24 PM Michael Niedermayer

error concealment needs the mbintra_table so it should allways be allocated

Originally committed as revision 861 to svn://svn.ffmpeg.org/ffmpeg/trunk

1fb4890b 08/22/2002 07:41 PM Michael Niedermayer

better scene change detection

Originally committed as revision 858 to svn://svn.ffmpeg.org/ffmpeg/trunk

c9178d86 08/18/2002 12:42 AM Michael Niedermayer

same dc skip behavior for chroma & luma elimination, its confusing otherwise imho

Originally committed as revision 854 to svn://svn.ffmpeg.org/ffmpeg/trunk

f5866a03 08/17/2002 08:10 PM Michael Niedermayer

skip blocks with small chroma dc too (if the user wants it) needed to avoid IDCT == 0 problems which cause catastrophic error accumulation at qp=1

Originally committed as revision 853 to svn://svn.ffmpeg.org/ffmpeg/trunk

87f8cab4 08/06/2002 11:51 PM Michael Niedermayer

mpeg4 mpeg quantizer encoding

Originally committed as revision 844 to svn://svn.ffmpeg.org/ffmpeg/trunk

508abaca 08/05/2002 09:36 PM Michael Niedermayer

4mv + bframe decoding bugfix

Originally committed as revision 843 to svn://svn.ffmpeg.org/ffmpeg/trunk

b7adc711 08/04/2002 04:05 PM Michael Niedermayer

last_picture should be never == NULL (it was with dr1) this might fix a segfault with error concealment

Originally committed as revision 837 to svn://svn.ffmpeg.org/ffmpeg/trunk

d930ef19 08/02/2002 08:27 PM Michael Niedermayer

fixing mpeg4 mpeg quantizers

Originally committed as revision 836 to svn://svn.ffmpeg.org/ffmpeg/trunk

a10678da 08/01/2002 11:01 AM Michael Niedermayer

max_b_frame=4 bugfix

Originally committed as revision 833 to svn://svn.ffmpeg.org/ffmpeg/trunk

b5a093b3 07/25/2002 08:22 PM Michael Niedermayer

different edge positions fixed with edge emu / dr1

Originally committed as revision 814 to svn://svn.ffmpeg.org/ffmpeg/trunk

3e6a20a0 07/21/2002 01:34 AM Michael Niedermayer

minor optimizations
fixing numbers.avi
fixing ac prediction between MBs with different QP

Originally committed as revision 782 to svn://svn.ffmpeg.org/ffmpeg/trunk

79c0c785 07/17/2002 11:32 PM Michael Niedermayer

use edge emu for encoding of width or height %16!=0 files

Originally committed as revision 776 to svn://svn.ffmpeg.org/ffmpeg/trunk

9022797b 07/17/2002 05:50 PM Michael Niedermayer

fixing NULL reference frame with dr1

Originally committed as revision 775 to svn://svn.ffmpeg.org/ffmpeg/trunk

9be42dba 07/17/2002 01:25 PM Michael Niedermayer

larger edge emu buffer (might have been too small)

Originally committed as revision 773 to svn://svn.ffmpeg.org/ffmpeg/trunk

54993774 07/17/2002 12:42 PM Michael Niedermayer

fixing gmc with emu edges

Originally committed as revision 772 to svn://svn.ffmpeg.org/ffmpeg/trunk

4c9ede2e 07/17/2002 11:04 AM Michael Niedermayer

interlaced mpeg2 fix ... replacing linesize>>1 by uvlinesize brainlessly wasnt a good idea

Originally committed as revision 771 to svn://svn.ffmpeg.org/ffmpeg/trunk

fe072fb4 07/16/2002 11:45 AM Michael Niedermayer

exporting mbskip_table after it has been allocated

Originally committed as revision 768 to svn://svn.ffmpeg.org/ffmpeg/trunk

760acb18 07/15/2002 09:19 PM Michael Niedermayer

direct rendering for SVQ1
MpegEncContext->opaque MUST NOT be used by the codec, its for the parent program
using standart values for pict_type
using (uv)linesize
handling dropable p-frames like b-frames

Originally committed as revision 763 to svn://svn.ffmpeg.org/ffmpeg/trunk

0fd90455 07/15/2002 02:15 PM Michael Niedermayer

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

225f9c44 07/15/2002 12:25 AM Michael Niedermayer

4mv & qpel edge emu

Originally committed as revision 760 to svn://svn.ffmpeg.org/ffmpeg/trunk

93a21abd 07/14/2002 06:37 PM Michael Niedermayer

direct rendering method 1 support

Originally committed as revision 759 to svn://svn.ffmpeg.org/ffmpeg/trunk

c03a7172 07/13/2002 05:30 PM Michael Niedermayer

rl decoding optimization

Originally committed as revision 755 to svn://svn.ffmpeg.org/ffmpeg/trunk

adc09b2e 07/10/2002 09:01 PM Marko Kreen

adding ff prefix to avoid global name conficts with xvid (patch by Marko Kreen <marko at l-t.ee>)

Originally committed as revision 739 to svn://svn.ffmpeg.org/ffmpeg/trunk

e0580f8c 07/03/2002 03:01 AM Falk Hüffner

Update and activate dct_unquantize_h263_mvi. Thanks to Måns Rullgård
for some improvements.

Originally committed as revision 714 to svn://svn.ffmpeg.org/ffmpeg/trunk

a406617f 06/25/2002 10:15 AM Michael Niedermayer

init dc_scale tables to defaults (fixes mjpeg sig11)

Originally committed as revision 706 to svn://svn.ffmpeg.org/ffmpeg/trunk

f5957f3f 06/18/2002 12:49 AM Michael Niedermayer

wmv1 support
dc scale optimisation
better ac table selection for msmpeg4

Originally committed as revision 696 to svn://svn.ffmpeg.org/ffmpeg/trunk

6282185e 06/09/2002 02:04 PM Michael Niedermayer

grayscale only encoding

Originally committed as revision 679 to svn://svn.ffmpeg.org/ffmpeg/trunk

b50eef3a 06/09/2002 01:35 PM Michael Niedermayer

grayscale only decoding

Originally committed as revision 677 to svn://svn.ffmpeg.org/ffmpeg/trunk

0f440e02 06/05/2002 11:43 PM Michael Niedermayer

optimizing MPV_decode_mb

Originally committed as revision 673 to svn://svn.ffmpeg.org/ffmpeg/trunk

ad31c904 06/05/2002 06:36 PM Fabrice Bellard

use ff_idct_put/add()

Originally committed as revision 670 to svn://svn.ffmpeg.org/ffmpeg/trunk

03c94ede 06/04/2002 12:58 PM Fabrice Bellard

avoid name clash with libjpeg - added missing externs

Originally committed as revision 660 to svn://svn.ffmpeg.org/ffmpeg/trunk

8696b636 06/03/2002 07:58 AM Nick Kurshev

use qstride instead of fixed constants

Originally committed as revision 653 to svn://svn.ffmpeg.org/ffmpeg/trunk

ae72cda6 06/03/2002 07:01 AM Nick Kurshev

new field for communicating with external postprocessing

Originally committed as revision 652 to svn://svn.ffmpeg.org/ffmpeg/trunk

333547be 06/02/2002 03:31 PM Michael Niedermayer

typo (found by Bohdan Horst <nexus at hoth.amu.edu.pl>)

Originally committed as revision 648 to svn://svn.ffmpeg.org/ffmpeg/trunk

2a052693 06/02/2002 01:31 PM Michael Niedermayer

divx5 bug workaround

Originally committed as revision 647 to svn://svn.ffmpeg.org/ffmpeg/trunk

7f2fe444 06/02/2002 12:20 PM Michael Niedermayer

single coefficient elimination
prequantization
more readable malloc & check if NULL
error concealment / error resilience
b_quant_offset (unfinished, should be 0 for now)
data partitioning

Originally committed as revision 642 to svn://svn.ffmpeg.org/ffmpeg/trunk

ff4ec49e 05/25/2002 10:45 PM Fabrice Bellard

license/copyright change

Originally committed as revision 599 to svn://svn.ffmpeg.org/ffmpeg/trunk

6000abfa 05/18/2002 11:03 PM Fabrice Bellard

removed useless header includes - use av memory functions

Originally committed as revision 522 to svn://svn.ffmpeg.org/ffmpeg/trunk

9cd3766f 05/11/2002 11:42 PM Juanjo

- pict_type exported to AVCodecContext
- Added real_pict_num to AVCodecContext, it represent the number of the
previous encoded frame, usefull when coding with B frames.
- Warning fix in motion_est.c

Originally committed as revision 484 to svn://svn.ffmpeg.org/ffmpeg/trunk

a69b930c 05/07/2002 05:55 PM Alex Beregszaszi

clamp intra matrix to 8bit for mjpeg (workaround for qscale>=25)

Originally committed as revision 451 to svn://svn.ffmpeg.org/ffmpeg/trunk

7aaf3b98 05/06/2002 01:15 PM Michael Niedermayer

there are divx5? encoded files without a userdata section but with b-frames :(

Originally committed as revision 446 to svn://svn.ffmpeg.org/ffmpeg/trunk

ef5b1b5a 05/02/2002 04:39 AM Juanjo

- Advanced Intra Coding (AIC) support for H.263+ encoder, just DC by now.
- Bug fix H.263+ AIC tables.
- Warning fixes.

Originally committed as revision 431 to svn://svn.ffmpeg.org/ffmpeg/trunk

bb71e317 04/30/2002 01:29 AM Michael Niedermayer

fixing msmpeg4v3 dc-scale for quantizers 24-31

Originally committed as revision 427 to svn://svn.ffmpeg.org/ffmpeg/trunk

2417652e 04/27/2002 01:12 PM Michael Niedermayer

export mbskip_table for direct rendering
add hurry_up support

Originally committed as revision 424 to svn://svn.ffmpeg.org/ffmpeg/trunk

d7e9533a 04/27/2002 12:30 PM Michael Niedermayer

fixed msmpeg4 infinite loop if buggy stream
rewrote quantizer
fixed bias (+10% compression/quality for h263 like codecs)
qscale=1 support
mpeg1 intra frames looks far less blocky
added codec_id field

Originally committed as revision 423 to svn://svn.ffmpeg.org/ffmpeg/trunk

1c2a8c7f 04/24/2002 01:24 AM Michael Niedermayer

avcodec_flush_buffers()

Originally committed as revision 420 to svn://svn.ffmpeg.org/ffmpeg/trunk

d697b89b 04/22/2002 09:02 PM Michael Niedermayer

segfault fix

Originally committed as revision 418 to svn://svn.ffmpeg.org/ffmpeg/trunk

1ff662cc 04/22/2002 07:04 PM Michael Niedermayer

export delay info
fixed low_delay & vo_type on mpeg4 header writer & parser

Originally committed as revision 415 to svn://svn.ffmpeg.org/ffmpeg/trunk

eec1c6b9 04/22/2002 12:45 PM Michael Niedermayer

divx 5.01 support

Originally committed as revision 412 to svn://svn.ffmpeg.org/ffmpeg/trunk

8b4c7dbc 04/21/2002 09:18 PM Michael Niedermayer

fixed ratecontrol & b-frames
2pass ratecontrol
fixed hq with 2pass
inceased build num (a few more vars for the rc stuff)
hopefully no new bugs

Originally committed as revision 408 to svn://svn.ffmpeg.org/ffmpeg/trunk

91029be7 04/19/2002 03:25 AM Michael Niedermayer

much better ME for b frames (a bit slow though)
fixed MC rounding for b frames
fixed hq mode with b-frames

Originally committed as revision 406 to svn://svn.ffmpeg.org/ffmpeg/trunk

1f0cd30f 04/17/2002 06:19 PM Michael Niedermayer

fixing hq mode with mpeg1 and 2-pass

Originally committed as revision 405 to svn://svn.ffmpeg.org/ffmpeg/trunk

9dbf1ddd 04/17/2002 04:30 PM Michael Niedermayer

mpeg2/mpeg4 dequantizer support (c & mmx)
mpeg1 dequantizer optimizations

Originally committed as revision 404 to svn://svn.ffmpeg.org/ffmpeg/trunk

9dbcbd92 04/17/2002 04:32 AM Michael Niedermayer

fixed mpeg4 time stuff on encoding
mpeg4 b-frame enoding support
removed old, out-commented ratecontrol
reuse motion compensation code between encoding & decoding
prefix newly added global functions with ff_ to reduce namespace polution
b-frame ME (unfinished, but working)...

101bea5f 04/14/2002 10:17 PM Juanjo

- ME method compatibility with legacy apps.
- Please use AVCodecContext's me_method now.

Originally committed as revision 399 to svn://svn.ffmpeg.org/ffmpeg/trunk

e4986da9 04/14/2002 06:57 PM Juanjo

- ME setting moved to AVCodecContext/MpegEncContext, no longer a global.
- EPZS ME algo used by default.
- HQ flag activated for ffmpeg.
- Cosmetics ...

Originally committed as revision 398 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc657ac3 04/08/2002 09:03 PM Zdenek Kabelac
  • using pixtype as enum - by Philip Gladstone

Originally committed as revision 389 to svn://svn.ffmpeg.org/ffmpeg/trunk

3bf43d42 04/07/2002 02:03 AM Michael Niedermayer

mpeg4 mpeg quantizer support

Originally committed as revision 381 to svn://svn.ffmpeg.org/ffmpeg/trunk

e1a9dbff 04/06/2002 10:29 PM Michael Niedermayer

wmv1 header parser (unfinished)

Originally committed as revision 380 to svn://svn.ffmpeg.org/ffmpeg/trunk

84afee34 04/05/2002 04:09 AM Michael Niedermayer

msmpeg4v2 decoding (no encoding yet)

Originally committed as revision 376 to svn://svn.ffmpeg.org/ffmpeg/trunk

ff3dfbae 03/30/2002 09:33 PM Michael Niedermayer

fixing 1/0

Originally committed as revision 370 to svn://svn.ffmpeg.org/ffmpeg/trunk

60e575ac 03/28/2002 11:07 PM Arpi

using Juanjo's way to pass forced type - especially as I_TYPE/P_TYPE defines aren't exported in the public interface, and the flagged method matches the way as qscale forcing work

Originally committed as revision 366 to svn://svn.ffmpeg.org/ffmpeg/trunk

4d69fbc9 03/28/2002 10:50 PM Michael Niedermayer

force frame type for 2-pass encoding

Originally committed as revision 365 to svn://svn.ffmpeg.org/ffmpeg/trunk

cf8039b2 03/28/2002 04:25 AM Michael Niedermayer

mpeg4 4MV encoding

Originally committed as revision 363 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba6802de 03/27/2002 09:25 PM Michael Niedermayer

4MV motion estimation (not finished yet)
SAD functions rewritten (8x8 support & MMX2 optimizations)
HQ inter/intra decission
msmpeg4 encoding bugfix (MV where too long)

Originally committed as revision 362 to svn://svn.ffmpeg.org/ffmpeg/trunk

9c15096e 03/24/2002 11:45 PM Michael Niedermayer

fcode_tables where too small, found by Klaas-Pieter Vlieg <>

Originally committed as revision 360 to svn://svn.ffmpeg.org/ffmpeg/trunk

174489bd 03/24/2002 04:16 AM Michael Niedermayer

10l (motion_val was uninitilized)
20l (first frame of a gop could be a p-frame sometimes)
add hq flag to MpegEncContext

Originally committed as revision 356 to svn://svn.ffmpeg.org/ffmpeg/trunk

9d2a0355 03/23/2002 08:21 PM Michael Niedermayer

fixing motion estimation with h263p hopefully

Originally committed as revision 355 to svn://svn.ffmpeg.org/ffmpeg/trunk

098eefe1 03/23/2002 05:43 PM Michael Niedermayer

statistics for 2-pass encoding

Originally committed as revision 354 to svn://svn.ffmpeg.org/ffmpeg/trunk

11ce8834 03/22/2002 11:22 PM Michael Niedermayer

mpeg4 aspect_ratio_info in AVCodecContext (requested by alex)
experimental (& faster) motion estimation
squished a dirty uninitialized var bug
mpeg1 fcode>1 support

Originally committed as revision 349 to svn://svn.ffmpeg.org/ffmpeg/trunk

c5b1c10a 03/22/2002 04:51 PM Michael Niedermayer

fixing epzs & mpeg1 (hopefully now really ...)

Originally committed as revision 348 to svn://svn.ffmpeg.org/ffmpeg/trunk

8a29b310 03/22/2002 04:35 AM Michael Niedermayer

mpeg1 & epzs fix

Originally committed as revision 347 to svn://svn.ffmpeg.org/ffmpeg/trunk

45870f57 03/22/2002 02:21 AM Michael Niedermayer

new motion estimation (epzs) not complete yet but allready pretty good :)
unlimited mv search range
minor bugfix in the mpeg4 header parser
reset picture in gop counter if scene change is detected

Originally committed as revision 344 to svn://svn.ffmpeg.org/ffmpeg/trunk

bd31a775 03/17/2002 07:45 PM Michael Niedermayer

scene change detection

Originally committed as revision 337 to svn://svn.ffmpeg.org/ffmpeg/trunk

c6741159 03/17/2002 06:08 PM Michael Niedermayer

10l

Originally committed as revision 336 to svn://svn.ffmpeg.org/ffmpeg/trunk

9cdd6a24 03/17/2002 04:31 PM Michael Niedermayer

hopefully better bitrate controll

Originally committed as revision 334 to svn://svn.ffmpeg.org/ffmpeg/trunk

4278e7a6 03/15/2002 02:57 PM Michael Niedermayer

optimization

Originally committed as revision 332 to svn://svn.ffmpeg.org/ffmpeg/trunk

d6231b9e 03/15/2002 04:10 AM Michael Niedermayer

use ac prediction in mpeg4 encoding (5% smaller intra-blocks/keyframes)
some minor optimizations
last non zero index cant be 64 bugfix

Originally committed as revision 331 to svn://svn.ffmpeg.org/ffmpeg/trunk

6f91bcd1 03/12/2002 10:54 PM Michael Niedermayer

mpeg4 b-frames :)
create slightly more correct headers & add "ffmpeg" user-data section

Originally committed as revision 328 to svn://svn.ffmpeg.org/ffmpeg/trunk

1699d376 03/10/2002 03:17 AM Michael Niedermayer

divx5 draw_edges bugfix

Originally committed as revision 322 to svn://svn.ffmpeg.org/ffmpeg/trunk

44eb4951 03/09/2002 01:01 PM Michael Niedermayer

divx5-gmc support
q-pel mc support
neither is totally bugfree yet though :(

Originally committed as revision 320 to svn://svn.ffmpeg.org/ffmpeg/trunk

43f1708f 02/26/2002 10:14 PM Juanjo

- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
sure it works ok. Also it's slow, so use it only when you really need to
measure quality.
- Fix libavcodec Makefile to enable profiling.

Originally committed as revision 314 to svn://svn.ffmpeg.org/ffmpeg/trunk

2b9ab1d5 02/22/2002 07:19 PM Michael Niedermayer

fixing msmpeg4 decoding if fps < 16 (i thought it was a indicator for the ext header, its the fps indeed)

Originally committed as revision 313 to svn://svn.ffmpeg.org/ffmpeg/trunk

9e15ad28 02/19/2002 07:23 PM Juanjo

- Bug fixes in H.263+ Advanced INTRA Coding decoder.
- H.263+ should be able to decode streams with AIC now :)

Originally committed as revision 311 to svn://svn.ffmpeg.org/ffmpeg/trunk

d140623f 02/18/2002 07:33 PM Juanjo

- H.263+ decoder support for Advanded INTRA Coding (buggy)

Originally committed as revision 310 to svn://svn.ffmpeg.org/ffmpeg/trunk

8257bf05 02/18/2002 09:31 AM Zdenek Kabelac
  • eliminating duplicated code from MPV_common_end
  • simplified indexing

Originally committed as revision 305 to svn://svn.ffmpeg.org/ffmpeg/trunk

b4dbd87c 02/15/2002 08:46 PM Juanjo

- Minor changes on bitrate control

Originally committed as revision 300 to svn://svn.ffmpeg.org/ffmpeg/trunk

17592475 02/12/2002 03:43 PM Michael Niedermayer

alternative bitstream writer (disabled by default, uncomment #define ALT_BISTREAM_WRITER in common.h if u want to try it)

Originally committed as revision 295 to svn://svn.ffmpeg.org/ffmpeg/trunk

e03c341e 02/10/2002 06:10 AM Juanjo

- More work on preliminary bit rate control, just to be able to get an
average variance for picture's MBs so we can adjust qscale on the MB layer.

Originally committed as revision 294 to svn://svn.ffmpeg.org/ffmpeg/trunk

37fbfd0a 02/10/2002 01:56 AM Juanjo

- Now the ME is done for the entire picture when enconding, the
DCT/Quantization is done after we have calculated all the MV of the picture.
- This is the preamble for a better bit rate control.

Originally committed as revision 293 to svn://svn.ffmpeg.org/ffmpeg/trunk

81401c1f 02/09/2002 04:59 PM Juanjo

- Fixes on RTP and GOB headers for H.263.
- RTP callback system implemented for H.263/H.263+.
- Bug fix on DC coefficients of H.263.
- H.263 decoder now returns PTS on picture number.

Originally committed as revision 292 to svn://svn.ffmpeg.org/ffmpeg/trunk

3cb32e3d 02/09/2002 01:25 AM Arpi

PATCH by Rik Snel <>
this includes the range for quantized dct coefficients in dct_quantize() (-1023...1023)

Originally committed as revision 291 to svn://svn.ffmpeg.org/ffmpeg/trunk

80e103d0 02/09/2002 01:23 AM Arpi

PATCH by Rik Snel <>

this patch enhances the jpeg header writer. It can be asked to omit
quantisation and huffman tables and it can write different horizontal and
vertical sampling factors. (the last thing is useless for libavcodec
itself (because libavcodec only handles YUV420P at ecoder level), but the...

0b2540a0 02/07/2002 11:48 PM Michael Niedermayer

avoid copying input when encoding non intra stuff too

Originally committed as revision 288 to svn://svn.ffmpeg.org/ffmpeg/trunk