1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmdevicefw/mdf/inc/video/devvideopuconfig.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,109 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @publishedPartner
1.22 + @released
1.23 +*/
1.24 +
1.25 +#ifndef DEVVIDEOPUCONFIG_H
1.26 +#define DEVVIDEOPUCONFIG_H
1.27 +
1.28 +#include <mdf/mdfpuconfig.h>
1.29 +#include <mmf/devvideo/devvideobase.h>
1.30 +
1.31 +const TInt KUidDevVideoPlayConfig = 0x102737F0;
1.32 +const TInt KUidDevVideoHeaderConfig = 0x102737F2;
1.33 +const TInt KUidDevVideoPictureHeaderConfig = 0x102737F3;
1.34 +const TInt KUidDevVideoTimestamp = 0x10273824;
1.35 +
1.36 +/**
1.37 +Used to configure the CMdfProcessingUnit plugin.
1.38 +*/
1.39 +class TDevVideoPlayPuConfig
1.40 + {
1.41 +public:
1.42 + /**
1.43 + The image format.
1.44 + */
1.45 + TUncompressedVideoFormat iImageFormat;
1.46 + /**
1.47 + The input buffer size.
1.48 + */
1.49 + TUint iInputBufferSize;
1.50 + };
1.51 +
1.52 +class TDevVideoHeaderPuConfig
1.53 + {
1.54 +public:
1.55 + /**
1.56 + A pointer to a buffer with header data
1.57 + */
1.58 + TPtrC8 iHeaderData;
1.59 + /**
1.60 + Type of data in header
1.61 + */
1.62 + TVideoDataUnitType iDataUnitType;
1.63 + /**
1.64 + The type of encapsulation of the stream
1.65 + */
1.66 + TVideoDataUnitEncapsulation iDataUnitEncapsulation;
1.67 + };
1.68 +
1.69 +typedef TPuConfigParam<KUidDevVideoPlayConfig, TDevVideoPlayPuConfig> TPuConfigVideoPlayback;
1.70 +typedef TPuConfigParam<KUidDevVideoHeaderConfig, TDevVideoHeaderPuConfig> TPuConfigVideoHeader;
1.71 +typedef TPuConfigParam<KUidDevVideoPictureHeaderConfig, TVideoPictureHeader> TPuConfigVideoPictureHeader;
1.72 +typedef TPuConfigParam<KUidDevVideoTimestamp, TTimeIntervalMicroSeconds> TPuConfigTimestamp;
1.73 +
1.74 +/**
1.75 +Enum for decoder status returns. Decoder device is expected to map
1.76 +its decoder status to these values.
1.77 +*/
1.78 +enum TVideoPlayDecoderStatus
1.79 + {
1.80 + EVideoPlayDecoderStatusNone,
1.81 + EVideoPlayDecoderStatusHeader,
1.82 + EVideoPlayDecoderStatusFrame
1.83 + };
1.84 +
1.85 +const TInt KUidDevVideoRecordConfig = 0x102737F1;
1.86 +
1.87 +/**
1.88 +Used by the SetConfig() method to configure the frame size, image format
1.89 +and frame rate of a CMMFVideoRecordHwDevice plugin.
1.90 +The configuration of HwDevices is device specific.
1.91 +*/
1.92 +class TDevVideoRecordPuConfig
1.93 + {
1.94 +public:
1.95 + /**
1.96 + The frame size.
1.97 + */
1.98 + TSize iFrameSize;
1.99 + /**
1.100 + The image format.
1.101 + */
1.102 + TUncompressedVideoFormat iImageFormat;
1.103 + /**
1.104 + The frame rate.
1.105 + */
1.106 + TUint iFrameRate;
1.107 + };
1.108 +
1.109 +typedef TPuConfigParam<KUidDevVideoRecordConfig, TDevVideoRecordPuConfig> TPuConfigDevVideoRecord;
1.110 +
1.111 +#endif // DEVVIDEOPUCONFIG_H
1.112 +