Niklas Haas
cf37c3fb6c
avcodec/h264_slice: compute and export film grain seed
...
From SMPTE RDD 5-2006, the grain seed is to be computed from the
following definition of `pic_offset`:
> When decoding H.264 | MPEG-4 AVC bitstreams, pic_offset is defined as
> follows:
> - pic_offset = PicOrderCnt(CurrPic) + (PicOrderCnt_offset << 5)
> where:
> - PicOrderCnt(CurrPic) is the picture order count of the current frame,
> which shall be derived from [the video stream].
>
> - PicOrderCnt_offset is set to idr_pic_id on IDR frames. idr_pic_id
> shall be read from the slice header of [the video stream]. On non-IDR I
> frames, PicOrderCnt_offset is set to 0. A frame shall be classified as I
> frame when all its slices are I slices, which may be optionally
> designated by setting primary_pic_type to 0 in the access delimiter NAL
> unit. Otherwise, PicOrderCnt_offset it not changed. PicOrderCnt_offset is
> updated in decoding order.
Co-authored-by: James Almer <jamrial@gmail.com>
Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: James Almer <jamrial@gmail.com>
2021-08-24 09:58:52 -03:00
..
2021-02-21 22:41:34 +02:00
2021-02-21 22:41:34 +02:00
2021-07-28 23:31:48 +02:00
2021-07-22 15:02:30 +02:00
2021-07-18 15:04:57 +02:00
2021-04-27 10:43:13 -03:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-01-20 01:02:56 -06:00
2021-07-22 14:34:31 +02:00
2020-05-30 17:29:23 +08:00
2021-07-22 15:02:30 +02:00
2021-03-15 06:45:07 +01:00
2021-03-05 19:45:00 +02:00
2021-04-01 14:47:00 +02:00
2021-07-22 15:02:30 +02:00
2021-04-27 10:43:13 -03:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2020-08-04 00:17:56 +03:00
2020-08-04 00:17:56 +03:00
2021-07-29 22:02:05 +02:00
2020-07-23 17:21:58 +02:00
2021-07-20 10:31:41 +02:00
2021-07-20 10:31:41 +02:00
2021-07-22 14:34:31 +02:00
2020-09-15 19:29:37 -03:00
2021-04-27 10:43:13 -03:00
2021-04-18 10:41:17 +08:00
2020-06-06 10:32:07 +08:00
2021-07-22 14:34:31 +02:00
2020-04-23 08:05:15 +08:00
2020-04-23 08:05:15 +08:00
2021-07-29 22:02:05 +02:00
2021-02-10 12:28:29 +01:00
2020-11-25 23:06:33 +01:00
2021-08-24 09:58:52 -03:00
2020-09-19 00:37:45 +02:00
2021-07-22 12:59:07 +02:00
2021-04-27 10:43:13 -03:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2021-04-30 00:08:37 +02:00
2021-04-27 10:43:13 -03:00
2020-12-30 23:14:46 +01:00
2021-04-27 10:43:13 -03:00
2020-05-23 19:07:26 +01:00
2021-04-27 10:43:13 -03:00
2021-04-27 10:43:13 -03:00
2021-04-27 10:43:13 -03:00
2021-04-27 10:43:13 -03:00
2021-07-18 12:01:16 -07:00
2021-07-18 12:01:16 -07:00
2021-08-14 00:31:28 +02:00
2021-04-30 00:08:37 +02:00
2020-05-23 19:07:26 +01:00
2020-05-23 19:07:26 +01:00
2021-08-14 00:27:43 +02:00
2021-08-14 00:27:43 +02:00
2021-08-14 09:17:45 +02:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2020-04-17 00:08:56 +02:00
2021-07-22 14:34:31 +02:00
2021-07-21 16:35:27 +02:00
2021-07-21 16:35:27 +02:00
2021-07-29 22:02:05 +02:00
2021-08-04 12:59:42 +02:00
2021-07-22 14:34:31 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-05-27 10:29:52 -03:00
2021-08-12 15:25:58 +02:00
2021-08-12 15:25:58 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-06-08 12:52:50 +02:00
2021-08-17 19:11:57 +02:00
2021-03-03 16:54:20 +01:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2021-06-02 17:30:24 +02:00
2020-05-23 15:51:44 +02:00
2020-05-23 15:51:44 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-06-13 16:10:37 -03:00
2021-06-13 16:10:37 -03:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-07-22 12:59:07 +02:00
2021-02-28 17:14:21 +01:00
2021-02-28 17:14:21 +01:00
2020-12-28 01:12:26 -03:00
2021-03-14 23:29:51 +01:00
2020-12-03 18:32:54 +01:00
2021-07-21 16:35:27 +02:00
2021-07-22 14:34:31 +02:00
2021-07-22 15:02:30 +02:00
2021-04-24 17:19:17 +02:00
2021-08-06 21:22:49 -03:00
2021-04-24 17:17:27 +02:00
2021-08-17 19:11:57 +02:00
2021-06-10 16:59:50 +02:00
2021-01-01 14:23:19 +01:00