diff options
author | Niklas Haas <git@haasn.dev> | 2021-09-29 01:06:02 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-10-15 11:55:45 -0300 |
commit | 3cc3f5de2afda5b8f880c0817e9d67c2dafbfe1e (patch) | |
tree | b6b31494a972106f66ebb8219bfce5fbed40ceb9 /libavcodec/pcm-dvdenc.c | |
parent | 5d16660598dd9409c1028204cac3a966a939b719 (diff) | |
download | ffmpeg-3cc3f5de2afda5b8f880c0817e9d67c2dafbfe1e.tar.gz |
avcodec/hevcdec: apply H.274 film grain
Similar in spirit and design to 66845cffc3bbb, but slightly simpler due
to the lack of interlaced frames in HEVC. See that commit for more
details.
For the seed value, since no specification for this appears to exist, I
semi-arbitrarily decided to base it off the POC id alone, since there's
no analog of the idr_pic_id in HEVC's I-frames. This design is stable
across remuxes and seeks, but changes for adjacent frames with a period
that's typically long enough not to be noticeable, which makes it
satisfy all of the requirements that a film grain seed should have.
Tested with and without threading, using a patch to insert film grain
metadata artificially (for lack of real files containing film grain).
Diffstat (limited to 'libavcodec/pcm-dvdenc.c')
0 files changed, 0 insertions, 0 deletions