在AV1中,一个块的预测模式可以分为帧内预测(Intra Prediction)和帧间预测(Inter Prediction),与其他的编解码器一样,帧内预测只能在当前帧内部寻找参考,而帧间预测是在时域上的参考帧上寻找参考。
AV1 帧内预测
首先,不同于其他编码标准的一点,AV1的帧内预测并不是依据Super block子划分获得的block来进行的,而是根据依据变换块的大小来进行的(transform block),之所以这么做,是因为认为当一个块(Block)中若被划分为多块进行transform,对这些块分别进行预测要比对其整体进行预测要来的精准。
When the transform size is smaller than the block size, the prediction is invoked multiple times in raster order with the block, thus allowing the prediction of a transform block to use the previous predicted and reconstructed transform block as a better reference.
AV1的帧内预测,相比起其前身VP9,或者是ITU系的编解码标准(H.264&HEVC等),预测模式要丰富很多,主要包含以下六种;
- Recursive Intra Prediction
- Directional Intra Prediction(36° - 212°)
- Smooth Intra Prediction
- DC Intra Prediction
- Paeth Intra Prediction
- Chroma from Luma (CfL)
然后另外还包含两种SCC的预测模式
- Palette Prediction
- Intra Block Copy
下图描述了在参考软件Libaom AV1中的intra prediction在解码端的简易流程图