Commit Graph

10099 Commits

Author SHA1 Message Date
Reimar Döffinger
8514f8427f Fix ipvideo_decode_block_opcode_0xD again.
Originally committed as revision 18289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 22:28:36 +00:00
Stefano Sabatini
9b34899ecf Document read_line().
Originally committed as revision 18286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 20:13:29 +00:00
Stefano Sabatini
f9f74ab97b Add a notice telling that the behavior of skip_put_bits() is undefined
if n is 0.

Originally committed as revision 18285 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 19:57:53 +00:00
Reimar Döffinger
dd9630e40f Cosmetics: remove some pointless {}
Originally committed as revision 18284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 19:39:47 +00:00
Reimar Döffinger
993a442315 Slightly simplify ipvideo_decode_block_opcode_0xD
Originally committed as revision 18283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 19:36:44 +00:00
Reimar Döffinger
49a20ffabc One more simplification for ipvideo_decode_block_opcode_0xA
Originally committed as revision 18282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 19:18:13 +00:00
Stefano Sabatini
bcbd9a149e Cosmetics: reorder the pixel format descriptors to make them match the
same order in pixfmt.h.

Originally committed as revision 18281 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:52:50 +00:00
Reimar Döffinger
5e8b83ac3b Slightly simplify first part of ipvideo_decode_block_opcode_0xA,
hopefully allows for further simplifications in the future.

Originally committed as revision 18280 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:48:31 +00:00
Stefano Sabatini
f938cbf984 Change the order of the components for RGB565LE and RGB565BE,
to make them resemble the order in the name: BGR <-> RGB.

Originally committed as revision 18279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:41:39 +00:00
Stefano Sabatini
eb39fb512a Add comments specifying the name of the components in the descriptors.
Originally committed as revision 18278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:36:58 +00:00
Reimar Döffinger
283531a81e Make ipvideo_decode_block_opcode_0x8 a lot simpler by decoding the pixels
in a more natural order.

Originally committed as revision 18277 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:35:19 +00:00
Reimar Döffinger
4472ad2cc4 Fix a too small CHECK_STREAM_PTR value in interplayvideo.c
Originally committed as revision 18276 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:23:52 +00:00
Stefano Sabatini
30266c9286 Make read_line() take as parameter a const AVPixFmtDescriptor * rather than a
(non const) AVPixFmtDescriptor *.

Originally committed as revision 18275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:18:14 +00:00
Dylan Yudaken
3ba153f8da Replace MPEG group reference DCT implementation by newly rewritten version.
patch by Dylan Yudaken, dyudaken gmail com

Originally committed as revision 18274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 15:50:11 +00:00
Dylan Yudaken
41b4dbbb0e Replacement reference DCT implementation.
patch by Dylan Yudaken, dyudaken gmail com

Originally committed as revision 18273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 15:48:47 +00:00
Reimar Döffinger
f02bd7e49c Avoid the last two uses of bitmasks in interplayvideo
Originally committed as revision 18272 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:48:14 +00:00
Reimar Döffinger
3f300d7e25 100l, fix FATE test broken by r18264
Originally committed as revision 18271 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:44:46 +00:00
Reimar Döffinger
9aaacc246a Reindent
Originally committed as revision 18270 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:10:45 +00:00
Reimar Döffinger
1548839e51 Deduplicate code by moving it outside the if/else
Originally committed as revision 18269 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:06:22 +00:00
Reimar Döffinger
268a618ba6 Rearrange how the different cases are checked to reduce the number of
comparisons and allow further simplifications.

Originally committed as revision 18268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:04:54 +00:00
Reimar Döffinger
0448b78b97 Avoid "reloading" code by using a 64 bit type for the flags and loading all at once.
Originally committed as revision 18266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:58:40 +00:00
Reimar Döffinger
3766b9e0a8 Remove now pointless temporary pix variables.
Originally committed as revision 18265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:33:55 +00:00
Reimar Döffinger
0312b77ccd Slightly simplify part of ipvideo_decode_block_opcode_0x8
Originally committed as revision 18264 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:30:42 +00:00
Reimar Döffinger
51e350284d Fix indentation
Originally committed as revision 18263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:21:41 +00:00
Reimar Döffinger
9be06a0ed1 Avoid code duplication by using ?: and array indexing instead of if..else
Originally committed as revision 18262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:21:10 +00:00
Reimar Döffinger
32eea24e9a Prettify some assignments
Originally committed as revision 18261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 12:57:03 +00:00
Reimar Döffinger
e3114eb1bb Get rid of some pointless bitmask/shifter variables in interplayvideo.c
Originally committed as revision 18260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 12:44:35 +00:00
Diego Biurrun
504ffed19f Mark non-exported functions in test and example programs as static.
Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 09:32:59 +00:00
Gwenole Beauchesne
cafe71c62d Remove inclusion of va.h, not needed anymore after r18256.
Originally committed as revision 18258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 09:18:00 +00:00
Dylan Yudaken
0de74546d7 Give better names to reference DCT functions.
patch by Dylan Yudaken, dyudaken gmail com

Originally committed as revision 18257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 08:55:22 +00:00
Gwenole Beauchesne
a3d636aff9 Improve VA API buffers allocation logic. This also reduces struct vaapi_context
down to ~60 bytes vs. a few KBs before, and gets rid of explicit VA data types.

Originally committed as revision 18256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 08:33:02 +00:00
Benoit Fouet
ccc745cdf4 Move declaration of prn before any assignment.
Originally committed as revision 18255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 07:37:55 +00:00
Gwenole Beauchesne
11b9397941 Record MPEG-4 sprite trajectory points [up to num_sprite_warping_points][isY].
Originally committed as revision 18250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 20:39:08 +00:00
Diego Biurrun
7f7b04af38 Add required va/va.h header, should fix 'make checkheaders'.
Originally committed as revision 18249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 15:36:59 +00:00
Ramiro Polla
ab79fa44f1 mlpdec: Simplify check for substream_parity_present.
Originally committed as revision 18240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:46:52 +00:00
Ramiro Polla
01aaf09274 mlpdec: Simplify no restart header seen error.
Originally committed as revision 18239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:44:20 +00:00
Ramiro Polla
d7952be311 mlpdec: Simplify substream length mismatch error.
Originally committed as revision 18238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:42:40 +00:00
Ramiro Polla
d544dcdf38 mlpdec: Prettify substream parity check.
Originally committed as revision 18237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:37:19 +00:00
Ramiro Polla
7b18e13a7c mlpdec: Cleaner and better termination word check.
Originally committed as revision 18236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:34:15 +00:00
Ramiro Polla
125cf771f6 mlpdec: More validation for read_channel_params()
Originally committed as revision 18235 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:20:01 +00:00
Ramiro Polla
06e34be88f mlpdec: whitespace cosmetics.
Originally committed as revision 18234 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:12:39 +00:00
Ramiro Polla
a44b9f9574 mlpdec: Simplify &foo[0] to foo and use index (which has just been initialized
to MAX_BLOCKSIZE) instead of MAX_BLOCKSIZE, so both copies to/from state data
look alike.

Originally committed as revision 18233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:08:55 +00:00
Ramiro Polla
e71365f427 mlpdec: Split filter_state_buffer into [fi]irbuf and fp to [fi]ir.
Originally committed as revision 18232 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:05:38 +00:00
Ramiro Polla
0ae59bb01a mlpdec: Unroll copying filter state data and filtering for the two filters.
Originally committed as revision 18231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 02:59:45 +00:00
Ramiro Polla
0c5670a0e5 mlpdec: Max filter orders for FIR and IIR are 8 and 4 respectively.
Originally committed as revision 18230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 02:54:19 +00:00
Reimar Döffinger
aadf88119e Merge the 3 COPY_FROM_* macros with lots of duplicated code into a single
copy_from function.

Originally committed as revision 18225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 18:15:02 +00:00
Reimar Döffinger
a1f6ffd44d Change CHECK_STREAM_PTR macro to correctly handle the (extremely unlikely)
overflow case.

Originally committed as revision 18224 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:50:46 +00:00
Reimar Döffinger
3017d8e9d7 Simplify check for leftover bytes after decoding for interplayvideo.
Originally committed as revision 18223 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:42:03 +00:00
Reimar Döffinger
49da3b7df2 Get rid of pointless "B" array in interplayvideo decoder.
Originally committed as revision 18222 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:35:22 +00:00
Reimar Döffinger
03b269ddc2 Replace many tiny loops in the interplayvideo decoder by memset, memcpy
or initializers.

Originally committed as revision 18221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:23:40 +00:00
Reimar Döffinger
fff6077917 Make ipvideo_decode_block array constant, compile-time initialized instead
of initializing it each time the decoder is initialized.

Originally committed as revision 18219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:15:42 +00:00
Diego Biurrun
43a0cb7ca2 Generalize example target rule in common.mak so that it sets a -example$(EXESUF)
suffix for all example files instead of doing this in individual Makefiles.

Originally committed as revision 18217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 14:35:20 +00:00
Diego Biurrun
7c17abaf9d Rename apiexample.c --> api-example.c to be consistent with other example files.
Originally committed as revision 18216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 14:28:56 +00:00
Ramiro Polla
fa937faba4 mlpdec: Remove few random dprintf()s.
Originally committed as revision 18212 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-28 00:53:52 +00:00
Ramiro Polla
b864098c16 mlpdec: Check for blocksize in proper range.
Originally committed as revision 18211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:55:38 +00:00
Ramiro Polla
8e9ee714fc mlpdec: quant_step_size can be any value from 0 to 0xF.
Originally committed as revision 18210 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:48:08 +00:00
Ramiro Polla
6fae7cbd7f mlpdec: output_shift can be any value from -8 to 7.
Originally committed as revision 18209 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:47:18 +00:00
Ramiro Polla
af04802640 mlpdec: output_shift is signed
Originally committed as revision 18208 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:45:52 +00:00
Ramiro Polla
43ee5fe035 mlpdec: Split read_channel_params() into its own function.
Originally committed as revision 18207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:42:22 +00:00
Ramiro Polla
f8e6293bde mlpdec: Split read_matrix_params() into its own function.
Originally committed as revision 18206 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:32:32 +00:00
Kostya Shishkov
6b78a77a35 Merge some cases for reading raw data with different bit depths in BMP
Originally committed as revision 18202 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 16:31:47 +00:00
Ramiro Polla
d4efacff64 Use intptr_t when casting pointers to int.
Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-26 01:34:02 +00:00
Diego Biurrun
c04e5fa827 fft-test does not depend on fdctref.o.
Originally committed as revision 18190 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-25 19:00:15 +00:00
Diego Biurrun
7304c2c4ce Move adding the '-test$(EXESUF)' suffix to test programs into common.mak.
Originally committed as revision 18189 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-25 18:19:20 +00:00
Justin Ruggles
d7520f217a cosmetics: add an @return to documentation for decode_frame_header()
Originally committed as revision 18179 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-24 22:44:12 +00:00
Robert Swain
29e455081f Update apiexample.c to use the newer avcodec_decode_audio2() API. This also
fixes compilation.

Originally committed as revision 18176 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-24 02:26:10 +00:00
Justin Ruggles
cd98a03024 flacdec: split frame header decoding and validation into a separate
function

Originally committed as revision 18175 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-24 01:17:55 +00:00
Gwenole Beauchesne
3c32bac898 Add MPEG-2 bitstream decoding through VA API.
Originally committed as revision 18172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-23 22:09:13 +00:00
Benoit Fouet
6d69a653d8 Move av_class to AVResampleContext instead of ReSampleContext.
Fixes issue 852.

Originally committed as revision 18170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-23 10:58:05 +00:00
Alex Converse
04964ee8bb AAC: Ignore cc_domain for independent (time domain) coupling.
Originally committed as revision 18169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-23 05:13:26 +00:00
Stefano Sabatini
620bba1653 Add pcxenc.o to the $OBJS list, it was erroneously removed from it in
r18164.
Fix compilation.

Originally committed as revision 18168 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:42:06 +00:00
Justin Ruggles
e8b0395236 flacdec: cosmetics: white space
Originally committed as revision 18167 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:22:44 +00:00
Justin Ruggles
fbc4d9c964 flacdec: cosmetics: separate the pure frame header parsing code from
other frame header decoding code

Originally committed as revision 18166 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:19:49 +00:00
Diego Biurrun
661ce28996 Rename 'tests' target to 'testprogs'. It is too easily confused with the
'test' target and a directory named tests exists.

Originally committed as revision 18165 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:13:21 +00:00
Diego Biurrun
fd8e28b73e Split AVCodec declarations for PAM/PBM/PGM/PGMYUV/PPM decoders and encoders
so that they can be enabled and disabled individually.

Originally committed as revision 18164 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:50:22 +00:00
Stefano Sabatini
6e08ca9c51 Make the pixel formats which were defined as macros:
PIX_FMT_ARGB
PIX_FMT_RGBA
PIX_FMT_ABGR
PIX_FMT_BGRA

defined as enum PixelFormat values, and viceversa make:
PIX_FMT_RGB32
PIX_FMT_RGB32_1
PIX_FMT_BGR32
PIX_FMT_BGR32_1

defined as macros, also resort accordingly the enum PixelFormat
list.
Also make avcodec_get_pix_fmt() recognize the "rgb32" and "bgr32"
aliases, in order to make ffmpeg pass regressions test.

This change breaks ABI backward compatibility.

Originally committed as revision 18163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:50:19 +00:00
Justin Ruggles
e7e6b06802 flacdec: allow sample rate to change mid-stream, but log a warning
message when it does

Originally committed as revision 18162 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:38:06 +00:00
Diego Biurrun
6708cfc4d3 Add rule for building API example programs.
Originally committed as revision 18161 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:33:41 +00:00
Stefano Sabatini
326e9eaa20 Factorize: use the X_NE() macro in avcodec_get_pix_fmt().
Originally committed as revision 18160 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:13:10 +00:00
Justin Ruggles
1448907465 flacdec: cosmetics: indentation
Originally committed as revision 18159 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:12:03 +00:00
Stefano Sabatini
8199ea3b8c Implement X_NE() macro.
Originally committed as revision 18158 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:10:36 +00:00
Justin Ruggles
e2a38af96e flacdec: change frame bps validation to return an error value if bps
changes since this is not currently supported by the decoder.

Originally committed as revision 18157 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:10:33 +00:00
Justin Ruggles
f91eaf5deb flacdec: cosmetics: add some braces to if/else statements
Originally committed as revision 18156 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:53:28 +00:00
Justin Ruggles
b6fa746e39 flacdec: skip frame when allocated data size is too small
Originally committed as revision 18155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:31:23 +00:00
Justin Ruggles
492cc392fa 10l: don't check against current layout until after validating ch_mode.
should have been in last commit.

Originally committed as revision 18154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:13:10 +00:00
Justin Ruggles
7660dc6f4f flacdec: give a more accurate error message when validating channel
layout. differentiates between invalid values and unsupported values.

Originally committed as revision 18153 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:07:43 +00:00
Stefano Sabatini
d2863e72ab Export to pixdesc.h the av_pix_fmt_descriptors array.
Originally committed as revision 18152 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:01:08 +00:00
Justin Ruggles
02b26d2d5c flacdec: move data size check to flac_decode_frame()
Originally committed as revision 18151 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 20:19:20 +00:00
Justin Ruggles
4285c2923c flacdec: comments and white space.
move skipping of frame header to decode_frame()

Originally committed as revision 18150 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 19:12:02 +00:00
Justin Ruggles
d1d9945f1a cosmetics: vertical alignment
Originally committed as revision 18149 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 18:59:45 +00:00
Justin Ruggles
5c3e0340d9 flacdec: remove unneeded local variable
Originally committed as revision 18148 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 18:59:00 +00:00
Justin Ruggles
3b4d96fa68 flacdec: cosmetics: rename 3 variables
Originally committed as revision 18147 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 18:56:07 +00:00
Justin Ruggles
7e00bd8456 flacdec: use a local variable for GetBitContext in decode_frame()
Originally committed as revision 18146 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 18:52:15 +00:00
Kostya Shishkov
c21fbefb9d Add AURA 1 and 2 codec IDs and register their FOURCCs
Originally committed as revision 18141 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 07:40:22 +00:00
Baptiste Coudurier
44dff0058e init ext sample rate to 0 if not present
Originally committed as revision 18139 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 02:53:01 +00:00
Gwenole Beauchesne
b38d7298bd Add common VA API data structures and helpers.
Originally committed as revision 18136 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 01:32:27 +00:00
Gwenole Beauchesne
bb691a6da4 Add support for HW accelerated VC-1 decoding through the new
AVHWAccel infrastructure.

Originally committed as revision 18135 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 23:44:21 +00:00
Stefano Sabatini
f82674e584 Change the RGB5X5/BGR5X5 pixel format defines so that we have little
endian and big endian variants instead of native-endian ones.

This patch breaks API/ABI backward-compatibility.

Originally committed as revision 18133 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 23:08:20 +00:00
Stefano Sabatini
d89f692f0e Extend the behavior of avcodec_get_pix_fmt(), if it cannot find a
pixel format for the provided name, make it look for the native endian
variant of the name.

Originally committed as revision 18130 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 22:43:46 +00:00
Stefano Sabatini
a61ec8e7ae Globally prefer enum PixelFormat over int when it makes sense.
Originally committed as revision 18129 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 22:24:44 +00:00
Diego Biurrun
573e0118e2 Fix reference to av_random_init where av_lfg_init was meant.
Originally committed as revision 18113 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 16:14:55 +00:00
Daniel Verkamp
e1dc16ae56 Make Smacker audio decoder output audio in original bit depth
Patch by Daniel Verkamp
($firstname) at (three-letter file extension for drivers in Win 3.1) dot (nu)

Thread: [PATCH] Smacker: Output audio in original bit depth

Originally committed as revision 18111 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 15:52:14 +00:00
Diego Biurrun
2bbd85719c Remove deprecated functions and structures on next version bump.
Originally committed as revision 18110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 13:51:29 +00:00
Reimar Döffinger
899a8fa1cb Fix avpicture_get_size for non-paletted formats with a helper palette
to not include the size of that palette.
Also clarify its documentation.

Originally committed as revision 18106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 10:25:20 +00:00
Justin Ruggles
0fb2182d46 add a function to calculate a more accurate estimate for maximum FLAC
frame size and use the function in the FLAC decoder and FLAC encoder

Originally committed as revision 18092 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 01:54:31 +00:00
Justin Ruggles
f5187c7f04 flacdec: account for frame and subframe header overhead when calculating
estimate for maximum frame size

Originally committed as revision 18091 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 01:27:28 +00:00
Justin Ruggles
f121622114 revert accidental unrelated change in last commit
Originally committed as revision 18090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 01:20:28 +00:00
Justin Ruggles
d4df4e5088 share sample rate and blocksize tables between the FLAC encoder and FLAC
decoder

Originally committed as revision 18089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 01:16:38 +00:00
Justin Ruggles
b9b4fc5e07 flacenc: remove unneeded variable, 'min_encoded_framesize' and use
'min_framesize' instead

Originally committed as revision 18087 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:50:19 +00:00
Justin Ruggles
d9e7fa8074 flacdec: remove unneeded variable, 'assignment'
Originally committed as revision 18085 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:48:07 +00:00
Justin Ruggles
2a34672500 flacdec: cosmetics: rename 'decorrelation' to 'ch_mode'
Originally committed as revision 18084 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:47:04 +00:00
Justin Ruggles
ad52941faa flacenc: remove unneeded context variable, 'ch_code'
Originally committed as revision 18083 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:45:44 +00:00
Justin Ruggles
3159780b18 share channel mode constants between the FLAC decoder and FLAC encoder
Originally committed as revision 18082 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:44:42 +00:00
Stefano Sabatini
432603e376 Remove declaration of the removed function img_convert().
Originally committed as revision 18080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 22:29:31 +00:00
Benjamin Larsson
39b60944a8 Get rid of av_random in cook.c
Originally committed as revision 18079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 21:32:30 +00:00
Benjamin Larsson
3b0b84797e Get rid of av_random in nellymoserdec.c
Originally committed as revision 18078 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 21:15:02 +00:00
Daniel Verkamp
effcedf738 PCX encoder that handles 1-, 8-, and 24-bpp pixfmts.
Patch by Daniel Verkamp, daniel drv nu

