Commit e2d04e77 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52484 954022d7-b5bf-4e40-9824-e11837661b57
parent 3fb8d7af
......@@ -198,36 +198,7 @@ private:
// (Wmf/Emf)
// TODO: Bitmap
ImageStudio::IImageTransforms* pTransforms = NULL;
CoCreateInstance(ImageStudio::CLSID_ImageTransforms, NULL, CLSCTX_INPROC, ImageStudio::IID_IImageTransforms, (void**)&pTransforms);
if (NULL == pTransforms)
return;
CStringW strXml = L"<ImageFile-LoadImage sourcepath='";
strXml += CStringW(bsFilePath);
strXml += L"'/>";
VARIANT_BOOL vbRes = VARIANT_FALSE;
BSTR bsXml = strXml.AllocSysString();
pTransforms->SetXml(bsXml, &vbRes);
if (VARIANT_TRUE == vbRes)
{
pTransforms->Transform(&vbRes);
}
if (VARIANT_TRUE == vbRes)
{
VARIANT var;
pTransforms->GetResult(0, &var);
m_pMediaData = var.punkVal;
var.punkVal = NULL;
}
RELEASEINTERFACE(pTransforms);
m_pMediaData = ImageStudio::ISLoadImage(bsFilePath);
m_lImageType = c_lImageTypeBitmap;
}
......
#pragma once
#include "../../../../Common/RSA/XmlDecoder.h"
#include "../../../../Common/ShareMemArray.h"
//
......
......@@ -73,8 +73,8 @@ using namespace ATL;
namespace MediaCore
{
typedef OfficeCore::IUncompressedFrame IAVSUncompressedVideoFrame;
const GUID CLSID_CUncompressedVideoFrame = OfficeCore::CLSID_CUncompressedFrame;
const GUID IID_IUncompressedVideoFrame = OfficeCore::IID_IUncompressedFrame;
const GUID CLSID_CAVSUncompressedVideoFrame = OfficeCore::CLSID_CUncompressedFrame;
const GUID IID_IAVSUncompressedVideoFrame = OfficeCore::IID_IUncompressedFrame;
}
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment