1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-14 22:22:59 +02:00
FFmpeg/libavcodec
Anton Khirnov 3fdf50f9e8 hwframe: Allow hwaccel frame allocators to align surface sizes
Hardware accelerated decoding generally uses AVHWFramesContext for pool
allocation of hardware surfaces. These are setup to allocate surfaces
aligned to hardware and hwaccel API requirements. Due to the
architecture, av_hwframe_get_buffer() will return AVFrames with
the dimensions set to the aligned sizes.

This causes some decoders (like hevc) return these aligned size as
final frame size, instead of cropping them to the video's actual
dimensions. To make sure this doesn't happen, crop the frame to the
size the decoder expects when ff_get_buffer() is called.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2017-06-27 00:23:12 +02:00
..
2017-05-15 09:52:18 +03:00
2016-02-18 15:35:30 +01:00
2016-11-13 18:44:00 +01:00
2016-06-07 13:09:57 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-02-18 15:35:30 +01:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-03-20 08:15:01 +01:00
2016-05-04 18:16:21 +02:00
2017-02-07 18:27:21 +01:00
2017-03-09 18:37:29 +01:00
2017-03-09 18:37:29 +01:00
2016-05-04 18:16:21 +02:00
2017-04-25 15:39:10 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2015-12-23 11:50:08 +01:00
2016-04-26 16:30:18 -04:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-06-07 13:09:57 +02:00
2017-06-27 00:23:12 +02:00
2016-05-04 18:16:21 +02:00
2016-11-18 10:35:04 +01:00
2016-08-17 12:16:42 +02:00
2016-05-04 18:16:21 +02:00
2016-03-01 10:18:28 +01:00
2016-06-08 18:51:57 +02:00
2017-01-31 17:54:10 +01:00
2016-11-13 18:44:01 +01:00
2016-05-04 18:16:21 +02:00
2017-04-13 12:35:35 +02:00
2017-02-07 18:27:21 +01:00
2017-04-13 13:37:10 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-06-08 18:51:56 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2017-03-27 22:56:23 +03:00
2017-03-27 22:56:23 +03:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-03-29 13:41:09 +02:00
2016-03-22 17:12:20 -04:00
2017-02-07 18:27:21 +01:00
2016-08-17 12:16:42 +02:00
2016-05-04 18:16:21 +02:00
2016-06-28 14:17:43 +03:00
2016-06-28 14:17:43 +03:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-11-13 18:44:01 +01:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-11-07 22:42:00 +01:00
2016-11-30 13:44:05 +01:00
2016-05-04 18:16:21 +02:00
2016-05-03 15:45:10 +02:00
2016-05-04 18:16:21 +02:00
2016-06-07 13:09:57 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-12-14 09:06:44 +01:00
2016-05-04 18:16:21 +02:00
2017-06-24 12:35:52 +00:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2017-02-07 18:27:21 +01:00
2016-06-12 20:27:53 +02:00
2016-11-14 19:38:20 +00:00
2016-07-22 19:08:13 +02:00
2016-05-04 18:16:21 +02:00
2016-05-11 12:22:49 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-01-21 15:33:19 -05:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-06-29 15:25:42 -04:00
2016-06-29 15:25:42 -04:00
2016-05-04 18:16:21 +02:00
2016-10-02 15:42:03 -04:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2017-06-01 14:22:01 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2017-02-25 09:57:43 +01:00
2017-01-25 11:06:58 +01:00
2017-01-25 11:06:58 +01:00
2016-09-28 10:01:52 +02:00
2016-05-04 18:16:21 +02:00
2016-02-18 15:35:30 +01:00
2017-02-07 18:27:21 +01:00
2016-05-04 18:16:21 +02:00
2017-04-13 14:09:07 +02:00
2016-02-01 13:40:07 +01:00
2016-02-01 13:40:07 +01:00
2016-03-30 09:10:26 +02:00
2016-03-30 09:10:26 +02:00
2016-12-19 08:13:08 +01:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-09-08 21:58:22 +01:00
2016-03-25 15:23:56 +01:00
2016-08-11 10:54:44 +02:00
2016-05-04 18:16:21 +02:00
2017-02-18 19:53:20 +00:00
2017-02-06 15:13:34 +01:00
2016-03-29 13:41:09 +02:00
2016-05-04 18:16:21 +02:00
2017-02-07 18:27:21 +01:00
2016-06-07 13:09:57 +02:00
2016-05-04 18:16:21 +02:00
2017-01-19 09:52:10 +01:00