Originally committed as revision 18077 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 17:23:45 +00:00
Ramiro Polla
9731e7f13e mlp, truehd: support non 1:1 channel mapping.
Originally committed as revision 18074 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 13:07:09 +00:00
Ramiro Polla
cbf3cf19f3 Support "next parameter flags present" flag.
Originally committed as revision 18073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 13:04:14 +00:00
Ramiro Polla
932cee5d67 truehd: support up to 3 substreams.
Originally committed as revision 18072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 13:02:15 +00:00
Gwenole Beauchesne
952e2083bc Rename hwaccel_data_private to hwaccel_picture_private.
Originally committed as revision 18071 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 12:04:58 +00:00
Diego Biurrun
294eaa2643 Replace random() usage in test programs by av_lfg_*().
Originally committed as revision 18070 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:48:27 +00:00
Diego Biurrun
c7594e0764 Only build motion-test if MMX is enabled.
Originally committed as revision 18069 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:43:58 +00:00
Diego Biurrun
578f90a8d5 Align test program output columns.
Originally committed as revision 18068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:40:05 +00:00
Diego Biurrun
fa7aec5ceb Remove unused libavutil/random.h #include.
Originally committed as revision 18067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 10:48:01 +00:00
Diego Biurrun
e814a59fee Use correct header for struct AVLFG.
Originally committed as revision 18066 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 10:47:02 +00:00
Matthieu Castet
ecf05a5971 Remove useless casting in asm "m" operand.
Patch by Matthieu Castet, castet D matthieu A free D fr

Originally committed as revision 18054 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 23:29:11 +00:00
Reimar Döffinger
45bae968a9 Fix indentation after r18047.
Originally committed as revision 18048 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:36:59 +00:00
Reimar Döffinger
c9d6e84778 Change linesize alignment method to ensure that linesize[0] == 2*linesize[1]
for YUV420P and YUV422P always.
Fixes MPEG-2 4:2:2 encoding on PPC and ARM, and should fix mxf_d10 regression.

Originally committed as revision 18047 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:34:55 +00:00
Reimar Döffinger
b435725b4c Do not set linesize for palette data, it does not make sense and creates
problems with following patch to fix linesize alignment.

Originally committed as revision 18046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:31:10 +00:00
Ramiro Polla
9ba4821d93 Split TrueHD decoder from MLP
Originally committed as revision 18045 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:23:39 +00:00
Diego Biurrun
2029e934d2 Nicely align output columns.
Originally committed as revision 18042 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 09:53:50 +00:00
Justin Ruggles
07d16e2ecf share some constants between the FLAC encoder and FLAC decoder
Originally committed as revision 18041 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 03:04:21 +00:00
Stefano Sabatini
1e896640c4 Implement a name field for AVPixFmtDescriptor.
Originally committed as revision 18035 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-18 20:10:09 +00:00
Alex Converse
2b823a5299 Fix typo in AOT_ER_AAC_ELD
Originally committed as revision 18034 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-18 14:14:56 +00:00
Alex Converse
d3487e472e Update the MPEG-4 AOT table.
Originally committed as revision 18033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-18 14:11:05 +00:00
Alex Converse
f650e4d34a Move MPEG-4 AOT enum to mpeg4audio.h.
Originally committed as revision 18031 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-18 13:52:56 +00:00
Ramiro Polla
e05c8d0682 use intptr_t to cast pointers to int in codecs maintained by benjamin larsson
Originally committed as revision 18027 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-17 20:47:31 +00:00
Gwenole Beauchesne
1aea701830 Amend AVCodecContext with hwaccel_context (HW accelerator context).
This is needed for some HW accelerators that require a context that
FFmpeg can't instantiate itself. e.g. display-dependent data from
VA API and VDPAU.

Originally committed as revision 18025 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-17 12:43:09 +00:00
Justin Ruggles
137707e53a Add documentation about missing E-AC-3 features.
Originally committed as revision 18021 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-17 01:43:01 +00:00
John Cox
9e85f9c526 Fix SEIs when splitting H264 input.
Patch by John Cox, jc A kynesim D co D uk

Originally committed as revision 18020 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-16 22:38:27 +00:00
Alex Converse
4a39ccb403 AAC: IEEE-754 type punning for 16-bit floating point rounding.
Originally committed as revision 18015 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-16 16:11:27 +00:00
Daniel Verkamp
8127c4208c Fix an assert().
Patch by Daniel Verkamp daniel drv nu

Originally committed as revision 18006 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-16 12:47:43 +00:00
David Conrad
170e6b14f7 Remove long unused ALTIVEC_USE_REFERENCE_C_CODE ifdef; all other references
to it were removed in r6606

Originally committed as revision 17997 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-16 03:56:42 +00:00
Benjamin Larsson
b217024706 Add cook channel count function, part of multichannel cook
Originally committed as revision 17992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 19:36:45 +00:00
Benjamin Larsson
0eec287596 Add max allowed subpackets in multichannel cook
Originally committed as revision 17991 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 19:34:52 +00:00
Benjamin Larsson
d4b3d0408f save avctx in cook decoder context and use it for av_log
Originally committed as revision 17988 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 14:11:11 +00:00
Benjamin Larsson
7c119ced99 memset when category is >=7, part of cook multichannel
Originally committed as revision 17987 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 14:04:25 +00:00
Reimar Döffinger
16473c1376 1 km^3 cola, timecode_frame_start is a 64 bit integer, this resulted in
complete nonsense if timecode_frame_start was used on big-endian systems.

Originally committed as revision 17986 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 13:38:36 +00:00
Diego Biurrun
60a847b5db cosmetics: Remove file name from file header.
Originally committed as revision 17984 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 12:46:07 +00:00
Stefano Sabatini
7867978374 Expand "lsb" to "least significant bits".
Originally committed as revision 17978 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 10:37:25 +00:00
Stefano Sabatini
e5681ba0f2 Rename the (yet not defined) macros:
PIX_FMT_RGB565_BE -> PIX_FMT_RGB565BE
PIX_FMT_RGB565_LE -> PIX_FMT_RGB565LE
for consistency with the other pixfmts macros.

Originally committed as revision 17977 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 10:33:51 +00:00
Kostya Shishkov
0304109df6 Correct MV prediction for B-frame blocks in RV4 decoder
Originally committed as revision 17974 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 08:21:42 +00:00
Diego Biurrun
6d79971e69 prettyprinting cosmetics
Originally committed as revision 17962 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-14 19:12:20 +00:00
Diego Biurrun
f5b2476fd3 Add av_uninit to vsrcBuc variable to work around some
'may be used uninitialized' warnings.

Originally committed as revision 17961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-14 19:11:56 +00:00
Diego Biurrun
b91813b6da Improve description of next_free_data_block_num struct member.
Originally committed as revision 17960 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-14 17:20:28 +00:00
Daniel Verkamp
5cf59463a2 Add 1bpp, 8bpp, 15bpp, and 16bpp support to BMP encoder.
Patch by Daniel Verkamp, daniel drv nu

Originally committed as revision 17954 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-13 23:36:38 +00:00
Michael Niedermayer
7ed673af71 Print timing_info on -debug 1.
Originally committed as revision 17949 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-13 14:10:49 +00:00
Kostya Shishkov
923ed9748c Fix direct and skip MB motion compensation in RV4:
two conditions were incomplete and zeroing motion
vectors was performed only on half of them.

Originally committed as revision 17947 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-13 13:48:44 +00:00
Gwenole Beauchesne
cd823ff950 Use av_mallocz() to initialize hwaccel_data_private.
Originally committed as revision 17942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-11 08:25:00 +00:00
Vitor Sessak
e40ee25c49 Fix bug when elbg->utility_inc[elbg->numCB-1] == 1
Originally committed as revision 17926 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-10 17:38:16 +00:00
Gwenole Beauchesne
eb2c24232f Add REGISTER_HWACCEL() for hardware accelerators.
Originally committed as revision 17925 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-10 14:35:55 +00:00
Måns Rullgård
f49568a467 Fix unaligned access in ff_copy_bits()
Originally committed as revision 17921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 23:27:38 +00:00
Reynaldo H. Verdejo Pinochet
d2af569710 Cosmetics from Kenan Gillet's 'extract and share weighted_vector_sumf'
patchset. Just a reindent.

Originally committed as revision 17917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 22:00:35 +00:00
Reynaldo H. Verdejo Pinochet
95e8325771 Functional part Kenan Gillet's 'extract and share weighted_vector_sumf'
patchset. Idea is to share this common code between the AMR and QCELP
decoders.

Originally committed as revision 17916 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 21:55:24 +00:00
Gwenole Beauchesne
68e5d5235e Add private HW accel data infrastructure.
Originally committed as revision 17899 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 08:04:41 +00:00
Vitor Sessak
9aa2ab4276 Use FLG pseudo-random number generator in RoQ and ELBG
Originally committed as revision 17881 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 17:43:12 +00:00
Kostya Shishkov
74e2a0784e Make Musepack decoders use LFG pseudorandom generator
Originally committed as revision 17880 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 16:37:57 +00:00
Vitor Sessak
616e899c43 VQF demuxer
Originally committed as revision 17866 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-07 22:42:09 +00:00
Alex Converse
7d87e2ceac Re-indent after last commit.
Originally committed as revision 17861 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 22:37:21 +00:00
Alex Converse
51741a82c3 If we get an error from ff_aac_parse_header() we should not trust the header info that it provides.
Originally committed as revision 17860 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 22:36:24 +00:00
Alex Converse
bb5c0988ea Fix the channel allocation bug/assumption (issue 800).
Approved by Rob on IRC.

Originally committed as revision 17856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 19:47:01 +00:00
Stephen Warren
49caac2413 Fix H.264 bitstream field log2_max_pic_order_cnt_lsb_minus4
if sps.poc_type == 0.

Patch by Stephen Warren, swarren nvidia com

Originally committed as revision 17854 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 08:03:26 +00:00
Justin Ruggles
f48b9304cd flacdec: Parse the metadata header in the raw FLAC demuxer.
Originally committed as revision 17852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 01:31:10 +00:00
Justin Ruggles
5b63d33d7d flacdec: Add a shared function for parsing a FLAC metadata block header.
Originally committed as revision 17851 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 01:25:11 +00:00
Justin Ruggles
5a92cc663c pnm: Add missing 'else'. Fixes decoding for 16-bit pgm.
Originally committed as revision 17848 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 00:54:49 +00:00
Diego Biurrun
1b0f4920b8 Mark variables "j" and "structure" in execute_ref_pic_marking() as av_uninit
to work around false positive 'may be used uninitialized' warnings.

Originally committed as revision 17837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 23:38:52 +00:00
Alex Converse
cfd937b081 AAC: hoist dependent gain lookup out of the loop
Originally committed as revision 17835 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 23:10:22 +00:00
Diego Biurrun
27127202d6 Remove duplicated MUL16 macro definition, fixes the warning:
libavcodec/ac3enc.c:119:1: warning: "MUL16" redefined

Originally committed as revision 17832 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 22:17:12 +00:00
Måns Rullgård
35690321a7 ARM: disable inline asm for armcc
Originally committed as revision 17831 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 21:20:13 +00:00
Ivan Schreter
b283ba26ce Add handling of frame position in the parser.
Originally committed as revision 17823 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 07:35:06 +00:00
Justin Ruggles
8d1e885fc2 flacdec: cosmetics: Add a comment with the data of the smallest FLAC
frame for future reference.

Originally committed as revision 17822 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 04:40:42 +00:00
Justin Ruggles
629fb5c46a flacdec: There is an even smaller FLAC frame size possibility.
Originally committed as revision 17821 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 02:36:17 +00:00
Justin Ruggles
5756bc7b02 flacdec: 10l to me. I miscalculated the smallest FLAC frame. It is 16
bytes, not 24.

Originally committed as revision 17820 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 02:21:35 +00:00
Justin Ruggles
bf1d7e285c flacdec: cosmetics: move 2 statements to immediately after frame
decoding.

Originally committed as revision 17819 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 01:23:53 +00:00
Justin Ruggles
fd6fd470ce flacdec: Simplify frame sync by not using the bitstream reader.
Originally committed as revision 17818 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 01:15:38 +00:00
Justin Ruggles
a8ec12bc2e flacdec: Split the metadata_parse() function into 2 separate functions,
parse_streaminfo() and get_metadata_size().

Originally committed as revision 17817 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 00:56:09 +00:00
Justin Ruggles
5ef4fa87b3 flacdec: Add a check for small buffer size. This ensures reading as
much of the frame header as possible without excluding the smallest
possible FLAC frame.  It also fixes a false positive warning message
that was being emitted at the end of decoding.

Originally committed as revision 17816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 23:55:10 +00:00
Justin Ruggles
c51997297a flacdec: cosmetics: Use a more descriptive variable name for the number
of bytes read, instead of reusing 'i'.

Originally committed as revision 17815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 23:24:44 +00:00
Justin Ruggles
549bccdbe4 flacdec: Handle 32 bps data when checking allocated size.
Originally committed as revision 17814 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 23:16:30 +00:00
Justin Ruggles
a3d2379bdd flacdec: Check curr_bps after wasted bits are subtracted.
Originally committed as revision 17813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 23:10:40 +00:00
Stefano Sabatini
d3f766124a Fix typo: "i" -> "in".
Originally committed as revision 17812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 21:50:10 +00:00
Ivan Schreter
70e01da3bf Add support for ct_type to correctly detect interlaced flag
Originally committed as revision 17811 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 19:37:19 +00:00
Reimar Döffinger
6d08f6c911 100l, interplayvideo uses 8x8 blocks, so call the 8x8 put_pixels_tab function
instead of the 16x16 one. Seems to fix decoding on PPC.

Originally committed as revision 17808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 18:18:49 +00:00
Reimar Döffinger
5133816627 Set AVFrame.reference correctly for nuv decoder.
Originally committed as revision 17807 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 17:12:58 +00:00
Vitor Sessak
a66430c0d0 Add more correct bound checking in filter_mb().
Should fix decoding of CVMAPAQP3_Sony_E.jsv in MinGW

Originally committed as revision 17806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 16:56:55 +00:00
Gwenole Beauchesne
34e46c44da Add frame buffer allocators. aka simplify calls to
AVCodecContext.{get,release}_buffer().

Originally committed as revision 17804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 08:47:29 +00:00
Reynaldo H. Verdejo Pinochet
87574416f7 Part 2 of 2 of Kenan Gillet's 'make ff_qcelp_lspf2lpc
more general' changeset. This one relocates the QCELP
especific code to the qcelpdec.* files.

Originally committed as revision 17800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 01:33:56 +00:00
Reynaldo H. Verdejo Pinochet
77bd18e117 Part 1 of 2 of Kenan Gillet's 'make ff_qcelp_lspf2lpc
more general' changeset. This one splits ff_qcelp_lspf2lpc
into the QCELP-especific ff_qcelp_lspf2lpc + the more general
ff_qcelp_lspf2lpc.

Originally committed as revision 17799 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 01:28:07 +00:00
Justin Ruggles
e1374c06d6 flacdec: When there is not enough data to read the next header block,
reset the bitstream reader instead of skipping backwards.

Originally committed as revision 17798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 01:08:26 +00:00
Justin Ruggles
6a85fb34c9 cosmetics: indentation after last commit
Originally committed as revision 17796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 00:53:04 +00:00
Justin Ruggles
55a727383b flacdec: Check for an inline header before calling metadata_parse().
Originally committed as revision 17795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 00:52:18 +00:00
Justin Ruggles
239b961fbf flacdec: Allocate buffers right after STREAMINFO is parsed.
Originally committed as revision 17794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 00:21:46 +00:00
Stefano Sabatini
9d9de444e3 Fix syntax for the libfaad_decoder definition.
Fix compilation (when libfaad is enabled).

Originally committed as revision 17792 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 23:52:31 +00:00
Justin Ruggles
184bc53db4 cosmetics: indentation after last commit
Originally committed as revision 17791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 23:50:21 +00:00
Justin Ruggles
7d0303587d flacdec: Avoid parsing the STREAMINFO multiple times.
Originally committed as revision 17790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 23:49:36 +00:00
Michael Niedermayer
6d4f53cbac Remove old scaler.
Originally committed as revision 17786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 22:51:30 +00:00
Diego Biurrun
59701aeb46 Do not use a macro to generate a single AVCodec declaration.
Originally committed as revision 17773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 15:48:52 +00:00
Panagiotis Issaris
a0f8005079 When a H.264 stream references a PPS or SPS id which doesn't exist, instead of
just saying that a non-existing id is referenced, show the value of the id.

Originally committed as revision 17771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 14:32:24 +00:00
Gwenole Beauchesne
0d8ee24c7b Set PixFmtInfo::{x, y}_chroma_shift for VDPAU and VAAPI formats.
Originally committed as revision 17766 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 13:43:24 +00:00
Benoit Fouet
4f46099b90 Use sign_extend().
On behalf of Jai.

Originally committed as revision 17759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 13:11:10 +00:00
Justin Ruggles
2e78513cee flacdec: Warn about invalid max blocksize and limit the minimum value.
Originally committed as revision 17751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:53:38 +00:00
Alex Converse
09a64ee614 H.264: Simplify decode_residual()
Originally committed as revision 17750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:26:39 +00:00
Justin Ruggles
0c89ca72a5 cosmetics: remove a pointless comment
Originally committed as revision 17749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:25:58 +00:00
Justin Ruggles
95db6659d8 flacdec: Remove unused variable, min_blocksize.
Originally committed as revision 17748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:25:23 +00:00
Justin Ruggles
dde318d5d9 flacdec: Return error when blocksize code of 0 is found. It is a
reserved value per the FLAC format documentation.

Originally committed as revision 17747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:22:44 +00:00
Kostya Shishkov
c978997a88 Enable PB-frames decoding for H.263
Originally committed as revision 17746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:18:39 +00:00
Kostya Shishkov
685502cf3d Add PB-frame decoding support for H.263/i263 (and enable it for i263)
Originally committed as revision 17745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:17:22 +00:00
Justin Ruggles
6053da0182 alacdec: Simplify reading of uncompressed samples by using
get_sbits_long().

Originally committed as revision 17744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 04:57:02 +00:00
Justin Ruggles
5b37e2fc9a flacdec: Avoid trying to read 33 bits. This occurs when the source
is 32 bits-per-sample and channel decorrelation is used.  Such files
are valid, but not supported currently.

Originally committed as revision 17743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 04:45:45 +00:00
Justin Ruggles
505cc62f75 flacdec: ALT_BITSTREAM_READER is no longer required.
Originally committed as revision 17742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 02:53:11 +00:00
Justin Ruggles
9de6e090a7 flacdec: use get_sbits_long() where needed.
Originally committed as revision 17741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 02:19:01 +00:00
Justin Ruggles
017c0811a1 Add a get_sbits_long() function.
Originally committed as revision 17740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 02:00:47 +00:00
Måns Rullgård
8858990f07 ALAC: use sign_extend() from mathops.h
Originally committed as revision 17739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 01:53:54 +00:00
Måns Rullgård
101dfa7d0a Add sign_extend() function to mathops.h
Originally committed as revision 17738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 00:03:55 +00:00
Reimar Döffinger
edd532db64 Simplify show_bits_long and copy the GetBitsContext around only once instead of twice.
Originally committed as revision 17736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 19:42:31 +00:00
Justin Ruggles
ee4d0322e8 flacdec: Use get/skip_bits_long() for more than 17-bits and
get/skip_bits() for 17-bits or less.

Originally committed as revision 17735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 17:32:53 +00:00
Kostya Shishkov
b89e77cff7 Factor out block decoding in ff_h263_decode_mb()
Originally committed as revision 17734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 17:18:49 +00:00
Michael Niedermayer
7115cbda30 Consider all packets in the parser, not just ones with timestamps,
this should greatly simplify handling of packet pos.

Originally committed as revision 17733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 15:13:58 +00:00
Michael Niedermayer
2cc304215d Favor container packets that end after the first byte of the access
unit in fetch_timestamp(). This should make no difference for valid
streams but may help invalid ones, also its needed for future changes.

Originally committed as revision 17732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 15:12:26 +00:00
Michael Niedermayer
a4c7a5ea27 Call ff_fetch_timestamp() for mpeg1/2 when a picture start code is found instead
of calling it at the end of a frame with a large negative offset.
This significantly reduces the maximal distance in container packets between
the point where the first byte of the "access unit" was stored and where
we call ff_fetch_timestamp() thus reducing the constraints on our parser.
Also change the parser from next_frame_offset to cur, this is needed
because now the reference is from container packet start instead of
frame start. (i previously misinterpreted this as bug)

Originally committed as revision 17731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 14:53:18 +00:00
Benoit Fouet
d69da18cb0 Merge three conditions in a single 'if' instead of two.
Originally committed as revision 17728 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 09:22:17 +00:00
Diego Biurrun
12dd57fd29 cosmetics: Reformat long_names so that "DPCM" comes first.
Originally committed as revision 17721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 06:01:32 +00:00
Diego Biurrun
fd75cedd15 cosmetics: Reformat long_names so that "ADPCM" comes first.
Originally committed as revision 17720 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:55:03 +00:00
Diego Biurrun
655463b9eb cosmetics: Reformat long_names so that "PCM" comes first.
Originally committed as revision 17719 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:45:44 +00:00
Diego Biurrun
7eb2d654a2 small spelling/grammar fixes
Originally committed as revision 17718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:41:55 +00:00
Diego Biurrun
326b554ccf xvmc works with MPEG-2 as well as MPEG-1, note this in the codec long_name.
Originally committed as revision 17717 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:20:00 +00:00
Diego Biurrun
0ffbc258aa Change a bunch of codec long_names to be more consistent and descriptive.
Originally committed as revision 17716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:18:33 +00:00
Justin Ruggles
68dddf53ff Add some missing codecs and update names to match the codec long_name
or vice-versa.

