platform/upstream/libav.git
15 years agoDocument av_codec_next().
Stefano Sabatini [Sun, 15 Feb 2009 16:02:07 +0000 (16:02 +0000)]
Document av_codec_next().

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

15 years agomatroskadec: add needed definitions forgotten in r17331
Aurelien Jacobs [Sun, 15 Feb 2009 16:00:58 +0000 (16:00 +0000)]
matroskadec: add needed definitions forgotten in r17331

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

15 years agomatroskadec: add generic metadata support
Aurelien Jacobs [Sun, 15 Feb 2009 15:53:55 +0000 (15:53 +0000)]
matroskadec: add generic metadata support

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

15 years agomatroskadec: read track and attachment uid
Aurelien Jacobs [Sun, 15 Feb 2009 15:34:22 +0000 (15:34 +0000)]
matroskadec: read track and attachment uid
will be useful for generic metadata support

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

15 years agomatroskadec: export track name through the metadata API
Aurelien Jacobs [Sun, 15 Feb 2009 15:29:09 +0000 (15:29 +0000)]
matroskadec: export track name through the metadata API

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

15 years agomatroskadec: use new metadata API to export some simple information
Aurelien Jacobs [Sun, 15 Feb 2009 15:25:14 +0000 (15:25 +0000)]
matroskadec: use new metadata API to export some simple information

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

15 years agoSilence following warning if only zeros were not consumed:
Carl Eugen Hoyos [Sun, 15 Feb 2009 15:23:02 +0000 (15:23 +0000)]
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

15 years agoDo not export to the public the first_protocol symbol at the next
Stefano Sabatini [Sun, 15 Feb 2009 14:34:23 +0000 (14:34 +0000)]
Do not export to the public the first_protocol symbol at the next
major bump.
There is no need for that, since av_protocol_next() already provides
access to the first registered protocol.

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

15 years agoCast a __u64 variable to uint64_t so that it can be printed without warnings
Luca Abeni [Sun, 15 Feb 2009 14:32:09 +0000 (14:32 +0000)]
Cast a __u64 variable to uint64_t so that it can be printed without warnings

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

15 years agoDocument av_protocol_next().
Stefano Sabatini [Sun, 15 Feb 2009 14:31:18 +0000 (14:31 +0000)]
Document av_protocol_next().

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

15 years agoReplace calls/references of the deprecated register_protocol()
Stefano Sabatini [Sun, 15 Feb 2009 14:29:23 +0000 (14:29 +0000)]
Replace calls/references of the deprecated register_protocol()
function with correponding calls/references to av_register_protocol().

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

15 years agoRename register_protocol() to av_register_protocol() and deprecate
Stefano Sabatini [Sun, 15 Feb 2009 14:25:23 +0000 (14:25 +0000)]
Rename register_protocol() to av_register_protocol() and deprecate
register_protocol().

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

15 years agodemux some more metadata tags in mov
Aurelien Jacobs [Sun, 15 Feb 2009 14:13:28 +0000 (14:13 +0000)]
demux some more metadata tags in mov

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

15 years agoPlace spaces consistently in pointer types in vdpau.c
Reimar Döffinger [Sun, 15 Feb 2009 12:31:01 +0000 (12:31 +0000)]
Place spaces consistently in pointer types in vdpau.c

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

15 years agoCosmetics. Vertical align.
Ivan Kalvachev [Sun, 15 Feb 2009 10:15:02 +0000 (10:15 +0000)]
Cosmetics. Vertical align.

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

15 years agoAlmost cosmetics.
Ivan Kalvachev [Sun, 15 Feb 2009 10:14:16 +0000 (10:14 +0000)]
Almost cosmetics.
Move some assignments after the checks.

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

15 years agoCheck all critical xvmc struct fields in ff_xvmc_field_start()
Ivan Kalvachev [Sun, 15 Feb 2009 10:06:23 +0000 (10:06 +0000)]
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

15 years agoDocument av_iformat_next() and av_oformat_next() functions.
Stefano Sabatini [Sun, 15 Feb 2009 09:04:08 +0000 (09:04 +0000)]
Document av_iformat_next() and av_oformat_next() functions.

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

15 years agoProper condition in xvmc decode mb.
Ivan Kalvachev [Sun, 15 Feb 2009 09:03:47 +0000 (09:03 +0000)]
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

