|
1 /* |
|
2 * Copyright (c) 2004-2006 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CVideoConfigHandler_H |
|
20 #define CVideoConfigHandler_H |
|
21 NONSHARABLE_CLASS( TVideoConfigHandler ): public MPvMp4H263EncExtensionSymbianObserver |
|
22 { |
|
23 public: |
|
24 |
|
25 /** |
|
26 * Constructor. |
|
27 */ |
|
28 TVideoConfigHandler(MVtProtocolHandler* aProtocolHandler); |
|
29 |
|
30 /** |
|
31 Handle an event that has been generated. |
|
32 |
|
33 @param aResponse The response to a previously issued command. |
|
34 */ |
|
35 virtual void MPvMp4H263EncExtensionCommandCompletedL(const CPVCmdResponse& aResponse); |
|
36 |
|
37 /** |
|
38 Handle an information event. |
|
39 |
|
40 @param aEvent |
|
41 */ |
|
42 virtual void HandleMPvMp4H263EncExtensionInformationalEventL(const CPVAsyncInformationalEvent& aEvent); |
|
43 private: |
|
44 MVtProtocolHandler* iProtocolHandler; |
|
45 }; |
|
46 |
|
47 NONSHARABLE_CLASS( CVideoConfigCommand ) : public CBase, |
|
48 public MVtVideoConfigCommand |
|
49 { |
|
50 public: |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CVideoConfigCommand(); |
|
55 |
|
56 /** |
|
57 * Sets the I-Frame refresh rate of the encoded output. |
|
58 * |
|
59 * @param aIFrameInterval I-Frame rate in seconds per I-Frame |
|
60 * @return True if successful, else false |
|
61 */ |
|
62 virtual TInt SetIntraFrameInterval(TUint32 aIFrameInterval); |
|
63 |
|
64 /** |
|
65 * Requests the encoder to encode the next frame as an I-Frame. This menthod is valid |
|
66 * only when the node is in EPVMFNodeStarted state. If successful, the next encoded |
|
67 * frame will be an I-Frame. |
|
68 * |
|
69 * @return True for success, else false |
|
70 */ |
|
71 virtual TInt RequestNextIntraFrame(); |
|
72 |
|
73 /** |
|
74 * Sets the frame rate of encoded output for the specified layer. |
|
75 * @param aFrameRate Frame rate for the specified layer in frames per second. |
|
76 * @return True if successful, else false. |
|
77 */ |
|
78 virtual TInt SetVideoFrameRate(TUint32 aFrameRate); |
|
79 |
|
80 /** |
|
81 * This API allows the user to specify separate observers for the extension interface. |
|
82 * |
|
83 * @param aHandler the observer for unsolicited informational events |
|
84 **/ |
|
85 virtual void SetObserverL(MVtProtocolHandler* aHandler); |
|
86 |
|
87 /** |
|
88 * Get member variant. |
|
89 */ |
|
90 MPvMp4H263EncExtensionInterfaceSymbian*& PVVideoEncoderInterface() { return iH263Encoder; } |
|
91 private: |
|
92 MPvMp4H263EncExtensionInterfaceSymbian* iH263Encoder; |
|
93 TVideoConfigHandler* iVideoConfigHandler; |
|
94 }; |
|
95 #endif |
|
96 // End of File |
|
97 |