1. A video-encoder-device-implemented method for encoding a set of impairments-compensation-filter coefficient values for an encoded video frame, the method comprising: obtaining, by the video encoder device, a codebook including a plurality of sets of impairments-compensation-filter coefficient values suitable for configuring a impairments compensation filter of a video decoder to process frames of encoded videos having a variety of characteristics; during encoding of an unencoded frame of video to generate an encoded bitstream, the video encoder device adaptively selecting from the codebook a set of impairments-compensation-filter coefficient values to improve how faithfully the video decoder reproduces at least a portion of the unencoded frame of video when the set of impairments-compensation-filter coefficient values is used to configure the impairments compensation filter to process at least the portion of the encoded frame; and including in the encoded bitstream generated by the video encoder device an indicator enabling the video decoder to select the selected set of impairments-compensation-filter coefficient values from the video decoder's copy of the codebook.