15 years agoRename xvmc_render_state to something with pixfmt in its name.
Ivan Kalvachev [Sun, 15 Feb 2009 08:42:11 +0000 (08:42 +0000)]
Rename xvmc_render_state to something with pixfmt in its name.

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

15 years agoA little better wording of doxygen comments.
Ivan Kalvachev [Sun, 15 Feb 2009 08:29:06 +0000 (08:29 +0000)]
A little better wording of doxygen comments.

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

15 years agoRevert 17308.
Ivan Kalvachev [Sun, 15 Feb 2009 07:55:39 +0000 (07:55 +0000)]
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

15 years agoPrevent heap corruption when resampling 8-bit audio.
Peter Ross [Sun, 15 Feb 2009 06:29:43 +0000 (06:29 +0000)]
Prevent heap corruption when resampling 8-bit audio.

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

15 years agoGive a little better name to the magic(_id) field in xvmc struct
Ivan Kalvachev [Sun, 15 Feb 2009 02:36:43 +0000 (02:36 +0000)]
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

15 years agouse new metadata API in mov demuxer
Aurelien Jacobs [Sun, 15 Feb 2009 02:28:54 +0000 (02:28 +0000)]
use new metadata API in mov demuxer

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

15 years agoReplace assert in ff_xvmc_field_end() by av_log call at level AV_LOG_ERROR.
Diego Biurrun [Sun, 15 Feb 2009 02:27:55 +0000 (02:27 +0000)]
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

15 years agoRemove obsolete display_flags member from xvmc struct
Ivan Kalvachev [Sun, 15 Feb 2009 02:17:48 +0000 (02:17 +0000)]
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

15 years agoDetailed description of the interesting fields in xvmc struct.
Ivan Kalvachev [Sun, 15 Feb 2009 01:35:32 +0000 (01:35 +0000)]
Detailed description of the interesting fields in xvmc struct.

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

15 years agoMove the state field in the xvmc struct to the extensions section.
Ivan Kalvachev [Sun, 15 Feb 2009 01:28:50 +0000 (01:28 +0000)]
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

15 years agoRemove redundant assert(render) in ff_xvmc_init_block(). The immediately
Diego Biurrun [Sun, 15 Feb 2009 01:24:09 +0000 (01:24 +0000)]
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

15 years agoRemove asserts that are immediately followed by a check and error return.
Diego Biurrun [Sun, 15 Feb 2009 00:52:16 +0000 (00:52 +0000)]
Remove asserts that are immediately followed by a check and error return.

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

15 years agoDrop struct members display_flags and state with the next major version bump.
Diego Biurrun [Sun, 15 Feb 2009 00:40:57 +0000 (00:40 +0000)]
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

15 years agoDoxygen comment/explanation for ff_xvmc_init_block().
Diego Biurrun [Sun, 15 Feb 2009 00:16:51 +0000 (00:16 +0000)]
Doxygen comment/explanation for ff_xvmc_init_block().

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

15 years agoRemove completely unsed structure fields mc_type and chroma_format.
Diego Biurrun [Sun, 15 Feb 2009 00:09:28 +0000 (00:09 +0000)]
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

15 years agowhitespace consistency cosmetics
Diego Biurrun [Sat, 14 Feb 2009 23:48:11 +0000 (23:48 +0000)]
whitespace consistency cosmetics

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

15 years agoAdd avcodec.h #include so that LIBAVCODEC_VERSION_MAJOR is not undefined.
Diego Biurrun [Sat, 14 Feb 2009 23:45:35 +0000 (23:45 +0000)]
Add avcodec.h #include so that LIBAVCODEC_VERSION_MAJOR is not undefined.

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

15 years agoDeprecate some unused xvmc structure fields.
Ivan Kalvachev [Sat, 14 Feb 2009 23:28:09 +0000 (23:28 +0000)]
Deprecate some unused xvmc structure fields.

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

15 years agoAdd Doxygen comment similar to ff_xvmc_field_start() to ff_xvmc_field_end().
Diego Biurrun [Sat, 14 Feb 2009 23:13:32 +0000 (23:13 +0000)]
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

15 years agowhitespace cosmetics: remove stray space
Diego Biurrun [Sat, 14 Feb 2009 23:08:43 +0000 (23:08 +0000)]
whitespace cosmetics: remove stray space

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

15 years agoCosmetics
Ivan Kalvachev [Sat, 14 Feb 2009 23:01:19 +0000 (23:01 +0000)]
Cosmetics

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

15 years agoMerge preprocessor if CONFIG_MPEG_XVMC_DECODER and code if( &&)
Ivan Kalvachev [Sat, 14 Feb 2009 22:59:19 +0000 (22:59 +0000)]
Merge preprocessor if CONFIG_MPEG_XVMC_DECODER and code if( &&)
where possible

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

15 years agoDoxygenize ff_xvmc_field_start() comment.
Diego Biurrun [Sat, 14 Feb 2009 22:48:59 +0000 (22:48 +0000)]
Doxygenize ff_xvmc_field_start() comment.

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

15 years agoClarify ff_xvmc_field_start() comment.
Diego Biurrun [Sat, 14 Feb 2009 22:46:40 +0000 (22:46 +0000)]
Clarify ff_xvmc_field_start() comment.

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

15 years agoCheck ff_xvmc_field_start() result in all cases.
Ivan Kalvachev [Sat, 14 Feb 2009 22:46:20 +0000 (22:46 +0000)]
Check ff_xvmc_field_start() result in all cases.

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

15 years agoAnother attempt to clarify draw_horiz_band() usage.
Ivan Kalvachev [Sat, 14 Feb 2009 22:22:55 +0000 (22:22 +0000)]
Another attempt to clarify draw_horiz_band() usage.

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

15 years agoMerge some declarations and initializations.
Diego Biurrun [Sat, 14 Feb 2009 22:21:17 +0000 (22:21 +0000)]
Merge some declarations and initializations.

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

15 years agoReturn error instead of triggering assert.
Ivan Kalvachev [Sat, 14 Feb 2009 22:06:00 +0000 (22:06 +0000)]
Return error instead of triggering assert.

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

15 years agocosmetics: comment wording/grammar
Diego Biurrun [Sat, 14 Feb 2009 21:52:44 +0000 (21:52 +0000)]
cosmetics: comment wording/grammar

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

15 years agocosmetics: Change '8*8' to '64'.
Diego Biurrun [Sat, 14 Feb 2009 21:50:46 +0000 (21:50 +0000)]
cosmetics: Change '8*8' to '64'.

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

15 years agocosmetics: K&R style
Diego Biurrun [Sat, 14 Feb 2009 21:49:48 +0000 (21:49 +0000)]
cosmetics: K&R style

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

15 years agoGive nice message for failed assert.
Ivan Kalvachev [Sat, 14 Feb 2009 21:33:13 +0000 (21:33 +0000)]
Give nice message for failed assert.

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

15 years agoAttempt to clarify draw_horiz_band description and fix two random typos.
Diego Biurrun [Sat, 14 Feb 2009 21:00:26 +0000 (21:00 +0000)]
Attempt to clarify draw_horiz_band description and fix two random typos.

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

15 years agoMore clarification for draw_horiz_band() in hwaccell mode.
Ivan Kalvachev [Sat, 14 Feb 2009 20:52:18 +0000 (20:52 +0000)]
More clarification for draw_horiz_band() in hwaccell mode.

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

15 years agoAdd xvmc_internal.h that contains all internal xvmc function declarations.
Diego Biurrun [Sat, 14 Feb 2009 20:37:14 +0000 (20:37 +0000)]
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

15 years agoCosmetic 64 instead 8*8
Ivan Kalvachev [Sat, 14 Feb 2009 20:35:10 +0000 (20:35 +0000)]
Cosmetic 64 instead 8*8

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

15 years agoClarify some assert usage.
Ivan Kalvachev [Sat, 14 Feb 2009 20:30:13 +0000 (20:30 +0000)]
Clarify some assert usage.
They are not to check application supplied parameters.

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

15 years agoUse sws_printVec2() instead of the deprecated sws_printVec().
Stefano Sabatini [Sat, 14 Feb 2009 20:18:50 +0000 (20:18 +0000)]
Use sws_printVec2() instead of the deprecated sws_printVec().

Originally committed as revision 28567 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

15 years agoImplement sws_printVec2() and deprecate sws_printVec().
Stefano Sabatini [Sat, 14 Feb 2009 20:14:28 +0000 (20:14 +0000)]
Implement sws_printVec2() and deprecate sws_printVec().

Originally committed as revision 28566 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

15 years agoDocument that ff_draw_horiz_band() could be used as hwaccell callback.
Ivan Kalvachev [Sat, 14 Feb 2009 20:07:52 +0000 (20:07 +0000)]
Document that ff_draw_horiz_band() could be used as hwaccell callback.

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

15 years agoanother (last?) round of K&R whitespace cosmetics
Diego Biurrun [Sat, 14 Feb 2009 20:00:22 +0000 (20:00 +0000)]
another (last?) round of K&R whitespace cosmetics

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

15 years agowhitespace cosmetics: Align some comments.
Diego Biurrun [Sat, 14 Feb 2009 19:54:59 +0000 (19:54 +0000)]
whitespace cosmetics: Align some comments.

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

15 years agowhitespace cosmetics: Put some spaces around operators for better readability.
Diego Biurrun [Sat, 14 Feb 2009 19:52:06 +0000 (19:52 +0000)]
whitespace cosmetics: Put some spaces around operators for better readability.

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

15 years agoRemove a comment that references a non-existing function.
Diego Biurrun [Sat, 14 Feb 2009 19:47:55 +0000 (19:47 +0000)]
Remove a comment that references a non-existing function.

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

15 years agoMake one comment slightly clearer and more readable.
Diego Biurrun [Sat, 14 Feb 2009 19:42:29 +0000 (19:42 +0000)]
Make one comment slightly clearer and more readable.

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

15 years agoRemove one more commented-out line.
Diego Biurrun [Sat, 14 Feb 2009 19:41:16 +0000 (19:41 +0000)]
Remove one more commented-out line.

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

15 years agosome more K&R whitespace cosmetics
Diego Biurrun [Sat, 14 Feb 2009 19:39:07 +0000 (19:39 +0000)]
some more K&R whitespace cosmetics

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

15 years agoDocument sws_normalizeVec().
Stefano Sabatini [Sat, 14 Feb 2009 19:37:13 +0000 (19:37 +0000)]
Document sws_normalizeVec().

Originally committed as revision 28565 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

15 years agocosmetics: grammar/spelling/wording fixes in comments
Diego Biurrun [Sat, 14 Feb 2009 19:33:09 +0000 (19:33 +0000)]
cosmetics: grammar/spelling/wording fixes in comments

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

15 years agoRemove useless comment.
Diego Biurrun [Sat, 14 Feb 2009 19:27:34 +0000 (19:27 +0000)]
Remove useless comment.

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

15 years agoRestore one set of parentheses to avoid the warning:
Diego Biurrun [Sat, 14 Feb 2009 19:24:37 +0000 (19:24 +0000)]
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

15 years agowhitespace cosmetics: consistently format all comments
Diego Biurrun [Sat, 14 Feb 2009 19:21:00 +0000 (19:21 +0000)]
whitespace cosmetics: consistently format all comments

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

15 years agowhitespace cosmetics: Correctly indent all comments.
Diego Biurrun [Sat, 14 Feb 2009 19:14:46 +0000 (19:14 +0000)]
whitespace cosmetics: Correctly indent all comments.

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

15 years agoClarify TODO comment
Ivan Kalvachev [Sat, 14 Feb 2009 19:09:33 +0000 (19:09 +0000)]
Clarify TODO comment

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

15 years agoRemove compatibility layer for old names of xvmc definitions.
Diego Biurrun [Sat, 14 Feb 2009 19:08:47 +0000 (19:08 +0000)]
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

15 years agoDrop two more sets of useless parentheses.
Diego Biurrun [Sat, 14 Feb 2009 19:05:07 +0000 (19:05 +0000)]
Drop two more sets of useless parentheses.

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

15 years agoget rid of the branch prediction
Ivan Kalvachev [Sat, 14 Feb 2009 19:02:46 +0000 (19:02 +0000)]
get rid of the branch prediction

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

15 years agocosmetics: Consistently format all if/else statements in K&R style
Diego Biurrun [Sat, 14 Feb 2009 19:00:51 +0000 (19:00 +0000)]
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

15 years agoRemove some useless parentheses.
Diego Biurrun [Sat, 14 Feb 2009 18:57:32 +0000 (18:57 +0000)]
Remove some useless parentheses.

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

15 years agoRename some forward declarations that were missed, fixes the warnings:
Diego Biurrun [Sat, 14 Feb 2009 18:51:17 +0000 (18:51 +0000)]
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

15 years agoremove obsolete comment
Ivan Kalvachev [Sat, 14 Feb 2009 18:47:00 +0000 (18:47 +0000)]
remove obsolete comment

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

15 years agoFix compilation: XVMC_ --> ff_xvmc prefix for xvmc functions.
Diego Biurrun [Sat, 14 Feb 2009 18:46:32 +0000 (18:46 +0000)]
Fix compilation: XVMC_ --> ff_xvmc prefix for xvmc functions.

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

