summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
Commit message (Collapse)AuthorAgeFilesLines
* w32threads: support for frame multithreadingSteven Walters2011-10-161-1/+1
| | | | | | | | Replace our incomplete w32threads implementation with x264's pthreads w32threads wrapper. Relicensed to LGPL with kind permission by Pegasys Inc. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mpegvideo: set correct offset for edge emulation buffer.Ronald S. Bultje2011-10-051-4/+2
| | | | | Using the old code, half of it was unused and the other half was too small for e.g. >8bpp interlaced data, causing random buffer overruns.
* mpegvideo: fix position of bottom edge.Ronald S. Bultje2011-10-051-6/+9
| | | | | It was wrong in colorspaces where horizontal and vertical chroma subsampling are not the same, e.g. 422.
* lavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*Anton Khirnov2011-09-211-2/+2
|
* Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.Diego Biurrun2011-09-211-2/+2
| | | | This fixes build failures with -DDEBUG in CPPFLAGS.
* Windows Media Image decoder (WMVP/WVP2)Alberto Delmás2011-08-231-2/+10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: initialise DSPContext in ff_dct_common_init()Mans Rullgard2011-07-271-1/+2
| | | | | | | The functions and tables initialised in this function rely on an initialised DSPContext. Make sure they always have one. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegvideo: fix invalid picture unreferencing.Ronald S. Bultje2011-07-201-4/+6
| | | | | | | | | | | Mpegvideo would free frames as soon as they're not the next or prev picture. This is fine for a single-threading model, but fails miserably in a system where pictures can be referenced (as e.g. last/prev pic) in other threads. Keeping track of ownership of pictures keeps image references (e.g. motion vectors, or the reference of a motion vector) alive as long as the picture data itself is alive. This also happens to fix make THREADS=[3-16] fate-vsynth[12]-error.
* Eliminate FF_COMMON_FRAME macro.Diego Biurrun2011-07-111-103/+108
| | | | | FF_COMMON_FRAME holds the contents of the AVFrame structure and is also copied to struct Picture. Replace by an embedded AVFrame structure in struct Picture.
* mpeg1video: don't abort if thread_count is too high.Frank Barchard2011-07-091-5/+9
| | | | | | Instead, just decrease it to a valid value and use that. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* H.264: fix overreads of qscale_tableJason Garrett-Glaser2011-07-041-2/+3
| | | | filter_mb_fast assumed that qscale_table was padded like many of the other tables.
* 4:4:4 H.264 decoding supportJason Garrett-Glaser2011-06-131-9/+16
| | | | Note: this is 4:4:4 from the 2007 spec revision, not the previous (now deprecated) 4:4:4 mode in H.264.
* Roll back 4:4:4 H.264 for nowJason Garrett-Glaser2011-06-131-16/+9
| | | | Needs some ARM/PPC asm modifications.
* 4:4:4 H.264 decoding supportJason Garrett-Glaser2011-06-131-9/+16
| | | | Note: this is 4:4:4 from the 2007 spec revision, not the previous (now deprecated) 4:4:4 mode in H.264.
* mpegvideoenc: fix multislice fate tests with threading disabled.Ronald S. Bultje2011-06-031-3/+3
| | | | | The MPEG encoding code assumes that n_threads == n_slices, and thus it should use n_slices even if threading itself is disabled.
* H264/MPEG frame-level multi-threading.Alexander Strange2011-06-021-38/+221
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Remove h263_msmpeg4 from MpegEncContext.Alex Converse2011-05-251-1/+1
| | | | It was long ago superseded by msmpeg4_version.
* mpegvideo: make FF_DEBUG_DCT_COEFF output coeffs via av_log() instead of ↵Michael Niedermayer2011-05-121-2/+7
| | | | | | | | | just via AVFrame. This allows the values to be used without changing C code and is closer to how the other DEBUG flags work. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Fix crash of interlaced MPEG2 decodingAnatoly Nenashev2011-05-111-2/+7
| | | | | Problem description, preliminary review discussion at http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/127731
* mpegvideo: reindent.Ronald S. Bultje2011-05-031-116/+111
|
* mpegvideo: don't av_malloc(0).Ronald S. Bultje2011-05-031-0/+12
|
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-30/+30
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavc: remove FF_API_HURRY_UP cruftAnton Khirnov2011-04-261-6/+0
|
* lavc: mark hurry_up for removal on next major bumpAnton Khirnov2011-04-021-0/+4
| | | | | It has been deprecated for about five years, skip_idct/skip_frame should be used instead.
* dsputil: allow to skip drawing of top/bottom edges.Alexander Strange2011-03-261-3/+9
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-151-1/+1
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Move ff_emulated_edge_mc() into DSPContext.Ronald S. Bultje2011-01-281-6/+6
|
* Simplify tff setting code in MPV_frame_start().Michael Niedermayer2010-12-251-5/+3
| | | | Originally committed as revision 26090 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H.264 decode: support cropping up to 28 pixels in interlaced mode.Reimar Döffinger2010-11-031-1/+1
| | | | | | | | Contrary to progressive, just being able to crop up to 14/15 pixels is not enough to encode all supported resolutions, and the new behaviour is also consistent with e.g. MPEG-2 etc. Originally committed as revision 25669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* The debug text output of macroblocks can indicate MB_TYPE_INTERLACED,Ivan Kalvachev2010-09-211-1/+1
| | | | | | | but it used to do it only for h264 codec. Allow it for other codecs, as mpeg2 and mpeg4 also set this flag. Originally committed as revision 25156 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use new imgutils.h API names, fix deprecation warnings.Stefano Sabatini2010-09-071-1/+1
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fixed mpeg12 top field first flag value with field picture encoding.Laurent Aimar2010-08-201-1/+8
| | | | | | | | | | | | | The relevent extract of the iso 13818-2 about the value of the syntaxical element top_field_first of the Picture Coding Extension is: "top_field_first -- The meaning of this element depends upon picture_structure, progressive_sequence and repeat_first_field. [...] In a field picture top_field_first shall have the value '0', and the only field output by the decoding process is the decoded field picture." Originally committed as revision 24853 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-061-1/+2
| | | | | | av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix memory leak introduced in r23933Måns Rullgård2010-07-021-8/+2
| | | | Originally committed as revision 23998 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix misspelled parameter names in Doxygen documentation.Diego Biurrun2010-07-021-1/+1
| | | | | | This fixes one Doxygen warning each. Originally committed as revision 23970 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Maybe fix threaded mpeg*video encodingMåns Rullgård2010-07-011-0/+16
| | | | | | | This allocates per-thread copies of some MpegEncContext.ac_val which is used concurrently from the encoding threads. Originally committed as revision 23933 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-301-2/+2
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize some code into the new function ff_toupper4().Francesco Lavra2010-05-181-9/+4
| | | | | | Patch by Francesco Lavra, francescolavra interfree it Originally committed as revision 23158 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change ref_index structure so it matches how its organized in h264.Michael Niedermayer2010-03-231-1/+1
| | | | | | Also revert the related error concealment hotfix. Originally committed as revision 22640 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ff_ prefix for mpeg2_dc_scale_table.Michael Niedermayer2010-03-151-1/+1
| | | | Originally committed as revision 22556 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support intra_dc_precision>8 in jpegMichael Niedermayer2010-03-151-0/+31
| | | | Originally committed as revision 22554 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ff_sqrt() to libavutil/intmath.hMåns Rullgård2010-03-081-0/+1
| | | | Originally committed as revision 22345 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of mb2b8_xy and b8_stride, change arrays organized based on b8_stride toMichael Niedermayer2010-02-251-1/+1
| | | | | | | ones based on mb_stride in h264. about 20 cpu cycles faster overall per MB Originally committed as revision 22065 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H264 DXVA2 implementationLaurent Aimar2010-01-201-0/+1
| | | | | | | | | | | | | | It allows VLD H264 decoding using DXVA2 (GPU assisted decoding API under VISTA and Windows 7). It is implemented by using AVHWAccel API. It has been tested successfully for some time in VLC using an nvidia card on Windows 7. To compile it, you need to have the system header dxva2api.h (either from microsoft or using http://downloads.videolan.org/pub/videolan/testing/contrib/dxva2api.h) The generated libavcodec.dll does not depend directly on any new lib as the necessary objects are given by the application using FFmpeg. Originally committed as revision 21353 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support lowres 3 when decoding MPEG video.Anatoly Nenashev2010-01-161-13/+16
| | | | | | Patch by Anatoliy Nenashev, nenashev_as mail ru Originally committed as revision 21239 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of pointless CONFIG_WMV2 definition.Diego Biurrun2009-12-301-1/+1
| | | | Originally committed as revision 20971 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move dummy picture allocation code from mpeg1/2 to mpegvideo.Michael Niedermayer2009-11-301-7/+19
| | | | | | This fixes a infinite loop on a b frame. Originally committed as revision 20672 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set mb_y in mpeg2 field pictures like h264 does.Michael Niedermayer2009-11-301-15/+23
| | | | | | This fixes -vismv & -debug 16384 with field pictures. Originally committed as revision 20670 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud