1/*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <utils/Errors.h>
18#include "../../Transform.h"
19
20using namespace android;
21
22int main(int argc, char **argv)
23{
24    Transform tr90(Transform::ROT_90);
25    Transform trFH(Transform::FLIP_H);
26    Transform trFV(Transform::FLIP_V);
27
28    Transform tr90FH(Transform::ROT_90 | Transform::FLIP_H);
29    Transform tr90FV(Transform::ROT_90 | Transform::FLIP_V);
30
31    tr90.dump("tr90");
32    trFH.dump("trFH");
33    trFV.dump("trFV");
34
35    tr90FH.dump("tr90FH");
36    tr90FV.dump("tr90FV");
37
38    (trFH*tr90).dump("trFH*tr90");
39    (trFV*tr90).dump("trFV*tr90");
40
41    (tr90*trFH).dump("tr90*trFH");
42    (tr90*trFV).dump("tr90*trFV");
43
44    return 0;
45}
46