Tizen 2.0 Release
[framework/osp/media.git] / src / FMedia_PlayerVideoEventArg.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 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  * @file                        FMedia_PlayerVideoEventArg.h
20  * @brief                       This header file contains the declaration of Tizen::Media namespace.
21  *
22  */
23
24
25 #ifndef _FMEDIA_INTERNAL_PLAYER_VIDEO_EVENTARG_H_
26 #define _FMEDIA_INTERNAL_PLAYER_VIDEO_EVENTARG_H_
27
28 #include <FGrpDimension.h>
29 #include <FGrpBitmapCommon.h>
30 #include <FOspConfig.h>
31 #include <FBaseRtIEventArg.h>
32 #include <FBaseRtEvent.h>
33 #include <FBaseErrorDefine.h>
34 #include <FBaseObject.h>
35 #include <FBaseDataType.h>
36 #include <FMediaPlayerTypes.h>
37 #include "FMedia_PlayerVideoEventTypes.h"
38
39 namespace Tizen {namespace Media
40 {
41
42 class  _PlayerVideoEventTypeArg
43         : public Tizen::Base::Runtime::IEventArg
44         , public Tizen::Base::Object
45 {
46 public:
47
48         _PlayerVideoEventTypeArg(void);
49         virtual ~_PlayerVideoEventTypeArg(void);
50         _PlayerVideoEventType GetVideoEventType(void) const;
51         void SetVideoEventType(_PlayerVideoEventType eType);
52
53 private:
54         _PlayerVideoEventTypeArg(const _PlayerVideoEventTypeArg& rhs);
55         _PlayerVideoEventTypeArg& operator =(const _PlayerVideoEventTypeArg& rhs);
56
57         _PlayerVideoEventType __playerVideoEventType;
58
59 };
60
61 class  _PlayerVideoEventArg
62         : public _PlayerVideoEventTypeArg
63 {
64 public:
65
66         _PlayerVideoEventArg(void);
67         virtual ~_PlayerVideoEventArg(void);
68
69         byte* GetBuffer(void) const;
70         void SetBuffer(byte* data);
71
72         int GetSizeOfBuffer(void) const;
73         void SetSizeOfBuffer(int size);
74
75         Tizen::Graphics::BitmapPixelFormat GetPixelFormat(void) const;
76         void SetPixelFormat(Tizen::Graphics::BitmapPixelFormat pixelFormat);
77
78         Tizen::Graphics::Dimension GetDim(void) const;
79         void SetDim(Tizen::Graphics::Dimension dim);
80
81         result GetResult(void) const;
82         void SetResult(result r);
83
84 private:
85         byte* __pDecodedFrameDataBuffer;
86         int __sizeOfBuffer;
87         Tizen::Graphics::Dimension __dim;
88         Tizen::Graphics::BitmapPixelFormat __pixelFormat;
89         result __result;
90 };
91
92 }}//Tizen::Media
93 #endif