Originally committed as revision 17706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 02:25:31 +00:00
Måns Rullgård
09096c9fad RA144: work around gcc bug/oddity on ARM
This should not make any difference, yet some gcc versions on ARM
produce incorrect output without this fix.

Approved by Vitor.

Originally committed as revision 17698 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 23:41:39 +00:00
Måns Rullgård
db794291a2 SVQ3: Fix decoding with A32_BITSTREAM_READER
svq3_decode_slice_header() modifies the buffer used by the bitstream
reader.  Some of the bitstream readers cache a few bytes of data, which
must be flushed after such a modification.  Calling skip_bits_long(gb, 0)
achieves this.

Originally committed as revision 17680 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 12:11:07 +00:00
Måns Rullgård
4cd19f6e78 ARM: fix missing MUL16() return type
Originally committed as revision 17679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 12:11:02 +00:00
Vitor Sessak
8d2544bd1b Reindent after last commit
Originally committed as revision 17678 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 11:16:57 +00:00
Vitor Sessak
9e27e0d4f8 Do not read uninitialized buffer, no matter if it will be multiplied by
zero later. This should fix some valgrind warnings and hopefully FATE
ra144 test on ARM.

Originally committed as revision 17677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 11:14:21 +00:00
Reimar Döffinger
d819b41ba1 Remove unused variable in mpeg_mc_decode_init
Originally committed as revision 17676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 09:14:20 +00:00
Michael Niedermayer
47cd974ae5 Do not set low_delay if has_b_frames has been set before init()
this will be needed once the parser can figure out has_b_frames
in av_find_stream_info().

Originally committed as revision 17673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 03:13:04 +00:00
Alex Converse
9ef88afac3 AAC: Make the CPE function more consistent with the functions for other channel elements.
Originally committed as revision 17672 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 00:23:05 +00:00
Michael Niedermayer
efd8c1f64d Adjust time_base exactly when changing ticks_per_frame to 2 this is safer
and for some raw h264 we managed to change the timebase twice before.

Originally committed as revision 17669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-28 20:58:07 +00:00
Måns Rullgård
fe7f149ed8 ARM: fix corner-case overflow in H.264 weighted prediction
Originally committed as revision 17657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-28 13:48:54 +00:00
David S. Miller
da2911d5e8 sub_mb_type[] needs to be 8-byte aligned because it is referenced
as a uint64_t in get_dct8x8_allowed().
Patch by David S. Miller <davem at davemloft dot net>

Originally committed as revision 17655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-28 08:38:33 +00:00
Cédric Schieli
5f59207d94 Fix avpicture_layout to not chroma shift the alpha plane when outputting YUVA420P
Originally committed as revision 17654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-28 07:31:36 +00:00
Ivan Schreter
03831f462e Correctly reset SEI variables.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17651 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 21:28:41 +00:00
Gwenole Beauchesne
7f8025349a Make ff_print_debug_info() a no-op when using HW acceleration.
Patch by Gwenolé Beauchesne.

Originally committed as revision 17646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 15:51:15 +00:00
Gwenole Beauchesne
a4f3fdfa83 Use ff_hwaccel_pixfmt_list_420[] in H.263 decoder.
Patch by Gwenolé Beauchesne.

Originally committed as revision 17645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 15:49:32 +00:00
Gwenole Beauchesne
6026a0968a Add hardware acceleration hooks to H.264.
Patch by Gwenolé Beauchesne.

Originally committed as revision 17644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 15:45:55 +00:00
Michael Niedermayer
19df37a8a6 Fix SVQ3 regression since ticks_per_frame=2.
Originally committed as revision 17640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 14:01:32 +00:00
Gwenole Beauchesne
1468d503a9 Add HW acceleration hooks for MPEG-4 / H.263 decoding.
Patch by Gwenole Beauchesne.

Originally committed as revision 17637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:27:50 +00:00
Gwenole Beauchesne
6aca2c6785 Remove superfluous call to mpeg_decode_slice() for hwaccel, this
function already contains the needed code.
Patch by Gwenole Beauchesne.

Originally committed as revision 17636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:20:45 +00:00
Gwenole Beauchesne
11647a9f8c Return early if a HW accelerator is used.
Patch by Gwenole Beauchesne.

Originally committed as revision 17635 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:16:22 +00:00
Gwenole Beauchesne
f06ce1ce89 Add VA API pixel formats.
Patch by Gwenole Beauchesne.

Originally committed as revision 17634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:12:41 +00:00
Gwenole Beauchesne
044f0296a4 Add ff_hwaccel_pixfmt_list_420[] definition.
Patch by Gwenole Beauchesne.

Originally committed as revision 17633 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:09:23 +00:00
Michael Niedermayer
3797c74ba5 Add ticks_per_frame, this should hopefully fix the regressions caused
by the time_base change.

Originally committed as revision 17630 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 23:47:32 +00:00
Michael Niedermayer
f56995b4a6 Half user provided time_base once during the first frame when there is no
timebase stored in the h264 stream.
This should fix fate. (ffmpeg.c used pict_repeat with its default 1/25 timebase)

Originally committed as revision 17622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 21:09:24 +00:00
Carl Eugen Hoyos
26aedb4ab3 Cosmetics: Fix indentation after last commit.
Originally committed as revision 17621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 20:36:47 +00:00
Ivan Schreter
2c0c5e1249 Initialize H264 parser context correctly if the optional SEI messages
are not present.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17620 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 20:36:02 +00:00
Justin Ruggles
26adc8d086 cosmetics: line wrap and indentation after last commit.
Originally committed as revision 17603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 02:30:29 +00:00
Justin Ruggles
59c6178a54 Use a shared function to validate FLAC extradata.
Originally committed as revision 17602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 02:29:24 +00:00
Alex Converse
e8d5c07bcc Re-indent after last commit.
Originally committed as revision 17600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:54:16 +00:00
Alex Converse
21e8c46cde Refactor AAC unsigned band type decoding for a modest speedup.
Originally committed as revision 17599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:51:34 +00:00
Alex Converse
039821a838 Use const to better allow the compiler to optimize AAC independent coupling.
Originally committed as revision 17598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:50:00 +00:00
Carl Eugen Hoyos
5fe2a515f8 Completed documentation of reference field.
Originally committed as revision 17597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:38:51 +00:00
NVIDIA Corporation
2f9c978a07 Do not set h264.is_reference for pictures that are delayed, but not
actually reference frames.

Patch by NVIDIA

Originally committed as revision 17596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:03:01 +00:00
NVIDIA Corporation
f90b55166e The field rangered in VDPAU's VdpPictureInfoVC1 now also contains
rangeredfrm (VC-1 7.1.13) in bit 1.

Patch by NVIDIA

Originally committed as revision 17595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 00:29:01 +00:00
Carl Eugen Hoyos
1a022c2fbf Apply correct pix_fmts to WMV3_VDPAU and VC1_VDPAU.
Originally committed as revision 17594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 23:58:52 +00:00
Gwenole Beauchesne
d7dae42e70 Add missing prototype for ff_is_hwaccel_pix_fmt().
patch by Gwenole Beauchesne, gbeauchesne,splitted-desktop,com

Originally committed as revision 17593 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 23:24:34 +00:00
Michael Niedermayer
d404b3edb3 Add hwaccel->decode_slice() call for avhwaccel by Gwenole Beauchesne.
Originally committed as revision 17591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 19:39:42 +00:00
Michael Niedermayer
765e94ef9e More AVhwaccel hunks from Gwenole Beauchesne.
Originally committed as revision 17590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 19:16:27 +00:00
Diego Biurrun
e0cffbe7ea spelling/wording/grammar cosmetics
Originally committed as revision 17588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 18:03:47 +00:00
Carl Eugen Hoyos
ac00575d92 Fix VC1 and WMV3 playback in MPlayer.
Originally committed as revision 17587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 15:43:53 +00:00
Kostya Shishkov
7a47495079 cosmetics: reindent after last commit
Originally committed as revision 17585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 08:36:00 +00:00
Kostya Shishkov
77f7156d85 Since motion vectors for intra blocks are always zero, do not try to retrieve them.
Originally committed as revision 17584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 08:35:37 +00:00
Ivan Schreter
c733922eec Export timestamp parameter from H.264.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 22:24:34 +00:00
Ivan Schreter
27ca0a79c9 Add timestamp computation if values are exported by decoder.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17574 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 22:19:09 +00:00
Michael Niedermayer
4d8f830125 1000l for me, wrong pix_fmt.
Originally committed as revision 17573 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 22:19:02 +00:00
Ivan Schreter
edbd72acea Correct time_base and repeat_pict for MPEG2 video.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 20:23:19 +00:00
Ivan Schreter
fc9fe42833 Correct time_base of H.264 and repeat_pict.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 20:19:59 +00:00
Ivan Schreter
810c451b02 Change duration computation to use time_base instead of TB/2.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 20:17:02 +00:00
Michael Niedermayer
a05aa821b6 add ff_find_hwaccel() by Gwenole Beauchesne
Originally committed as revision 17569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 19:04:43 +00:00
Michael Niedermayer
6059f13cad ff_find_hwaccel()
Originally committed as revision 17568 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:51:16 +00:00
Michael Niedermayer
414d9d7f2e av_hwaccel_next() by Gwenole Beauchesne.
Originally committed as revision 17567 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:47:36 +00:00
Michael Niedermayer
c895618bb0 av_register_hwaccel() from Gwenole Beauchesne.
Originally committed as revision 17566 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:46:00 +00:00
Michael Niedermayer
f986c8e2e5 Another AVhwaccel hunk from Gwenole Beauchesne.
Originally committed as revision 17565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:39:42 +00:00
Michael Niedermayer
09a9b45e4f Add and use ff_pixfmt_list_420.
Originally committed as revision 17564 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:27:52 +00:00
Gwenole Beauchesne
c0aec489a6 Approved hunk from the AVHWaccel patch by Gwenole Beauchesne.
Originally committed as revision 17563 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:24:56 +00:00
Vitor Sessak
66d4c62806 Do not reimplement ff_celp_lp_synthesis_filterf().
Originally committed as revision 17562 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:11:42 +00:00
Gwenole Beauchesne
4daa41c415 Rename buf_vdpau to buf_start
Patch by Gwenole Beauchesne <g$lastname> <at> <(antonym of "joined")-desktop><com>

Originally committed as revision 17561 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 17:09:57 +00:00
Gwenole Beauchesne
ee3e36315e Add ff_h263_find_resync_marker() to find the bit position of the next resync_marker, if any.
patch by Gwenole Beauchesne gbeauchesne splitted-desktopcom
based on suggested implementation by me

Originally committed as revision 17560 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 16:12:47 +00:00
Stefan Gehrer
cd3356ff73 check for a stuffing byte at the end of a slice
Originally committed as revision 17559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 15:56:53 +00:00
Stefan Gehrer
88db5551cf change macroblock loop in inter frames so that after a
slice header the skip count is always parsed first

Originally committed as revision 17558 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 15:54:51 +00:00
Diego Biurrun
acced32d08 Mark two variables with av_uninit to avoid false positive gcc warnings.
Originally committed as revision 17552 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 14:13:46 +00:00
Måns Rullgård
d4f2a6250a Fix get_ur_golomb_jpegls() with A32_BITSTREAM_READER
If k==0, log==0 can indicate that the coded value uses more than
MIN_CACHE_BITS bits.  With MIN_CACHE_BITS==32, the fast branch is
incorrectly taken in this case unless explicitly forbidden.

Originally committed as revision 17550 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 01:41:44 +00:00
Michael Niedermayer
d3bcbf57a9 AVPixFmtDescriptor doxy
Originally committed as revision 17549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 01:12:25 +00:00
Michael Niedermayer
9b61d838f6 Pixel Format descriptor, try #1.
(yes its intentionally unused, this is intended as a basis for further
 work, and to prevent repeation of the whole discussion dying and the
 results being forgotten)

Originally committed as revision 17548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 01:08:29 +00:00
Kenan Gillet
cacb82134e Change sign in ff_celp_lp_synthesis_filterf(). This makes this function
useful for AMR and RA144.

Patch by Kenan Gillet

Originally committed as revision 17546 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 22:19:16 +00:00
Alex Converse
7ac1591764 Close the AAC parse context, discovered by Netgem.
Originally committed as revision 17544 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 19:25:18 +00:00
Zuxy Meng
d05f808dc9 Remove CPUID availability check on AMD64 as it's architectural.
Originally committed as revision 17543 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 15:53:39 +00:00
Reimar Döffinger
f8c96d011e Check return value of ff_fill_pointer in avcodec_default_get_buffer,
if it returns -1 we do not know how to allocate an AVFrame for that format
and must return -1 instead of returning nonsense.

Originally committed as revision 17542 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 15:18:28 +00:00
Reimar Döffinger
d46b2d682f 100l, always declare variables at the top of a block, not inside a for ()
Originally committed as revision 17541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 14:02:11 +00:00
Gwenole Beauchesne
40e5d31b57 More approved hunks for VAAPI & our new and cleaner hwaccel API.
patch by Gwenole Beauchesne gbeauchesne splitted-desktop com

Originally committed as revision 17540 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 13:44:51 +00:00
Michael Niedermayer
c269cf68a0 Approved hunks for VAAPI / our new shiny hwaccel API
by Gwenole Beauchesne gbeauchesne splitted desktop com

Originally committed as revision 17539 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 13:35:52 +00:00
Diego Biurrun
7c2d92fe08 Fix xvmc object dependencies.
Originally committed as revision 17534 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 23:13:00 +00:00
Michael Niedermayer
7bbc686f82 Fix vc1 split().
Fixes Subtitle-sample.evo, issue52.

Originally committed as revision 17533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 20:48:12 +00:00
Kostya Shishkov
91ba181a15 Better parsing of i263 picture header
Originally committed as revision 17532 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 18:13:40 +00:00
Daniel Verkamp
5ef251e504 Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu.

Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 13:48:55 +00:00
Jason Garrett-Glaser
e27ad11840 Convert x264 asm files to proper unix line breaks
Originally committed as revision 17524 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 11:35:32 +00:00
Jason Garrett-Glaser
9bd5f59b33 Remove (incorrect) filenames from x264 asm files, add descriptions.
Originally committed as revision 17523 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 11:33:09 +00:00
Reimar Döffinger
66e6038cf1 Check return value of frame_start(), this avoids a crash if AVCodecContext::get_buffer failed.
Not sure if returning -1 is the best possible solution but at least avoids the crash.

Originally committed as revision 17520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 09:51:58 +00:00
Ivan Kalvachev
21effaa4b2 Change the type of pblocks from pointers to short array into
pointers to array of 64 DCTELEM, similarly to other block fields.
This also get rid of some casts and fixes a warning.

Originally committed as revision 17517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 09:02:06 +00:00
Peter Ross
001821904e Support 48-bit RGB PPM image.
Originally committed as revision 17511 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 00:56:55 +00:00
Peter Ross
88c21a6f14 Add PIX_FMT_RGB48BE and PIX_FMT_RGB48LE.
Originally committed as revision 17510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 00:55:49 +00:00
Ivan Schreter
346db3ef7f Use context variable repeat_pict for frame duration computation and
document this new use.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 20:11:47 +00:00
Ivan Schreter
96c3da93e6 Set context variable picture_structure in H264 parser.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17490 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 20:03:05 +00:00
Ivan Schreter
0ed260c7a3 Set context variable key_frame in H264 parser.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 19:59:25 +00:00
Ivan Schreter
ff6474dd15 Parse NAL units in H264 parser.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17488 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 19:56:50 +00:00
Ivan Schreter
1790a5e908 Make the following H264 functions available to the parser:
ff_h264_decode_sei, ff_h264_decode_seq_parameter_set,
ff_h264_decode_picture_parameter_set, ff_h264_decode_nal,
ff_h264_decode_rbsp_trailing

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 19:54:14 +00:00
Michael Niedermayer
e641f320bd indent
Originally committed as revision 17481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 17:17:09 +00:00
Måns Rullgård
822be725d9 Alpha: fix inline asm with DEC/Compaq/HP compiler
Originally committed as revision 17477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 16:03:23 +00:00
Michael Niedermayer
31f2616db8 Fix raw rgb/bgr vertical flip in avi based on info from http://www.fourcc.org/fccbihgt.php.
partially fixes issue862.

Originally committed as revision 17475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 15:32:56 +00:00
Justin Ruggles
a169df2f76 Set the correct number of samples for E-AC-3 in the AC3 parser.
Originally committed as revision 17472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-20 22:00:41 +00:00
Ivan Schreter
ebb61f834a Use last decoded SPS as current SPS in order to parse picture timing SEI
correctly. This works around an apparent H.264 standard deficiency.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-20 16:20:01 +00:00
Roman Shaposhnik
ce83d2bd37 Fixing a value returning issue
Originally committed as revision 17469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-20 02:00:44 +00:00
Ivan Schreter
b1fa494205 Add convergence_duration to AVCodecParserContext.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 23:35:59 +00:00
Alex Converse
d42e44a0ef Reindent after last commit
Originally committed as revision 17464 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 23:08:23 +00:00
Ivan Schreter
3878be318b Silence two warnings:
cast discards qualifiers from pointer target type

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 23:01:13 +00:00
Alex Converse
274aa1d02f Some buffer checks for indeo3
Originally committed as revision 17462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 22:56:35 +00:00
Michael Niedermayer
dc405cc1c0 A try to fix the regressions.
Originally committed as revision 17459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 17:54:23 +00:00
Peter Ross
9bf1b72405 Add AVERROR_EOF.
Originally committed as revision 17455 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 12:18:09 +00:00
Ivan Kalvachev
859bb3cfee Add more paranoid checks of xvmc token.
Originally committed as revision 17453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 09:55:52 +00:00
Ivan Kalvachev
9cfc1b3a84 Exit with error if MPV_common_init() is called with PIX_FMT_NONE.
Give nice error message to fix codecs that call it this way.

Originally committed as revision 17452 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 08:39:47 +00:00
Diego Biurrun
e10252483e Only enable SSE/3DNOW optimizations when they have been enabled at compilation.
Fixes shared build with SSE/3DNOW disabled but MMX and yasm enabled.

Originally committed as revision 17451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:54:59 +00:00
Diego Biurrun
2213f431c7 Directly #include required X11/XvMC header.
Originally committed as revision 17450 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:47:11 +00:00
Roman Shaposhnik
94ed2a303d transitioning dv_guess_dct_mode to dsputil cmp function
Originally committed as revision 17449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:34:42 +00:00
Roman Shaposhnik
7fb7f6367a Adding 2 intra 8x8 cmp functions: vsad, vsse
Originally committed as revision 17448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:30:24 +00:00
Joakim Plate
4cff8dc88f Allow AC-3 parser to modify codec_id.
Patch by Joakim Plate (elupus A ecce D se).

Originally committed as revision 17447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:28:19 +00:00
Roman Shaposhnik
3899eb2f65 Making the arrays accomodate an extra intra 8x8 cmp function
Originally committed as revision 17446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:28:08 +00:00
Aurelien Jacobs
d52b39c79c fix missing dependencies
Originally committed as revision 17445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:27:57 +00:00
Diego Biurrun
b3183ad034 prettyprinting whitespace cosmetics
Originally committed as revision 17443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:06:17 +00:00
Ivan Schreter
6363af44da Add key_frame to AVCodecParserContext, used in libavformat.
Initialized to -1 in parser.c for backward compatibility.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 23:46:05 +00:00
Ivan Schreter
2ea89d9274 Parse buffering period (H.264, D.1.1).
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 23:33:30 +00:00
Diego Biurrun
31866c4677 The 3DNow! and SSE FFT optimizations depend on the yasm optimizations in
x86/fft_mmx.asm, so only build them if the latter is built.

Originally committed as revision 17440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 23:32:41 +00:00
Ivan Schreter
24a414e0fa Store CPB count in the context.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 23:25:59 +00:00
Michael Niedermayer
9392863d1b Clarify get_ue_golomb_31() behavior with >31.
Originally committed as revision 17429 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 11:57:11 +00:00
Reimar Döffinger
9bbf1a5c23 Instead of crashing, return from ff_vdpau_mpeg_picture_complete()
if get_buffer() failed.

