17 struct LibmvFrameAccessor :
public FrameAccessor {
24 get_image_callback_(get_image_callback),
25 release_image_callback_(release_image_callback),
26 get_mask_for_track_callback_(get_mask_for_track_callback),
27 release_mask_callback_(release_mask_callback) {}
29 virtual ~LibmvFrameAccessor() {}
33 #define CHECK_INPUT_MODE(mode) \
34 case mode: return LIBMV_IMAGE_MODE_##mode;
37 #undef CHECK_INPUT_MODE
39 assert(!
"unknown input mode passed from Libmv.");
44 void get_libmv_region(
const Region& region,
libmv_Region* libmv_region) {
45 libmv_region->
min[0] = region.min(0);
46 libmv_region->
min[1] = region.min(1);
47 libmv_region->
max[0] = region.max(0);
48 libmv_region->
max[1] = region.max(1);
51 Key GetImage(
int clip,
62 get_libmv_region(*region, &libmv_region);
64 Key cache_key = get_image_callback_(user_data_,
69 region !=
NULL ? &libmv_region :
NULL,
78 destination->CopyFrom(temp_image);
83 void ReleaseImage(
Key cache_key) { release_image_callback_(cache_key); }
85 Key GetMaskForTrack(
int clip,
94 get_libmv_region(*region, &libmv_region);
97 get_mask_for_track_callback_(user_data_,
101 region !=
NULL ? &libmv_region :
NULL,
106 if (cache_key ==
NULL) {
113 destination->CopyFrom(temp_image);
118 void ReleaseMask(
Key key) { release_mask_callback_(key); }
120 bool GetClipDimensions(
int ,
int* ,
int* ) {
124 int NumClips() {
return 1; }
126 int NumFrames(
int ) {
return 0; }
146 release_image_callback,
147 get_mask_for_track_callback,
148 release_mask_callback);
_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
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
void libmv_FrameAccessorDestroy(libmv_FrameAccessor *frame_accessor)
#define CHECK_INPUT_MODE(mode)
void libmv_frameAccessorgetTransformRun(const libmv_FrameTransform *transform, const libmv_FloatImage *input_image, libmv_FloatImage *output_image)
libmv_FrameAccessor * libmv_FrameAccessorNew(libmv_FrameAccessorUserData *user_data, libmv_GetImageCallback get_image_callback, libmv_ReleaseImageCallback release_image_callback, libmv_GetMaskForTrackCallback get_mask_for_track_callback, libmv_ReleaseMaskCallback release_mask_callback)
int64_t libmv_frameAccessorgetTransformKey(const libmv_FrameTransform *transform)
struct libmv_FrameTransform libmv_FrameTransform
libmv_CacheKey(* libmv_GetImageCallback)(libmv_FrameAccessorUserData *user_data, int clip, int frame, libmv_InputMode input_mode, int downscale, const libmv_Region *region, const libmv_FrameTransform *transform, float **destination, int *width, int *height, int *channels)
struct libmv_FrameAccessorUserData libmv_FrameAccessorUserData
libmv_CacheKey(* libmv_GetMaskForTrackCallback)(libmv_FrameAccessorUserData *user_data, int clip, int frame, int track, const libmv_Region *region, float **destination, int *width, int *height)
void(* libmv_ReleaseImageCallback)(libmv_CacheKey cache_key)
void(* libmv_ReleaseMaskCallback)(libmv_CacheKey cache_key)
struct libmv_FrameAccessor libmv_FrameAccessor
ccl_gpu_kernel_postfix ccl_global float int num_pixels
ccl_global KernelShaderEvalInput ccl_global float * output
ccl_global KernelShaderEvalInput * input
#define LIBMV_OBJECT_NEW(type,...)
#define LIBMV_OBJECT_DELETE(what, type)