videoeditorengine/h263decoder/inc/vedh263dimp.h
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 * Header file for H.263 Decoder API implementation class.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef VEDH263DIMP_H
       
    22 #define VEDH263DIMP_H
       
    23 
       
    24 #include "h263dext.h"
       
    25 #include "h263dmai.h"  // CVedH263Dec defined here
       
    26 
       
    27 
       
    28 class CVedH263DecImp : public CVedH263Dec
       
    29 {
       
    30 
       
    31     public:  // Constructors and destructor
       
    32     
       
    33         /**
       
    34         * C++ default constructor.
       
    35         */
       
    36         CVedH263DecImp(TSize aFrameSize, TInt aNumReferencePictures);
       
    37 
       
    38         /**
       
    39         * Destructor.
       
    40         */        
       
    41         ~CVedH263DecImp();
       
    42 
       
    43         /**
       
    44         * 2nd phase constructor must be public since it is called from NewL of abstract base class.
       
    45         */
       
    46         void ConstructL();
       
    47 
       
    48     public: // Functions from CVedH263Dec                    
       
    49 
       
    50         /**
       
    51         * From CVedH263Dec Sets the renderer to be used
       
    52         */    
       
    53         void SetRendererL(MVideoRenderer* aRenderer);
       
    54         
       
    55         /**
       
    56         * From CVedH263Dec Sets the post-filter to be used
       
    57         */ 
       
    58         void SetPostFilterL(const TPostFilter aFilter);
       
    59 
       
    60         /**
       
    61         * From CVedH263Dec Returns the frame to the decoder subsystem
       
    62         */ 
       
    63         void FrameRendered(const TAny *aFrame);               
       
    64 
       
    65         /**
       
    66         * From CVedH263Dec Checks if the given frame is valid
       
    67         */ 
       
    68         TBool FrameValid(const TAny *aFrame);
       
    69 
       
    70         /**
       
    71         * From CVedH263Dec Retrieves Y/U/V pointers to the given frame
       
    72         */ 
       
    73         TInt GetYUVBuffers(const TAny *aFrame, TUint8*& aYFrame, TUint8*& aUFrame, 
       
    74                            TUint8*& aVFrame, TSize& aFrameSize);
       
    75 
       
    76         /**
       
    77         * From CVedH263Dec Retrieves the latest decoded YUV frame
       
    78         */ 
       
    79         TUint8* GetYUVFrame();
       
    80 
       
    81         /**
       
    82         * From CVedH263Dec Decodes / transcodes a compressed frame
       
    83         */ 
       
    84         void DecodeFrameL(const TPtrC8& aInputBuffer, TPtr8& aOutputBuffer,
       
    85                           TBool& aFirstFrame, TInt& aBytesDecoded,
       
    86                           vdeDecodeParamters_t *aDecoderInfo);
       
    87 
       
    88 		void DecodeFrameL(const TPtrC8& aInputBuffer, TPtr8& aOutputBuffer,                                  TBool& aFirstFrame, TInt& aBytesDecoded, 
       
    89 			              const TColorEffect aColorEffect,
       
    90 						  const TBool aGetDecodedFrame, TInt aFrameOperation,
       
    91 						  TInt* aTrP, TInt* aTrD, TInt aVideoClipNumber, TInt aSMSpeed, 
       
    92 						  TInt aDataFormat);
       
    93         
       
    94         /**
       
    95         * From CVedH263Dec Decodes a compressed frame
       
    96         */ 
       
    97         void DecodeFrameL(const TPtrC8& aInputBuffer, TBool& aFirstFrame, TInt& aBytesDecoded, 
       
    98 					TInt aDataFormat);
       
    99 
       
   100         
       
   101         /**
       
   102         * From CVedH263Dec Check the VOS header
       
   103         */ 
       
   104 		TBool CheckVOSHeaderL(TPtrC8& aInputBuffer);
       
   105 
       
   106 
       
   107 private:
       
   108 
       
   109     // H.263 decoder instance handle
       
   110     h263dHInstance_t iH263dHandle; 
       
   111 
       
   112     // frame dimensions
       
   113     TSize iFrameSize;  
       
   114 
       
   115 };
       
   116 
       
   117 
       
   118 
       
   119 
       
   120 
       
   121 
       
   122 #endif