1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00
FFmpeg/libavcodec
Andreas Rheinhardt 6fe4e8fab4 avcodec/mpegvideo: Split ff_mpv_reconstruct_mb() into de/encoder part
This has the advantage of not having to check for whether
a given MpegEncContext is actually a decoder or an encoder
context at runtime.

To do so, mpv_reconstruct_mb_internal() is moved into a new
template file that is included by both mpegvideo_enc.c
and mpegvideo_dec.c; the decoder-only code (mainly lowres)
are also moved to mpegvideo_dec.c. The is_encoder checks are
changed to #if IS_ENCODER in order to avoid having to include
headers for decoder-only functions in mpegvideo_enc.c.

This approach also has the advantage that it is easy to adapt
mpv_reconstruct_mb_internal() to using different structures
for decoders and encoders (e.g. the check for whether
a macroblock should be processed for the encoder or not
uses MpegEncContext elements that make no sense for decoders
and should not be part of their context).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-10-20 07:29:03 +02:00
..
2022-09-27 13:19:52 +02:00
2022-10-18 13:20:37 +11:00
2022-10-17 09:56:47 +02:00
2022-10-05 08:26:19 +02:00
2022-10-05 08:26:19 +02:00
2022-10-18 13:20:37 +11:00
2022-10-18 13:20:37 +11:00
2022-10-20 06:57:30 +02:00
2022-09-29 00:05:32 +02:00
2022-09-29 00:05:32 +02:00
2022-10-18 13:20:37 +11:00
2022-09-30 19:11:36 +02:00
2022-09-30 19:30:29 +02:00
2022-10-08 10:19:30 +02:00
2022-10-18 09:59:58 +08:00
2022-10-02 20:27:36 +02:00
2022-10-14 16:14:24 +02:00
2022-09-30 04:40:44 +02:00
2022-10-17 09:51:47 +02:00
2022-10-18 13:20:37 +11:00
2022-10-13 23:42:25 +02:00
2022-10-18 13:20:37 +11:00