Statistics
| Branch: | Revision:

ffmpeg / libavcodec / mpegvideo_xvmc.c @ 649c171a

History | View | Annotate | Download (12 KB)

# Date Author Comment
649c171a 02/16/2009 10:46 PM Ivan Kalvachev

Thoroughly check all fields set by the application in xvmc struct.

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

42dfc2bf 02/16/2009 11:35 AM Diego Biurrun

whitespace cosmetics: Place spaces around += for better readability.

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

f9d5bf3c 02/16/2009 02:02 AM Diego Biurrun

Replace two asserts by checks and error messages.

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

6545996f 02/16/2009 01:33 AM Diego Biurrun

whitespace cosmetics

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

cad1928f 02/16/2009 12:21 AM Diego Biurrun

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

4e30fa6e 02/15/2009 08:45 PM Diego Biurrun

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

864899c3 02/15/2009 08:37 PM Diego Biurrun

cosmetics: typo fix

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

d758a5cb 02/15/2009 07:10 PM Diego Biurrun

spelling/grammar/wording fixes for Doxygen comments

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

1fcef408 02/15/2009 06:45 PM Ivan Kalvachev

Rename unique_id to the way michaelni likes it. (xvmc_id)

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

3d43e42f 02/15/2009 06:30 PM Ivan Kalvachev

Document all functions in mpegvideo_xvmc.

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

f602b044 02/15/2009 05:42 PM Diego Biurrun

Rename xvmc_pixfmt_render structure to xvmc_pix_fmt.

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

11f8aa04 02/15/2009 05:21 PM Ivan Kalvachev

Kill the magic field in xvmc structure.

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

9043202e 02/15/2009 04:54 PM Diego Biurrun

K&R whitespace cosmetics

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

c1e7b256 02/15/2009 04:29 PM Diego Biurrun

10l: Remove duplicated hunk of code.

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

9e0a8a36 02/15/2009 10:15 AM Ivan Kalvachev

Cosmetics. Vertical align.

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

d76c5ed5 02/15/2009 10:14 AM Ivan Kalvachev

Almost cosmetics.
Move some assignments after the checks.

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

d2d600b7 02/15/2009 10:06 AM Ivan Kalvachev

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

afb9342a 02/15/2009 09:03 AM Ivan Kalvachev

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

095edd3e 02/15/2009 08:42 AM Ivan Kalvachev

Rename xvmc_render_state to something with pixfmt in its name.

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

1a90cf3c 02/15/2009 07:55 AM Ivan Kalvachev

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

a0723a4d 02/15/2009 02:36 AM Ivan Kalvachev

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

1333d8fd 02/15/2009 02:27 AM Diego Biurrun

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

967d2ae6 02/15/2009 01:24 AM Diego Biurrun

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

e26f8d76 02/15/2009 12:52 AM Diego Biurrun

Remove asserts that are immediately followed by a check and error return.

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

8f38ff00 02/15/2009 12:16 AM Diego Biurrun

Doxygen comment/explanation for ff_xvmc_init_block().

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

0b2eb2e8 02/14/2009 11:13 PM Diego Biurrun

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

fe4be5db 02/14/2009 11:08 PM Diego Biurrun

whitespace cosmetics: remove stray space

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

9107f7cd 02/14/2009 10:48 PM Diego Biurrun

Doxygenize ff_xvmc_field_start() comment.

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

a1bce011 02/14/2009 10:46 PM Diego Biurrun

Clarify ff_xvmc_field_start() comment.

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

b71bd0ed 02/14/2009 10:21 PM Diego Biurrun

Merge some declarations and initializations.

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

013cebfb 02/14/2009 10:06 PM Ivan Kalvachev

Return error instead of triggering assert.

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

930efaf4 02/14/2009 09:52 PM Diego Biurrun

cosmetics: comment wording/grammar

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

6e4b41f8 02/14/2009 09:50 PM Diego Biurrun

cosmetics: Change '8*8' to '64'.

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

