|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * |
|
14 * Description: Video configuration interface |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CVideoConfigHandler_H |
|
19 #define CVideoConfigHandler_H |
|
20 NONSHARABLE_CLASS( TVideoConfigHandler ) |
|
21 { |
|
22 public: |
|
23 |
|
24 /** |
|
25 * Constructor. |
|
26 */ |
|
27 TVideoConfigHandler(MVtProtocolHandler* aProtocolHandler); |
|
28 |
|
29 private: |
|
30 MVtProtocolHandler* iProtocolHandler; |
|
31 }; |
|
32 |
|
33 NONSHARABLE_CLASS( CVideoConfigCommand ) : public CBase, |
|
34 public MVtVideoConfigCommand |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 ~CVideoConfigCommand(); |
|
41 |
|
42 /** |
|
43 * Sets the I-Frame refresh rate of the encoded output. |
|
44 * |
|
45 * @param aIFrameInterval I-Frame rate in seconds per I-Frame |
|
46 * @return True if successful, else false |
|
47 */ |
|
48 virtual TInt SetIntraFrameInterval(TUint32 aIFrameInterval); |
|
49 |
|
50 /** |
|
51 * Requests the encoder to encode the next frame as an I-Frame. This menthod is valid |
|
52 * only when the node is in EPVMFNodeStarted state. If successful, the next encoded |
|
53 * frame will be an I-Frame. |
|
54 * |
|
55 * @return True for success, else false |
|
56 */ |
|
57 virtual TInt RequestNextIntraFrame(); |
|
58 |
|
59 /** |
|
60 * Sets the frame rate of encoded output for the specified layer. |
|
61 * @param aFrameRate Frame rate for the specified layer in frames per second. |
|
62 * @return True if successful, else false. |
|
63 */ |
|
64 virtual TInt SetVideoFrameRate(TUint32 aFrameRate); |
|
65 |
|
66 /** |
|
67 * This API allows the user to specify separate observers for the extension interface. |
|
68 * |
|
69 * @param aHandler the observer for unsolicited informational events |
|
70 **/ |
|
71 virtual void SetObserverL(MVtProtocolHandler* aHandler); |
|
72 |
|
73 private: |
|
74 TVideoConfigHandler* iVideoConfigHandler; |
|
75 }; |
|
76 #endif |
|
77 // End of File |