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-10-11 09:12:02 +02:00
2022-09-29 23:37:13 +02:00
2022-09-29 23:37:13 +02:00
2022-10-14 16:14:24 +02:00
2022-10-17 06:39:00 +02:00
2022-10-04 17:41:34 +02:00
2022-10-14 16:14:24 +02:00
2022-10-02 20:16:42 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:47:46 +02:00
2022-09-27 13:19:52 +02:00
2022-09-27 13:19:52 +02:00
2022-09-29 23:37:13 +02:00
2022-09-29 23:37:13 +02:00
2022-09-29 23:37:13 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-09-29 23:37:13 +02:00
2022-10-05 06:51:11 +02:00
2022-10-05 06:51:11 +02:00
2022-09-28 23:44:28 +02:00
2022-10-18 13:20:37 +11:00
2022-09-29 00:05:32 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-10-05 14:20:33 +02:00
2022-10-05 14:20:33 +02:00
2022-10-09 19:28:11 +02:00
2022-10-08 00:09:35 +02:00
2022-09-27 13:19:52 +02:00
2022-09-27 13:19:52 +02:00
2022-09-28 23:44:28 +02:00
2022-10-17 09:51:47 +02:00
2022-10-04 08:40:16 -03: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-05 14:38:52 +02:00
2022-10-04 18:01:01 +02:00
2022-10-07 10:56:41 +08:00
2022-10-18 13:20:37 +11:00
2022-10-18 13:20:37 +11:00
2022-09-28 23:44:28 +02:00
2022-10-17 09:51:47 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:37:12 +02:00
2022-09-28 23:23:40 +02:00
2022-09-28 23:37:12 +02:00
2022-10-04 08:40:16 -03:00
2022-10-20 06:57:30 +02:00
2022-09-28 23:44:28 +02:00
2022-10-11 11:59:11 +02:00
2022-10-05 14:38:52 +02:00
2022-10-20 06:57:30 +02:00
2022-10-20 06:57:30 +02:00
2022-10-20 06:57:30 +02:00
2022-10-20 06:57:30 +02:00
2022-09-27 13:19:52 +02:00
2022-09-27 13:19:52 +02:00
2022-10-05 14:39:10 +02:00
2022-09-28 23:44:28 +02:00
2022-10-04 18:01:01 +02:00
2022-10-20 06:57:30 +02:00
2022-10-06 15:00:21 +02:00
2022-10-06 15:00:21 +02:00
2022-10-20 06:57:30 +02:00
2022-10-09 09:15:40 +02:00
2022-10-09 09:15:40 +02:00
2022-10-09 09:15:40 +02:00
2022-10-09 09:15:40 +02:00
2022-10-09 09:15:40 +02:00
2022-10-09 09:15:40 +02:00
2022-10-09 09:15:39 +02:00
2022-10-09 09:15:39 +02:00
2022-09-28 11:46:11 +02:00
2022-09-28 11:46:11 +02:00
2022-10-04 18:00:43 +02:00
2022-09-29 01:02:55 +02:00
2022-10-18 15:44:29 +02:00
2022-09-30 04:45:28 +02:00
2022-09-28 23:44:28 +02:00
2022-10-15 15:24:51 -03:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-10-03 23:19:47 +02:00
2022-10-03 23:19:47 +02:00
2022-10-19 11:15:38 -03:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-10-03 23:19:47 +02:00
2022-10-09 19:28:11 +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-10-09 19:31:47 +02:00
2022-09-30 19:11:36 +02:00
2022-10-17 09:55:19 +02:00
2022-10-02 11:59:25 +02:00
2022-09-30 19:30:29 +02:00
2022-10-09 19:31:47 +02:00
2022-10-04 23:47:54 +02:00
2022-09-28 23:44:28 +02:00
2022-10-15 12:17:10 +02:00
2022-10-02 20:16:42 +02:00
2022-10-02 20:16:42 +02:00
2022-10-02 20:16:42 +02:00
2022-10-04 17:41:34 +02:00
2022-10-04 17:41:34 +02:00
2022-10-04 17:41:34 +02:00
2022-10-04 17:41:34 +02:00
2022-10-04 17:41:34 +02:00
2022-10-04 17:41:34 +02:00
2022-10-04 17:41:34 +02:00
2022-10-20 06:57:30 +02:00
2022-10-04 17:41:34 +02:00
2022-10-04 17:41:34 +02:00
2022-10-20 07:29:03 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-10-20 06:57:30 +02:00
2022-10-20 07:29:03 +02:00
2022-10-20 07:29:03 +02:00
2022-10-20 07:29:03 +02:00
2022-10-20 07:29:03 +02:00
2022-10-20 07:29:03 +02:00
2022-10-20 07:29:03 +02:00
2022-10-18 15:44:29 +02:00
2022-10-07 22:54:02 +02:00
2022-10-09 19:45:06 +02:00
2022-10-05 02:15:43 +02:00
2022-10-08 10:19:30 +02:00
2022-10-08 10:19:30 +02:00
2022-10-05 02:04:41 +02:00
2022-10-08 10:19:47 +02:00
2022-10-05 02:08:39 +02:00
2022-10-08 10:19:36 +02:00
2022-10-08 10:19:36 +02:00
2022-10-05 02:15:43 +02:00
2022-10-05 02:15:43 +02:00
2022-10-08 10:19:30 +02:00
2022-10-09 19:45:06 +02:00
2022-10-05 02:15:43 +02:00
2022-10-10 02:22:10 +02:00
2022-10-10 02:22:10 +02:00
2022-10-08 10:19:36 +02:00
2022-10-08 10:19:23 +02:00
2022-10-05 02:15:43 +02:00
2022-10-10 14:10:49 +02:00
2022-10-05 02:15:43 +02:00
2022-10-10 14:10:49 +02:00
2022-10-10 14:10:49 +02:00
2022-09-28 23:44:28 +02:00
2022-09-28 23:44:28 +02:00
2022-09-27 13:19:52 +02:00
2022-09-27 13:19:52 +02:00
2022-10-20 06:57:30 +02:00
2022-10-10 09:31:34 +08:00
2022-10-10 09:31:34 +08:00
2022-10-10 09:31:34 +08:00
2022-09-30 09:20:15 +08:00
2022-10-10 11:10:13 +08:00
2022-10-10 09:31:34 +08:00
2022-10-18 09:59:58 +08:00
2022-09-30 09:20:15 +08:00
2022-09-28 23:44:28 +02:00
2022-10-02 20:27:36 +02:00
2022-09-28 23:44:28 +02:00
2022-10-05 02:15:59 +02:00
2022-09-28 23:44:28 +02:00
2022-10-05 14:38:51 +02:00
2022-10-12 10:58:15 +02:00
2022-10-20 06:57:30 +02:00
2022-10-12 10:58:15 +02:00
2022-10-04 17:41:34 +02:00
2022-10-06 15:00:21 +02:00
2022-10-09 19:31:47 +02:00
2022-10-04 23:47:54 +02:00
2022-10-19 13:48:31 +02:00
2022-10-05 14:37:52 +02:00
2022-10-14 16:14:24 +02:00
2022-10-14 16:14:24 +02:00
2022-10-14 16:14:24 +02:00
2022-09-30 04:40:44 +02:00
2022-10-20 06:57:30 +02:00
2022-10-20 06:57:30 +02:00
2022-10-04 18:01:01 +02:00
2022-10-09 19:31:47 +02:00
2022-10-17 09:51:47 +02:00
2022-10-18 13:20:37 +11:00
2022-10-17 09:55:16 +02:00
2022-10-03 23:19:47 +02:00
2022-10-03 23:19:47 +02:00
2022-10-03 23:19:47 +02:00
2022-10-03 23:19:47 +02:00
2022-10-03 23:19:47 +02:00
2022-09-27 13:19:52 +02:00
2022-09-27 13:19:52 +02:00
2022-10-03 23:19:47 +02:00
2022-10-13 23:42:25 +02:00
2022-10-18 13:20:37 +11:00
2022-10-04 18:01:01 +02:00
2022-10-04 18:01:01 +02:00
2022-10-07 22:55:21 +02:00
2022-10-09 09:15:39 +02:00
2022-10-04 18:01:01 +02:00