Blender  V2.93
intern/frame_accessor.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2014 Blender Foundation.
17  * All rights reserved.
18  */
19 
20 #ifndef LIBMV_C_API_FRAME_ACCESSOR_H_
21 #define LIBMV_C_API_FRAME_ACCESSOR_H_
22 
23 #include <stdint.h>
24 
25 #include "intern/image.h"
26 #include "intern/region.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
35 typedef void* libmv_CacheKey;
36 
37 typedef enum {
41 
44  int clip,
45  int frame,
46  libmv_InputMode input_mode,
47  int downscale,
48  const libmv_Region* region,
50  float** destination,
51  int* width,
52  int* height,
53  int* channels);
54 
55 typedef void (*libmv_ReleaseImageCallback)(libmv_CacheKey cache_key);
56 
59  int clip,
60  int frame,
61  int track,
62  const libmv_Region* region,
63  float** destination,
64  int* width,
65  int* height);
66 typedef void (*libmv_ReleaseMaskCallback)(libmv_CacheKey cache_key);
67 
70  libmv_GetImageCallback get_image_callback,
71  libmv_ReleaseImageCallback release_image_callback,
72  libmv_GetMaskForTrackCallback get_mask_for_track_callback,
73  libmv_ReleaseMaskCallback release_mask_callback);
75 
78 
80  const libmv_FloatImage* input_image,
81  libmv_FloatImage* output_image);
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif // LIBMV_C_API_FRAME_ACCESSOR_H_
_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
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
void * user_data
void libmv_FrameAccessorDestroy(libmv_FrameAccessor *frame_accessor)
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)
void * libmv_CacheKey
void libmv_frameAccessorgetTransformRun(const libmv_FrameTransform *transform, const libmv_FloatImage *input_image, libmv_FloatImage *output_image)
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)
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)
void(* libmv_ReleaseImageCallback)(libmv_CacheKey cache_key)
@ LIBMV_IMAGE_MODE_RGBA
@ LIBMV_IMAGE_MODE_MONO
int64_t libmv_frameAccessorgetTransformKey(const libmv_FrameTransform *transform)
void(* libmv_ReleaseMaskCallback)(libmv_CacheKey cache_key)
struct libmv_FrameAccessor libmv_FrameAccessor
__int64 int64_t
Definition: stdint.h:92