sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalComponent sl@0: */ sl@0: sl@0: #include "mmfsubtitlegraphicmessage.h" sl@0: sl@0: /** sl@0: TSubtitleGraphicMessageBase sl@0: sl@0: @param aMsgType Message type identifier. sl@0: */ sl@0: TSubtitleGraphicMessageBase::TSubtitleGraphicMessageBase(TSubtitleGraphicMessage aMsgType) : iMsgType(aMsgType) sl@0: { sl@0: sl@0: } sl@0: sl@0: /** sl@0: Default constructor sl@0: */ sl@0: TSubtitleCrpMsgInit::TSubtitleCrpMsgInit() : sl@0: TSubtitleGraphicMessageBase(ESubtitleCrpMessageInit) sl@0: { sl@0: sl@0: } sl@0: sl@0: /** sl@0: Message constructor for CRP ESubtitleCrpMessageInit sl@0: @param aBitmapHandle1 Bitmap handle for frame 1 @see CFbsBitmap::Handle() sl@0: @param aBitmapHandle2 Bitmap handle for frame 2 @see CFbsBitmap::Handle() sl@0: */ sl@0: TSubtitleCrpMsgInit::TSubtitleCrpMsgInit(TInt aBitmapHandle1, TInt aBitmapHandle2) : sl@0: TSubtitleGraphicMessageBase(ESubtitleCrpMessageInit), sl@0: iBitmapHandle1(aBitmapHandle1), sl@0: iBitmapHandle2(aBitmapHandle2) sl@0: { sl@0: sl@0: } sl@0: sl@0: /** sl@0: Message constructor for CRP ESubtitleCrpMessageInitSimple sl@0: */ sl@0: TSubtitleCrpMsgInitSimple::TSubtitleCrpMsgInitSimple() : sl@0: TSubtitleGraphicMessageBase(ESubtitleCrpMessageInitSimple) sl@0: { sl@0: sl@0: } sl@0: sl@0: /** sl@0: Message constructor for CRP ESubtitleCrpMessageClear sl@0: */ sl@0: TSubtitleCrpMsgClear::TSubtitleCrpMsgClear() : TSubtitleGraphicMessageBase(ESubtitleCrpMessageClear) sl@0: { sl@0: sl@0: } sl@0: sl@0: /** sl@0: Message constructor for CRP ESubtitleCrpMessageDrawFrame sl@0: */ sl@0: TSubtitleCrpMsgDrawFrame::TSubtitleCrpMsgDrawFrame( ): sl@0: TSubtitleGraphicMessageBase(ESubtitleCrpMessageDrawFrame) sl@0: { sl@0: sl@0: } sl@0: sl@0: /** sl@0: Message constructor for CRP ESubtitleCrpMessageInit sl@0: @param aBitmapHandle Bitmap handle for drawframe request @see CFbsBitmap::Handle() sl@0: @param aDirtyRegion Dirty region in the source bitmap tha should be copied to the screen sl@0: @param aDisplayDuration Number of microseconds this frame should be displayed for sl@0: */ sl@0: TSubtitleCrpMsgDrawFrame::TSubtitleCrpMsgDrawFrame(TInt aBitmapHandle, sl@0: const TRect& aDirtyRegion, sl@0: const TTimeIntervalMicroSeconds& aDisplayDuration) : sl@0: TSubtitleGraphicMessageBase(ESubtitleCrpMessageDrawFrame), sl@0: iBitmapHandle(aBitmapHandle), sl@0: iDirtyRegion(aDirtyRegion), sl@0: iDisplayDuration(aDisplayDuration) sl@0: { sl@0: sl@0: } sl@0: sl@0: /** sl@0: Message constructor for CRP ESubtitleCrpMessageSwapFrame sl@0: */ sl@0: TSubtitleCrpMsgRenderSwapFrame::TSubtitleCrpMsgRenderSwapFrame(): sl@0: TSubtitleGraphicMessageBase(ESubtitleCrpMessageSwapFrame) sl@0: { sl@0: sl@0: } sl@0: sl@0: /** sl@0: Message constructor for CRP ESubtitleCrpMessageInit sl@0: @param aExpectedBuffer The index number of the internal frame the crp should draw. sl@0: @param aDisplayDuration The time in microseconds that this frame should be displayed for. sl@0: The CRP will clear this frame after aDisplayDuration microseconds sl@0: @param aDirtyRegion The decoder returns the region of the subtitle frame that has been sl@0: updated. i.e. the region that contains new subtitle content sl@0: */ sl@0: TSubtitleCrpMsgRenderSwapFrame::TSubtitleCrpMsgRenderSwapFrame(TInt aExpectedBuffer, sl@0: const TRect& aDirtyRegion, sl@0: const TTimeIntervalMicroSeconds& aDisplayDuration): sl@0: TSubtitleGraphicMessageBase(ESubtitleCrpMessageSwapFrame), sl@0: iExpectedFrame(aExpectedBuffer), sl@0: iDisplayDuration(aDisplayDuration), sl@0: iDirtyRegion(aDirtyRegion) sl@0: { sl@0: sl@0: }