Commit 75d9e221 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@52868 954022d7-b5bf-4e40-9824-e11837661b57
parent 86dd1863
...@@ -107,7 +107,7 @@ int check_j2000_type(HANDLE hFile) ...@@ -107,7 +107,7 @@ int check_j2000_type(HANDLE hFile)
STDMETHODIMP CJ2kFile::J2kToInterface(BSTR bsSrcPath, IUnknown **ppImage, BSTR bsXmlOptions) STDMETHODIMP CJ2kFile::J2kToInterface(BSTR bsSrcPath, IUnknown **ppImage, BSTR bsXmlOptions)
{ {
Image *pImage = NULL; Image *pImage = NULL;
bool bOpenResult = FALSE; bool bOpenResult = FALSE;
...@@ -456,16 +456,16 @@ STDMETHODIMP CJ2kFile::InterfaceToJ2k(IUnknown **ppImage, BSTR bsDstPath, BSTR b ...@@ -456,16 +456,16 @@ STDMETHODIMP CJ2kFile::InterfaceToJ2k(IUnknown **ppImage, BSTR bsDstPath, BSTR b
} }
pMediaFormat->SetDefaultProperties(); pMediaFormat->SetDefaultProperties();
pMediaFormat->Width = lWidth; pMediaFormat->put_Width(lWidth);
pMediaFormat->Height = lHeight; pMediaFormat->put_Height(lHeight);
pMediaFormat->AspectRatioX = lAspectX; pMediaFormat->put_AspectRatioX(lAspectX);
pMediaFormat->AspectRatioY = lAspectY; pMediaFormat->put_AspectRatioY(lAspectY);
pMediaFormat->ColorSpace = (1<< 6);//CSP_BGRA pMediaFormat->put_ColorSpace(1 << 6);//CSP_BGRA
pMediaTransform->SetVideoFormat(pMediaFormat); pMediaTransform->SetVideoFormat(pMediaFormat);
IUnknown *pTransformResult = NULL; IUnknown *pTransformResult = NULL;
pMediaTransform->raw_TransformFrame(pMediaDataIn, &pTransformResult); pMediaTransform->TransformFrame(pMediaDataIn, &pTransformResult);
if (NULL != pTransformResult) if (NULL != pTransformResult)
{ {
if ( (*ppImage)==pTransformResult ) if ( (*ppImage)==pTransformResult )
...@@ -475,7 +475,7 @@ STDMETHODIMP CJ2kFile::InterfaceToJ2k(IUnknown **ppImage, BSTR bsDstPath, BSTR b ...@@ -475,7 +475,7 @@ STDMETHODIMP CJ2kFile::InterfaceToJ2k(IUnknown **ppImage, BSTR bsDstPath, BSTR b
if (NULL!=pData) if (NULL!=pData)
{ {
MediaCore::IAVSMediaData *pmdOutFrame = NULL; MediaCore::IAVSMediaData *pmdOutFrame = NULL;
pData->raw_CreateDuplicate(2, &pmdOutFrame); pData->CreateDuplicate(2, &pmdOutFrame);
pData->Release(); pData->Release();
if (NULL!=pmdOutFrame) if (NULL!=pmdOutFrame)
{ {
......
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
using namespace ATL; using namespace ATL;
#import "..\..\Redist\ASCMediaCore3.dll" named_guids rename_namespace("MediaCore"), exclude("tagRECT") #import "..\..\Redist\ASCMediaCore3.dll" named_guids raw_interfaces_only rename_namespace("MediaCore"), exclude("tagRECT")
#import "..\..\Redist\ASCMediaFormatSettings3.dll" named_guids rename_namespace("MediaFormat"), exclude("tagRECT") #import "..\..\Redist\ASCMediaFormatSettings3.dll" named_guids raw_interfaces_only rename_namespace("MediaFormat"), exclude("tagRECT")
#include "..\..\Common\ASCUtils.h" #include "..\..\Common\ASCUtils.h"
#include "..\..\Common\VideoFileErrorDescription.h" #include "..\..\Common\VideoFileErrorDescription.h"
......
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