Patch by Reimar

Originally committed as revision 17427 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 09:21:29 +00:00
Ivan Schreter
cf6065ca6b Parse cbp_removal_delay in SEI picture structure.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17413 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 00:38:10 +00:00
Ivan Schreter
ff594f81df Parse dpb_output_delay in SEI picture structure.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17412 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 00:36:07 +00:00
Ivan Schreter
82e38c2952 Parse initial_cpb_removal_delay_length.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17411 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 00:33:33 +00:00
Diego Biurrun
ca14e2a8b7 Handle conditional compilation of CPU-specific FFT code in the Makefile.
Also replace one coarse MMX condition with more fine-grained
3DNow!/3DNowExt!/SSE conditions.

Originally committed as revision 17409 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 00:11:49 +00:00
Diego Biurrun
3d17b948fd mpegvideo_xvmc.o depends on mpegvideo.o.
Originally committed as revision 17405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 23:59:53 +00:00
Diego Biurrun
7df33ec28e Replace sizeof(short) by the more robust sizeof(*s->pblocks[i]) in memset and
memcpy calls.  s->pblocks is the element actually being handled.

Originally committed as revision 17404 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 23:51:28 +00:00
Diego Biurrun
63864cb810 small Doxygen comment grammar fix
Originally committed as revision 17403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 23:36:28 +00:00
Diego Biurrun
bd0eddb795 Revert converting two asserts into if checks and error messages.
It did not achieve the intended effect.

Originally committed as revision 17402 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 23:35:41 +00:00
Stephen Warren
ef7ae94ba2 Fix MBAFF/PAFF samples.
Patch by Stephen Warren, swarren nvidia com

Originally committed as revision 17401 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 23:30:07 +00:00
Diego Biurrun
9ba8bc0164 spelling/grammar/wording fixes for the Doxygen comments
Originally committed as revision 17400 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 22:36:48 +00:00
Diego Biurrun
30f68128ab Add missing #includes to fix 'make checkheaders'.
Originally committed as revision 17398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 21:43:57 +00:00
Gwenole Beauchesne
ce09f9270a Move initialization of {luma,chroma}_weight_flag[] up,
to make sure they are always initialized.
Patch by Gwenole Beauchesne g${name} splitted-desktop com

Originally committed as revision 17393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 13:41:27 +00:00
Diego Biurrun
de86157836 cosmetics: 'void/int inline' --> 'inline void/int' to avoid warnings of the type
"'inline' is not at beginning of declaration" with -Wextra.

Originally committed as revision 17392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 12:11:46 +00:00
Diego Biurrun
1bf6e565dd cosmetics: 'const static' --> 'static const' to avoid warnings of the type
"'static' is not at beginning of declaration" with -Wextra.

Originally committed as revision 17391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-17 12:03:10 +00:00
Ivan Kalvachev
649c171aec Thoroughly check all fields set by the application in xvmc struct.
Originally committed as revision 17387 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 22:46:30 +00:00
Patrik Kullman
7846418bdb flacdec: Silence false positive warning about uninitialized variables in
decode_subframe_fixed(). Patch by Patrik Kullman (patrik A yes D nu).

Originally committed as revision 17386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 22:23:47 +00:00
Ivan Kalvachev
02c0c8d17d Minor clarification of xvmc field description.
Originally committed as revision 17384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 18:19:48 +00:00
Ivan Kalvachev
e7de624bcc Improvements in xvmc structure fields descriptions.
Originally committed as revision 17383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 18:16:23 +00:00
Diego Biurrun
3842560379 whitespace cosmetics: Reindent a few lines after the last commit.
Originally committed as revision 17370 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 11:50:06 +00:00
Diego Biurrun
83344066d3 Get rid of some '#if CONFIG_MPEG_XVMC_DECODER' preprocessor checks around if
statements by merging the CONFIG_MPEG_XVMC_DECODER check into the if condition.

Originally committed as revision 17369 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 11:49:08 +00:00
Diego Biurrun
42dfc2bfa9 whitespace cosmetics: Place spaces around += for better readability.
Originally committed as revision 17368 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 11:35:38 +00:00
Diego Biurrun
ed80a059ba Add missing object dependencies: eatqi.o depends on mpeg12.o.
Originally committed as revision 17366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 10:38:23 +00:00
Kostya Shishkov
42402a55b0 Make BMP decoder try to decode files with incorrect filesize field value
Originally committed as revision 17363 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 06:57:11 +00:00
Diego Biurrun
f9d5bf3c2d Replace two asserts by checks and error messages.
Originally committed as revision 17362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 02:02:49 +00:00
Diego Biurrun
e7c88eb76f Doxygen comment wording fix
Originally committed as revision 17361 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 01:59:51 +00:00
Diego Biurrun
6545996fb9 whitespace cosmetics
Originally committed as revision 17358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 01:33:02 +00:00
Diego Biurrun
cad1928f15 Give struct members more sensible names:
total_number_of_mv_blocks   --> allocated_mv_blocks
total_number_of_data_blocks --> allocated_data_blocks

Originally committed as revision 17356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 00:21:16 +00:00
Diego Biurrun
648410c1fc cosmetics: one more wording fix
Originally committed as revision 17355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 00:09:00 +00:00
Diego Biurrun
df9d2e04bb cosmetics: Keep lines below 80 characters where sensibly possible.
Originally committed as revision 17354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-16 00:06:32 +00:00
Diego Biurrun
037f13fe21 Doxygen spelling/wording fixes
Originally committed as revision 17353 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 23:55:34 +00:00
Diego Biurrun
2f953883e3 spelling/wording fixes for the Doxygen comments
Originally committed as revision 17352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 23:23:39 +00:00
Diego Biurrun
8f66518d0b draw_horiz_band() is really ff_draw_horiz_band().
Originally committed as revision 17350 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 21:05:48 +00:00
Diego Biurrun
058bcd7b6b spelling/grammar/wording/whitespace for Doxygen comments
Originally committed as revision 17349 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 21:03:52 +00:00
Diego Biurrun
4e30fa6e7b Rename AV_XVMC_RENDER_MAGIC constant to AV_XVMC_ID to reflect a similar
change in the name of the struct member xvmc_id.

Originally committed as revision 17348 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 20:45:33 +00:00
Stefano Sabatini
c1b0210115 Improve grammar: "X next after Y" -> "next X after Y".
Originally committed as revision 17347 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 20:45:10 +00:00
Diego Biurrun
864899c329 cosmetics: typo fix
Originally committed as revision 17346 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 20:37:39 +00:00
Ivan Kalvachev
ad0405fc03 Describe all fields in xvmc struct.
Originally committed as revision 17345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 20:13:00 +00:00
Diego Biurrun
d758a5cb50 spelling/grammar/wording fixes for Doxygen comments
Originally committed as revision 17344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 19:10:16 +00:00
Diego Biurrun
1909fadea9 comment spelling/grammar/wording fixes
Originally committed as revision 17343 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 19:06:05 +00:00
Diego Biurrun
e98b47557b Explain how AV_XVMC_RENDER_MAGIC got its seemingly arbitrary value.
Originally committed as revision 17342 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 18:59:18 +00:00
Ivan Kalvachev
1fcef40847 Rename unique_id to the way michaelni likes it. (xvmc_id)
Originally committed as revision 17341 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 18:45:22 +00:00
Ivan Kalvachev
3d43e42f29 Document all functions in mpegvideo_xvmc.
Originally committed as revision 17340 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 18:30:39 +00:00
Diego Biurrun
f602b044b5 Rename xvmc_pixfmt_render structure to xvmc_pix_fmt.
Originally committed as revision 17339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 17:42:08 +00:00
Ivan Kalvachev
11f8aa042d Kill the magic field in xvmc structure.
Originally committed as revision 17338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 17:21:37 +00:00
Diego Biurrun
9043202e6e K&R whitespace cosmetics
Originally committed as revision 17337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 16:54:02 +00:00
Diego Biurrun
c1e7b256ec 10l: Remove duplicated hunk of code.
Originally committed as revision 17335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 16:29:31 +00:00
Stefano Sabatini
0334f79994 Document av_codec_next().
Originally committed as revision 17333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 16:02:07 +00:00
Carl Eugen Hoyos
c99a35768f Silence following warning if only zeros were not consumed:
AVC: Consumed only m bytes instead of n

Originally committed as revision 17327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 15:23:02 +00:00
Reimar Döffinger
06aae1238f Place spaces consistently in pointer types in vdpau.c
Originally committed as revision 17320 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 12:31:01 +00:00
Ivan Kalvachev
9e0a8a368e Cosmetics. Vertical align.
Originally committed as revision 17319 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 10:15:02 +00:00
Ivan Kalvachev
d76c5ed574 Almost cosmetics.
Move some assignments after the checks.

Originally committed as revision 17318 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 10:14:16 +00:00
Ivan Kalvachev
d2d600b71f Check all critical xvmc struct fields in ff_xvmc_field_start()
and log error if they are not correct. All other functions
are supposedly called after that one, so use assert() for them.

Originally committed as revision 17317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 10:06:23 +00:00
Ivan Kalvachev
afb9342a3e Proper condition in xvmc decode mb.
The old one would try to use mv blocks that are written outside their buffer,
in case of unhandled error.

Originally committed as revision 17315 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 09:03:47 +00:00
Ivan Kalvachev
095edd3e61 Rename xvmc_render_state to something with pixfmt in its name.
Originally committed as revision 17314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 08:42:11 +00:00
Ivan Kalvachev
3fff9d92dc A little better wording of doxygen comments.
Originally committed as revision 17313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 08:29:06 +00:00
Ivan Kalvachev
1a90cf3c98 Revert 17308.
The above commit makes ff_xvmc_decode_mb to output one log entry
for each decoded MB, causing massive slowdown.

Originally committed as revision 17312 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 07:55:39 +00:00
Peter Ross
5f5e6af169 Prevent heap corruption when resampling 8-bit audio.
Originally committed as revision 17311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 06:29:43 +00:00
Ivan Kalvachev
a0723a4d84 Give a little better name to the magic(_id) field in xvmc struct
Originally committed as revision 17310 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 02:36:43 +00:00
Diego Biurrun
1333d8fd20 Replace assert in ff_xvmc_field_end() by av_log call at level AV_LOG_ERROR.
Originally committed as revision 17308 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 02:27:55 +00:00
Ivan Kalvachev
eb3b2ef91d Remove obsolete display_flags member from xvmc struct
and mark state defines as obsolete.

Originally committed as revision 17307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 02:17:48 +00:00
Ivan Kalvachev
72d38a749b Detailed description of the interesting fields in xvmc struct.
Originally committed as revision 17306 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 01:35:32 +00:00
Ivan Kalvachev
f851909579 Move the state field in the xvmc struct to the extensions section.
It has always been a workaround for MPlayer limitations.

Originally committed as revision 17305 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 01:28:50 +00:00
Diego Biurrun
967d2ae616 Remove redundant assert(render) in ff_xvmc_init_block(). The immediately
following if condition checks render and does an assert if it fails.

Originally committed as revision 17304 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 01:24:09 +00:00
Diego Biurrun
e26f8d76d7 Remove asserts that are immediately followed by a check and error return.
Originally committed as revision 17303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 00:52:16 +00:00
Diego Biurrun
3af6c3dd9a Drop struct members display_flags and state with the next major version bump.
They are not used within FFmpeg.

Originally committed as revision 17302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 00:40:57 +00:00
Diego Biurrun
8f38ff007a Doxygen comment/explanation for ff_xvmc_init_block().
Originally committed as revision 17301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 00:16:51 +00:00
Diego Biurrun
4b72239059 Remove completely unsed structure fields mc_type and chroma_format.
Their only user, MPlayer, has already been updated not to use them anymore.

Originally committed as revision 17300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-15 00:09:28 +00:00
Diego Biurrun
05c363e90d whitespace consistency cosmetics
Originally committed as revision 17299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 23:48:11 +00:00
Diego Biurrun
5d6c111098 Add avcodec.h #include so that LIBAVCODEC_VERSION_MAJOR is not undefined.
Originally committed as revision 17298 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 23:45:35 +00:00
Ivan Kalvachev
3bffe5fc9d Deprecate some unused xvmc structure fields.
Originally committed as revision 17297 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 23:28:09 +00:00
Diego Biurrun
0b2eb2e8be Add Doxygen comment similar to ff_xvmc_field_start() to ff_xvmc_field_end().
Originally committed as revision 17296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 23:13:32 +00:00
Diego Biurrun
fe4be5dbd5 whitespace cosmetics: remove stray space
Originally committed as revision 17295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 23:08:43 +00:00
Ivan Kalvachev
4acfdcab26 Cosmetics
Originally committed as revision 17294 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 23:01:19 +00:00
Ivan Kalvachev
ce0e60a108 Merge preprocessor if CONFIG_MPEG_XVMC_DECODER and code if( &&)
where possible

Originally committed as revision 17293 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 22:59:19 +00:00
Diego Biurrun
9107f7cd07 Doxygenize ff_xvmc_field_start() comment.
Originally committed as revision 17292 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 22:48:59 +00:00
Diego Biurrun
a1bce01171 Clarify ff_xvmc_field_start() comment.
Originally committed as revision 17291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 22:46:40 +00:00
Ivan Kalvachev
9e494ab77c Check ff_xvmc_field_start() result in all cases.
Originally committed as revision 17290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 22:46:20 +00:00
Ivan Kalvachev
24b1583a62 Another attempt to clarify draw_horiz_band() usage.
Originally committed as revision 17289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 22:22:55 +00:00
Diego Biurrun
b71bd0ed11 Merge some declarations and initializations.
Originally committed as revision 17288 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 22:21:17 +00:00
Ivan Kalvachev
013cebfbe8 Return error instead of triggering assert.
Originally committed as revision 17287 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 22:06:00 +00:00
Diego Biurrun
930efaf410 cosmetics: comment wording/grammar
Originally committed as revision 17286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 21:52:44 +00:00
Diego Biurrun
6e4b41f880 cosmetics: Change '8*8' to '64'.
Originally committed as revision 17285 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 21:50:46 +00:00
Diego Biurrun
cb18fb6288 cosmetics: K&R style
Originally committed as revision 17284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 21:49:48 +00:00
Ivan Kalvachev
9939841fe2 Give nice message for failed assert.
Originally committed as revision 17283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 21:33:13 +00:00
Diego Biurrun
2d7b05601a Attempt to clarify draw_horiz_band description and fix two random typos.
Originally committed as revision 17282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 21:00:26 +00:00
Ivan Kalvachev
dd4e297d94 More clarification for draw_horiz_band() in hwaccell mode.
Originally committed as revision 17281 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 20:52:18 +00:00
Diego Biurrun
4440bd0da4 Add xvmc_internal.h that contains all internal xvmc function declarations.
This allows getting rid of a bunch of ugly forward declarations.

Originally committed as revision 17280 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 20:37:14 +00:00
Ivan Kalvachev
6e2803405d Cosmetic 64 instead 8*8
Originally committed as revision 17279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 20:35:10 +00:00
Ivan Kalvachev
ae4dde76d3 Clarify some assert usage.
They are not to check application supplied parameters.

Originally committed as revision 17278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 20:30:13 +00:00
Ivan Kalvachev
2661ba4b09 Document that ff_draw_horiz_band() could be used as hwaccell callback.
Originally committed as revision 17277 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 20:07:52 +00:00
Diego Biurrun
99df0aa59e another (last?) round of K&R whitespace cosmetics
Originally committed as revision 17276 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 20:00:22 +00:00
Diego Biurrun
ba585726be whitespace cosmetics: Align some comments.
Originally committed as revision 17275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:54:59 +00:00
Diego Biurrun
81189e4ff6 whitespace cosmetics: Put some spaces around operators for better readability.
Originally committed as revision 17274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:52:06 +00:00
Diego Biurrun
465ce23e4d Remove a comment that references a non-existing function.
Originally committed as revision 17273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:47:55 +00:00
Diego Biurrun
0439c09d22 Make one comment slightly clearer and more readable.
Originally committed as revision 17272 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:42:29 +00:00
Diego Biurrun
63a21bc041 Remove one more commented-out line.
Originally committed as revision 17271 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:41:16 +00:00
Diego Biurrun
7e2e870e06 some more K&R whitespace cosmetics
Originally committed as revision 17270 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:39:07 +00:00
Diego Biurrun
a1db3b93c0 cosmetics: grammar/spelling/wording fixes in comments
Originally committed as revision 17269 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:33:09 +00:00
Diego Biurrun
052f377934 Remove useless comment.
Originally committed as revision 17268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:27:34 +00:00
Diego Biurrun
eba9cecc8b Restore one set of parentheses to avoid the warning:
libavcodec/mpegvideo_xvmc.c: In function ‘ff_xvmc_decode_mb’:
libavcodec/mpegvideo_xvmc.c:269: warning: suggest parentheses around && within ||

Originally committed as revision 17267 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:24:37 +00:00
Diego Biurrun
1f7c1d140a whitespace cosmetics: consistently format all comments
Originally committed as revision 17266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:21:00 +00:00
Diego Biurrun
d15876d3bd whitespace cosmetics: Correctly indent all comments.
Originally committed as revision 17265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:14:46 +00:00
Ivan Kalvachev
788aa94a9d Clarify TODO comment
Originally committed as revision 17264 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:09:33 +00:00
Diego Biurrun
6c7b70fbd6 Remove compatibility layer for old names of xvmc definitions.
The header was non-public before and the only user, MPlayer, was updated.

Originally committed as revision 17263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:08:47 +00:00
Diego Biurrun
36c5204d4e Drop two more sets of useless parentheses.
Originally committed as revision 17262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:05:07 +00:00
Ivan Kalvachev
90509ec7bf get rid of the branch prediction
Originally committed as revision 17261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:02:46 +00:00
Diego Biurrun
4ec58e1397 cosmetics: Consistently format all if/else statements in K&R style
and drop braces from if statements where unnecessary.

Originally committed as revision 17260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 19:00:51 +00:00
Diego Biurrun
9f00a41cb3 Remove some useless parentheses.
Originally committed as revision 17259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 18:57:32 +00:00
Diego Biurrun
ed92bedb63 Rename some forward declarations that were missed, fixes the warnings:
libavcodec/mpegvideo.o libavcodec/mpegvideo.c
libavcodec/mpegvideo.c: In function ‘MPV_frame_start’:
libavcodec/mpegvideo.c:944: warning: implicit declaration of function ‘ff_xvmc_field_start’
libavcodec/mpegvideo.c: In function ‘MPV_frame_end’:
libavcodec/mpegvideo.c:957: warning: implicit declaration of function ‘ff_xvmc_field_end’

Originally committed as revision 17258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 18:51:17 +00:00
Ivan Kalvachev
f0a902ad82 remove obsolete comment
Originally committed as revision 17257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 18:47:00 +00:00
Diego Biurrun
a002da797c Fix compilation: XVMC_ --> ff_xvmc prefix for xvmc functions.
Originally committed as revision 17256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 18:46:32 +00:00
Ivan Kalvachev
4742762f5d remove some useless ()
Originally committed as revision 17255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 18:45:44 +00:00
Ivan Kalvachev
78f9a87830 use ff_xvmc for function names instead of XVMC_
Originally committed as revision 17254 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 18:25:41 +00:00
Diego Biurrun
c1a5aa2953 whitespace cosmetics: Restore vertical alignment.
Originally committed as revision 17253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 18:15:59 +00:00
Ivan Kalvachev
aae667ba4d clarify xvmc struct fields usage distribution (internal communication)
Originally committed as revision 17252 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 18:06:05 +00:00
Ivan Kalvachev
6785e509d4 doxygen style comments
Originally committed as revision 17251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:56:51 +00:00
Diego Biurrun
c97dffbc94 Replace useless X11 #includes by the one that actually provides the required
declarations of XvMCMacroBlock and XvMCSurface.

Originally committed as revision 17250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:52:30 +00:00
Diego Biurrun
6b6ea1dfdf whitespace cosmetics: vertical alignment
Originally committed as revision 17249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:45:38 +00:00
Diego Biurrun
e0dcbda24b Fix non-Doxygen comment.
Originally committed as revision 17248 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:42:40 +00:00
Diego Biurrun
1369e003f6 Add avcodec.h #include so that LIBAVCODEC_VERSION_MAJOR is not undefined.
Originally committed as revision 17247 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:37:42 +00:00
Ivan Kalvachev
4f7e6f0d58 vertically align xvmc struct member comments
Originally committed as revision 17246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:28:39 +00:00
Ivan Kalvachev
117f9234c8 Rename xvmc flags to follow ffmpeg AV_ notion.
preserve MP_ ones until next major bump.

