|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * DevVideoClient observer. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CTRDEVVICEOCLIENTOBSERVER_H |
|
22 #define CTRDEVVICEOCLIENTOBSERVER_H |
|
23 |
|
24 |
|
25 // INCLUDES |
|
26 #include <devvideobase.h> |
|
27 #include <devvideorecord.h> |
|
28 #include <CCMRMediaSink.h> |
|
29 |
|
30 |
|
31 /** |
|
32 * Devvideo client observer |
|
33 * @lib TRANSCODER.LIB |
|
34 * @since 3.1 |
|
35 */ |
|
36 class MTRDevVideoClientObserver |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * Reports an error from the devVideo client |
|
41 * @param aError Error reason |
|
42 * @return void |
|
43 */ |
|
44 virtual void MtrdvcoFatalError(TInt aError) = 0; |
|
45 |
|
46 /** |
|
47 * Reports that data encoding process has been finished |
|
48 * @param none |
|
49 * @return void |
|
50 */ |
|
51 virtual void MtrdvcoEncStreamEnd() = 0; |
|
52 |
|
53 /** |
|
54 * Reports that data decoding process has been finished |
|
55 * @param none |
|
56 * @return void |
|
57 */ |
|
58 virtual void MtrdvcoDecStreamEnd() = 0; |
|
59 |
|
60 /** |
|
61 * Returns video picture from the video encoder client |
|
62 * @param aPicture video picture |
|
63 * @return void |
|
64 */ |
|
65 virtual void MtrdvcoEncoderReturnPicture(TVideoPicture* aPicture) = 0; |
|
66 |
|
67 /** |
|
68 * Returns videopicture from the renderer |
|
69 * @param aPicture Video picture |
|
70 * @return none |
|
71 */ |
|
72 virtual void MtrdvcoRendererReturnPicture(TVideoPicture* aPicture) = 0; |
|
73 |
|
74 /** |
|
75 * Supplies new decoded picture |
|
76 * @param aPicture Video picture |
|
77 * @return none |
|
78 */ |
|
79 virtual void MtrdvcoNewPicture(TVideoPicture* aPicture) = 0; |
|
80 |
|
81 /** |
|
82 * Supplies new encoded bitstream buffer |
|
83 * @param aBuffer Media buffer |
|
84 * @return none |
|
85 */ |
|
86 virtual void MtrdvcoNewBuffer(CCMRMediaBuffer* aBuffer) = 0; |
|
87 |
|
88 /** |
|
89 * Informs about initializing video encoder client |
|
90 * @param aError Initializing error status |
|
91 * @return void |
|
92 */ |
|
93 virtual void MtrdvcoEncInitializeComplete(TInt aError) = 0; |
|
94 |
|
95 /** |
|
96 * Informs about initializing video decoder client |
|
97 * @param aError Initializing error status |
|
98 * @return void |
|
99 */ |
|
100 virtual void MtrdvcoDecInitializeComplete(TInt aError) = 0; |
|
101 |
|
102 /** |
|
103 * Returns media bitstream buffer to the client |
|
104 * @param aBuffer Bitstream media buffer |
|
105 * @return void |
|
106 */ |
|
107 virtual void MtrdvcoReturnCodedBuffer(CCMRMediaBuffer* aBuffer) = 0; |
|
108 |
|
109 /** |
|
110 * Notifies the transcoder about available picture buffers through BMCI or MDF |
|
111 * @param none |
|
112 * @return void |
|
113 */ |
|
114 virtual void MtrdvcoNewBuffers() = 0; |
|
115 |
|
116 /** |
|
117 * Indicates that a media device has lost its resources |
|
118 * @param aFromDecoder Flag to indicate source |
|
119 * @return none |
|
120 */ |
|
121 virtual void MtrdvcoResourcesLost(TBool aFromDecoder) = 0; |
|
122 |
|
123 /** |
|
124 * Indicates that a media device has regained its resources |
|
125 * @return none |
|
126 */ |
|
127 virtual void MtrdvcoResourcesRestored() = 0; |
|
128 }; |
|
129 |
|
130 |
|
131 |
|
132 |
|
133 #endif // CTRDEVVICEOCLIENTOBSERVER_H |