Yushin Cho | 77bba8d | 2016-11-04 16:36:56 -0700 | [diff] [blame] | 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 | |
Yushin Cho | 48f84db | 2016-11-07 21:20:17 -0800 | [diff] [blame] | 29 | extern const int *const OD_BAND_OFFSETS[OD_TXSIZES + 1]; |
Yushin Cho | 77bba8d | 2016-11-04 16:36:56 -0700 | [diff] [blame] | 30 | |
Thomas Daede | 1dbda1b | 2017-02-06 16:06:29 -0800 | [diff] [blame] | 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); |
Yushin Cho | 77bba8d | 2016-11-04 16:36:56 -0700 | [diff] [blame] | 33 | |
Thomas Daede | 1dbda1b | 2017-02-06 16:06:29 -0800 | [diff] [blame] | 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); |
Yushin Cho | 77bba8d | 2016-11-04 16:36:56 -0700 | [diff] [blame] | 36 | |
| 37 | void od_raster_to_coding_order_16(int16_t *dst, int n, const int16_t *src, |
| 38 | int stride); |
| 39 | |
| 40 | #endif |