linux/drivers/staging/media/atomisp/pci/isp/kernels/macc/macc_1.0/ia_css_macc_table.host.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0
   2/*
   3 * Support for Intel Camera Imaging ISP subsystem.
   4 * Copyright (c) 2015, Intel Corporation.
   5 *
   6 * This program is free software; you can redistribute it and/or modify it
   7 * under the terms and conditions of the GNU General Public License,
   8 * version 2, as published by the Free Software Foundation.
   9 *
  10 * This program is distributed in the hope it will be useful, but WITHOUT
  11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  13 * more details.
  14 */
  15
  16#include "system_global.h"
  17#include "ia_css_types.h"
  18#include "ia_css_macc_table.host.h"
  19
  20/* Multi-Axes Color Correction table for ISP1.
  21 *      64values = 2x2matrix for 16area, [s2.13]
  22 *      ineffective: 16 of "identity 2x2 matix" {8192,0,0,8192}
  23 */
  24const struct ia_css_macc_table default_macc_table = {
  25        {
  26                8192, 0, 0, 8192, 8192, 0, 0, 8192,
  27                8192, 0, 0, 8192, 8192, 0, 0, 8192,
  28                8192, 0, 0, 8192, 8192, 0, 0, 8192,
  29                8192, 0, 0, 8192, 8192, 0, 0, 8192,
  30                8192, 0, 0, 8192, 8192, 0, 0, 8192,
  31                8192, 0, 0, 8192, 8192, 0, 0, 8192,
  32                8192, 0, 0, 8192, 8192, 0, 0, 8192,
  33                8192, 0, 0, 8192, 8192, 0, 0, 8192
  34        }
  35};
  36
  37/* Multi-Axes Color Correction table for ISP2.
  38 *      64values = 2x2matrix for 16area, [s1.12]
  39 *      ineffective: 16 of "identity 2x2 matix" {4096,0,0,4096}
  40 */
  41const struct ia_css_macc_table default_macc2_table = {
  42        {
  43                4096, 0, 0, 4096, 4096, 0, 0, 4096,
  44                4096, 0, 0, 4096, 4096, 0, 0, 4096,
  45                4096, 0, 0, 4096, 4096, 0, 0, 4096,
  46                4096, 0, 0, 4096, 4096, 0, 0, 4096,
  47                4096, 0, 0, 4096, 4096, 0, 0, 4096,
  48                4096, 0, 0, 4096, 4096, 0, 0, 4096,
  49                4096, 0, 0, 4096, 4096, 0, 0, 4096,
  50                4096, 0, 0, 4096, 4096, 0, 0, 4096
  51        }
  52};
  53