1 /*
2  * Copyright (c) 2001-2016, Alliance for Open Media. All rights reserved
3  *
4  * This source code is subject to the terms of the BSD 2 Clause License and
5  * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6  * was not distributed with this source code in the LICENSE file, you can
7  * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8  * Media Patent License 1.0 was not distributed with this source code in the
9  * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10  */
11 
12 /* clang-format off */
13 
14 #if !defined(_partition_H)
15 # define _partition_H
16 
17 #include "av1/common/enums.h"
18 #include "odintrin.h"
19 
20 typedef unsigned char index_pair[2];
21 
22 typedef struct {
23   const index_pair **const dst_table;
24   int size;
25   int nb_bands;
26   const int *const band_offsets;
27 } band_layout;
28 
29 extern const int *const OD_BAND_OFFSETS[OD_TXSIZES + 1];
30 
31 void od_raster_to_coding_order(tran_low_t *dst, int n,  TX_TYPE ty_type,
32  const tran_low_t *src, int stride);
33 
34 void od_coding_order_to_raster(tran_low_t *dst, int stride,  TX_TYPE ty_type,
35  const tran_low_t *src, int n);
36 
37 void od_raster_to_coding_order_16(int16_t *dst, int n, const int16_t *src,
38  int stride);
39 
40 #endif
41