1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavutil
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-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
2016-02-18 11:55:00 +01:00
2018-09-14 21:36:21 +02:00
2021-04-01 14:47:00 +02:00
2021-07-22 14:34:31 +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
2021-07-22 14:34:31 +02:00
2020-04-23 08:05:15 +08:00
2020-04-23 08:05:15 +08:00
2017-01-26 10:25:20 +01:00
2018-09-12 19:15:09 +02:00
2018-09-12 19:15:09 +02:00
2021-07-22 12:59:07 +02: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-08-14 09:17:45 +02:00
2015-10-11 18:03:10 -04:00
2017-03-01 11:23:19 -05:00
2016-01-13 20:00:19 -05: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-07-21 16:35:27 +02:00
2021-07-21 16:35:27 +02: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 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2021-06-02 17:30:24 +02:00
2016-01-28 19:49:48 -08: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-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
2017-11-05 22:13:16 +01:00
2021-03-14 23:29:51 +01:00
2021-07-21 16:35:27 +02:00
2021-07-22 14:34:31 +02:00