• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2019 The libgav1 Authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef LIBGAV1_SRC_PREDICTION_MASK_H_
18 #define LIBGAV1_SRC_PREDICTION_MASK_H_
19 
20 #include <cstddef>
21 #include <cstdint>
22 
23 #include "src/utils/bit_mask_set.h"
24 #include "src/utils/types.h"
25 
26 namespace libgav1 {
27 
28 constexpr BitMaskSet kIsWedgeCompoundModeAllowed(kBlock8x8, kBlock8x16,
29                                                  kBlock8x32, kBlock16x8,
30                                                  kBlock16x16, kBlock16x32,
31                                                  kBlock32x8, kBlock32x16,
32                                                  kBlock32x32);
33 
34 // This function generates wedge masks. It should be called only once for the
35 // decoder. If the video is key frame only, we don't have to call this
36 // function. Returns true on success, false on allocation failure.
37 // 7.11.3.11.
38 bool GenerateWedgeMask(WedgeMaskArray* wedge_masks);
39 
40 }  // namespace libgav1
41 #endif  // LIBGAV1_SRC_PREDICTION_MASK_H_
42