15 years agoremove some useless ()
Ivan Kalvachev [Sat, 14 Feb 2009 18:45:44 +0000 (18:45 +0000)]
remove some useless ()

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

15 years agouse ff_xvmc for function names instead of XVMC_
Ivan Kalvachev [Sat, 14 Feb 2009 18:25:41 +0000 (18:25 +0000)]
use ff_xvmc for function names instead of XVMC_

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

15 years agowhitespace cosmetics: Restore vertical alignment.
Diego Biurrun [Sat, 14 Feb 2009 18:15:59 +0000 (18:15 +0000)]
whitespace cosmetics: Restore vertical alignment.

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

15 years agoclarify xvmc struct fields usage distribution (internal communication)
Ivan Kalvachev [Sat, 14 Feb 2009 18:06:05 +0000 (18:06 +0000)]
clarify xvmc struct fields usage distribution (internal communication)

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

15 years agodoxygen style comments
Ivan Kalvachev [Sat, 14 Feb 2009 17:56:51 +0000 (17:56 +0000)]
doxygen style comments

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

15 years agoReplace useless X11 #includes by the one that actually provides the required
Diego Biurrun [Sat, 14 Feb 2009 17:52:30 +0000 (17:52 +0000)]
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

15 years agowhitespace cosmetics: vertical alignment
Diego Biurrun [Sat, 14 Feb 2009 17:45:38 +0000 (17:45 +0000)]
whitespace cosmetics: vertical alignment

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

15 years agoFix non-Doxygen comment.
Diego Biurrun [Sat, 14 Feb 2009 17:42:40 +0000 (17:42 +0000)]
Fix non-Doxygen comment.

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

15 years agoAdd avcodec.h #include so that LIBAVCODEC_VERSION_MAJOR is not undefined.
Diego Biurrun [Sat, 14 Feb 2009 17:37:42 +0000 (17:37 +0000)]
Add avcodec.h #include so that LIBAVCODEC_VERSION_MAJOR is not undefined.

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

15 years agovertically align xvmc struct member comments
Ivan Kalvachev [Sat, 14 Feb 2009 17:28:39 +0000 (17:28 +0000)]
vertically align xvmc struct member comments

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

15 years agoRename xvmc flags to follow ffmpeg AV_ notion.
Ivan Kalvachev [Sat, 14 Feb 2009 17:24:01 +0000 (17:24 +0000)]
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

15 years agoGive public #defines that are used by MPlayer an AV_ prefix.
Diego Biurrun [Sat, 14 Feb 2009 17:12:25 +0000 (17:12 +0000)]
Give public #defines that are used by MPlayer an AV_ prefix.

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

15 years agoReplace all (x == NULL) or (x != NULL) in assert and if conditions by !x and x.
Diego Biurrun [Sat, 14 Feb 2009 17:04:09 +0000 (17:04 +0000)]
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

15 years agoUpdate multiple inclusion guards to match filename.
Diego Biurrun [Sat, 14 Feb 2009 16:54:53 +0000 (16:54 +0000)]
Update multiple inclusion guards to match filename.

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

15 years agoremove assertion that use external definitions
Ivan Kalvachev [Sat, 14 Feb 2009 16:53:42 +0000 (16:53 +0000)]
remove assertion that use external definitions

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

15 years agoFix compilation: Restore mistakenly removed constant definitions.
Diego Biurrun [Sat, 14 Feb 2009 16:43:35 +0000 (16:43 +0000)]
Fix compilation: Restore mistakenly removed constant definitions.

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

15 years agoMake hScale_altivec_real() trim its output like other implementations do
Kostya Shishkov [Sat, 14 Feb 2009 16:39:15 +0000 (16:39 +0000)]
Make hScale_altivec_real() trim its output like other implementations do

Originally committed as revision 28556 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

15 years agoSome AltiVec functions in SwScaler produce different output than their
Kostya Shishkov [Sat, 14 Feb 2009 16:37:39 +0000 (16:37 +0000)]
Some AltiVec functions in SwScaler produce different output than their
counterparts in pure C, so don't invoke them in bitexact mode.

Originally committed as revision 28555 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

15 years agoexplain chroma_format field in xvmc struct
Ivan Kalvachev [Sat, 14 Feb 2009 16:37:30 +0000 (16:37 +0000)]
explain chroma_format field in xvmc struct

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