tvout/src/glxactivedecoder.cpp
changeset 26 c499df2dbb33
parent 24 99ad1390cd33
child 27 0d818da5a659
child 29 2c833fc9e98f
child 40 112f0ac2d1f0
--- a/tvout/src/glxactivedecoder.cpp	Fri Apr 16 14:58:46 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,92 +0,0 @@
-/*
-* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:    
-*
-*/
-
-#include <glxtracer.h>
-#include <glxlog.h>
-#include "glxactivedecoder.h"
-
-// -----------------------------------------------------------------------------
-// NewL
-// -----------------------------------------------------------------------------
-CGlxHdmiDecoderAO* CGlxHdmiDecoderAO::NewL(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater)
-    {
-    TRACER("CGlxHdmiDecoderAO::NewL()");
-    CGlxHdmiDecoderAO* self = new (ELeave) CGlxHdmiDecoderAO(aHdmiSurfaceUpdater);
-    return self;
-    }
-    
-// -----------------------------------------------------------------------------
-// CGlxHdmiDecoderAO()
-// -----------------------------------------------------------------------------
-CGlxHdmiDecoderAO::CGlxHdmiDecoderAO(CGlxHdmiSurfaceUpdater* aHdmiSurfaceUpdater):
-    CActive(CActive::EPriorityStandard-1),iHdmiSurfaceUpdater(aHdmiSurfaceUpdater)
-    {
-    TRACER("CGlxHdmiDecoderAO::CGlxHdmiDecoderAO()");
-    CActiveScheduler::Add(this);
-    }
-
-// -----------------------------------------------------------------------------
-// ~CGlxHdmiDecoderAO
-// Cancel the outstanding request
-// -----------------------------------------------------------------------------
-CGlxHdmiDecoderAO::~CGlxHdmiDecoderAO()
-    {
-    TRACER("CGlxHdmiDecoderAO::~CGlxHdmiDecoderAO()");  
-    }
-    
-// -----------------------------------------------------------------------------
-// RunL
-// Calls iHdmiSurfaceUpdater->HandleRunL() which is expected to handle the call
-// -----------------------------------------------------------------------------
-void CGlxHdmiDecoderAO::RunL()
-    {
-    TRACER("CGlxHdmiDecoderAO::RunL()");
-    if(iStatus == KErrUnderflow)
-        {
-        GLX_LOG_INFO("CGlxHdmiDecoderAO::RunL() - call continueconvert");
-        iDecoder->ContinueConvert(&iStatus);
-        }
-    else
-        {
-        GLX_LOG_INFO("CGlxHdmiDecoderAO::RunL() - call handlerunL");
-        iHdmiSurfaceUpdater->HandleRunL(iStatus);
-        }
-    }
-
-// -----------------------------------------------------------------------------
-// DoCancel
-// -----------------------------------------------------------------------------
-void CGlxHdmiDecoderAO::DoCancel()
-    {
-    TRACER("CGlxHdmiDecoderAO::DoCancel()");
-    iDecoder->Cancel();
-    }
-
-// -----------------------------------------------------------------------------
-// ConvertImageL
-// -----------------------------------------------------------------------------
-void CGlxHdmiDecoderAO::ConvertImageL(CFbsBitmap& aBitmap,
-                                       CImageDecoder* aDecoder)
-    {
-    TRACER("CGlxHdmiDecoderAO::ConvertImageL()");
-    iDecoder = aDecoder;
-    iDecoder->Convert(&iStatus,aBitmap); 
-    SetActive();
-    }
-    
-
-