mmdevicefw/mdf/inc/codecapi/codecapivideoresolverutils.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     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 CODECAPIVIDEORESOLVERUTILS_H
       
    23 #define CODECAPIVIDEORESOLVERUTILS_H
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <mdf/codecapiresolverutils.h>
       
    27 class TPictureRateAndSize;
       
    28 
       
    29 /**
       
    30  Used to parse the opaque data of the video codec plugins.
       
    31 */
       
    32 class CCodecApiVideoOpaqueData : public CCodecApiOpaqueData
       
    33 	{
       
    34 public:
       
    35 	IMPORT_C static CCodecApiVideoOpaqueData* NewL(const TDesC8& aOpaqueData);
       
    36 	IMPORT_C static CCodecApiVideoOpaqueData* NewLC(const TDesC8& aOpaqueData);
       
    37 	IMPORT_C const TSize& MaxPictureSize() const;
       
    38 	IMPORT_C const TDesC8& Manufacturer() const;
       
    39 	IMPORT_C const RArray<TPictureRateAndSize>& MaxPictureRates() const;
       
    40 	virtual ~CCodecApiVideoOpaqueData();
       
    41 protected:
       
    42 	CCodecApiVideoOpaqueData(const TDesC8& aOpaqueData);
       
    43 	void ConstructL();
       
    44 	void ProcessTaggedDataL(const TDesC8& aTag, const TDesC8& aData);
       
    45 	void SetPictureRateAndSizeL(const TDesC8& aData);
       
    46 	void SetMaxPictureSizeL(const TDesC8& aData);
       
    47 private:
       
    48 	TSize 				iMaxPictureSize;
       
    49 	RArray<TPictureRateAndSize>   iMaxPictureRates;
       
    50 	HBufC8* 				iManufacturer;
       
    51 	};
       
    52 
       
    53 #endif  // CODECAPIVIDEORESOLVERUTILS_H
       
    54 
       
    55