Commit Graph

9034 Commits

Author SHA1 Message Date
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