Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
106 lines
2.8 KiB
C++
106 lines
2.8 KiB
C++
/* SPDX-FileCopyrightText: 2011 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
// TODO(serrgey): For the time being we're converting simple pipeline
|
|
// to an autotrack pipeline we call it tracks.
|
|
// Once we've done with porting we remove N.
|
|
|
|
#ifndef LIBMV_C_API_TRACKSN_H_
|
|
#define LIBMV_C_API_TRACKSN_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct libmv_TracksN libmv_TracksN;
|
|
|
|
// Keep order in this enums exactly the same as in mv::Marker.
|
|
// Otherwise API wouldn't convert the values properly.
|
|
typedef enum libmv_MarkerSource {
|
|
LIBMV_MARKER_SOURCE_MANUAL,
|
|
LIBMV_MARKER_SOURCE_DETECTED,
|
|
LIBMV_MARKER_SOURCE_TRACKED,
|
|
LIBMV_MARKER_SOURCE_MATCHED,
|
|
LIBMV_MARKER_SOURCE_PREDICTED,
|
|
} libmv_MarkerSource;
|
|
|
|
typedef enum libmv_MarkerStatus {
|
|
LIBMV_MARKER_STATUS_UNKNOWN,
|
|
LIBMV_MARKER_STATUS_INLIER,
|
|
LIBMV_MARKER_STATUS_OUTLIER,
|
|
} libmv_MarkerStatus;
|
|
|
|
typedef enum libmv_MarkerModelType {
|
|
LIBMV_MARKER_MODEL_TYPE_POINT,
|
|
LIBMV_MARKER_MODEL_TYPE_PLANE,
|
|
LIBMV_MARKER_MODEL_TYPE_LINE,
|
|
LIBMV_MARKER_MODEL_TYPE_CUBE,
|
|
} libmv_MarkerModelType;
|
|
|
|
enum libmv_MarkerChannel {
|
|
LIBMV_MARKER_CHANNEL_R = (1 << 0),
|
|
LIBMV_MARKER_CHANNEL_G = (1 << 1),
|
|
LIBMV_MARKER_CHANNEL_B = (1 << 2),
|
|
};
|
|
|
|
typedef struct libmv_Marker {
|
|
int clip;
|
|
int frame;
|
|
int track;
|
|
float center[2];
|
|
float patch[4][2];
|
|
float search_region_min[2];
|
|
float search_region_max[2];
|
|
float weight;
|
|
libmv_MarkerSource source;
|
|
libmv_MarkerStatus status;
|
|
int reference_clip;
|
|
int reference_frame;
|
|
libmv_MarkerModelType model_type;
|
|
int model_id;
|
|
int disabled_channels;
|
|
} libmv_Marker;
|
|
|
|
#ifdef __cplusplus
|
|
namespace mv {
|
|
struct Marker;
|
|
}
|
|
void libmv_apiMarkerToMarker(const libmv_Marker& libmv_marker,
|
|
mv::Marker* marker);
|
|
|
|
void libmv_markerToApiMarker(const mv::Marker& marker,
|
|
libmv_Marker* libmv_marker);
|
|
#endif
|
|
|
|
libmv_TracksN* libmv_tracksNewN(void);
|
|
|
|
void libmv_tracksDestroyN(libmv_TracksN* libmv_tracks);
|
|
|
|
void libmv_tracksAddMarkerN(libmv_TracksN* libmv_tracks,
|
|
const libmv_Marker* libmv_marker);
|
|
|
|
void libmv_tracksGetMarkerN(libmv_TracksN* libmv_tracks,
|
|
int clip,
|
|
int frame,
|
|
int track,
|
|
libmv_Marker* libmv_marker);
|
|
|
|
void libmv_tracksRemoveMarkerN(libmv_TracksN* libmv_tracks,
|
|
int clip,
|
|
int frame,
|
|
int track);
|
|
|
|
void libmv_tracksRemoveMarkersForTrack(libmv_TracksN* libmv_tracks, int track);
|
|
|
|
int libmv_tracksMaxClipN(libmv_TracksN* libmv_tracks);
|
|
int libmv_tracksMaxFrameN(libmv_TracksN* libmv_tracks, int clip);
|
|
int libmv_tracksMaxTrackN(libmv_TracksN* libmv_tracks);
|
|
int libmv_tracksNumMarkersN(libmv_TracksN* libmv_tracks);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // LIBMV_C_API_TRACKS_H_
|