Libmv: Solve strict compiler warnings in stubs
This commit is contained in:
parent
370a8ee741
commit
73feae6f5d
@ -257,7 +257,8 @@ void libmv_cameraIntrinsicsUndistortByte(
|
||||
const libmv_CameraIntrinsics * /*libmv_intrinsics*/,
|
||||
const unsigned char *source_image,
|
||||
int width, int height,
|
||||
float overscan, int channels,
|
||||
float /*overscan*/,
|
||||
int channels,
|
||||
unsigned char *destination_image) {
|
||||
memcpy(destination_image, source_image,
|
||||
channels * width * height * sizeof(unsigned char));
|
||||
@ -268,7 +269,7 @@ void libmv_cameraIntrinsicsUndistortFloat(
|
||||
const float* source_image,
|
||||
int width,
|
||||
int height,
|
||||
float overscan,
|
||||
float /*overscan*/,
|
||||
int channels,
|
||||
float* destination_image) {
|
||||
memcpy(destination_image, source_image,
|
||||
@ -280,7 +281,7 @@ void libmv_cameraIntrinsicsDistortByte(
|
||||
const unsigned char *source_image,
|
||||
int width,
|
||||
int height,
|
||||
float overscan,
|
||||
float /*overscan*/,
|
||||
int channels,
|
||||
unsigned char *destination_image) {
|
||||
memcpy(destination_image, source_image,
|
||||
@ -292,7 +293,7 @@ void libmv_cameraIntrinsicsDistortFloat(
|
||||
float* source_image,
|
||||
int width,
|
||||
int height,
|
||||
float overscan,
|
||||
float /*overscan*/,
|
||||
int channels,
|
||||
float* destination_image) {
|
||||
memcpy(destination_image, source_image,
|
||||
@ -327,9 +328,9 @@ void libmv_cameraIntrinsicsInvert(
|
||||
*y1 = (y - principal_y) / focal_length;
|
||||
}
|
||||
|
||||
void libmv_homography2DFromCorrespondencesEuc(/* const */ double (*x1)[2],
|
||||
/* const */ double (*x2)[2],
|
||||
int num_points,
|
||||
void libmv_homography2DFromCorrespondencesEuc(/* const */ double (* /*x1*/)[2],
|
||||
/* const */ double (* /*x2*/)[2],
|
||||
int /*num_points*/,
|
||||
double H[3][3]) {
|
||||
memset(H, 0, sizeof(double[3][3]));
|
||||
H[0][0] = 1.0f;
|
||||
|
Loading…
Reference in New Issue
Block a user