vk_video_samples icon indicating copy to clipboard operation
vk_video_samples copied to clipboard

AV1 decode: fix apply_grain for invisible frames

Open fhvwy opened this issue 10 months ago • 0 comments

An invisible frame (neither shown nor showable) falls into this case in the AV1 specification 5.9.30:

if ( !film_grain_params_present ||
     (!show_frame && !showable_frame) ) {
    reset_grain_params()
    return
}

6.8.20: "reset_grain_params() is a function call that indicates that all the syntax elements read in film_grain_params should be set equal to 0."

Hence apply_grain should be zero in this case.

fhvwy avatar Apr 27 '24 13:04 fhvwy