blob: 86b083d769afe80865bc2440007ea3264763e765 [file] [log] [blame]
#ifndef LIBGAV1_SRC_PREDICTION_MASK_H_
#define LIBGAV1_SRC_PREDICTION_MASK_H_
#include <cstddef>
#include <cstdint>
#include "src/utils/types.h"
namespace libgav1 {
// This function generates wedge masks. It should be called only once for the
// decoder. If the video is key frame only, we don't have to call this
// function.
// 7.11.3.11.
void GenerateWedgeMask(uint8_t* wedge_master_mask_data,
uint8_t* wedge_masks_data);
// 7.11.3.12.
void GenerateWeightMask(const uint16_t* prediction_1, ptrdiff_t stride_1,
const uint16_t* prediction_2, ptrdiff_t stride_2,
bool mask_is_inverse, int inter_post_round_bits,
int width, int height, int bitdepth, uint8_t* mask,
ptrdiff_t mask_stride);
// 7.11.3.13.
void GenerateInterIntraMask(int mode, int width, int height, uint8_t* mask,
ptrdiff_t mask_stride);
} // namespace libgav1
#endif // LIBGAV1_SRC_PREDICTION_MASK_H_