sl@0
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
/**
|
sl@0
|
17 |
@file
|
sl@0
|
18 |
@publishedPartner
|
sl@0
|
19 |
@released
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
#ifndef DEVVIDEOPUCONFIG_H
|
sl@0
|
23 |
#define DEVVIDEOPUCONFIG_H
|
sl@0
|
24 |
|
sl@0
|
25 |
#include <mdf/mdfpuconfig.h>
|
sl@0
|
26 |
#include <mmf/devvideo/devvideobase.h>
|
sl@0
|
27 |
|
sl@0
|
28 |
const TInt KUidDevVideoPlayConfig = 0x102737F0;
|
sl@0
|
29 |
const TInt KUidDevVideoHeaderConfig = 0x102737F2;
|
sl@0
|
30 |
const TInt KUidDevVideoPictureHeaderConfig = 0x102737F3;
|
sl@0
|
31 |
const TInt KUidDevVideoTimestamp = 0x10273824;
|
sl@0
|
32 |
|
sl@0
|
33 |
/**
|
sl@0
|
34 |
Used to configure the CMdfProcessingUnit plugin.
|
sl@0
|
35 |
*/
|
sl@0
|
36 |
class TDevVideoPlayPuConfig
|
sl@0
|
37 |
{
|
sl@0
|
38 |
public:
|
sl@0
|
39 |
/**
|
sl@0
|
40 |
The image format.
|
sl@0
|
41 |
*/
|
sl@0
|
42 |
TUncompressedVideoFormat iImageFormat;
|
sl@0
|
43 |
/**
|
sl@0
|
44 |
The input buffer size.
|
sl@0
|
45 |
*/
|
sl@0
|
46 |
TUint iInputBufferSize;
|
sl@0
|
47 |
};
|
sl@0
|
48 |
|
sl@0
|
49 |
class TDevVideoHeaderPuConfig
|
sl@0
|
50 |
{
|
sl@0
|
51 |
public:
|
sl@0
|
52 |
/**
|
sl@0
|
53 |
A pointer to a buffer with header data
|
sl@0
|
54 |
*/
|
sl@0
|
55 |
TPtrC8 iHeaderData;
|
sl@0
|
56 |
/**
|
sl@0
|
57 |
Type of data in header
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
TVideoDataUnitType iDataUnitType;
|
sl@0
|
60 |
/**
|
sl@0
|
61 |
The type of encapsulation of the stream
|
sl@0
|
62 |
*/
|
sl@0
|
63 |
TVideoDataUnitEncapsulation iDataUnitEncapsulation;
|
sl@0
|
64 |
};
|
sl@0
|
65 |
|
sl@0
|
66 |
typedef TPuConfigParam<KUidDevVideoPlayConfig, TDevVideoPlayPuConfig> TPuConfigVideoPlayback;
|
sl@0
|
67 |
typedef TPuConfigParam<KUidDevVideoHeaderConfig, TDevVideoHeaderPuConfig> TPuConfigVideoHeader;
|
sl@0
|
68 |
typedef TPuConfigParam<KUidDevVideoPictureHeaderConfig, TVideoPictureHeader> TPuConfigVideoPictureHeader;
|
sl@0
|
69 |
typedef TPuConfigParam<KUidDevVideoTimestamp, TTimeIntervalMicroSeconds> TPuConfigTimestamp;
|
sl@0
|
70 |
|
sl@0
|
71 |
/**
|
sl@0
|
72 |
Enum for decoder status returns. Decoder device is expected to map
|
sl@0
|
73 |
its decoder status to these values.
|
sl@0
|
74 |
*/
|
sl@0
|
75 |
enum TVideoPlayDecoderStatus
|
sl@0
|
76 |
{
|
sl@0
|
77 |
EVideoPlayDecoderStatusNone,
|
sl@0
|
78 |
EVideoPlayDecoderStatusHeader,
|
sl@0
|
79 |
EVideoPlayDecoderStatusFrame
|
sl@0
|
80 |
};
|
sl@0
|
81 |
|
sl@0
|
82 |
const TInt KUidDevVideoRecordConfig = 0x102737F1;
|
sl@0
|
83 |
|
sl@0
|
84 |
/**
|
sl@0
|
85 |
Used by the SetConfig() method to configure the frame size, image format
|
sl@0
|
86 |
and frame rate of a CMMFVideoRecordHwDevice plugin.
|
sl@0
|
87 |
The configuration of HwDevices is device specific.
|
sl@0
|
88 |
*/
|
sl@0
|
89 |
class TDevVideoRecordPuConfig
|
sl@0
|
90 |
{
|
sl@0
|
91 |
public:
|
sl@0
|
92 |
/**
|
sl@0
|
93 |
The frame size.
|
sl@0
|
94 |
*/
|
sl@0
|
95 |
TSize iFrameSize;
|
sl@0
|
96 |
/**
|
sl@0
|
97 |
The image format.
|
sl@0
|
98 |
*/
|
sl@0
|
99 |
TUncompressedVideoFormat iImageFormat;
|
sl@0
|
100 |
/**
|
sl@0
|
101 |
The frame rate.
|
sl@0
|
102 |
*/
|
sl@0
|
103 |
TUint iFrameRate;
|
sl@0
|
104 |
};
|
sl@0
|
105 |
|
sl@0
|
106 |
typedef TPuConfigParam<KUidDevVideoRecordConfig, TDevVideoRecordPuConfig> TPuConfigDevVideoRecord;
|
sl@0
|
107 |
|
sl@0
|
108 |
#endif // DEVVIDEOPUCONFIG_H
|
sl@0
|
109 |
|