Blender  V3.3
libmv/intern/image.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. All rights reserved. */
3 
4 #ifndef LIBMV_IMAGE_H_
5 #define LIBMV_IMAGE_H_
6 
7 #ifdef __cplusplus
8 # include "libmv/image/image.h"
9 void libmv_byteBufferToFloatImage(const unsigned char* buffer,
10  int width,
11  int height,
12  int channels,
14 
15 void libmv_floatBufferToFloatImage(const float* buffer,
16  int width,
17  int height,
18  int channels,
20 
22  float* buffer);
23 
25  unsigned char* buffer);
26 
28  const char* prefix,
29  int x0,
30  int y0);
31 #endif // __cplusplus
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 typedef struct libmv_FloatImage {
38  float* buffer;
39  int width;
40  int height;
41  int channels;
43 
45 
46 void libmv_samplePlanarPatchFloat(const float* image,
47  int width,
48  int height,
49  int channels,
50  const double* xs,
51  const double* ys,
52  int num_samples_x,
53  int num_samples_y,
54  const float* mask,
55  float* patch,
56  double* warped_position_x,
57  double* warped_position_y);
58 
59 void libmv_samplePlanarPatchByte(const unsigned char* image,
60  int width,
61  int height,
62  int channels,
63  const double* xs,
64  const double* ys,
65  int num_samples_x,
66  int num_samples_y,
67  const float* mask,
68  unsigned char* patch,
69  double* warped_position_x,
70  double* warped_position_y);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif // LIBMV_IMAGE_H_
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
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 Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input 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 a producing a negative Combine Generate a color from its and blue channels(Deprecated)") DefNode(ShaderNode
3D array (row, column, channel).
Definition: array_nd.h:325
depth_tx normal_tx diffuse_light_tx specular_light_tx volume_light_tx environment_tx ambient_occlusion_tx aov_value_tx in_weight_img image(1, GPU_R32F, Qualifier::WRITE, ImageType::FLOAT_2D_ARRAY, "out_weight_img") .image(3
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)
ccl_global float * buffer
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)
struct libmv_FloatImage libmv_FloatImage
void libmv_floatImageDestroy(libmv_FloatImage *image)
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)
Definition: math_float4.h:513