linux/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_2/ia_css_anr2.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 "ia_css_types.h"
  17#include "sh_css_defs.h"
  18#include "ia_css_debug.h"
  19
  20#include "ia_css_anr2.host.h"
  21
  22void
  23ia_css_anr2_vmem_encode(
  24    struct ia_css_isp_anr2_params *to,
  25    const struct ia_css_anr_thres *from,
  26    size_t size)
  27{
  28        unsigned int i;
  29
  30        (void)size;
  31        for (i = 0; i < ANR_PARAM_SIZE; i++) {
  32                unsigned int j;
  33
  34                for (j = 0; j < ISP_VEC_NELEMS; j++) {
  35                        to->data[i][j] = from->data[i * ISP_VEC_NELEMS + j];
  36                }
  37        }
  38}
  39
  40void
  41ia_css_anr2_debug_dtrace(
  42    const struct ia_css_anr_thres *config,
  43    unsigned int level)
  44{
  45        (void)config;
  46        (void)level;
  47}
  48