Michael Niedermayer
f670c13f13
avcodec: Rename ff_mpv_decode_mb() to ff_mpv_reconstruct_mb
...
The new name more accuratly describes what the function does
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Vittorio Giovara
7c6eb0a1b7
lavc: AV-prefix all codec flags
...
Convert doxygen to multiline and express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
848e86f74d
mpegvideo: Drop flags and flags2
...
They are just duplicates of AVCodecContext members so use those instead.
10 years ago
Diego Biurrun
835f798c7d
mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixes
10 years ago
Diego Biurrun
e3fcb14347
dsputil: Split off IDCT bits into their own context
11 years ago
wm4
f6774f905f
mpegvideo: operate with pointers to AVFrames instead of whole structs
...
The most interesting parts are initialization in ff_MPV_common_init() and
uninitialization in ff_MPV_common_end().
ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL
checks for Picture.f, because these functions can be called on
uninitialized or partially initialized Pictures.
NULL pointer checks are added to ff_thread_release_buffer() stub function.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
11 years ago
Vittorio Giovara
e0c16e4e32
mpegvideo: move mpegvideo formats-related defines to mpegutils.h
11 years ago
Ivan Kalvachev
1c63aed232
Convert XvMC to hwaccel v3
...
Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
19e30a58fc
Deprecate obsolete XvMC hardware decoding support
...
XvMC has long ago been superseded by newer acceleration APIs, such as
VDPAU, and few downstreams still support it. Furthermore XvMC is not
implemented within the hwaccel framework, but requires its own specific
code in the MPEG-1/2 decoder, which is a maintenance burden.
11 years ago
Anton Khirnov
759001c534
lavc decoders: work with refcounted frames.
12 years ago
Diego Biurrun
c242bbd8b6
Remove unnecessary dsputil.h #includes
12 years ago
Anton Khirnov
1d0feb5d1a
mpegvideo: split ff_draw_horiz_band().
...
Split out dependency on MpegEncContext.
12 years ago
Diego Biurrun
88bd7fdc82
Drop DCTELEM typedef
...
It does not help as an abstraction and adds dsputil dependencies.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years ago
Mans Rullgard
1765aacb17
hwaccel: unbreak build
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
ce5e49b0c2
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
14 years ago
Stefano Sabatini
975a1447f7
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Nicolas Kaiser
fe655f6723
Simplify: Remove impossible condition.
...
Patch by Nicolas Kaiser, nikai nikai net
Originally committed as revision 25714 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
04a5c106f9
Consistently use third person in doxies.
...
Originally committed as revision 20388 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
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
16 years ago
Ivan Kalvachev
859bb3cfee
Add more paranoid checks of xvmc token.
...
Originally committed as revision 17453 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
2213f431c7
Directly #include required X11/XvMC header.
...
Originally committed as revision 17450 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
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
16 years ago
Diego Biurrun
63864cb810
small Doxygen comment grammar fix
...
Originally committed as revision 17403 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
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
16 years ago
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
16 years ago
Diego Biurrun
42dfc2bfa9
whitespace cosmetics: Place spaces around += for better readability.
...
Originally committed as revision 17368 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
f9d5bf3c2d
Replace two asserts by checks and error messages.
...
Originally committed as revision 17362 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
6545996fb9
whitespace cosmetics
...
Originally committed as revision 17358 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
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
16 years ago
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
16 years ago
Diego Biurrun
864899c329
cosmetics: typo fix
...
Originally committed as revision 17346 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
d758a5cb50
spelling/grammar/wording fixes for Doxygen comments
...
Originally committed as revision 17344 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
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
16 years ago
Ivan Kalvachev
3d43e42f29
Document all functions in mpegvideo_xvmc.
...
Originally committed as revision 17340 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
f602b044b5
Rename xvmc_pixfmt_render structure to xvmc_pix_fmt.
...
Originally committed as revision 17339 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Kalvachev
11f8aa042d
Kill the magic field in xvmc structure.
...
Originally committed as revision 17338 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
9043202e6e
K&R whitespace cosmetics
...
Originally committed as revision 17337 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
c1e7b256ec
10l: Remove duplicated hunk of code.
...
Originally committed as revision 17335 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Kalvachev
9e0a8a368e
Cosmetics. Vertical align.
...
Originally committed as revision 17319 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ivan Kalvachev
d76c5ed574
Almost cosmetics.
...
Move some assignments after the checks.
Originally committed as revision 17318 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
Diego Biurrun
967d2ae616
Remove redundant assert(render) in ff_xvmc_init_block(). The immediately
...
following if condition checks render and does an assert if it fails.
Originally committed as revision 17304 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
e26f8d76d7
Remove asserts that are immediately followed by a check and error return.
...
Originally committed as revision 17303 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago