patch for rc20
[framework/osp/vision.git] / src / FUixVision_ImageFeatureInfoImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18
19 /**
20  * @file     FUixVision_ImageFeatureInfoImpl.h
21  * @brief    This is the header file for the %Tizen::Uix::_ImageFeatureInfoImpl class.
22  */
23
24 #ifndef _FUIX_VISION_IMAGE_FEATURE_INFO_IMPL_H_
25 #define _FUIX_VISION_IMAGE_FEATURE_INFO_IMPL_H_
26
27 #include <FUixVisionImageFeatureInfo.h>
28 #include <FBase.h>
29 #include "ImageFeatureInfo.h"
30 #include <cstring>
31
32 namespace Tizen { namespace Uix { namespace Vision
33 {
34
35 class _ImageFeatureInfoImpl
36 {
37 public:
38     _ImageFeatureInfoImpl(void);
39     ~_ImageFeatureInfoImpl(void);
40
41     float GetAspect(void) const;
42     void SetSariPointer(const sari2::ImageFeatureInfo& sari);
43
44     unsigned int GetDescription(char* name, int length) const;
45     int GetThumbnailWidth(void) const;
46     int GetThumbnailHeight(void) const;
47     bool GetThumbnail(char* outBuffer, int bufWidth, int bufHeight, bool fit = true) const;
48     int GetLocalizingFeaturesNumber(void) const;
49     int GetTrackingFeaturesNumber(void) const;
50
51 public:
52     static Tizen::Uix::Vision::ImageFeatureInfo* CreateImageFeatureInfoStorageN(const unsigned int size); //WHY should we need a storage?
53     static Tizen::Uix::Vision::ImageFeatureInfo* CreateImageFeatureInfoN();
54     static _ImageFeatureInfoImpl* GetInstance(Tizen::Uix::Vision::ImageFeatureInfo* pImageFeatureDatabaseInfo);
55     static const _ImageFeatureInfoImpl* GetInstance(const Tizen::Uix::Vision::ImageFeatureInfo* pImageFeatureDatabaseInfo);
56
57 private:
58     sari2::ImageFeatureInfo __imageFeatureDatabaseInfo;
59 };
60
61 } } } //Tizen::Uix::Vision
62
63 #endif //_FUIX_VISION_IMAGE_FEATURE_INFO_IMPL_H_