|
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 * Transcoder observer. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CTRTRANSCODEROBSERVER_H |
|
22 #define CTRTRANSCODEROBSERVER_H |
|
23 |
|
24 |
|
25 // INCLUDES |
|
26 #include <CCMRMediaSink.h> |
|
27 #include "ctrcommon.h" |
|
28 |
|
29 |
|
30 /** |
|
31 * Transcoder observer interface class. Every client should implement this class. |
|
32 * @lib TRANSCODER.LIB |
|
33 * @since 3.1 |
|
34 */ |
|
35 class MTRTranscoderObserver |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Reports initialize status to the client |
|
40 * @param aError Error status |
|
41 * @return void |
|
42 */ |
|
43 virtual void MtroInitializeComplete(TInt aError) = 0; |
|
44 |
|
45 /** |
|
46 * Reports run-time error to the client |
|
47 * @param aError Run-time error |
|
48 * @return void |
|
49 */ |
|
50 virtual void MtroFatalError(TInt aError) = 0; |
|
51 |
|
52 /** |
|
53 * Returns media bitstream buffer to the client |
|
54 * @param aBuffer Bitstream media buffer |
|
55 * @return void |
|
56 */ |
|
57 virtual void MtroReturnCodedBuffer(CCMRMediaBuffer* aBuffer) = 0; |
|
58 |
|
59 /** |
|
60 * Request to the client to set FrameRate of the input sequence. |
|
61 * @param aRate Framerate of the input sequence (in frames per second) |
|
62 * @return void |
|
63 */ |
|
64 virtual void MtroSetInputFrameRate(TReal& aRate) = 0; |
|
65 |
|
66 /** |
|
67 * Completes async request |
|
68 * @param none |
|
69 * @return void |
|
70 */ |
|
71 virtual void MtroAsyncStopComplete() = 0; |
|
72 |
|
73 /** |
|
74 * Notifies that resources were lost and transcoding has to be suspended |
|
75 * @param none |
|
76 * @return void |
|
77 */ |
|
78 virtual void MtroSuspend() = 0; |
|
79 |
|
80 /** |
|
81 * Notifies that resources were restored and transcoding can now continue |
|
82 * @param none |
|
83 * @return void |
|
84 */ |
|
85 virtual void MtroResume() = 0; |
|
86 }; |
|
87 |
|
88 |
|
89 |
|
90 #endif |