Originally committed as revision 17245 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:24:01 +00:00
Diego Biurrun
ea375af8c9 Give public #defines that are used by MPlayer an AV_ prefix.
Originally committed as revision 17244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:12:25 +00:00
Diego Biurrun
3ae0192839 Replace all (x == NULL) or (x != NULL) in assert and if conditions by !x and x.
Originally committed as revision 17243 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 17:04:09 +00:00
Diego Biurrun
af28efa272 Update multiple inclusion guards to match filename.
Originally committed as revision 17242 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:54:53 +00:00
Ivan Kalvachev
ef1b5ae2cd remove assertion that use external definitions
Originally committed as revision 17241 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:53:42 +00:00
Diego Biurrun
1aa7abb281 Fix compilation: Restore mistakenly removed constant definitions.
Originally committed as revision 17240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:43:35 +00:00
Ivan Kalvachev
24d54e9ebb explain chroma_format field in xvmc struct
Originally committed as revision 17239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:37:30 +00:00
Ivan Kalvachev
d54a08cf2a describe idct variable in xvmc struct
Originally committed as revision 17238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:30:57 +00:00
Ivan Kalvachev
ff92137865 Describe the purpose of magic in xvmc structure.
Originally committed as revision 17237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:24:45 +00:00
Diego Biurrun
4ef690f565 whitespace cosmetics: vertical alignment
Originally committed as revision 17236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:23:08 +00:00
Diego Biurrun
2d7d8cc7f4 whitespace cosmetics: another round of formatting consistency fixes
Originally committed as revision 17235 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:22:11 +00:00
Diego Biurrun
148302e7e4 whitespace cosmetics: consistent (more or less) K&R style
Originally committed as revision 17234 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:14:26 +00:00
Diego Biurrun
39dba5e8df whitespace cosmetics: Fix indentation depth.
Originally committed as revision 17233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:05:36 +00:00
Diego Biurrun
8e5cfb6e82 Remove commented-out code.
Originally committed as revision 17232 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 16:01:03 +00:00
Diego Biurrun
fc2dd7e3de Remove redundant CONFIG_XVMC option, CONFIG_MPEG_XVMC_DECODER suffices.
Originally committed as revision 17229 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 15:37:40 +00:00
Diego Biurrun
9e47796048 Rename xvmc.c --> mpegvideo_xvmc.c as suggested by Ivan.
Originally committed as revision 17228 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 15:30:40 +00:00
Diego Biurrun
aea0b32cbc Make xvmc.h an installed header, applications like MPlayer need it.
Originally committed as revision 17226 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 13:40:53 +00:00
Diego Biurrun
fd949a6353 Revert adding a _pixfmt to vdpau/xvmc header names.
Since vdpau.h was an installed header this would break API.

Originally committed as revision 17225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 13:37:18 +00:00
Diego Biurrun
db68113d5e cosmetics: alphabetical order
Originally committed as revision 17224 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 13:12:49 +00:00
Kostya Shishkov
7fa70598e8 Enable dropping frames for RV3/4
Originally committed as revision 17221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-14 06:38:50 +00:00
Patrik Kullman
3cfe88194a lpc: Remove false positive compilation warning about weight being
uninitialized. Patch by Patrik Kullman (patrik A yes D nu).

Originally committed as revision 17218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 22:05:55 +00:00
Patrik Kullman
eabe8c7033 Assert that ff_lpc_calc_coefs() is called with a valid LPC method.
Patch by Patrik Kullman (patrik A yes D nu).

Originally committed as revision 17217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 22:03:11 +00:00
Patrik Kullman
83f63ffb22 lpc: Document the use_lpc parameter to ff_lpc_calc_coefs().
Patch by Patrik Kullman (patrik A yes D nu).

Originally committed as revision 17216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 22:01:46 +00:00
Alex Converse
03b127477f Re-indent after last commit.
Originally committed as revision 17211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 16:07:20 +00:00
Alex Converse
f1ade11e33 Make set coup.gain[c][0] aand only coup.gain[c][0] is set for a independently switched CCE.
Discussed/OKed at http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-February/062219.html

Originally committed as revision 17210 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 16:06:22 +00:00
Kostya Shishkov
86dd3974e5 In RV3/4 nonzero MB offset for the first slice also indicates error
Originally committed as revision 17201 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 07:06:36 +00:00
Alexander Strange
b6188c5a55 Put dispatch_tab in the rodata section for macho64.
This fixes linking shared libavcodec, since the linker doesn't allow
text relocations in shared libraries under Darwin/x86_64.

Based on a patch by Art Clarke (aclarke xuggle com)

Originally committed as revision 17197 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 00:57:22 +00:00
Alex Converse
4eb311d01c Correctly map ADTS profile_ObjectType to MPEG-4 AOT
Patch by Alex Converse ( alex converse gmail com )

Originally committed as revision 17196 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 00:08:15 +00:00
Zuxy Meng
ecb24904fe add SSE2 version of vp6_filter_diag
original patch by Zuxy Meng  zuxy.meng _at_ gmail _dot_ com

Originally committed as revision 17195 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-13 00:02:33 +00:00
Sebastien Lucas
6af3c226c3 add MMX version of vp6_filter_diag
original patch by Sebastien Lucas  sebastien.lucas _at_ gmail _dot_ com

Originally committed as revision 17194 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 23:52:52 +00:00
Aurelien Jacobs
5110b25e1e convert ff_pw_64 into an xmm_reg for future use in vp6 sse code
Originally committed as revision 17192 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 23:48:07 +00:00
Reimar Döffinger
29ef9575ab Fix compilation, there is no file vdpauvideo.c, only vdpau.c
Originally committed as revision 17185 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 17:27:53 +00:00
Robert Swain
5f401ee03c AAC: Cosmetic alterations after the last commit
Originally committed as revision 17182 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 13:49:59 +00:00
Alex Converse
b2d9d4a531 Give an error message when returning due to an unallocated channel element
Patch by Alex Converse ( alex converse gmail com )

Originally committed as revision 17181 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 13:47:21 +00:00
Alex Converse
30272450f9 Add support for sample rate index 12, 7350 Hz
Patch by Alex Converse ( alex converse gmail com )

Originally committed as revision 17180 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 13:31:43 +00:00
Alex Converse
ff587009ae Remove bogus coupling_point assignment for non-CCE as this value is not checked
in this case

Patch by Alex Converse ( alex converse gmail com )

Originally committed as revision 17179 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 13:22:41 +00:00
Björn Axelsson
37a43cfb39 Set AVSubtitle format to 0. Neither dvdsubdec nor xsubdec intializes format
to 0, but ffplay checks it before displaying subtitles (ffplay.c:1437).
patch by Björn Axelsson, gecko acc.umu se

Originally committed as revision 17170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 01:27:56 +00:00
Diego Biurrun
508048afe2 10l: Rename vdpau.h --> vdpau_pixfmt.h in the Makefile as well.
Originally committed as revision 17169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 01:07:13 +00:00
Diego Biurrun
8df3bf60cf Rename xvmc_render.h --> xvmc_pixfmt.h and vdpau.h --> vdpau_pixfmt.h as
suggested by Michael, the new names better describe the contents of the files.

Originally committed as revision 17168 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 01:00:46 +00:00
Michael Niedermayer
8c7f820686 Let rgb32 pass for ljpeg.
Originally committed as revision 17167 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-12 00:48:30 +00:00
Baptiste Coudurier
d1e3c6fd40 extend resampling API, add S16 internal conversion
Originally committed as revision 17163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 22:57:10 +00:00
Vitor Sessak
d3b771bbc8 Document old scaler as deprecated
Originally committed as revision 17160 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 19:07:25 +00:00
Diego Biurrun
15c13dde98 Fix wrong file name in header, noticed by David DeHaven, dave sagetv com.
Originally committed as revision 17158 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 16:12:04 +00:00
Diego Biurrun
1e4eb387d4 Add av_uninit macro to variables to avoid false positive warnings:
libavcodec/msrledec.c: In function ‘ff_msrle_decode’:
libavcodec/msrledec.c:139: warning: ‘pix32’ may be used uninitialized in this function
libavcodec/msrledec.c:138: warning: ‘pix16’ may be used uninitialized in this function

Originally committed as revision 17156 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 14:57:42 +00:00
Diego Biurrun
f59f814874 Add av_uninit macro to variable to avoid false positive warning:
libavcodec/qtrleenc.c: In function ‘qtrle_encode_frame’:
libavcodec/qtrleenc.c:113: warning: ‘bulkcount’ may be used uninitialized in this function

Originally committed as revision 17155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 14:55:24 +00:00
Diego Biurrun
decae20f36 Add av_uninit macro to variable to avoid false positive warning:
libavcodec/eatgv.c: In function ‘tgv_decode_frame’:
libavcodec/eatgv.c:66: warning: ‘offset’ may be used uninitialized in this function

Originally committed as revision 17154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 14:52:35 +00:00
Kostya Shishkov
71a3dff9d5 Initialize s->gob_index for Intel variant of H.263 too
Originally committed as revision 17153 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 12:02:16 +00:00
Diego Biurrun
9b4cfc360a Rename vdpauvideo.c --> vdpau.c and xvmcvideo.c --> xvmc.c to better fit
the general libavcodec naming structure.

Originally committed as revision 17152 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 12:01:59 +00:00
Diego Biurrun
d3a4b4e09c Add check whether the compiler/assembler supports 10 or more operands.
thanks to Loren for some help with the asm statements

Originally committed as revision 17151 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 11:16:00 +00:00
Alexander Strange
898189880b H264: Change left_block_options to uint8_t from int, saving a little space.
Originally committed as revision 17147 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-11 06:03:18 +00:00
Stefan Gehrer
6847ab4375 introduce a macroblock index to avoid a few x*width+y calculations
Originally committed as revision 17138 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 22:38:02 +00:00
Stefan Gehrer
b9fce05205 fix multiple slices per frame
Originally committed as revision 17137 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 20:51:35 +00:00
Stefan Gehrer
4ca6f4b29c fix parsing of pic_structure
Originally committed as revision 17136 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 17:08:56 +00:00
Stefan Gehrer
e090c70f2f avoid duplicating dsputil's clear_block
Originally committed as revision 17135 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 16:45:02 +00:00
Stefan Gehrer
ae2d3e3b25 time_code has 24 bits, not 16
Originally committed as revision 17134 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 16:36:01 +00:00
Stefan Gehrer
d934de5c5d do not check for minimum slice start code, 0x00000100 is valid
Originally committed as revision 17133 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 16:34:45 +00:00
Anuradha Suraparaju
9fc88d7e20 Fix crash when encoding using libschroedinger.
Currently only pixel and half-pixel motion vector precisions are supported in
libschroedinger. Setting the mv_precision field to 2 (i.e. quarter pixel)
causes a crash in the libschroedinger encoder calls. By not setting this
parameter, we fall back to the default value used in libschroedinger.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

Originally committed as revision 17132 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 14:27:16 +00:00
Jai Menon
f418b86151 Check sampling index validity for AAC decoding
Patch by Jai Menon ( jmenon86 gmail com )

Originally committed as revision 17131 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 13:47:50 +00:00
Patrik Kullman
c7efffcb44 Add a default (error) for the switch in case of an unsupported PIX_FMT.
Removes warnings about possibly uninitialized variables.
Patch by Patrik Kullman %patrik A yes P nu%

Originally committed as revision 17130 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 12:38:56 +00:00
Mathieu Malaterre
3d6fac8cee Use default system include path for an installed OpenJPEG library.
patch by Mathieu Malaterre, mathieu.malaterre gmail com

Originally committed as revision 17129 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 11:29:31 +00:00
Patrik Kullman
79ff462e73 Fix (with av_uninit()) false positive warning about uninitialized variable:
offset is initialized and used if code == 1.
patch by Patrik Kullman %patrik A yes P nu%

Originally committed as revision 17128 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-10 10:35:05 +00:00
Aurelien Jacobs
26f3ae828b move vp6_filter_diag4() to a new vp6dsp.c file and use it throught dsputil
Originally committed as revision 17111 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 23:37:31 +00:00
Patrik
862c1d2f05 Replace snprintf() with av_strlcpy().
Fixes the following warning on some systems:
audioconvert.c:131: warning: format not a string literal and no format
arguments

Patch by Patrik patrik A yes D nu

Originally committed as revision 17110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 23:11:26 +00:00
Ivan Schreter
37a558fe51 Add SEI recovery point frame counter to H264Context and use it when
setting key_frame.

Patch by Ivan Schreter schreter A gmx D net

Originally committed as revision 17109 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 23:04:16 +00:00
Aurelien Jacobs
ed76106755 vp56: alpha_offset is uninitialized on purpose
Originally committed as revision 17108 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 22:45:30 +00:00
Nicolas George
05276956ce libvorbis: Use 0-10 range for audio quality.
Patch by Nicolas George (nicolas george normalesup org)

Originally committed as revision 17107 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 22:11:28 +00:00
Michael Niedermayer
a503722750 Fix: libavcodec/msmpeg4.c:1612: warning: ‘dc_pred_dir’ may be used uninitialized in this function
Originally committed as revision 17106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 22:04:34 +00:00
Michael Niedermayer
990058bdc7 Try to doxyfy av_resample_init(). I hope I did not misremember anything as I
just briefly checked the source.

Originally committed as revision 17100 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 15:49:06 +00:00
Michael Niedermayer
3136fcf45e Move doxy for public resample2 functions to the public header.
Originally committed as revision 17099 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 15:31:08 +00:00
Diego Biurrun
ea399a87b2 Remove svn:executable property from source file.
Originally committed as revision 17098 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 11:32:29 +00:00
Diego Biurrun
b17e0f065c Remove file name from file headers.
It provides no useful information and breaks on renames.

Originally committed as revision 17097 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 11:17:54 +00:00
Daniel Verkamp
c385c0da22 remove no more needed fields in GIFContext, patch by Daniel Verkamp, daniel at drv dot nu
Originally committed as revision 17096 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 08:16:04 +00:00
Daniel Verkamp
dacfaf2373 remove dead rgb24 code, gif encoder now directly takes palette, patch by Daniel Verkamp, daniel at drv dot nu
Originally committed as revision 17095 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 08:14:29 +00:00
Daniel Verkamp
c33030bd7b remove dead netscape loop header code in gif encoder, patch by Daniel Verkamp, daniel at drv dot nu
Originally committed as revision 17094 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 08:11:08 +00:00
Björn Axelsson
505aa6c91d Check that there are subtitle rects to encode in avcodec_encode_subtitle()
Patch by Björn Axelsson ( gecko A acc D umu D se )

Originally committed as revision 17093 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 01:58:01 +00:00
Björn Axelsson
9413db9e04 Check that start_display_time is 0 in avcodec_encode_subtitle()
Patch by Björn Axelsson ( gecko A acc D umu D se )

Originally committed as revision 17092 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 01:51:36 +00:00
Alex Converse
00bbe27631 VP3: Do not ignore error from read_huffman_tree().
Originally committed as revision 17090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 01:39:33 +00:00
Björn Axelsson
ffe2c09d46 Fix timestamp parsing in XSUB decoder.
Patch by Björn Axelsson gecko A acc D umu D se

Originally committed as revision 17087 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-09 00:18:26 +00:00
Diego Biurrun
5bfd3147f8 cosmetics: Fix a few typos and use a consistent codec long name.
Originally committed as revision 17084 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 23:32:46 +00:00
Diego Biurrun
fca93859b2 Remove unused variables.
Originally committed as revision 17083 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 23:28:21 +00:00
Diego Biurrun
4b81366b07 Add av_cold attribute to init function.
Originally committed as revision 17082 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 23:25:56 +00:00
Diego Biurrun
27030ee4e9 Remove unused variables.
Originally committed as revision 17081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 23:24:26 +00:00
Diego Biurrun
01c534371c typo: CODEC_ID_cljr --> CODEC_ID_CLJR
Originally committed as revision 17080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 23:19:29 +00:00
Ivan Schreter
4d8eb2e899 Fix a const related warning
Patch by Ivan Schreter ( schreter gmx net )

Originally committed as revision 17073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 21:22:18 +00:00
Ivan Schreter
dd02ea118b Replace hard-coded SEI type constants with symbolic names
Patch by Ivan Schreter ( schreter gmx net )

Originally committed as revision 17064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 20:28:12 +00:00
Michael Niedermayer
eb8a25c895 Clarify has_b_frames doxy.
Originally committed as revision 17063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 18:56:33 +00:00
Loren Merritt
3daa434a40 ff_add_hfyu_median_prediction_mmx2
overall ffvhuff decoding speedup: 28% on core2, 25% on k8.

Originally committed as revision 17059 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 17:45:30 +00:00
Loren Merritt
6166516d1f re-enable mid_pred asm on x86_64. (broke in r16681)
Originally committed as revision 17058 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 17:44:04 +00:00
Baptiste Coudurier
353f87b8d4 fix typo in h264dsp_mmx (no effect currently as the function is not used), approved by Dark Shikari on IRC
Originally committed as revision 17046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 06:35:21 +00:00
Baptiste Coudurier
8468664bd8 Remove 'const' qualifier from variable in av_parse_video_frame_size().
Thus only one warning is printed due to assignment instead of 2 from strtol.

Originally committed as revision 17045 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 06:11:50 +00:00
Baptiste Coudurier
8eb027c83c remove useless cast, it does not remove warning, encode prototype must be changed
Originally committed as revision 17044 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 06:03:10 +00:00
Baptiste Coudurier
a7573719e5 remove warning about incompatible pointer
Originally committed as revision 17043 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08 05:49:42 +00:00
Kostya Shishkov
432f1f11ea Move RV3/4 frame type check up so 1-slice unanchored B-frames are checked, too.
Originally committed as revision 17031 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-07 10:46:51 +00:00
Kostya Shishkov
186f155e1c Add decoder flush after seeking for RV3/4 decoders
Originally committed as revision 17030 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-07 09:35:16 +00:00
Stefano Sabatini
9d385cfec4 Drop the deprecated function register_avcodec() at the next major
version bump.

Originally committed as revision 17028 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 23:54:50 +00:00
Stefano Sabatini
9be26823b9 Replace the calls to the deprecated function register_avcodec() with
corresponding calls to avcodec_register().

Originally committed as revision 17027 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 23:50:54 +00:00
Stefano Sabatini
85662f4935 Rename register_avcodec() as avcodec_register() and deprecate the old
function name.

Originally committed as revision 17026 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 23:46:15 +00:00
Michael Niedermayer
271e6ddd4a Fix list of input pix_fmts supported by GIF. This makes it work with swscale.
It also allows encoding GIF with a 4-bit palette and with a graycale one as a
side effect.

Originally committed as revision 17019 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 13:04:39 +00:00
Michael Niedermayer
6337178b4f Ensure that the palette is set in data[1] for all 8bit formats.
Also document it.

Originally committed as revision 17018 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 12:59:50 +00:00
Jai Menon
9a77d59a89 Use libopenjpeg for jpeg2k decoding.
Patch by Jaikrishnan Menon

Originally committed as revision 17017 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-06 11:49:31 +00:00
Michael Niedermayer
71a48ff23c Add size_in_bits to PutBitContext
Originally committed as revision 17006 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-05 18:25:01 +00:00
Peter Ross
d8964f3afa Electronic Arts TQI decoder
Originally committed as revision 17002 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-05 08:58:35 +00:00
Peter Ross
44ba8b650f don't assume quant_matrix[0]==8 in ff_mpeg1_decode_block_intra(). this is required for the Electronic Arts TQI decoder.
Originally committed as revision 17001 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-05 07:59:11 +00:00
Peter Ross
50240e5646 convert mpeg1_decode_block_intra() to inline global
Originally committed as revision 17000 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-05 07:57:11 +00:00
Måns Rullgård
5317c95b75 Remove CONFIG_H264_ENCODER references
Originally committed as revision 16996 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-04 21:28:58 +00:00
Diego Biurrun
f0d5437275 Remove documentation of non-existing function parameters.
Originally committed as revision 16994 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-04 20:43:17 +00:00
Diego Biurrun
181d8a7f3a Remove unused CONFIG_H264_ENCODER #define.
Originally committed as revision 16993 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-04 20:41:09 +00:00
Diego Biurrun
c7f03f4e2a Remove pointless '#if CONFIG_ENCODERS' around forward declarations.
Originally committed as revision 16992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-04 20:36:37 +00:00
Roman Shaposhnik
f52901b305 No need to compute stype
Originally committed as revision 16988 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-04 16:16:53 +00:00
Alex Converse
5363c43ea8 Add av_cold attributes to *_init and *_end functions.
Originally committed as revision 16980 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 23:09:00 +00:00
Alex Converse
2c823b3ccc VP3: Prevent stack corruption from an unset custom coding method.
Originally committed as revision 16978 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 22:59:47 +00:00
Gwenole Beauchesne
cb99c652eb Add fields to H264Context and SPS for upcoming VA API support.
Patch by Gwenole Beauchesne gbeauchesne A splitted-desktop dotcom

