Commit Graph

9494 Commits

Author SHA1 Message Date
Michael Niedermayer
256299d302 Factorize field_end() out.
Originally committed as revision 18472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 20:21:23 +00:00
Michael Niedermayer
7824b129a0 Assert that the first list1 entry is a reference frame.
Originally committed as revision 18471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 13:58:03 +00:00
Reimar Döffinger
238ef6dadd Add a av_fast_malloc function and replace several uses of av_fast_realloc,
thus avoiding potential memleaks and pointless memcpys.

Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 13:17:37 +00:00
Reimar Döffinger
9bf993a5b5 Use void * instead of uint8_t * for the destination buffer for dsp.bswap_buf
where easily possible (mimic, eatqi, 4xm).
This allows to avoid a typecast.

Originally committed as revision 18469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 12:25:53 +00:00
Reimar Döffinger
55775b099d Use AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders
Originally committed as revision 18467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 09:33:38 +00:00
Stefano Sabatini
53bd67ec89 Document pbBufPtr().
Originally committed as revision 18466 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 09:06:17 +00:00
Stefano Sabatini
b275500706 Split bitstream.h, put the bitstream writer stuff in the new file
put_bits.h.

Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 08:35:26 +00:00
Justin Ruggles
f79e331f34 Add names for 5.0 and 5.1 back speaker channel layouts.
Originally committed as revision 18459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 03:26:20 +00:00
John Fletcher
dae2434928 Fix documentation for avcodec_encode_audio(), in the case of PCM audio
the output buffer size may be less than FF_MIN_BUFFER_SIZE.

Patch by John Fletcher john.surname AT rd . bbc . co . uk.

Originally committed as revision 18449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:14:29 +00:00
Stefano Sabatini
4af615b81e Document the 'size' parameter of set_put_bits_buffer_size().
Originally committed as revision 18448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:04:26 +00:00
Stefano Sabatini
930cab5944 Document ff_put_string().
Originally committed as revision 18447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:01:30 +00:00
Stefano Sabatini
147a90a3e5 Replace deprecated FF_MM_MMXEXT flag with FF_MM_MMX2.
Originally committed as revision 18443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 18:12:23 +00:00
Stefano Sabatini
54b02ccda2 Rename the 'put_zero' parameter of ff_put_string() to
'terminate_string'.

Originally committed as revision 18442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 15:54:21 +00:00
Stefano Sabatini
980f54513e Add documentation for skip_put_bytes().
Originally committed as revision 18441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:49:46 +00:00
Stefano Sabatini
093364da30 Doxygenate ff_copy_bits().
Originally committed as revision 18440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:47:35 +00:00
Stefano Sabatini
86755e82f7 Factorize declaration for the two variants of put_bits().
Originally committed as revision 18439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:19:09 +00:00
Michael Niedermayer
1b923aa44a Two INIT_VLC_USE_STATIC cases Carl missed.
Originally committed as revision 18438 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:16:30 +00:00
Michael Niedermayer
78435e9971 get rid of INIT_VLC_USE_STATIC in h261.
Originally committed as revision 18437 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:58:18 +00:00
Michael Niedermayer
76ac719888 Get rid of INIT_VLC_USE_STATIC in rv10/rv20.
Originally committed as revision 18436 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:53:34 +00:00
Michael Niedermayer
2a0241ae12 Get rid of INIT_VLC_USE_STATIC in 4xm.
Originally committed as revision 18435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:43:09 +00:00
Michael Niedermayer
5338bec697 Get rid of INIT_VLC_USE_STATIC in asv1.
Originally committed as revision 18434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:40:39 +00:00
Michael Niedermayer
5cf4331b04 Get rid of INIT_VLC_USE_STATIC in msmpeg4
Originally committed as revision 18433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:29:05 +00:00
Stefano Sabatini
0a73e94fd6 Clarify documentation for put_bits_count().
Originally committed as revision 18432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:04:33 +00:00
Reimar Döffinger
80d403fc19 Get rid of av_destruct_packet_nofree and use NULL instead.
It is still used in comparisons to keep ABI compatibility.