cb18fb62 02/14/2009 09:49 PM Diego Biurrun

cosmetics: K&R style

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

9939841f 02/14/2009 09:33 PM Ivan Kalvachev

Give nice message for failed assert.

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

4440bd0d 02/14/2009 08:37 PM Diego Biurrun

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

6e280340 02/14/2009 08:35 PM Ivan Kalvachev

Cosmetic 64 instead 8*8

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

ae4dde76 02/14/2009 08:30 PM Ivan Kalvachev

Clarify some assert usage.
They are not to check application supplied parameters.

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

99df0aa5 02/14/2009 08:00 PM Diego Biurrun

another (last?) round of K&R whitespace cosmetics

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

ba585726 02/14/2009 07:54 PM Diego Biurrun

whitespace cosmetics: Align some comments.

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

81189e4f 02/14/2009 07:52 PM Diego Biurrun

whitespace cosmetics: Put some spaces around operators for better readability.

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

465ce23e 02/14/2009 07:47 PM Diego Biurrun

Remove a comment that references a non-existing function.

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

0439c09d 02/14/2009 07:42 PM Diego Biurrun

Make one comment slightly clearer and more readable.

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

63a21bc0 02/14/2009 07:41 PM Diego Biurrun

Remove one more commented-out line.

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

7e2e870e 02/14/2009 07:39 PM Diego Biurrun

some more K&R whitespace cosmetics

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

a1db3b93 02/14/2009 07:33 PM Diego Biurrun

cosmetics: grammar/spelling/wording fixes in comments

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

052f3779 02/14/2009 07:27 PM Diego Biurrun

Remove useless comment.

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

eba9cecc 02/14/2009 07:24 PM Diego Biurrun

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

1f7c1d14 02/14/2009 07:21 PM Diego Biurrun

whitespace cosmetics: consistently format all comments

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

d15876d3 02/14/2009 07:14 PM Diego Biurrun

whitespace cosmetics: Correctly indent all comments.

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

788aa94a 02/14/2009 07:09 PM Ivan Kalvachev

Clarify TODO comment

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

36c5204d 02/14/2009 07:05 PM Diego Biurrun

Drop two more sets of useless parentheses.

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

90509ec7 02/14/2009 07:02 PM Ivan Kalvachev

get rid of the branch prediction

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

4ec58e13 02/14/2009 07:00 PM Diego Biurrun

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

9f00a41c 02/14/2009 06:57 PM Diego Biurrun

Remove some useless parentheses.

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

f0a902ad 02/14/2009 06:47 PM Ivan Kalvachev

remove obsolete comment

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

4742762f 02/14/2009 06:45 PM Ivan Kalvachev

remove some useless ()

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

78f9a878 02/14/2009 06:25 PM Ivan Kalvachev

use ff_xvmc for function names instead of XVMC_

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

ea375af8 02/14/2009 05:12 PM Diego Biurrun

Give public #defines that are used by MPlayer an AV_ prefix.

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

3ae01928 02/14/2009 05:04 PM Diego Biurrun

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

ef1b5ae2 02/14/2009 04:53 PM Ivan Kalvachev

remove assertion that use external definitions

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

4ef690f5 02/14/2009 04:23 PM Diego Biurrun

whitespace cosmetics: vertical alignment

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

2d7d8cc7 02/14/2009 04:22 PM Diego Biurrun

whitespace cosmetics: another round of formatting consistency fixes

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

148302e7 02/14/2009 04:14 PM Diego Biurrun

whitespace cosmetics: consistent (more or less) K&R style

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

39dba5e8 02/14/2009 04:05 PM Diego Biurrun

whitespace cosmetics: Fix indentation depth.

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

8e5cfb6e 02/14/2009 04:01 PM Diego Biurrun

Remove commented-out code.

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

9e477960 02/14/2009 03:30 PM Diego Biurrun

Rename xvmc.c --> mpegvideo_xvmc.c as suggested by Ivan.

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