| /* |
| * Copyright 2020 Google LLC |
| * |
| */ |
| |
| /* |
| * Copyright (c) 2020, Alliance for Open Media. All rights reserved |
| * |
| * This source code is subject to the terms of the BSD 2 Clause License and |
| * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| * was not distributed with this source code in the LICENSE file, you can |
| * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| * Media Patent License 1.0 was not distributed with this source code in the |
| * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
| */ |
| |
| #include "idct_shader_common.h" |
| |
| #define N 32 |
| #define ScanSize 256 |
| #define IdctOutputShiftH 1 |
| #define IdctOutputShiftV 4 |
| |
| cbuffer cb_scans_64x32 : register(b0) { int4 cb_scans[ScanSize * 3]; }; |
| |
| groupshared int shared_mem[64 * 64]; |
| |
| IDCT_GEN(N, 2, 1, 1, 8, 1, TRANSFORM_64, TRANSFORM_SELECT32); |
| |
| /* |
| #include "idct_shader_common.h" |
| |
| enum |
| { |
| N = 32, |
| ScanSize = 256, |
| IdctOutputShiftH = 1, |
| IdctOutputShiftV = 4, |
| }; |
| |
| typedef struct |
| { |
| int4 table[ScanSize*3]; |
| } Scans; |
| |
| typedef struct |
| { |
| PSSLIdctData * data; |
| Scans * scans; |
| uint index_offset; |
| uint wicount; |
| } PSSLIdctSRT; |
| |
| thread_group_memory int shared_mem[64 * 64]; |
| |
| IDCT_GEN(N, 2, 1, 1, 8, 1, TRANSFORM_64, TRANSFORM_SELECT32); |
| */ |