Blender V4.3
libmv/intern/image.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#ifndef LIBMV_IMAGE_H_
6#define LIBMV_IMAGE_H_
7
8#ifdef __cplusplus
9# include "libmv/image/image.h"
10void libmv_byteBufferToFloatImage(const unsigned char* buffer,
11 int width,
12 int height,
13 int channels,
15
16void libmv_floatBufferToFloatImage(const float* buffer,
17 int width,
18 int height,
19 int channels,
21
23 float* buffer);
24
26 unsigned char* buffer);
27
29 const char* prefix,
30 int x0,
31 int y0);
32#endif // __cplusplus
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
44
46
47void libmv_samplePlanarPatchFloat(const float* image,
48 int width,
49 int height,
50 int channels,
51 const double* xs,
52 const double* ys,
53 int num_samples_x,
54 int num_samples_y,
55 const float* mask,
56 float* patch,
57 double* warped_position_x,
58 double* warped_position_y);
59
60void libmv_samplePlanarPatchByte(const unsigned char* image,
61 int width,
62 int height,
63 int channels,
64 const double* xs,
65 const double* ys,
66 int num_samples_x,
67 int num_samples_y,
68 const float* mask,
69 unsigned char* patch,
70 double* warped_position_x,
71 double* warped_position_y);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif // LIBMV_IMAGE_H_
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Brightness Control the brightness and contrast of the input color Vector Map input vector components with curves Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert Invert a producing a negative Combine Generate a color from its and blue channels(Deprecated)") DefNode(ShaderNode
input_tx image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "preview_img") .compute_source("compositor_compute_preview.glsl") .do_static_compilation(true)
bool libmv_saveImage(const FloatImage &image, const char *prefix, int x0, int y0)
void libmv_floatBufferToFloatImage(const float *buffer, int width, int height, int channels, FloatImage *image)
void libmv_floatImageToFloatBuffer(const FloatImage &image, float *buffer)
void libmv_floatImageToByteBuffer(const libmv::FloatImage &image, unsigned char *buffer)
void libmv_byteBufferToFloatImage(const unsigned char *buffer, int width, int height, int channels, FloatImage *image)
void libmv_samplePlanarPatchFloat(const float *image, int width, int height, int channels, const double *xs, const double *ys, int num_samples_x, int num_samples_y, const float *mask, float *patch, double *warped_position_x, double *warped_position_y)
void libmv_samplePlanarPatchByte(const unsigned char *image, int width, int height, int channels, const double *xs, const double *ys, int num_samples_x, int num_samples_y, const float *mask, unsigned char *patch, double *warped_position_x, double *warped_position_y)
void libmv_floatImageDestroy(libmv_FloatImage *image)
ccl_device_inline float4 mask(const int4 mask, const float4 a)
Array3Df FloatImage