28 lines
739 B
C
28 lines
739 B
C
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup imbuf
|
|
* \brief Function declarations for `filter.cc`.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "BLI_sys_types.h"
|
|
|
|
struct ImBuf;
|
|
|
|
void imb_filterx(struct ImBuf *ibuf);
|
|
|
|
void IMB_premultiply_rect(uint8_t *rect, char planes, int w, int h);
|
|
void IMB_premultiply_rect_float(float *rect_float, int channels, int w, int h);
|
|
|
|
void IMB_unpremultiply_rect(uint8_t *rect, char planes, int w, int h);
|
|
void IMB_unpremultiply_rect_float(float *rect_float, int channels, int w, int h);
|
|
|
|
/**
|
|
* Result in ibuf2, scaling should be done correctly.
|
|
*/
|
|
void imb_onehalf_no_alloc(struct ImBuf *ibuf2, struct ImBuf *ibuf1);
|