Originally committed as revision 16976 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 20:49:02 +00:00
Stefan Gehrer
cc55c46498 check validity of pointer srcC
Originally committed as revision 16973 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 17:56:24 +00:00
Michael Niedermayer
152714e1f1 Fix unknown header 10001000 / http://samples.mplayerhq.hu/real/VC-RV10/thankyou.rm / issue809
Originally committed as revision 16967 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-03 03:01:17 +00:00
Reimar Döffinger
0b178e5629 Add av_ prefix to LZO stuff and thus make it officially part of the public API.
Keep lzo1x_decode until the next major version bump for binary compatibility.

Originally committed as revision 16946 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 20:16:00 +00:00
Benjamin Larsson
aa8d024ce2 Allocate trellis tables on heap only when needed.
Originally committed as revision 16945 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 18:51:02 +00:00
Robert Swain
b17f1a0764 Doxygen defgroups throw a warning if they don't have a title as well as a name
Originally committed as revision 16939 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 10:31:51 +00:00
Diego Biurrun
70e493991d cosmetics: Place all subtitle entries together.
Originally committed as revision 16934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 09:35:23 +00:00
Justin Ruggles
faeb2bd41d flacdec: set default sample_fmt before parsing extradata
Originally committed as revision 16926 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 01:53:40 +00:00
Diego Biurrun
6bf959fee5 Add av_unused to conditionally used variable, fixes the warning:
h264.c:6464: warning: unused variable 'dir'

Originally committed as revision 16925 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-02 00:35:25 +00:00
Kostya Shishkov
55b557ece1 Silence compiler warnings for XL decoder
Originally committed as revision 16921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 16:14:54 +00:00
Kostya Shishkov
b709397530 Make WNV1 decoder use temporary buffer for bit-reversed input
Originally committed as revision 16920 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 16:11:33 +00:00
Diego Biurrun
94f694a476 cosmetics: Remove period after copyright statement non-sentence.
Originally committed as revision 16919 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 15:52:01 +00:00
Kostya Shishkov
ad4d0b9ef2 Make TM2 decoder byteswap input into separate buffer instead of doing it in-place.
Originally committed as revision 16918 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 15:27:44 +00:00
Kostya Shishkov
a2a986371c Factorize stream reading in TM2 decoder
Originally committed as revision 16917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 15:20:20 +00:00
Kostya Shishkov
3ffabd4e49 Silence two pointer assignment compiler warnings in rv34.c
Originally committed as revision 16916 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 15:03:40 +00:00
Kostya Shishkov
5d44b2a138 Silence useless compiler warning when passing AVFrame* instead of AVPicture*
to ff_msrle_decode()

Originally committed as revision 16915 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 14:44:51 +00:00
Diego Biurrun
bc4cccd483 Remove H.264 encoder initialization.
We have no H.264 encoder to speak of and this produces warnings.

Originally committed as revision 16914 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 14:07:08 +00:00
Diego Biurrun
bad5537e2c Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.

Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 02:00:19 +00:00
Diego Biurrun
65ffe3e85c Fix filenames in doxygen comments.
Originally committed as revision 16911 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 01:29:30 +00:00
Baptiste Coudurier
7591b30499 remove some warnings due to avctx->execute
Originally committed as revision 16909 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 22:49:58 +00:00
Måns Rullgård
a95d00b287 shorten: trivial simplification of signature check
Originally committed as revision 16908 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 22:30:49 +00:00
Ben Hutchings
f579d24bad assume widescreen when ratio also > 17, patch by Ben Hutchings, ben at decadent dot org dot uk
Originally committed as revision 16907 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 22:16:17 +00:00
Baptiste Coudurier
a4fd53c427 fix decoding 720p50 audio samples
Originally committed as revision 16906 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 22:10:23 +00:00
Justin Ruggles
7f3a6a0553 cosmetics: change comment type and vertical alignment
Originally committed as revision 16882 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 02:11:37 +00:00
Justin Ruggles
64cb376562 cosmetics: add some documentation to FLACContext
Originally committed as revision 16881 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 02:10:43 +00:00
Roman Shaposhnik
1a969d6dfe Cosmetics: fixing indentation
Originally committed as revision 16880 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:50:18 +00:00
Roman Shaposhnik
77cd35cdb5 unrolling encoding loops
Originally committed as revision 16879 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:46:25 +00:00
Roman Shaposhnik
b45ba151cf Cosmetics: simplifying static initialization
Originally committed as revision 16878 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:41:04 +00:00
Roman Shaposhnik
85eca52be4 simplifying DIF encoding process
Originally committed as revision 16877 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:39:05 +00:00
Roman Shaposhnik
76bd5997a9 Cosmetics: fixing the indentation
Originally committed as revision 16876 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:37:31 +00:00
Roman Shaposhnik
9b8390bfbe factoring code into dv_init_enc_block
Originally committed as revision 16875 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:36:38 +00:00
Roman Shaposhnik
5c2a9dd64e Cosmetics: replacing 0 with NULL for pointer assignment
Originally committed as revision 16874 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:36:00 +00:00
Roman Shaposhnik
2331854d0b Cosmetics: moving the function definition around
Originally committed as revision 16873 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:35:29 +00:00
Roman Shaposhnik
b25d439233 Replacing the constant with a macro
Originally committed as revision 16872 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:34:44 +00:00
Justin Ruggles
82159ad992 flacdec: add support for SAMPLE_FMT_32
Originally committed as revision 16871 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 01:20:40 +00:00
Bitbreaker/METALVOTZE X
99b3812265 Fix documentation of the return value of avcodec_encode_video().
ripped out of a patch by Bitbreaker/METALVOTZE X bitbreaker ihlaid de Y

Originally committed as revision 16870 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-31 00:45:34 +00:00
Diego Biurrun
67a7e4dbcf Use '#if defined()' for OS-specific preprocessor checks.
Avoids some warnings about undefined preprocessor directives.

Originally committed as revision 16869 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 23:50:13 +00:00
Måns Rullgård
e1f7cb7fa0 ARM: NEON optimised vector_fmul_window
Originally committed as revision 16868 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 23:13:19 +00:00
Måns Rullgård
dd927e2e62 ARM: NEON optimised vector_fmul
Originally committed as revision 16867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 23:13:15 +00:00
Stefan Gehrer
8915009813 remove duplicate tables
Originally committed as revision 16866 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 20:39:39 +00:00
Alex Converse
63cae55d62 Use the new RDFT code in the QDM2 decoder.
Originally committed as revision 16865 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 20:33:29 +00:00
Alex Converse
6860254044 Add the rdft family of transforms (fft/ifft of an all real sequence) to dsputil.
Originally committed as revision 16864 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 20:15:48 +00:00
Diego Biurrun
dc8a7c93d3 Add missing void keyword to parameterless function declarations.
Originally committed as revision 16860 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 18:38:25 +00:00
Gwenole Beauchesne
f92a6c66ed Record B-fraction index from frame header and two fields from entry point structure
into VC-1 context.

Patch by Gwenole Beauchesne
(gbeauchesne <whirlpool> splitted <dash> desktop <dit> com)
Thread [PATCH][VC-1] Record extra syntax elements for VA API support

Originally committed as revision 16859 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 17:15:08 +00:00
Gwenole Beauchesne
3021a8a70b Make ff_h263_resync() return the bit position of the resync_marker or
a negative number if none was found.
Patch by Gwenolé Beauchesne: gbeauchesne splitted minus desktop com

Originally committed as revision 16858 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 17:13:03 +00:00
Gwenole Beauchesne
73f184936d Use a constant instead of a magic number.
Patch by Gwenolé Beauchesne: gbeauchesne splitted minus desktop com

Originally committed as revision 16856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 08:18:06 +00:00
Stefan Gehrer
2ed421134e avoid indeterminate order of accessing src
Originally committed as revision 16855 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-30 06:38:46 +00:00
Gwenole Beauchesne
2e584eea4b cosmetics: Add empty line for consistent formatting.
patch by Gwenolé Beauchesne, gbeauchesne splitted-desktop com

Originally committed as revision 16852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-29 22:08:32 +00:00
Alex Converse
eea325645c Mark ff_fft_end av_cold.
Originally committed as revision 16851 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-29 17:08:51 +00:00
Loren Merritt
5a446bc88e fix an overflow in vc1 intra overlap filter
Originally committed as revision 16845 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 11:12:19 +00:00
Kostya Shishkov
81169111ef Fix Doxygen comments for VC-1 decoder.
Originally committed as revision 16843 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 07:16:52 +00:00
Kostya Shishkov
1aa7335149 Fix Doxygen comments for RV3/4 decoder.
Originally committed as revision 16842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 07:16:20 +00:00
Kostya Shishkov
20642e2840 Fix Doxygen comments for APE decoder.
Originally committed as revision 16841 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-28 07:15:22 +00:00
Måns Rullgård
ca6532f620 ARM: remove some unused macro arguments
Originally committed as revision 16824 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 16:34:10 +00:00
Måns Rullgård
d8f9269dc6 ARM: reorder some instructions in put_pixels*_arm for speed gains
Originally committed as revision 16823 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 16:06:51 +00:00
Måns Rullgård
00c5727d90 ARM: replace jump tables with conditional branches
Originally committed as revision 16822 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 16:06:47 +00:00
Måns Rullgård
d9e68f5c1a ARM: replace explicit literal loads with ldr Rd, =lit
Originally committed as revision 16821 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 16:06:44 +00:00
Måns Rullgård
fc252eba02 ARM: change alignment of loops in put_pixels*_arm to 32
Originally committed as revision 16820 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 16:06:41 +00:00
Måns Rullgård
4f928a4d2d ARM: optimised mid_pred()
Originally committed as revision 16819 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 16:06:38 +00:00
Måns Rullgård
1214bd86dc ARM: allow register operands for shifts in MULL()
Originally committed as revision 16818 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 16:06:34 +00:00
Stefan Gehrer
620b8a2ed7 fix doxygen file reference
Originally committed as revision 16816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 06:04:01 +00:00
Aurelien Jacobs
73c87551e5 vp5: don't try decoding a P frame before any I frame was parsed
fix issue802

Originally committed as revision 16813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-27 00:23:27 +00:00
Diego Biurrun
99ed41a808 Fix filenames in Doxygen comments.
Originally committed as revision 16811 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 22:51:16 +00:00
Stefano Sabatini
e1b6bdbb83 Change "H.263 Intel" long name to "Intel H.263".
Originally committed as revision 16808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 19:46:47 +00:00
Kostya Shishkov
9289a32a8e Fix AAC data smuggling:
aactab.h declares only 316 of 428 elements in ff_aac_pow2sf_tab[]

Originally committed as revision 16805 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 13:44:09 +00:00
Benoit Fouet
a6cef9651d Remove unneeded check.
Originally committed as revision 16803 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 09:42:48 +00:00
Benoit Fouet
a44cb89b0f Fix an exploit in indeo by checking we are not writing out of the strip array.
Fixes issue 655

Originally committed as revision 16802 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 09:41:23 +00:00
David Conrad
137ae32760 Workaround for gcc 3.4 to align sh properly
Originally committed as revision 16797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-26 03:40:48 +00:00
Diego Biurrun
c60208e7a1 Directly #include some required headers.
Originally committed as revision 16780 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 19:11:10 +00:00
Reimar Döffinger
724cc2dfaa Use AV_WL32/AV_WB32 in bitstream.h
Originally committed as revision 16778 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 18:12:13 +00:00
Stefano Sabatini
57be00bea7 Make more descriptive the long names for the various variants of H.263.
Originally committed as revision 16775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 16:59:48 +00:00
Måns Rullgård
bd53b426b7 ARM: NEON optimised H.264 weighted prediction
Originally committed as revision 16771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 13:04:45 +00:00
Måns Rullgård
5a29589b81 ARM: NEON optimised H.264 biweighted prediction
Originally committed as revision 16770 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 13:04:41 +00:00
Diego Biurrun
4ceb4e3102 Add required headers to fix warnings during 'make checkheaders'.
Originally committed as revision 16769 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 11:16:25 +00:00
Justin Ruggles
aeb987cebf flacdec: get total number of samples from STREAMINFO
Originally committed as revision 16768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 02:27:02 +00:00
Justin Ruggles
ce7e82144f move FLAC_STREAMINFO_SIZE to flac.h
Originally committed as revision 16766 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 00:34:32 +00:00
Justin Ruggles
d38b88213e define FLAC metadata types in flac.h
Originally committed as revision 16765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 00:33:25 +00:00
Justin Ruggles
9f3d3ecf92 flacdec: cosmetics: some line wrapping at 80 chars
Originally committed as revision 16763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 19:05:52 +00:00
Justin Ruggles
1df0390eed flacdec: cosmetics: indentation
Originally committed as revision 16762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 18:52:30 +00:00
Justin Ruggles
1bec121f9e flacdec: cosmetics: use consistent coding style (K&R)
Originally committed as revision 16761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 18:51:43 +00:00
Diego Biurrun
799fde37cc Add a check for ppc4xx instructions; rename preprocessor directive accordingly.
Originally committed as revision 16756 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 17:44:46 +00:00
Diego Biurrun
f5b96597bd Remove pointless #if HAVE_ALTIVEC around internal header #include
and function declarations.

Originally committed as revision 16755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 17:32:06 +00:00
Justin Ruggles
13de8a080a cosmetics: indentation
Originally committed as revision 16753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 16:13:21 +00:00
Justin Ruggles
5305f40bb8 flacdec: change several AV_LOG_DEBUG to AV_LOG_ERROR
Originally committed as revision 16752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 16:03:17 +00:00
Justin Ruggles
9f2db54594 flacdec: remove another unneeded debugging statement
Originally committed as revision 16751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 16:02:30 +00:00
Justin Ruggles
f7f3e3bf4a flacdec: remove unneeded debugging statements
Originally committed as revision 16750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 16:01:20 +00:00
Justin Ruggles
c5706efd57 flacdec: remove some unused code
Originally committed as revision 16749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 15:46:19 +00:00
Diego Biurrun
175da7dab7 Add required headers to fix 'make checkheaders'.
Originally committed as revision 16746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 14:46:00 +00:00
Stefan Gehrer
19e017f211 remove alloc_table_0 and alloc_table_2, the same
data exists in alloc_table_1 and alloc_table_3

Originally committed as revision 16745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 14:32:22 +00:00
Stefan Gehrer
45beb850de remove zigzag_scan8x8, it is the same as ff_zigzag_direct
Originally committed as revision 16744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 14:30:15 +00:00
Stefan Gehrer
3e7233688a avoid duplication of size_table and offset_table
Originally committed as revision 16743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 14:28:08 +00:00
Stefan Gehrer
fa79489fd3 avoid duplication of dquant_code
Originally committed as revision 16742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 14:26:40 +00:00
Vitor Sessak
e0df9e4425 Do not allocate RoqTempData on the stack
Originally committed as revision 16739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-24 08:15:43 +00:00
Justin Ruggles
8f51144bf4 rename flac.c to flacdec.c
Originally committed as revision 16735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-23 22:27:19 +00:00
Andreas Öman
cf92cec7d8 Avoid allocating MPADecodeContext on stack.
Instead move relevant fields into MPADecodeHeader and use it
where appropriate.

Originally committed as revision 16728 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-23 12:09:32 +00:00
Kostya Shishkov
1cae2ef9a6 Remove the block with always false condition from vc1_parse_frame_header()
Originally committed as revision 16726 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-23 06:33:04 +00:00
Kostya Shishkov
a28d522491 VC-1 postproc field is 2 bits wide while decoder read only single bit.
Spotted by Stephen Warren.

Originally committed as revision 16725 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-23 06:31:17 +00:00
Justin Ruggles
959e000627 flacdec: add support for 3 additional sample rate codes
Originally committed as revision 16723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-22 22:23:58 +00:00
Alex Converse
3c4ea6d5ab Mark ff_fft_init with av_cold.
Originally committed as revision 16722 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-22 19:48:10 +00:00
Alex Converse
8f05c995fd Clean up FFT related comments.
Originally committed as revision 16721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-22 19:46:23 +00:00
Baptiste Coudurier
4d6f600c58 Add const, remove warning:
libavcodec/audioconvert.c:190: warning: initialization discards qualifiers from pointer target type

Originally committed as revision 16716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-22 00:31:26 +00:00
Kostya Shishkov
716ba2d01c VMD first chunk of audio is not coded as many separate chunks of block_align
size. Thus, make demuxer and decoder handle it as a whole.

Originally committed as revision 16708 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-21 13:24:35 +00:00
Carl Eugen Hoyos
0d9becc77c Sort VdpPictureInfo alphabetically.
Originally committed as revision 16705 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-20 22:53:25 +00:00
Carl Eugen Hoyos
27052238c0 Cosmetics: Fix indentation after last commit.
Originally committed as revision 16700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-20 09:36:28 +00:00
NVIDIA Corporation
c5b42f4a80 Add VDPAU hardware accelerated decoding for WMV3 and VC1 which can
be used by video players.

Original patch by NVIDIA corporation.

Originally committed as revision 16699 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-20 09:28:36 +00:00
Diego Biurrun
c2fef0c163 Use "" instead of <> when #including non-system headers.
Originally committed as revision 16689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-19 23:41:46 +00:00
Diego Biurrun
406792e7b0 cosmetics: Remove pointless period after copyright statement non-sentences.
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-19 15:46:40 +00:00
Stefano Sabatini
9c868219e9 Replace calls to the deprecated function av_init_random() with
corresponding calls to av_random_init().

Originally committed as revision 16682 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 23:04:33 +00:00
Aurelien Jacobs
199436b952 moves mid_pred() into mathops.h (with arch specific code split by directory)
Originally committed as revision 16681 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 22:57:40 +00:00
Måns Rullgård
77c4537313 ARM: simplify ff_put/avg_h264_chroma_mc4/8_neon definitions, no code change
Originally committed as revision 16677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 20:43:11 +00:00
Måns Rullgård
fd6045bae5 Alpha: fix pix_abs16
Originally committed as revision 16675 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 18:31:52 +00:00
Jason Garrett-Glaser
5a44906d8e Fix 10L in r16670 (broke deblocking code)
Originally committed as revision 16671 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 07:20:12 +00:00
Jason Garrett-Glaser
0a359cf157 Faster VC-1 C loopfilter using lots of xor magic
Originally committed as revision 16670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 07:14:36 +00:00
Måns Rullgård
2a839eeb02 dct-test: add Alpha idct
Originally committed as revision 16669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 05:52:20 +00:00
Måns Rullgård
179c56b879 Alpha: add ff_ prefix to idct functions
Originally committed as revision 16668 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 05:52:17 +00:00
Måns Rullgård
7d95741f83 Alpha: indentation
Originally committed as revision 16667 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 05:52:15 +00:00
Måns Rullgård
74c4746344 Alpha: proper IDCT selection
Only select the Alpha IDCT if auto or explicitly requested.  Also
disable it in lowres mode.

Originally committed as revision 16666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 05:52:12 +00:00
Måns Rullgård
c2fbf89398 Alpha: add some const, kill some warnings
Originally committed as revision 16665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18 05:52:08 +00:00
Måns Rullgård
9dbd3ed6c3 Alpha: factor common parts from dct_unquantize_h263_intra/inter_axp
Originally committed as revision 16661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 21:44:58 +00:00
Måns Rullgård
1617220799 Alpha: fix dct_unquantize_h263_inter/intra_axp()
Originally committed as revision 16660 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 21:44:56 +00:00
Stefan Gehrer
055dc116fc added demuxer for FunCom ISS audio files,
extended ADPCM decoder by ISS specific IMA variant

Originally committed as revision 16658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 20:08:43 +00:00
Vitor Sessak
8a569fee99 Use shared sine window instead of defining another one.
Originally committed as revision 16657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 20:06:08 +00:00
Carl Eugen Hoyos
3cd329a3b7 Fix compilation with --enable-libxvid.
Originally committed as revision 16655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 12:51:26 +00:00
Aurelien Jacobs
2bb6eba21d remove ff_get_fourcc() and use AV_RL32() instead
Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 12:21:01 +00:00
Aurelien Jacobs
9ce6c13879 export gcd function as av_gcd()
Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 11:13:33 +00:00
Carl Eugen Hoyos
0d3d172f32 Remove CODEC_ID_H264_VDPAU.
Originally committed as revision 16649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-17 01:17:04 +00:00
Stefan Gehrer
439c650301 remove duplicate tables
Originally committed as revision 16647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 20:46:38 +00:00
Stefan Gehrer
74a4371d74 use assignment of structure instead of memcpy
Originally committed as revision 16644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 17:58:38 +00:00
Kostya Shishkov
2c96535af7 WavPack hybrid mode support
Originally committed as revision 16643 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 17:46:19 +00:00
Stefan Gehrer
bef01ca08f rename XXX_t enums to cavs_XXX to fix POSIX namespace issue
Originally committed as revision 16642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 17:45:54 +00:00
Stefan Gehrer
e685e8eada rename vector_t to cavs_vector
Originally committed as revision 16641 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 17:20:17 +00:00
Carl Eugen Hoyos
2b3242253d Add mpeg1_vdpau decoder.
Originally committed as revision 16640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 16:50:32 +00:00
Kenan Gillet
0ba39dd1a9 Split ff_log_missing_feature into ff_log_missing_feature
and ff_log_ask_for_sample.
Patch by Kenan Gillet: gmail_adress(author)