Originally committed as revision 18431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 12:42:29 +00:00
Carl Eugen Hoyos
e161e007be Use INIT_VLC_USE_STATIC and not its value "1".
Originally committed as revision 18430 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 11:47:15 +00:00
Stefano Sabatini
facf521daa Document align_put_bits().
Originally committed as revision 18427 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 22:29:56 +00:00
Stefano Sabatini
fc660a0143 Doxygenate flush_put_bits() documentation.
Originally committed as revision 18426 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 22:27:29 +00:00
Stefano Sabatini
e46ddebd14 Doxygenate put_bits_count() documentation.
Originally committed as revision 18425 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 22:14:45 +00:00
Stefano Sabatini
f7a2aab7d8 Doxygenate init_put_bits().
Originally committed as revision 18423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 17:30:42 +00:00
Diego Biurrun
64bde1974b cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 17:23:38 +00:00
Thilo Borgmann
ee30cdabad Add support to CorePNG P-frames.
Patch by Thilo Borgmann thilo DOT borgmann A googlemail com.

Originally committed as revision 18421 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 17:16:19 +00:00
Reimar Döffinger
6752dd5aee Loop up to MAX_THREADS instead of h->s.avctx->thread_count to free the thread
contexts, this avoids a crash when freeing the H.264 parser context introduced in
r18406, since h->s.avctx is NULL there.

Originally committed as revision 18418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 14:30:04 +00:00
Diego Biurrun
222ab26c62 Remove unused variables along with the related warnings.
Originally committed as revision 18413 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 11:33:14 +00:00
Reimar Döffinger
cbf1eae9a5 Add forgotten void return type to ff_h264_free_context
Originally committed as revision 18411 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 11:31:55 +00:00
Diego Biurrun
e4732ba98b Fix sigill on non-MMX2 CPUs.
Originally committed as revision 18410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 11:29:51 +00:00
Thilo Borgmann
4f313925ec Use the new avcodec_decode_* API.
Patch by Thilo Borgmann name.surname AT googlemail.com.

Originally committed as revision 18409 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 11:07:52 +00:00
Reimar Döffinger
b6b6676085 Make sure error resilience does not try to use unavailable reference frames.
Fixes the crash described in issue 706.

Originally committed as revision 18407 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 07:17:30 +00:00
Reimar Döffinger
15861962a7 Add a ff_h264_free_context function and call it from the H.264 parser.
This ensures that the parser will no longer leak memory for all SPS/PPS it encounters.

Originally committed as revision 18406 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 07:01:55 +00:00
Michael Niedermayer
c81185a183 Make sure mpeg2 has its height rounded up to 32 as that is needed
for interlaced stuff.
This might have been exploitable when emu edge was not set though
note this bug has been introduced just a few days ago.

Originally committed as revision 18405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 00:09:07 +00:00
Michael Niedermayer
cfe675269b Do not use SSE2 SAD for snow as it requires more alignment than can be
easily provided.
Fixes issue315.

Originally committed as revision 18404 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:53:48 +00:00
Martin Storsjö
2b12317a90 Fix documentation for the "-ps" option
Patch by Martin Storsjö (martin AT martin DOT st)

Originally committed as revision 18403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:52:12 +00:00
Michael Niedermayer
cc0241283b Make sure the next used frame is released so get_buffer() wont fail.
Originally committed as revision 18399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:19:25 +00:00
Michael Niedermayer
38fd076c21 Move release_buffer() up so it is prior to a future call to it.
Originally committed as revision 18398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:17:53 +00:00
Michael Niedermayer
0a08b5735b Factorize release_buffer()
Originally committed as revision 18397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:44:18 +00:00
Michael Niedermayer
eebbb33abf Make sure spatial_decomposition_count is not too large for picture size.
this led to an infinite loop in mirror().

Originally committed as revision 18396 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:23:13 +00:00
Michael Niedermayer
69409ccb80 Skip non intra frames that have no reference frames.
Originally committed as revision 18395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:13:35 +00:00
Michael Niedermayer
440882f7be Make sure spatial_decomposition_count is >0.
Originally committed as revision 18394 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 19:45:10 +00:00
Michael Niedermayer
dc7f45a08e Make sure the block array is of the correct size.
This might have been exploitable.

