The goal is to solve confusion of the "All rights reserved" for licensing
code under an open-source license.
The phrase "All rights reserved" comes from a historical convention that
required this phrase for the copyright protection to apply. This convention
is no longer relevant.
However, even though the phrase has no meaning in establishing the copyright
it has not lost meaning in terms of licensing.
This change makes it so code under the Blender Foundation copyright does
not use "all rights reserved". This is also how the GPL license itself
states how to apply it to the source code:
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software ...
This change does not change copyright notice in cases when the copyright
is dual (BF and an author), or just an author of the code. It also does
mot change copyright which is inherited from NaN Holding BV as it needs
some further investigation about what is the proper way to handle it.
82 lines
2.9 KiB
C
82 lines
2.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2012 Blender Foundation */
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bli
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void BLI_bicubic_interpolation_fl(
|
|
const float *buffer, float *output, int width, int height, int components, float u, float v);
|
|
|
|
void BLI_bicubic_interpolation_char(const unsigned char *buffer,
|
|
unsigned char *output,
|
|
int width,
|
|
int height,
|
|
int components,
|
|
float u,
|
|
float v);
|
|
|
|
void BLI_bilinear_interpolation_fl(
|
|
const float *buffer, float *output, int width, int height, int components, float u, float v);
|
|
|
|
void BLI_bilinear_interpolation_char(const unsigned char *buffer,
|
|
unsigned char *output,
|
|
int width,
|
|
int height,
|
|
int components,
|
|
float u,
|
|
float v);
|
|
|
|
void BLI_bilinear_interpolation_wrap_fl(const float *buffer,
|
|
float *output,
|
|
int width,
|
|
int height,
|
|
int components,
|
|
float u,
|
|
float v,
|
|
bool wrap_x,
|
|
bool wrap_y);
|
|
|
|
void BLI_bilinear_interpolation_wrap_char(const unsigned char *buffer,
|
|
unsigned char *output,
|
|
int width,
|
|
int height,
|
|
int components,
|
|
float u,
|
|
float v,
|
|
bool wrap_x,
|
|
bool wrap_y);
|
|
|
|
#define EWA_MAXIDX 255
|
|
extern const float EWA_WTS[EWA_MAXIDX + 1];
|
|
|
|
typedef void (*ewa_filter_read_pixel_cb)(void *userdata, int x, int y, float result[4]);
|
|
|
|
void BLI_ewa_imp2radangle(
|
|
float A, float B, float C, float F, float *a, float *b, float *th, float *ecc);
|
|
|
|
/**
|
|
* TODO(sergey): Consider making this function inlined, so the pixel read callback
|
|
* could also be inlined in order to avoid per-pixel function calls.
|
|
*/
|
|
void BLI_ewa_filter(int width,
|
|
int height,
|
|
bool intpol,
|
|
bool use_alpha,
|
|
const float uv[2],
|
|
const float du[2],
|
|
const float dv[2],
|
|
ewa_filter_read_pixel_cb read_pixel_cb,
|
|
void *userdata,
|
|
float result[4]);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|