Originally committed as revision 16637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 16:20:42 +00:00
Carl Eugen Hoyos
e7edb2ea93 12l: Fix compilation with --disable-vdpau.
Originally committed as revision 16630 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 02:50:20 +00:00
NVIDIA Corporation
d37edddc09 Add VDPAU hardware accelerated decoding for MPEG1 and MPEG2 which can
be used by video players.

Original patch by NVIDIA corporation.

Originally committed as revision 16628 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 02:14:07 +00:00
Aurelien Jacobs
8b192330d5 explicitly disable CONFIG_AUDIO_NONSHORT
Originally committed as revision 16620 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-16 00:03:51 +00:00
Aurelien Jacobs
469f5f251d WORDS_BIGENDIAN must be checked with #ifdef
Originally committed as revision 16608 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 23:20:43 +00:00
Aurelien Jacobs
49cdad8d78 simplify: group all the AUDIO_NONSHORT parameters in the same place
Originally committed as revision 16602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 21:41:05 +00:00
Aurelien Jacobs
e29a95b1b8 libavutil/lzo.h is a local header
Originally committed as revision 16601 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 21:34:48 +00:00
Aurelien Jacobs
49fb20cb8a replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
and remove all ENABLE_ definitions.

Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 17:19:17 +00:00
Måns Rullgård
7356aaa786 Fix mpeg audio regression test failure
Originally committed as revision 16599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 09:26:07 +00:00
Diego Biurrun
0f6a659ddf Replace #ifdef CONFIG_ preprocessor check by #if CONFIG_.
CONFIG_ changed semantics and is always defined now.

Originally committed as revision 16598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 07:57:12 +00:00
Diego Biurrun
576286ba81 Remove one more forgotten instance of USE_HIGHPRECISION indirection.
Originally committed as revision 16597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 07:55:43 +00:00
Diego Biurrun
ad1eebe360 Use CONFIG_MPEGAUDIO_HP directly instead of USE_HIGHPRECISION indirection.
Originally committed as revision 16594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 00:48:17 +00:00
Baptiste Coudurier
6d32ec6ce9 cleanup gif, use BISTREAM_WRITER_LE
Originally committed as revision 16591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 00:27:43 +00:00
Aurelien Jacobs
b250f9c66d Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 23:44:16 +00:00
Michael Niedermayer
062e7c3ca8 Avoid using sub_id in mpeg1/2video.
Originally committed as revision 16587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 21:13:45 +00:00
Michael Niedermayer
c9b3c0c740 Remove hack to print mp2/mp1 with codec_id of CODEC_ID_MP3.
Originally committed as revision 16583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 19:38:54 +00:00
Michael Niedermayer
a14d138cb8 Let the mpeg audio parser correct the codec_id.
Originally committed as revision 16582 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 19:35:34 +00:00
Michael Niedermayer
cb595b7f02 Add dummy mp1_decoder to complement the existing dummy mp2/mp3 decoders.
Originally committed as revision 16581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 19:32:08 +00:00
Michael Niedermayer
7f507b2d9e Add CODEC_ID_MP1.
Originally committed as revision 16580 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 19:13:08 +00:00
Kostya Shishkov
7a96cd3123 VC-1 display dimensions should affect coded dimensions only (I think)
Originally committed as revision 16578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 08:05:40 +00:00
Kostya Shishkov
e9ca5f0892 Print VC-1 aspect ratio in debug
Originally committed as revision 16577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 08:03:45 +00:00
Kostya Shishkov
820089cb06 421l: fix loop filter for P-frames in VC-1
Originally committed as revision 16576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 08:02:31 +00:00
Kostya Shishkov
34f3f6d129 Cinepak strip ID is a single byte
Originally committed as revision 16575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 08:00:37 +00:00
Kostya Shishkov
d94b1f12c5 Cinepak strip and chunk sizes are 24-bit, not 16-bit as it was thought earlier.
This fixes issue 744

Originally committed as revision 16574 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 06:43:46 +00:00
Aurelien Jacobs
af5f434f8c add the necessary include for LIBAV*_VERSION_*
Originally committed as revision 16571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 00:14:43 +00:00
Måns Rullgård
9a0cf9f8f8 ARM: use push/pop pseudo-instructions in simple_idct_armv6.S
Originally committed as revision 16570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-12 20:37:49 +00:00
Måns Rullgård
e9497946bb ARM: simple_idct_armv6.S whitespace cosmetics
Originally committed as revision 16569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-12 20:37:39 +00:00
Måns Rullgård
7f727ace2a ARM: clean up pc-relative references in simple_idct_armv6.S
Originally committed as revision 16568 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-12 20:37:33 +00:00
Måns Rullgård
3b16c71984 ARM: use rX register names in simple_idct_armv6.S
Originally committed as revision 16567 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-12 20:37:29 +00:00
Stefano Sabatini
d9513de67c Add missing inclusion of libavutil/intreadwrite.h, fix compilation when
libtheora is enabled.

Originally committed as revision 16562 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 23:26:52 +00:00
Diego Biurrun
6a5d31ac25 Fix build: Add intreadwrite.h and bswap.h #includes where necessary.
Originally committed as revision 16556 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 22:19:48 +00:00
Diego Biurrun
84f8d1f604 Add missing #include to fix 'make checkheaders'.
Originally committed as revision 16545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 20:12:14 +00:00
Michael Niedermayer
c8af74a99b Increase BUFFER_SIZE.
Fixes issue719.

Originally committed as revision 16541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 16:35:04 +00:00
Michael Niedermayer
203fa6b4d1 fix indention
Originally committed as revision 16540 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 16:17:36 +00:00
Michael Niedermayer
2083648383 All negative values are errors not just -1.
Originally committed as revision 16539 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 16:16:33 +00:00
Kostya Shishkov
42b7678d65 30l: when reading mb_offset in RV30 slice header its size
should be calculated from current frame dimensions

Originally committed as revision 16536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 10:50:00 +00:00
Benjamin Larsson
336c2ca585 Add size that is needed for the wmapro codec
Originally committed as revision 16533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 10:40:05 +00:00
Kostya Shishkov
6751a00a3f RV30 decoder passes possible frame sizes in extradata and selects
an appropriate frame size from them in slice, make my decoder do
that as well.

This fixes issue 779

Originally committed as revision 16529 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 08:03:45 +00:00
Carl Eugen Hoyos
1717031362 Remove H264Context from vdpau_internal.h.
Originally committed as revision 16524 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-11 00:48:20 +00:00
Carl Eugen Hoyos
10652dd54f Fix OBJS-$(CONFIG_H264_VDPAU_DECODER).
Originally committed as revision 16522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-10 23:17:07 +00:00
Carl Eugen Hoyos
c639fc7213 Cosmetics: Rename ff_vdpau_h264_add_data_chunk as ff_vdpau_add_data_chunk.
Originally committed as revision 16521 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-10 23:00:48 +00:00
Carl Eugen Hoyos
1968e438d0 Use only MpegEncContext in ff_vdpau_h264_add_data_chunk.
Originally committed as revision 16520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-10 22:57:51 +00:00
Carl Eugen Hoyos
6f0b5d6fae Cosmetics: Break long line.
Originally committed as revision 16519 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-10 22:55:26 +00:00
Carl Eugen Hoyos
63bfcb6997 Fill range_map* in VC1Context.
Originally committed as revision 16515 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-10 09:55:55 +00:00
Stefano Sabatini
78acb9e74b Move the AVCodecContext options definition to a dedicated file, reduce
the utils.c clutter.

Originally committed as revision 16514 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-10 09:53:21 +00:00
Carl Eugen Hoyos
7fd3c09e0f Move vdpau_h264_set_reference_frames() call from vdpauvideo.c into h264.c.
Originally committed as revision 16513 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-10 02:45:07 +00:00
Carl Eugen Hoyos
7eb6ed78ea Move VDPAU check, make future VDPAU patches smaller.
Originally committed as revision 16508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-09 22:22:40 +00:00
Carl Eugen Hoyos
49186206eb Add refdist_flag to VC1Context.
Originally committed as revision 16504 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-09 16:51:21 +00:00
Måns Rullgård
6dde9f8c20 SH4: fix typo in asm constraint
Originally committed as revision 16503 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-09 03:05:11 +00:00
Carl Eugen Hoyos
090846f3b9 Rename ff_VDPAU as ff_vdpau.
Originally committed as revision 16492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 23:48:32 +00:00
Carl Eugen Hoyos
6cc01c245f Rename bitstreamBuffers* as bitstream_buffers*
Originally committed as revision 16491 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 23:42:07 +00:00
Ramiro Polla
1bb04d5a44 configure: allow to disable sse code.
Based on patch by Michael Kostylev <mik at it-1 dot ru>

Originally committed as revision 16490 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 23:38:54 +00:00
Diego Biurrun
218a6022e7 Only #include svq3.c if the SVQ3 decoder is enabled.
Originally committed as revision 16487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 23:03:04 +00:00
Diego Biurrun
ed09249c71 The SVQ3 decoder uses ff_svq1_packet_checksum from svq1dec.c.
Originally committed as revision 16486 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 22:54:59 +00:00
Robert Swain
158b39126d Support ADTS AAC files in the ffaac decoder (limited to streams containing one
raw_data_block() per ADTS frame)

Patch by Alex Converse ( alex converse gmail com) based on a patch by Robert
Swain ( robert swain gmail com )

Originally committed as revision 16485 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 22:09:21 +00:00
Michael Niedermayer
1b9bbf8674 Document the need of buf=NULL buf_size=0 at the end to obtain all frames.
Originally committed as revision 16482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 19:55:08 +00:00
Diego Biurrun
0d9efa287a Add missing headers to allow 'make checkheaders' to pass.
Originally committed as revision 16481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 18:42:24 +00:00
Diego Biurrun
25bd48bdb4 Use <> instead of "" for system headers.
Originally committed as revision 16480 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 18:24:16 +00:00
Alex Converse
11d6f38cc9 Factorise enum of AC3 error types to be usable by AAC in the ADTS patch that
will follow

Patch by Alex Converse ( alex converse gmail com )

Originally committed as revision 16479 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 18:10:10 +00:00
David Conrad
b06688ffed Add AltiVec versions of h264_idct_add(8|16|16intra),
allowing to re-enable ff_h264_idct_add_altivec's usage.

Patch by David Conrad %lessen42 A gmail P com%

Originally committed as revision 16465 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 13:54:26 +00:00
Diego Biurrun
8b6871ed4d Disable SVQ3 checks if SVQ3 support is not compiled in.
Originally committed as revision 16462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-07 01:58:04 +00:00
David Conrad
4929c63679 Add Altivec version of vector_fmul_window.
Patch by David Conrad %lessen42 A gmail P com%

Originally committed as revision 16459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 23:03:33 +00:00
David Conrad
8b2bc85f29 add AltiVec implementation of weight_h264_pixels(16|8)x(16|8|4)
Patch by David Conrad %lessen42 A gmail P com%

Originally committed as revision 16458 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 22:29:26 +00:00
Aurelien Jacobs
16cda1535e ensure that no GPL code is linked to LGPL only libavcodec
Originally committed as revision 16456 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 22:01:57 +00:00
Carl Eugen Hoyos
448ecb68e3 Rename mpeg_set_pixelformat() as mpeg_get_pixelformat().
Originally committed as revision 16455 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 18:58:18 +00:00
Carl Eugen Hoyos
93c69a94ea Factorise setting of avctx->pix_fmt.
Originally committed as revision 16453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 15:16:33 +00:00
David Conrad
aa9a9b7af7 Fix float_to_int16_altivec prototype to match float_to_int16's in dsputil.h
(parameter 'len' is a long not an int).
Patch by David Conrad % lessen42 A gmail P com %

Originally committed as revision 16451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 12:51:35 +00:00
David Conrad
628653449c fix compilation with GCC-4.3+
patch by David Conrad + fix by myself

Originally committed as revision 16450 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 10:44:45 +00:00
David Conrad
54b9095833 offset and weights are signed, fixes some non-bitexact issues.
Patch by David Conrad %lessen42 A gmail P com%

Originally committed as revision 16449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 10:35:06 +00:00
Carl Eugen Hoyos
373745ae62 1l: Forgot to rename header guard.
Originally committed as revision 16448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-06 10:13:25 +00:00
Carl Eugen Hoyos
272081b0f8 Export VDPAU support by installing vdpau.h.
Originally committed as revision 16445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 23:25:58 +00:00
Carl Eugen Hoyos
8423186e65 Rename vdpau_render.h as vdpau.h.
Originally committed as revision 16444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 23:23:32 +00:00
David Conrad
df7fb43569 add AltiVec implementation of biweight_h264_pixels(16|8)x(16|8|4)
Patch by David Conrad %lessen42 A gmail P com%

Originally committed as revision 16443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 23:15:14 +00:00
David Conrad
c663cb0d4f AltiVec version of h264_idct(8)_dc_add
Patch by David Conrad %lessen42 A gmail P com%

Originally committed as revision 16442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 22:13:42 +00:00
Carl Eugen Hoyos
5d9c0615be Ministry of English Composition treatment: s/Alloced/Allocated
Originally committed as revision 16439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 18:44:32 +00:00
Carl Eugen Hoyos
91d553c386 Remove leading underscore from union declaration.
Originally committed as revision 16437 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 14:46:04 +00:00
Diego Biurrun
c47d146be8 Add missing 'void' keyword to parameterless function declarations.
Originally committed as revision 16436 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 13:57:43 +00:00
Diego Biurrun
5fd9c8b94a spelling/grammar and whitespace cosmetics
Originally committed as revision 16435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 11:49:15 +00:00
Jason Garrett-Glaser
26ef65daf3 50l: Reenable error resilience for H264 (Patch by Dark Shikari).
Originally committed as revision 16434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 08:46:59 +00:00
Carl Eugen Hoyos
f2c214a1ec Cosmetics: Fix indentation.
Originally committed as revision 16433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 00:48:44 +00:00
Carl Eugen Hoyos
e731b5c3d8 100l: Add a deleted '{'.
Originally committed as revision 16432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-05 00:31:39 +00:00
NVIDIA Corporation
369122dd77 Add VDPAU hardware accelerated decoding for H264 which can be used by
video players.

Original patch by NVIDIA corporation.

Originally committed as revision 16431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 23:55:27 +00:00
Michael Niedermayer
a6d18a0e6a Move metadata API from avcodec to avformat.
Originally committed as revision 16425 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 18:58:49 +00:00
Michael Niedermayer
47146dfbf6 Generic metadata API.
avi is updated as example.
No version bump, the API still might change slightly ...
No update to ffmpeg.c as requested by aurel.

Originally committed as revision 16424 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 18:48:37 +00:00
Mathieu Velten
21ff7689da Use H264 MMX chroma functions to accelerate RV40 decoding.
Patch by Mathieu Velten (matmaul A gmail)

Originally committed as revision 16419 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-04 01:36:11 +00:00
Michael Niedermayer
1104a26a42 Bump LIBAVCODEC_VERSION_MINOR due to AVSubtitle changes.
Originally committed as revision 16418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 19:21:48 +00:00
Michael Niedermayer
f656106f76 Add type, text and ass to AVSubtitleRect.
Originally committed as revision 16417 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 19:20:50 +00:00
Michael Niedermayer
25b4c651a3 Replace AVSubtitleRect.rgba_palette and bitmap by AVPicture.
Originally committed as revision 16416 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 19:17:18 +00:00
Michael Niedermayer
ebc466bb5f Replace some fixed width variable from AVSubtitle* by normal int.
Originally committed as revision 16415 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 18:41:35 +00:00
Michael Niedermayer
052571e75a Forgot to update (I likely missed it due to its similar name to dvb...)
Originally committed as revision 16414 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 18:26:07 +00:00
Michael Niedermayer
2e94fb5d46 Future doxy for a few fields of AVSubtitleRect.
Originally committed as revision 16413 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 17:58:25 +00:00
Michael Niedermayer
db4fac64db Change AVSubtitle.rects to an array of pointers so ABI does not break
when the size of AVSubtitleRect changes.

Originally committed as revision 16412 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 17:54:48 +00:00
Michael Niedermayer
c66216ed5d Add enum AVSubtitleType
Originally committed as revision 16410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 15:15:03 +00:00
Jason Garrett-Glaser
37fed10087 Add x264 SSE2 iDCT functions to H.264 decoder.
Originally committed as revision 16409 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-03 00:46:17 +00:00
Diego Biurrun
c96da3edc3 Avoid POSIX-reserved _t namespace.
Originally committed as revision 16408 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-02 16:21:22 +00:00
Diego Biurrun
0f0b707fa3 Avoid POSIX-reserved _t namespace.
Originally committed as revision 16407 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-02 16:19:27 +00:00
Måns Rullgård
172a39d13c ARM: work around linker bug with movw/movt relocations in shared libs
Originally committed as revision 16395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-30 03:13:52 +00:00
Måns Rullgård
77e2249e2f ARM: rename coefficient table in NEON IDCT
Originally committed as revision 16392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-30 03:13:40 +00:00
Aurelien Jacobs
275131628d Remove duplicated dot product code. Use dsputil's
scalarproduct instead. Patch by Aurelien Jacobs.

Originally committed as revision 16391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-29 17:14:30 +00:00
Kostya Shishkov
592beefe99 It turned out that RV30 uses motion vectors for forward motion B-frame
macroblocks to predict motion vectors for backward motion B-frame macroblocks
and vice versa.

Originally committed as revision 16381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-29 10:20:03 +00:00
Michael Niedermayer
e4f1ec3a4c Explain the lack of +3/7
Originally committed as revision 16380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-28 23:26:12 +00:00
Carl Eugen Hoyos
6735e2c810 Revert r16375: It broke aac decoding.
Originally committed as revision 16376 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-28 20:08:39 +00:00
Carl Eugen Hoyos
69b38d4dc3 Reduce number of warnings when compiling with icc by two.
Originally committed as revision 16375 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-28 19:48:43 +00:00
Carl Eugen Hoyos
3a095bee2b Silence one warning when compiling with icc:
warning #188: enumerated type mixed with another type
      if((q->bitrate = determine_bitrate(avctx, buf_size, &buf)) == I_F_Q)
                     ^

Originally committed as revision 16374 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-28 19:44:47 +00:00
Carl Eugen Hoyos
2c67c65963 Fix h264 decoding on SSE2 cores with icc compilation.
Originally committed as revision 16373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-28 19:40:13 +00:00
Måns Rullgård
23ae2b68b0 Replace UNALIGNED_STORES_ARE_BAD with !HAVE_FAST_UNALIGNED
Originally committed as revision 16364 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 23:12:00 +00:00
Måns Rullgård
edf7c2b26f simple_idct: use MUL16 and MAC16 from mathops.h
Originally committed as revision 16362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 16:25:36 +00:00
Diego Biurrun
79cb09b2f7 consistency cosmetics: Rename POWERPC identifiers to PPC.
Originally committed as revision 16359 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 11:33:26 +00:00
Luca Barbato
d89eae6f1a Remove stray code
Originally committed as revision 16358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 11:30:30 +00:00
Luca Barbato
a6b4448cdf Cleanup _t types in libavcodec/ppc
Originally committed as revision 16357 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 11:21:28 +00:00
Reimar Döffinger
b870027a19 Bump minor number for many small improvements, tiff fax decoding,
AVCodecContext refs is set during decoding.