Originally committed as revision 18393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:47:50 +00:00
Michael Niedermayer
bc4350a333 Check spatial_decomposition_count too, fixes another crash.
Originally committed as revision 18392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:37:26 +00:00
Michael Niedermayer
45d1d9794d 10l, forgot to remove old code, which broke snow.
Originally committed as revision 18391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:29:54 +00:00
Michael Niedermayer
158f189f82 Factorize check of read symbols.
Originally committed as revision 18390 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:21:51 +00:00
Michael Niedermayer
a794356602 Fix spatial_decomposition_type validity check.
Fixes infinite loop (did no investigate why exactly it got stuck).

Originally committed as revision 18389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 15:33:02 +00:00
Michael Niedermayer
f0812be883 Fix crash when max_ref_frames was out of range.
This might have been exploitable.
Fixes first crash of issue840.

Originally committed as revision 18388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 15:17:03 +00:00
Diego Biurrun
7a709548a7 Remove unnecessary gcc_fixes.h #include.
Originally committed as revision 18384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 11:54:13 +00:00
Diego Biurrun
952f18ffe6 cosmetics: Reformat comment paragraph and fix a few typos in it.
Originally committed as revision 18383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 10:06:54 +00:00
Michael Niedermayer
0127b86108 Fix mb_height for interlaced mpeg2.
This correctly fixes issue961, thanks to steven warren for spotting my mistake.

Originally committed as revision 18381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-08 20:48:44 +00:00
Ramiro Polla
e90f5b5ab1 configure: Add --enable-runtime-cpudetect
Originally committed as revision 18380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-08 20:26:18 +00:00
Reimar Döffinger
feb993e579 Add av_shrink_packet function for use in av_get_packet that reduces pkt->size
and ensures the following padding is correctly initialized to 0.

Originally committed as revision 18378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-08 20:19:12 +00:00
Robert Swain
7b356d3951 Clarify which time_base the relevant members of AVPacket use
Originally committed as revision 18371 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-08 01:45:44 +00:00
Robert Swain
f0ed92df60 Fix second amr_nb_decode_frame() to also use the new AVPacket argument
Originally committed as revision 18354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 19:29:00 +00:00
Thilo Borgmann
cdd8930e6a Move av_packet_*() functions from libavformat/ to libavcodec/, where the
AVPacket structure now resides also.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see the mailinglist
thread "Google Summer of Code participation" for additional discussion.

Originally committed as revision 18353 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 18:31:14 +00:00
Aurelien Jacobs
012f930855 fix vp5/vp6 decoding by using new prototype for decode function
Originally committed as revision 18352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 18:24:47 +00:00
Thilo Borgmann
7a00bbad21 Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.

Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 15:59:50 +00:00
Thilo Borgmann
18c915eef4 Move AVPacket up a bit, so that structs/functions that include AVPacket can
themselves be reasonably positioned.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see mailinglist thread
"[FFmpeg-devel] Google Summer of Code participation".

Originally committed as revision 18350 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 15:37:26 +00:00
Kenan Gillet
809e07c618 Move scale factor computation to its own function. Patch by Kenan
Gillet.

Originally committed as revision 18345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 01:39:17 +00:00
Michael Niedermayer
38d5647a63 Try to honor even completely invalid motion vectors as far as is
easy.
Fixes issue961.

Originally committed as revision 18344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-06 21:45:02 +00:00
Justin Ruggles
8613af0a65 Add convenience macros for 5.0/5.1 back speaker configurations.
Originally committed as revision 18339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-06 01:07:09 +00:00
Ramiro Polla
75428fa447 mlpdec: Filters and matrices may change only once per substream per access unit.
Originally committed as revision 18338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-06 00:58:03 +00:00
Ramiro Polla
89e39be3b6 mlpdec: There must be no extraword for MLP.
Originally committed as revision 18337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-05 20:54:19 +00:00
Ramiro Polla
cc9c512638 mlpdec: Validate non-restart bit from the substream header.
Originally committed as revision 18336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-05 20:46:53 +00:00
Ramiro Polla
0091d8a164 mlpdec: matrix_out_ch must not be greater than max_matrix_channel, and not max_channel.
Originally committed as revision 18335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-05 20:11:40 +00:00
Michael Niedermayer
300a3d0d00 Make sure the last bits of huffyuv frames are zeroed.
Fixes issue946

