diff options
author | Angus Kong <shkong@google.com> | 2013-12-05 14:19:15 -0800 |
---|---|---|
committer | Angus Kong <shkong@google.com> | 2013-12-05 14:24:16 -0800 |
commit | 4583f053f5f3205e6016e1cb6c2a5475e0588bdf (patch) | |
tree | 5e50a8de618e905ad4f5bd5f586975aa38e0e8ab /jni/feature_mos/src/mosaic/trsMatrix.h | |
parent | aeaef40c8285e5c2c0c5e13a8f8229cdb531836c (diff) | |
download | android_packages_apps_Camera2-4583f053f5f3205e6016e1cb6c2a5475e0588bdf.tar.gz android_packages_apps_Camera2-4583f053f5f3205e6016e1cb6c2a5475e0588bdf.tar.bz2 android_packages_apps_Camera2-4583f053f5f3205e6016e1cb6c2a5475e0588bdf.zip |
Remove build target and codes for legacy panorama.
bug:11811982
Change-Id: I733e80511d8eecdd1dbc90daf9b7f9fb709a2766
Diffstat (limited to 'jni/feature_mos/src/mosaic/trsMatrix.h')
-rw-r--r-- | jni/feature_mos/src/mosaic/trsMatrix.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/jni/feature_mos/src/mosaic/trsMatrix.h b/jni/feature_mos/src/mosaic/trsMatrix.h deleted file mode 100644 index 054cc3335..000000000 --- a/jni/feature_mos/src/mosaic/trsMatrix.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2011 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/////////////////////////////////////////////////// -// trsMatrix.h -// $Id: trsMatrix.h,v 1.8 2011/06/17 13:35:48 mbansal Exp $ - -#ifndef TRSMATRIX_H_ -#define TRSMATRIX_H_ - - -// Calculate the determinant of a matrix -double det33d(const double m[3][3]); - -// Invert a matrix -void inv33d(const double m[3][3], double out[3][3]); - -// Multiply a = b * c -void mult33d(double a[3][3], double b[3][3], double c[3][3]); - -// Normalize matrix so matrix[2][2] is '1' -int normProjMat33d(double m[3][3]); - -inline double ProjZ(double trs[3][3], double x, double y, double f) -{ - return ((trs)[2][0]*(x) + (trs)[2][1]*(y) + (trs)[2][2]*(f)); -} - -inline double ProjX(double trs[3][3], double x, double y, double z, double f) -{ - return (((trs)[0][0]*(x) + (trs)[0][1]*(y) + (trs)[0][2]*(f)) / (z)); -} - -inline double ProjY(double trs[3][3], double x, double y, double z, double f) -{ - return (((trs)[1][0]*(x) + (trs)[1][1]*(y) + (trs)[1][2]*(f)) / (z)); -} - - -#endif |