• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2018 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can
5  * be found in the LICENSE file.
6  *
7  */
8 
9 #pragma once
10 
11 //
12 //
13 //
14 
15 #include <stdint.h>
16 
17 //
18 // There must be an even number of rows.  This is enforced elsewhere.
19 //
20 // The transpose requires (cols_log2 * rows/2) row-pair blends.
21 //
22 
23 void
24 hsg_transpose(uint32_t                   const cols_log2,
25               uint32_t                   const rows,
26               void (*pfn_blend)(uint32_t const cols_log2,
27                                 uint32_t const row_ll, // lower-left
28                                 uint32_t const row_ur, // upper-right
29                                 void *         blend),
30               void *                           blend,
31               void (*pfn_remap)(uint32_t const row_from,
32                                 uint32_t const row_to,
33                                 void *         remap),
34               void *                           remap);
35 
36 //
37 //
38 //
39