Originally committed as revision 16355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27 09:22:21 +00:00
Måns Rullgård
f23740d96f ARM: NEON optimised float_to_int16
Originally committed as revision 16352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 19:52:52 +00:00
Michael Niedermayer
92799d3213 Enable faxcompr.
Originally committed as revision 16349 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 18:42:26 +00:00
Michael Niedermayer
a56f82eaf8 indent
Originally committed as revision 16348 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 18:39:24 +00:00
Michael Niedermayer
537bf4266f Simplify vertical mode
Originally committed as revision 16347 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 18:39:07 +00:00
Michael Niedermayer
eb0094b224 And another sechole ...
Originally committed as revision 16346 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 18:14:59 +00:00
Michael Niedermayer
268309750b Fix yet another sechole.
Originally committed as revision 16345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 18:06:29 +00:00
Michael Niedermayer
11c5999e20 Fix another sechole.
Originally committed as revision 16344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 17:51:10 +00:00
Michael Niedermayer
2a522579aa Minor simplification.
Originally committed as revision 16343 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 17:32:11 +00:00
Michael Niedermayer
f78a679177 Remove unused run_start variable.
Originally committed as revision 16342 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 17:11:19 +00:00
Michael Niedermayer
6f5c00eb9f Move sync line pointers code to the end of the loop, it is simpler that way.
Originally committed as revision 16341 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 17:04:31 +00:00
Michael Niedermayer
e3a54b6694 Get rid of check for condition that is always true (run_off < avctx->width).
Originally committed as revision 16340 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 16:59:10 +00:00
Michael Niedermayer
43ba8f3545 Get rid of pix_left in the 2d code, it is simpler that way.
Originally committed as revision 16339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 16:57:35 +00:00
Reynaldo H. Verdejo Pinochet
a3636fa033 COSMETICS Part 3 and final of Kenan Gillet's QCELP silence handling patch.
Originally committed as revision 16338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 16:50:21 +00:00
Reynaldo H. Verdejo Pinochet
4f54fb54e3 Part 2 of Kenan Gillet's QCELP silence handling patch.
Originally committed as revision 16337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 16:49:06 +00:00
Michael Niedermayer
6fe68c7b97 Factorize "avctx->width + 2" out to avoid someone mistakenly changing
some but not all.

Originally committed as revision 16336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 16:38:55 +00:00
Michael Niedermayer
621e6525a6 cosmetic (moving pix_left update)
Originally committed as revision 16335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 16:30:50 +00:00
Michael Niedermayer
1d7985072c Close gaping sechole. That is, a series of run=0 allows arbitrary data to
be written over the end of the runs array.

Originally committed as revision 16334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 16:29:01 +00:00
Michael Niedermayer
d02ab57a5f minor simplification
Originally committed as revision 16333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 15:21:48 +00:00
Michael Niedermayer
66909bc4f1 Merge ff_ccitt_unpack_1d and 2d.
Originally committed as revision 16332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 15:05:12 +00:00
Michael Niedermayer
d68542f019 Ensure that an invalid run terminates the line.
Originally committed as revision 16331 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 14:57:42 +00:00
Michael Niedermayer
ec5bdf4989 10l != vs. == (yes, my fault not kostya's).
Originally committed as revision 16330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 14:39:21 +00:00
Michael Niedermayer
679f3fa901 indent
Originally committed as revision 16329 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 13:52:07 +00:00
Michael Niedermayer
68d48cc592 Simplify zero run handling in put_line().
Originally committed as revision 16328 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 13:51:52 +00:00
Michael Niedermayer
bc0f7a9c75 Avoid negation in put_line().
Originally committed as revision 16327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 13:50:00 +00:00
Michael Niedermayer
4e60b64324 Factorize mode switching in put_line().
Originally committed as revision 16326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 13:48:09 +00:00
Michael Niedermayer
eb12536a31 Fix (rewrite) find_group3_syncmarker().
Originally committed as revision 16325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 13:46:11 +00:00
Michael Niedermayer
8d48db314e CCITT Fax Group 3 and 4 decompression by kostya.
Will be activated after a little more reviewing and fixing by me.
Commited now, so as to not lose history of that.

Originally committed as revision 16323 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 13:39:19 +00:00
Diego Biurrun
b8d62672f6 ASAO Nelly Moser implementation moved to a better place on mphq.
Originally committed as revision 16321 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 11:00:30 +00:00
Benoit Fouet
5163c0d9a2 s/FFmpeg-devel/ffmpeg-devel/
Originally committed as revision 16314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 08:03:26 +00:00
Jason Garrett-Glaser
c1fc70362f Fix compilation without optimization under 64-bit with x264 deblock asm enabled.
Originally committed as revision 16313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-26 00:19:08 +00:00
Måns Rullgård
760badc1df ARM: add new h264 idct functions
Originally committed as revision 16312 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-25 23:13:43 +00:00
Guillaume Poirier
337e3fd990 Disable usage of ff_h264_idct_add_altivec since AltiVec versions of h264_idct_add16,
h264_idct_add16intra, h264_idct_add8 need to be implemented.

Add C version of ff_h264_idct8_dc_add in AltiVec so that ff_h264_idct8_add_altivec
can be used.

Originally committed as revision 16311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-25 18:27:49 +00:00
Diego Biurrun
0fa5f24c3b Change mplayerhq.hu references to ffmpeg.org where appropriate.
Originally committed as revision 16310 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-25 15:49:50 +00:00
Diego Biurrun
ddaf298cee Fix sample URL.
Originally committed as revision 16309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-25 15:49:02 +00:00
avcoder
bb0bfcd5ac The VC-1/WMV3 decoders depend on ENABLE_MSMPEG4_DECODER.
patch by avcoder, ffmpeg gmail com

Originally committed as revision 16308 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-25 13:26:18 +00:00
Loren Merritt
1cca8d2423 flatten an array, since gcc fails at optimizing multidimensional arrays
h264_idct8_add_c: 780 -> 735 cycles on conroe

Originally committed as revision 16307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-25 01:20:37 +00:00
Michael Niedermayer
802e91466d export refs
Originally committed as revision 16306 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-24 18:39:23 +00:00
Michael Niedermayer
53d55e9ea3 Allow decoders to set AVCodecContext.refs.
Originally committed as revision 16305 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-24 17:38:27 +00:00
Michael Niedermayer
62ea19c061 Optimize pred_pskip_motion()
7 cpu cycles faster on pentium dual.

Originally committed as revision 16304 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-24 03:23:38 +00:00
Michael Niedermayer
ebfb0449d3 Indent
Originally committed as revision 16302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 22:06:16 +00:00
Michael Niedermayer
05d3fd44d7 Integrate get_te0_golomb() calls into the code, this allows some checks
to be avoided and the function is pretty small.
3% speedup, though this is probably due to changed inlining and not directly
this change.

Originally committed as revision 16301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 22:04:34 +00:00
Michael Niedermayer
9963b332d1 Use get_ue_golomb_31() where possible, almost all are just in headers
though.

Originally committed as revision 16300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 21:12:19 +00:00
Michael Niedermayer
0be514625a Update golomb decoding tables so that get_*_golomb_31() return some
larger values for too large values.

Originally committed as revision 16299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 21:07:36 +00:00
Michael Niedermayer
0e921e97c1 Add get_ue_golomb_31()
Originally committed as revision 16298 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 21:05:47 +00:00
Michael Niedermayer
2f2893ce9b indent
Originally committed as revision 16296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 19:12:50 +00:00
Michael Niedermayer
d42fc4a8ca Use the new VLC table for the first non trailing coeff too.
Sadly only 5 cycles faster here on pentium dual. So maybe the
complexity is not worth it and this should be reverted ...

Originally committed as revision 16295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 19:10:46 +00:00
Michael Niedermayer
593af7cdda Optimize esc removal code.
Originally committed as revision 16294 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 18:31:44 +00:00
Kostya Shishkov
ffedb5c19a 352l: correct calculating number of bits for storing macroblock offset in RV3/4
Originally committed as revision 16293 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 18:27:06 +00:00
Michael Niedermayer
2d76bf391a Indent
Originally committed as revision 16292 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 17:50:36 +00:00
Michael Niedermayer
8140955d39 unified CAVLC level decoding LUT.
Quite a bit faster (HPCVMOLQ_BRCM_B.264 was 3% faster here)

Originally committed as revision 16291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 17:49:38 +00:00
Michael Niedermayer
5cb5023c78 Make h264 parser 50% faster.
Originally committed as revision 16286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 02:34:58 +00:00
Michael Niedermayer
abb27cfb24 100l, I broke H.264 again, forgot one hunk.
Thanks to FATE for finding it.

Originally committed as revision 16285 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 01:11:56 +00:00
Michael Niedermayer
e08715d391 Optimize 0 0 0-3 search, 45% faster on pentium dual.
Originally committed as revision 16284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 00:38:45 +00:00
Andreas Öman
11c23b64ac Revert r16257:
Include "libavutil/common.h" where we use llrint() in case ffmpeg's
own llrint() is to be used.

Originally committed as revision 16282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 22:39:55 +00:00
Michael Niedermayer
ec3686e889 Simplify decode_cabac_mb_ref() a little bit, 2 cpu cycles faster on
pentium dual.

Originally committed as revision 16279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 17:14:13 +00:00
Michael Niedermayer
26695973c7 Indent
Originally committed as revision 16278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:56:05 +00:00
Michael Niedermayer
b68a455313 inline decode_cabac_mb_type for I & P frames, 9 cycles faster on pentium dual.
Originally committed as revision 16277 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:46:17 +00:00
Michael Niedermayer
1952ac3713 Negate 2 more variables, 1 cpu cycle faster on pentium dual.
Originally committed as revision 16276 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:20:13 +00:00
Michael Niedermayer
03a035e059 Simplify if/else, no speed change
Originally committed as revision 16275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:14:06 +00:00
Michael Niedermayer
6f3c50f2f9 Negate a few variables, this simplifies the code and makes it 5 cycles faster
on pentium dual.

Originally committed as revision 16274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:10:35 +00:00
Michael Niedermayer
60c6ba7aea Simplify ifs(), 8 cpu cycles faster on pentium dual
Originally committed as revision 16273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 15:54:27 +00:00
Michael Niedermayer
127a20e3b8 Simplify if(), 3 cpu cycles faster in pentium dual.
Originally committed as revision 16272 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 15:53:00 +00:00
Diego Biurrun
a6493a8fbd Rename libavcodec/i386/ --> libavcodec/x86/.
It contains optimizations that are not specific to i386 and
libavutil uses this naming scheme already.

Originally committed as revision 16270 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 09:12:42 +00:00
Kostya Shishkov
108c96d5e7 Decode TIFF image only after all tags have been decoded
Originally committed as revision 16268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:50:18 +00:00
Kostya Shishkov
8eedffde31 Some TIFFs declare -1 for the single strip height
Originally committed as revision 16267 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:47:51 +00:00
Kostya Shishkov
89b4ec5c33 Add monochrome TIFF support
Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:43:14 +00:00
Kostya Shishkov
4386ed6922 Calculate line size variable correctly for lower bitdepths and use it for raw data copying
Originally committed as revision 16265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:39:31 +00:00
Kostya Shishkov
4a2f51de34 Register TIFF tags for CCITT Group 3 and 4 compression options
Originally committed as revision 16264 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:36:10 +00:00
Diego Biurrun
bef05f05e4 Remove a bunch of unused variables.
Originally committed as revision 16263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 00:10:36 +00:00
Diego Biurrun
ebb160a0b0 Use ARCH_X86_32 instead of !ARCH_X86_64, it is more straightforward.
Originally committed as revision 16262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 00:03:30 +00:00
Anuradha Suraparaju
64bfc5845b Fix incorrectly constructed Dirac parse units that caused A/V sync loss.
Fixes issue 694.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

Originally committed as revision 16261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 00:01:39 +00:00
Diego Biurrun
c4ff7c53e0 Do not use full include path for headers in the same directory.
Originally committed as revision 16260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 23:56:55 +00:00
Michael Niedermayer
c96bd21227 Change mpeg audio parser so it only sets frame_size, channels and bit_rate
after it has a few valid frames.
Fixes issue762

Originally committed as revision 16259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 23:50:16 +00:00
Andreas Öman
1af34f094e Include "libavutil/common.h" where we use llrint() in case ffmpeg's
own llrint() is to be used.

Originally committed as revision 16257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 21:53:42 +00:00
Michael Niedermayer
ed4c638a07 Fix PTS returned by the demuxers for mpeg4 without a decoder.
More precissely fix has_b_frames.
Fixes issue757

Originally committed as revision 16256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 21:47:29 +00:00
Michael Niedermayer
c62da7972b Move CODEC_FLAG_LOW_DELAY into ff_mpeg4_decode_picture_header().
Originally committed as revision 16255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 21:30:36 +00:00
Michael Niedermayer
befc8fe086 Remove useless code.
Originally committed as revision 16253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 17:49:40 +00:00
Michael Niedermayer
c212fb0cb1 Only execute clear_blocks() when needed.
+0.3% speedup for both aladin & cathedral.

Originally committed as revision 16252 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 15:58:42 +00:00
Robert Swain
897c1703d0 AAC: Reindent after last commit
Originally committed as revision 16251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 05:32:55 +00:00
Alex Converse
aab5413323 AAC: Fix AAC prediction when used in conjunction with the CPE
Patch by Alex Converse (alex converse gmail com)

Originally committed as revision 16250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 05:28:14 +00:00
Alex Converse
99665a21f4 AAC: Don't write an illegal sampling_index in a PCE to the MPEG4AudioConfig
member

Patch by Alex Converse (alex converse gmail com)

Originally committed as revision 16249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 05:08:32 +00:00
Michael Niedermayer
66c07ca96f Optimize get_dct8x8_allowed().
30 cpu cycles faster on pentium dual.

Originally committed as revision 16248 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-20 23:11:30 +00:00
Kostya Shishkov
6beb8b2612 RV30 decoder
Originally committed as revision 16247 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-20 18:06:01 +00:00
Kostya Shishkov
541e8f3bec RV30 loop filter
Originally committed as revision 16245 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-20 06:09:54 +00:00
Reynaldo H. Verdejo Pinochet
3f16ed15df Cosmetics by Kenan Gillet. Part 1 of 3 of his 'qcelp: silence handling'
changeset.

Originally committed as revision 16244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-20 02:38:34 +00:00
Stefano Sabatini
64e74b68a4 Put under #if LIBAVCODEC_VERSION_MAJOR < 53 the deprecated functions
av_set_string() and av_set_string2(), they will be dropped at the next
major bump.

Originally committed as revision 16243 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 22:37:56 +00:00
Stefano Sabatini
f16dd7e65a Remove calls to deprecated av_set_string2() with calls to
av_set_string3().

Originally committed as revision 16241 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 22:29:30 +00:00
Jason Garrett-Glaser
aac8b76983 H.264 loopfilter speed tweaks
Originally committed as revision 16240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 14:49:17 +00:00
Jason Garrett-Glaser
a22eff36f9 Port x264 deblocking code to libavcodec.
This includes SSE2 luma deblocking code and both MMXEXT and SSE2 luma
intra deblocking code for H.264 decoding. This assembly is available
under --enable-gpl and speeds decoding of Cathedral by 7%.

Originally committed as revision 16239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 13:45:13 +00:00
Michael Niedermayer
6a1846eb4a Document new idct requirements.
Originally committed as revision 16237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 09:34:18 +00:00
Michael Niedermayer
a5805aa9d1 Fix decoding with the plain C idcts of
FRExt/HPCAMOLQ_BRCM_B
FRExt/HPCAQ2LQ_BRCM_B
FRExt/HPCVMOLQ_BRCM_B

Originally committed as revision 16236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 09:21:54 +00:00
Kostya Shishkov
bbc888d0c5 a table for upcoming RV30 loop filtering
Originally committed as revision 16235 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 06:29:35 +00:00
Jason Garrett-Glaser
40c7d0ae3c Add automatic prefix handling to yasm functions. Does nothing now, but will
be useful for porting x264 asm in the future.

Originally committed as revision 16234 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 03:01:08 +00:00
Michael Niedermayer
a5b807a6c1 Replace /2 by >>1 in decode_cabac_mb_dqp()
3 cpu cycles speed up on pentium dual.

Originally committed as revision 16233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 02:28:51 +00:00
Michael Niedermayer
1aea5d35e5 Simplify ctx update in decode_cabac_mb_dqp().
no speed change

Originally committed as revision 16232 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 02:00:33 +00:00
Michael Niedermayer
7cfca0dfd8 Simplify ctx calculation in decode_cabac_mb_dqp()
no speed change

Originally committed as revision 16231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 01:50:20 +00:00
Alexander Strange
d43696309a Clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of NALs in rbsp_buffer.
Fixes valgrind uninitialized value warnings at the end of decoding H.264
frames.

Originally committed as revision 16230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 01:11:52 +00:00
Jason Garrett-Glaser
712ca84c21 Move filter_luma_intra into dsputil for later addition of asm.
Originally committed as revision 16228 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 00:44:51 +00:00
Jason Garrett-Glaser
b9fe706305 Simplify chroma AC in CABAC residual decoding.
Originally committed as revision 16227 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 00:43:30 +00:00
Michael Niedermayer
8955b66950 Optimize ctx calculation in decode_cabac_mb_mvd(), code by dark shikari.
The case for 16x16 blocks becomes 10 cpu cycles faster on pentium dual,
i could not find a speed difference in the case of subblocks though.

Originally committed as revision 16226 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-19 00:05:39 +00:00
Michael Niedermayer
17779f39b6 Remove unacceptable NULL pointer hack from mc code.
Originally committed as revision 16225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 23:52:32 +00:00
Michael Niedermayer
04618b98e3 Check ref values in CABAC H.264 for validity.
Originally committed as revision 16224 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 23:31:10 +00:00
Michael Niedermayer
c25ac15a07 Move idct_(dc)add closer to where it is needed.
Originally committed as revision 16223 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 18:25:11 +00:00
Michael Niedermayer
aebb5d6d96 indent
Originally committed as revision 16222 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 18:14:38 +00:00
Michael Niedermayer
96465b90a1 Reorder ifs in chroma hl_decode_mb to avoid a duplicate transform_bypass
check.
14 cpu cycles speedup on Pentium Dual

Originally committed as revision 16221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 18:12:59 +00:00
Michael Niedermayer
6456d6d87c s/h->cbp_table[mb_xy]/h->cbp/
Originally committed as revision 16220 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 17:42:44 +00:00
Michael Niedermayer
04824298a9 Faster CAVLC decoding of trailing_ones. Based on a patch by dark shikari.
decode_residual is about 3.3% faster.

Originally committed as revision 16219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 16:11:19 +00:00
Jason Garrett-Glaser
93445d1617 Replace i by trailing_ones, part of a patch by dark shikari.
No speed change meassureable with START/STOP_TIMER, but this is needed
for future optimizations.

Originally committed as revision 16218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 15:51:32 +00:00
Michael Niedermayer
c375d87f6f Remove if() surrounding decode_cabac_mb_type() that can never be true.
Originally committed as revision 16217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 15:32:07 +00:00
Michael Niedermayer
c325b5054f Remove unreachable else clause, found by dark shikari.
Originally committed as revision 16216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 15:21:15 +00:00
Michael Niedermayer
dae006d7d7 Remove useless IS_8x8DCT check i forgot, spotted by dark shikari.
Originally committed as revision 16215 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 11:17:12 +00:00
Michael Niedermayer
2a5a9c2815 10l, svq3 didnt set h->cbp, this broke decoding a little.
Originally committed as revision 16214 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 11:01:38 +00:00
Kostya Shishkov
efeb298ea0 cosmetics: remove one unneeded space
Originally committed as revision 16211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 06:00:12 +00:00
Michael Niedermayer
1eb960352b Do not calculate idct_dc_add/idct_add when the variables are unused.
Originally committed as revision 16210 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 04:13:02 +00:00
Michael Niedermayer
62bc966f8f Remove redundant nnz variable.
Originally committed as revision 16209 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 03:04:53 +00:00
Michael Niedermayer
0a8ca22f4e indent
Originally committed as revision 16208 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 02:56:44 +00:00
Michael Niedermayer
2fd1f0e026 Use the new idct functions (except chroma as it was slower in benchmarks)
cathedral +0.5% speed
aladin +0.6% speed [note aladin has been cat-ed 10 times to reduce the influence
of init time]
Speedup also verified via START/STOP_TIMER (difference was very significant
for the changed parts)

Originally committed as revision 16207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 02:53:18 +00:00
Michael Niedermayer
ac22385931 H.264 idct functions that include the chroma, inter luma and intra16 luma loops
thus avoiding the calling overhead.
New functions are not yet used.

Originally committed as revision 16206 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 02:36:48 +00:00
Michael Niedermayer
49c084a745 Skip non intra luma code when there is no coded luma.
0.7% speedup for the cathedral sample.

Originally committed as revision 16203 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 01:10:51 +00:00
Loren Merritt
00794ed0d9 1.6x faster pred*_vertical_add_c
Originally committed as revision 16202 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 01:05:06 +00:00
Michael Niedermayer
621561cdf3 Skip chroma handling when there is no coded chroma.
0.5% overall speedup for the cathedral sample.

Originally committed as revision 16201 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-18 00:46:54 +00:00
Kostya Shishkov
17b17c53f4 add const qualifier to some pointers for input data
Originally committed as revision 16195 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-17 20:17:07 +00:00