|
1 /* |
|
2 * Copyright (c) 2008-2009 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 |
|
20 #ifndef VIDEOBUFFERHANDLERMPEG4_H |
|
21 #define VIDEOBUFFERHANDLERMPEG4_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32msgqueue.h> |
|
25 #include <f32file.h> |
|
26 #include <openmax/il/extensions/omxilsymbianbuffersextensions.h> |
|
27 #include <multimedia/mmfbuffershared.h> |
|
28 #include <openmax/il/khronos/v1_x/OMX_Component.h> |
|
29 #include <multimedia/t_videoframesupplier.h> |
|
30 #include "videobufferhandler.h" |
|
31 |
|
32 const TInt KVideoBufferLength=102400; |
|
33 |
|
34 typedef struct |
|
35 { |
|
36 // Maybe these should be 64-bit variables for large video files. |
|
37 TInt iPosition; |
|
38 TInt iLength; |
|
39 } |
|
40 TFrameLocation; |
|
41 |
|
42 NONSHARABLE_CLASS(CVideoBufferHandlerMPEG4) : public CVideoBufferHandler |
|
43 { |
|
44 public: |
|
45 |
|
46 ~CVideoBufferHandlerMPEG4(); |
|
47 static CVideoBufferHandlerMPEG4* NewL(TDesC& aFilename, OMX_SYMBIAN_PARAM_3PLANE_CHUNK_DATA& aChunkDataMsg, const OMX_SYMBIAN_PARAM_BUFFER_SIZE& aBufferSize, OMX_PARAM_PORTDEFINITIONTYPE& portDef); |
|
48 |
|
49 private: |
|
50 CVideoBufferHandlerMPEG4(TDesC& aFilename); |
|
51 void ConstructL(OMX_SYMBIAN_PARAM_3PLANE_CHUNK_DATA& aChunkDataMsg, const OMX_SYMBIAN_PARAM_BUFFER_SIZE& aBufferSize, OMX_PARAM_PORTDEFINITIONTYPE& portDef); |
|
52 |
|
53 void SetChunkDetailAndOpenL(TInt aChunkHandleId, TUint64 aThreadId); |
|
54 |
|
55 // From CActive |
|
56 void RunL(); |
|
57 |
|
58 private: |
|
59 CVideoFrameSupplier* iFrameSupplier; |
|
60 |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // VIDEOBUFFERHANDLERMPEG4_H |