Originally committed as revision 18334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-05 13:02:47 +00:00
David Conrad
cc2e555420 ARM: NEON optimized put_signed_pixels_clamped
Originally committed as revision 18333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-04 21:02:48 +00:00
Måns Rullgård
08e12b2240 ARM: NEON optimised add_pixels_clamped
Based on patch by David Conrad.

Originally committed as revision 18332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-04 20:18:58 +00:00
Kenan Gillet
3c00556f4b Add missing static qualifier from function declaration. Patch by Kenan
Gillet.

Originally committed as revision 18331 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-04 16:27:54 +00:00
Stefano Sabatini
6b4343616c Rename FF_MM_MMXEXT to FF_MM_MMX2, for both clarity and consistency
with libswscale.

Originally committed as revision 18330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-04 13:20:53 +00:00
Reimar Döffinger
0be9e73e38 Mark line_skip3 asm argument as output-only instead of using av_uninit.
Originally committed as revision 18327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-03 14:03:49 +00:00
Reimar Döffinger
d7460a9cac Mark put_signed_pixels_clamped_mmx output operands as early-clobber because
they are. Hopefully fixes some FATE errors, too.

Originally committed as revision 18326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-03 14:02:34 +00:00
Reimar Döffinger
531a3d2721 Use DECLARE_ASM_CONST for non-global ff_vector128 constant used via MANGLE
Originally committed as revision 18325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-03 14:01:24 +00:00
Gwenole Beauchesne
68367bdef0 Add VC-1 bitstream decoding through VA API.
Originally committed as revision 18324 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-03 07:40:58 +00:00
Alex Converse
3dd6531208 Rewrite put_signed_pixels_clamped_mmx() to eliminate mmx.h from dsputil_mmx.c.
Originally committed as revision 18319 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 21:02:42 +00:00
Thilo Borgmann
fabd2469f1 Move AVPacket declaration from avformat.h to avcodec.h.
Patch by Thilo Borgmann thilo dot borgmann at googlemail _dot_ com.

Originally committed as revision 18317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 19:53:53 +00:00
Jai Menon
3dd2f87e61 Map MOV fourcc YUV2 correctly to PIX_FMT_YUYV422.
Patch by Jai Menon

Originally committed as revision 18316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 12:15:04 +00:00
Gwenole Beauchesne
e103e6dbcf Register VA API HW accelerators.
Pending bits from earlier approved patches:
https://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-March/066111.html
https://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-April/066918.html

Originally committed as revision 18313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 08:53:34 +00:00
Gwenole Beauchesne
5666fd731e Add hwaccel configury. This generates CONFIG_<CODEC>_<HWACCEL>_HWACCEL
from registered HW accelerated codecs with REGISTER_HWACCEL().

Originally committed as revision 18311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 08:48:06 +00:00
Gwenole Beauchesne
da425800ee Add VA API pixfmt (only VLD is available ATM).
Originally committed as revision 18309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 08:08:45 +00:00
Gwenole Beauchesne
b4df97365f Add MPEG-4 / H.263 bitstream decoding through VA API.
Originally committed as revision 18307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 07:30:04 +00:00
Stefano Sabatini
0a47f60aa8 Extend read_line() to make it take a read_pal_component parameter.
Originally committed as revision 18303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 21:07:49 +00:00
David Conrad
710441c2f6 Add SSE4 detection support
Originally committed as revision 18302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 09:11:32 +00:00
Gwenole Beauchesne
41913a35b0 Add 16cif video frame size abbreviation. i.e. -s alias for 1408x1152.
Originally committed as revision 18301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 08:55:31 +00:00
David Conrad
828775e160 Remove unused FILTSIGN macro
Originally committed as revision 18300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 08:06:30 +00:00
Måns Rullgård
e5d0dbf558 Remove aandcttab.o from dct-test dependencies, the lib includes it
Originally committed as revision 18299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 01:22:36 +00:00
Stefano Sabatini
59b053508f Reindent after the last patch.
Originally committed as revision 18292 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 22:53:48 +00:00
Stefano Sabatini
c95dd8d382 Add/fix support for bitstream formats reading in read_line().
Originally committed as revision 18291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 22:52:30 +00:00
Stefano Sabatini
21010f6b2a Make the step and offset fields of the component descriptor express a
number of bits for bitstreams formats.

Originally committed as revision 18290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 22:48:18 +00:00
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