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