blob: bd308f94f9da1c763615ad9b15b4d6dbdff85f23 [file] [log] [blame]
Yushin Cho77bba8d2016-11-04 16:36:56 -07001/*
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
20typedef unsigned char index_pair[2];
21
22typedef 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
Yushin Cho48f84db2016-11-07 21:20:17 -080029extern const int *const OD_BAND_OFFSETS[OD_TXSIZES + 1];
Yushin Cho77bba8d2016-11-04 16:36:56 -070030
Thomas Daede1dbda1b2017-02-06 16:06:29 -080031void od_raster_to_coding_order(tran_low_t *dst, int n, TX_TYPE ty_type,
32 const tran_low_t *src, int stride);
Yushin Cho77bba8d2016-11-04 16:36:56 -070033
Thomas Daede1dbda1b2017-02-06 16:06:29 -080034void od_coding_order_to_raster(tran_low_t *dst, int stride, TX_TYPE ty_type,
35 const tran_low_t *src, int n);
Yushin Cho77bba8d2016-11-04 16:36:56 -070036
37void od_raster_to_coding_order_16(int16_t *dst, int n, const int16_t *src,
38 int stride);
39
40#endif