亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? effect.cpp

?? linux下的一款播放器
?? CPP
?? 第 1 頁 / 共 4 頁
字號:
/* ***** BEGIN LICENSE BLOCK ***** * Source last modified: $Id: effect.cpp,v 1.2.24.1 2004/07/09 01:52:03 hubbe Exp $ *  * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved. *  * The contents of this file, and the files included with this file, * are subject to the current version of the RealNetworks Public * Source License (the "RPSL") available at * http://www.helixcommunity.org/content/rpsl unless you have licensed * the file under the current version of the RealNetworks Community * Source License (the "RCSL") available at * http://www.helixcommunity.org/content/rcsl, in which case the RCSL * will apply. You may also obtain the license terms directly from * RealNetworks.  You may not use this file except in compliance with * the RPSL or, if you have a valid RCSL with RealNetworks applicable * to this file, the RCSL.  Please see the applicable RPSL or RCSL for * the rights, obligations and limitations governing use of the * contents of the file. *  * Alternatively, the contents of this file may be used under the * terms of the GNU General Public License Version 2 or later (the * "GPL") in which case the provisions of the GPL are applicable * instead of those above. If you wish to allow use of your version of * this file only under the terms of the GPL, and not to allow others * to use your version of this file under the terms of either the RPSL * or RCSL, indicate your decision by deleting the provisions above * and replace them with the notice and other provisions required by * the GPL. If you do not delete the provisions above, a recipient may * use your version of this file under the terms of any one of the * RPSL, the RCSL or the GPL. *  * This file is part of the Helix DNA Technology. RealNetworks is the * developer of the Original Code and owns the copyrights in the * portions it created. *  * This file, and the files included with this file, is distributed * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET * ENJOYMENT OR NON-INFRINGEMENT. *  * Technology Compatibility Kit Test Suite(s) Location: *    http://www.helixcommunity.org/content/tck *  * Contributor(s): *  * ***** END LICENSE BLOCK ***** */#include "hxtypes.h"#include "hxcom.h"#include "hxcomm.h"#include "hxstring.h"#include "baseobj.h"#include "effect.h"#include "rpfilobj.h"#include "hxheap.h"#ifdef _DEBUG#undef HX_THIS_FILE		static char HX_THIS_FILE[] = __FILE__;#endifchar CIMFEffect::m_pszStart[]                  = "start";char CIMFEffect::m_pszDuration[]               = "duration";char CIMFEffect::m_pszTarget[]                 = "target";char CIMFEffect::m_pszAspect[]                 = "aspect";char CIMFEffect::m_pszWipeDirection[]          = "direction";char CIMFEffect::m_pszWipeType[]               = "type";char CIMFEffect::m_pszURL[]                    = "url";char CIMFEffect::m_pszMaxFps[]				   = "maxfps";char CIMFEffect::m_pszPackage[]                = "package";char CIMFEffect::m_pszName[]                   = "name";char CIMFEffect::m_pszData[]                   = "data";char CIMFEffect::m_pszFile[]                   = "file";char CIMFWipeEffect::m_pszWipeDirectionUp[]    = "up";char CIMFWipeEffect::m_pszWipeDirectionDown[]  = "down";char CIMFWipeEffect::m_pszWipeDirectionLeft[]  = "left";char CIMFWipeEffect::m_pszWipeDirectionRight[] = "right";char CIMFWipeEffect::m_pszWipeTypeNormal[]     = "normal";char CIMFWipeEffect::m_pszWipeTypePush[]       = "push";//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////CIMFEffect::CIMFEffect() : 	m_ulStart(0)    ,	m_cDstRect()    ,	m_cURL()    ,	m_ulMaxFps(0)    ,	m_bFirstUse(FALSE)    ,	m_bLastUse(FALSE)    ,	m_pFileObject(NULL)    ,	m_cErrorMessage(){};CIMFEffect::CIMFEffect(CIMFFileObject *pFileObject) : 	m_cDstRect()    ,	m_cURL()    ,	m_cErrorMessage(){    m_ulStart     = 0;    m_ulMaxFps    = 0;    m_bFirstUse   = FALSE;    m_bLastUse    = FALSE;    m_pFileObject = pFileObject;};CIMFEffect::CIMFEffect(const CIMFEffect &rEffect) : 	m_ulStart(rEffect.m_ulStart)    ,	m_cDstRect(rEffect.m_cDstRect)    ,	m_cURL(rEffect.m_cURL)    ,	m_ulMaxFps(rEffect.m_ulMaxFps)    ,	m_bFirstUse(rEffect.m_bFirstUse)    ,	m_bLastUse(rEffect.m_bLastUse)    ,	m_pFileObject(rEffect.m_pFileObject)    ,	m_cErrorMessage(rEffect.m_cErrorMessage){}CIMFEffect::~CIMFEffect() {};ULONG32 CIMFFadeinEffect::GetBinaryLength(){    return 54 + 4 + m_cURL.length();}ULONG32 CIMFFadeinEffect::RenderBinary(unsigned char *pBuffer){    ULONG32 ulCurPos = 0;    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, (ULONG32) kTypeFadeIn);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulStart);	ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulMaxFps);	ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_cURL);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulDuration);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulTarget);    ulCurPos += m_cSrcRect.RenderBinary(pBuffer + ulCurPos);    ulCurPos += m_cDstRect.RenderBinary(pBuffer + ulCurPos);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_bAspectFlag);        return ulCurPos;}ULONG32 CIMFFadeinEffect::InitFromBinary(unsigned char *pBuffer){    ULONG32 ulCurPos = 0;    ULONG32 ulTmp;    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, ulTmp); // This is the type    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_ulStart);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulMaxFps);	ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_cURL);    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_ulDuration);    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_ulTarget);    ulCurPos += m_cSrcRect.InitFromBinary(pBuffer + ulCurPos);    ulCurPos += m_cDstRect.InitFromBinary(pBuffer + ulCurPos);    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_bAspectFlag);        return ulCurPos;}void CIMFFadeinEffect::RenderText(GString &rText){    rText += CIMFFileObject::m_pszTagStart;    rText += CIMFFileObject::m_pszFadeinTag;    rText += " ";    CIMFFileObject::RenderAttribute(m_pszStart,    m_ulStart,     rText);	CIMFFileObject::RenderAttribute(m_pszDuration, m_ulDuration,  rText);    CIMFFileObject::RenderAttribute(m_pszTarget,   m_ulTarget,    rText);    	m_cSrcRect.RenderText(rText);    m_cDstRect.RenderText(rText);    if (m_bAspectFlag != m_bAspectDefault)    {        CIMFFileObject::RenderAttribute(m_pszAspect, m_bAspectFlag, rText);    }    if (m_cURL.length() > 0)    {        CIMFFileObject::RenderAttribute(m_pszURL, m_cURL, rText);    }    rText += CIMFFileObject::m_pszTagEnd;}BOOL CIMFFadeinEffect::InitFromText(GString &rText){    // Get the start time    HX_RESULT retVal = CIMFFileObject::SetAttributeTimeValue(rText,                                                             m_pszStart,                                                             m_pFileObject->GetTimeFormat(),                                                             m_ulStart);    if (retVal != HXR_OK)    {        if (retVal == HXR_PROP_NOT_FOUND)        {            m_cErrorMessage = "Missing start attribute in ";        }        else        {            m_cErrorMessage = "Invalid time formatting in ";        }        m_cErrorMessage += rText;        return FALSE;    }    // Get the duration    retVal = CIMFFileObject::SetAttributeTimeValue(rText,                                                   m_pszDuration,                                                   m_pFileObject->GetTimeFormat(),                                                   m_ulDuration);    if (retVal != HXR_OK)    {        if (retVal == HXR_PROP_NOT_FOUND)        {            m_cErrorMessage = "Missing duration attribute in ";        }        else        {            m_cErrorMessage = "Invalid time formatting in ";        }        m_cErrorMessage += rText;        return FALSE;    }//    if (!CIMFFileObject::SetAttributeValue(rText, m_pszStart,    m_ulStart))    return FALSE;//    if (!CIMFFileObject::SetAttributeValue(rText, m_pszDuration, m_ulDuration)) return FALSE;    if (!CIMFFileObject::SetAttributeValue(rText, m_pszTarget,   m_ulTarget))   return FALSE;    // These are optional attributes    m_cSrcRect.InitFromText(rText);    m_cDstRect.InitFromText(rText);    CIMFFileObject::SetAttributeValue(rText, m_pszURL, m_cURL);	CIMFFileObject::SetAttributeValue(rText, m_pszMaxFps, m_ulMaxFps);    if (!CIMFFileObject::SetAttributeValueBOOL(rText, m_pszAspect, m_bAspectFlag))    {        m_bAspectFlag = m_bAspectDefault;    }    return TRUE;}void CIMFFadeinEffect::RenderToolData(IMFEFFECT& imfEffect){    imfEffect.m_ulBinSize        = GetBinaryLength();    imfEffect.m_ulMaxFps         = GetMaxFps();    imfEffect.m_ulStart          = GetStart();    imfEffect.m_ulDuration       = GetDuration();    imfEffect.m_bAspect          = GetAspectFlag();    imfEffect.m_bDefaultAspect   = GetAspectDefault();    imfEffect.m_ulTarget         = GetTargetImageHandle();    imfEffect.m_ulType           = GetType();        imfEffect.m_nSrc_x           = m_cSrcRect.GetX();    imfEffect.m_nSrc_y           = m_cSrcRect.GetY();    imfEffect.m_nSrc_W           = m_cSrcRect.GetWidth();    imfEffect.m_nSrc_H           = m_cSrcRect.GetHeight();    imfEffect.m_nDest_x          = m_cDstRect.GetX();    imfEffect.m_nDest_y          = m_cDstRect.GetY();    imfEffect.m_nDest_W          = m_cDstRect.GetWidth();    imfEffect.m_nDest_H          = m_cDstRect.GetHeight();    if (m_cURL.length() > 0)        SafeStrCpy(imfEffect.m_cURL, GetURL().c_str(), 256);}BOOL CIMFFadeinEffect::InitFromToolData(IMFEFFECT imfEffect){    // Set Attributes    SetStart(imfEffect.m_ulStart);    SetDefaultMaxFps(imfEffect.m_ulMaxFps);    SetDuration(imfEffect.m_ulDuration);       SetAspectFlag(imfEffect.m_bAspect);    SetAspectDefault(imfEffect.m_bDefaultAspect);    SetTargetImageHandle(imfEffect.m_ulTarget);    SetURL(imfEffect.m_cURL);    m_cSrcRect.SetX(imfEffect.m_nSrc_x);    m_cSrcRect.SetY(imfEffect.m_nSrc_y);    m_cSrcRect.SetWidth(imfEffect.m_nSrc_W);    m_cSrcRect.SetHeight(imfEffect.m_nSrc_H);    m_cDstRect.SetX(imfEffect.m_nDest_x);    m_cDstRect.SetY(imfEffect.m_nDest_y);    m_cDstRect.SetWidth(imfEffect.m_nDest_W);    m_cDstRect.SetHeight(imfEffect.m_nDest_H);    return TRUE;    }//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ULONG32 CIMFCrossfadeEffect::GetBinaryLength(){    return 54 + 4 + m_cURL.length();}ULONG32 CIMFCrossfadeEffect::RenderBinary(unsigned char *pBuffer){    ULONG32 ulCurPos = 0;    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, (ULONG32) kTypeCrossFade);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulStart);	ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulMaxFps);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_cURL);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulDuration);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_ulTarget);    ulCurPos += m_cSrcRect.RenderBinary(pBuffer + ulCurPos);    ulCurPos += m_cDstRect.RenderBinary(pBuffer + ulCurPos);    ulCurPos += RenderBinaryType(pBuffer + ulCurPos, m_bAspectFlag);    return ulCurPos;}ULONG32 CIMFCrossfadeEffect::InitFromBinary(unsigned char *pBuffer){    ULONG32 ulCurPos = 0;    ULONG32 ulTmp;    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, ulTmp); // This is the type    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_ulStart);	ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_ulMaxFps);    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_cURL);    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_ulDuration);    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_ulTarget);    ulCurPos += m_cSrcRect.InitFromBinary(pBuffer + ulCurPos);    ulCurPos += m_cDstRect.InitFromBinary(pBuffer + ulCurPos);    ulCurPos += InitFromBinaryType(pBuffer + ulCurPos, m_bAspectFlag);    return ulCurPos;}void CIMFCrossfadeEffect::RenderText(GString &rText){    rText += CIMFFileObject::m_pszTagStart;    rText += CIMFFileObject::m_pszCrossfadeTag;    rText += " ";    CIMFFileObject::RenderAttribute(m_pszStart,    m_ulStart,     rText);    CIMFFileObject::RenderAttribute(m_pszDuration, m_ulDuration,  rText);    CIMFFileObject::RenderAttribute(m_pszTarget,   m_ulTarget,    rText);    m_cSrcRect.RenderText(rText);    m_cDstRect.RenderText(rText);    if (m_bAspectFlag != m_bAspectDefault)    {        CIMFFileObject::RenderAttribute(m_pszAspect, m_bAspectFlag, rText);    }    if (m_cURL.length() > 0)    {        CIMFFileObject::RenderAttribute(m_pszURL, m_cURL, rText);    }    rText += CIMFFileObject::m_pszTagEnd;}BOOL CIMFCrossfadeEffect::InitFromText(GString &rText){    // These are required attributes    // Get the start time    HX_RESULT retVal = CIMFFileObject::SetAttributeTimeValue(rText,                                                             m_pszStart,                                                             m_pFileObject->GetTimeFormat(),                                                             m_ulStart);    if (retVal != HXR_OK)    {        if (retVal == HXR_PROP_NOT_FOUND)        {            m_cErrorMessage = "Missing start attribute in ";        }        else        {            m_cErrorMessage = "Invalid time formatting in ";        }        m_cErrorMessage += rText;        return FALSE;    }    // Get the duration    retVal = CIMFFileObject::SetAttributeTimeValue(rText,                                                   m_pszDuration,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区在线不卡 | 日韩二区三区四区| 久久99精品视频| 欧美在线免费观看视频| 国产人伦精品一区二区| 另类小说欧美激情| 欧美性高清videossexo| 国产精品久久三区| 国产黑丝在线一区二区三区| 欧美一区在线视频| 亚洲国产一区二区三区青草影视| eeuss鲁片一区二区三区| 2021久久国产精品不只是精品| 午夜精品久久久久久久| 欧美三区在线视频| 亚洲综合免费观看高清完整版在线| 国产一区二区福利视频| 欧美成人官网二区| 九九精品一区二区| 91.麻豆视频| 日韩av成人高清| 欧美久久久久免费| 三级不卡在线观看| 欧美精品一二三区| 日本中文字幕一区| 日韩欧美一区中文| 激情都市一区二区| 久久精品男人天堂av| 国产精品一色哟哟哟| 国产丝袜欧美中文另类| 成人性生交大合| 国产精品人妖ts系列视频| 国产凹凸在线观看一区二区| 亚洲国产精品高清| 色偷偷久久人人79超碰人人澡| 亚洲日本青草视频在线怡红院| 99精品国产视频| 一区二区免费看| 欧美日韩国产精品自在自线| 日韩电影免费在线看| 亚洲精品在线观看网站| 国产xxx精品视频大全| 日韩毛片在线免费观看| 在线观看日韩精品| 美国一区二区三区在线播放| 精品国产人成亚洲区| 成人的网站免费观看| 一区二区三区不卡视频在线观看 | gogo大胆日本视频一区| 中文字幕字幕中文在线中不卡视频| 色婷婷综合久久久中文字幕| 亚洲成人av电影在线| 日韩精品一区二区三区swag| 国产iv一区二区三区| 洋洋av久久久久久久一区| 91精品国产综合久久香蕉麻豆| 韩日欧美一区二区三区| 亚洲欧美日韩小说| 欧美一区二区在线播放| kk眼镜猥琐国模调教系列一区二区 | 国产三级欧美三级| 91精品91久久久中77777| 日本免费新一区视频| 国产欧美综合在线| 777亚洲妇女| 99精品视频在线观看免费| 三级一区在线视频先锋| 欧美国产日韩a欧美在线观看| 一本一道波多野结衣一区二区| 男人的天堂久久精品| 1区2区3区国产精品| 日韩欧美国产wwwww| www.欧美日韩| 狠狠色狠狠色综合日日91app| 一区二区三区蜜桃| 国产欧美一区二区精品仙草咪| 欧美网站大全在线观看| 粉嫩嫩av羞羞动漫久久久 | 日韩欧美一区二区三区在线| 91丝袜高跟美女视频| 国产一区视频在线看| 亚洲国产成人porn| 国产精品久久国产精麻豆99网站| 欧美精品粉嫩高潮一区二区| 懂色av一区二区夜夜嗨| 麻豆精品久久精品色综合| 亚洲一区自拍偷拍| 中文字幕精品一区二区精品绿巨人| 欧美日韩精品一区二区| 91免费在线视频观看| 国产精品亚洲综合一区在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲五月六月丁香激情| 亚洲激情六月丁香| 国产精品麻豆一区二区 | 99九九99九九九视频精品| 久久不见久久见中文字幕免费| 亚洲成人一二三| 亚洲电影第三页| 亚洲国产一区二区三区| 夜夜嗨av一区二区三区中文字幕| 国产精品成人免费| 国产精品欧美一区喷水| 国产性天天综合网| 国产午夜亚洲精品理论片色戒 | 91在线视频播放地址| jiyouzz国产精品久久| 成人高清视频免费观看| 成人午夜激情视频| 懂色中文一区二区在线播放| 懂色av一区二区三区蜜臀| 国产a级毛片一区| 成人黄色小视频在线观看| 成人丝袜18视频在线观看| 成人禁用看黄a在线| gogo大胆日本视频一区| 一本色道久久加勒比精品 | 色先锋资源久久综合| 91理论电影在线观看| 色偷偷88欧美精品久久久| 在线观看网站黄不卡| 在线电影欧美成精品| 欧美一区二区久久| 亚洲精品一区二区三区福利 | 99精品视频一区二区三区| 99久久er热在这里只有精品15 | 99精品桃花视频在线观看| 日本精品一级二级| 欧美日韩一区二区三区视频| 91精品国产福利| 国产欧美日韩视频在线观看| 亚洲人成精品久久久久| 亚洲va国产va欧美va观看| 九色综合狠狠综合久久| 成人性生交大片| 欧美三日本三级三级在线播放| 91精品国产综合久久久久久久久久| 日韩免费观看2025年上映的电影 | 欧美mv日韩mv国产网站| 国产欧美日韩视频一区二区| 一区二区三区在线视频免费| 日韩中文字幕1| 风间由美性色一区二区三区| 欧美亚洲一区三区| 337p日本欧洲亚洲大胆精品| 国产精品国产三级国产aⅴ入口| 亚洲电影一级黄| 国产成人超碰人人澡人人澡| 欧美亚洲禁片免费| 久久亚洲一级片| 亚洲电影一级片| 粉嫩在线一区二区三区视频| 欧美精品视频www在线观看| 国产欧美日韩视频在线观看| 图片区小说区区亚洲影院| 国产超碰在线一区| 91精品国产综合久久国产大片 | 国产欧美日产一区| 亚洲国产人成综合网站| 粉嫩绯色av一区二区在线观看| 777xxx欧美| 亚洲影院免费观看| 成人免费av在线| 欧美tickling挠脚心丨vk| 亚洲图片欧美综合| www.激情成人| 国产性色一区二区| 久久99国产精品免费| 欧美日韩一区中文字幕| 国产精品久久久久毛片软件| 精品在线免费视频| 欧美高清视频不卡网| 亚洲精品国产第一综合99久久| 国产精品亚洲综合一区在线观看| 欧美精品少妇一区二区三区| 亚洲一区在线观看免费观看电影高清| 福利一区二区在线观看| 久久综合五月天婷婷伊人| 日本欧美在线观看| 精品视频1区2区3区| 亚洲视频一二区| 95精品视频在线| 国产精品福利av| 丁香六月综合激情| 久久精品水蜜桃av综合天堂| 黄色日韩三级电影| 26uuu国产日韩综合| 久久精品国产色蜜蜜麻豆| 91精品国产91综合久久蜜臀| 日一区二区三区| 91精品综合久久久久久| 天使萌一区二区三区免费观看| 欧美在线不卡一区| 亚洲一区二区美女| 欧美日韩三级一区| 亚洲va韩国va欧美va| 3atv一区二区三区| 老司机精品视频一区二区三区| 精品少妇一区二区三区免费观看| 美女视频第一区二区三区免费观看网站|