ref: c4a446b43ab1d79a838be84d65cc393f9f027606
parent: 1d3725030146d842447894c48a46940d710f9c0f
parent: 3ff145e839efd7f6b47e7e78e92ef0f6a0b36e2b
author: huili2 <[email protected]>
date: Thu Sep 18 09:23:27 EDT 2014
Merge pull request #1367 from ruil2/rename rename namespace and funciton name to avoid conflicts with old library
--- a/codec/encoder/core/src/wels_preprocess.cpp
+++ b/codec/encoder/core/src/wels_preprocess.cpp
@@ -86,7 +86,7 @@
int32_t CWelsPreProcess::WelsPreprocessCreate() {
if (m_pInterfaceVp == NULL) {
- CreateVpInterface ((void**) &m_pInterfaceVp, WELSVP_INTERFACE_VERION);
+ WelsCreateVpInterface ((void**) &m_pInterfaceVp, WELSVP_INTERFACE_VERION);
if (!m_pInterfaceVp)
goto exit;
} else
@@ -100,7 +100,7 @@
}
int32_t CWelsPreProcess::WelsPreprocessDestroy() {
- DestroyVpInterface (m_pInterfaceVp, WELSVP_INTERFACE_VERION);
+ WelsDestroyVpInterface (m_pInterfaceVp, WELSVP_INTERFACE_VERION);
m_pInterfaceVp = NULL;
return 0;
--- a/codec/processing/interface/IWelsVP.h
+++ b/codec/processing/interface/IWelsVP.h
@@ -300,8 +300,8 @@
#endif
WELSVP_EXTERNC_BEGIN
-EResult CreateVpInterface (void** ppCtx, int iVersion /*= WELSVP_INTERFACE_VERION*/);
-EResult DestroyVpInterface (void* pCtx , int iVersion /*= WELSVP_INTERFACE_VERION*/);
+EResult WelsCreateVpInterface (void** ppCtx, int iVersion /*= WELSVP_INTERFACE_VERION*/);
+EResult WelsDestroyVpInterface (void* pCtx , int iVersion /*= WELSVP_INTERFACE_VERION*/);
WELSVP_EXTERNC_END
//////////////////////////////////////////////////////////////////////////////////////////////
--- a/codec/processing/src/common/WelsFrameWork.cpp
+++ b/codec/processing/src/common/WelsFrameWork.cpp
@@ -44,20 +44,20 @@
/* interface API implement */
-EResult CreateVpInterface (void** ppCtx, int iVersion) {
+EResult WelsCreateVpInterface (void** ppCtx, int iVersion) {
if (iVersion & 0x8000)
- return nsWelsVP::CreateSpecificVpInterface ((IWelsVP**)ppCtx);
+ return WelsVP::CreateSpecificVpInterface ((IWelsVP**)ppCtx);
else if (iVersion & 0x7fff)
- return nsWelsVP::CreateSpecificVpInterface ((IWelsVPc**)ppCtx);
+ return WelsVP::CreateSpecificVpInterface ((IWelsVPc**)ppCtx);
else
return RET_INVALIDPARAM;
}
-EResult DestroyVpInterface (void* pCtx, int iVersion) {
+EResult WelsDestroyVpInterface (void* pCtx, int iVersion) {
if (iVersion & 0x8000)
- return nsWelsVP::DestroySpecificVpInterface ((IWelsVP*)pCtx);
+ return WelsVP::DestroySpecificVpInterface ((IWelsVP*)pCtx);
else if (iVersion & 0x7fff)
- return nsWelsVP::DestroySpecificVpInterface ((IWelsVPc*)pCtx);
+ return WelsVP::DestroySpecificVpInterface ((IWelsVPc*)pCtx);
else
return RET_INVALIDPARAM;
}
--- a/codec/processing/src/common/typedef.h
+++ b/codec/processing/src/common/typedef.h
@@ -47,7 +47,7 @@
#define WELSVP_EXTERN_C_BEGIN extern "C" {
#define WELSVP_EXTERN_C_END }
-#define WELSVP_NAMESPACE_BEGIN namespace nsWelsVP {
+#define WELSVP_NAMESPACE_BEGIN namespace WelsVP {
#define WELSVP_NAMESPACE_END }
// Get the stdint type definitions from typedefs.h in the common lib
--- a/test/processing/ProcessUT_AdaptiveQuantization.cpp
+++ b/test/processing/ProcessUT_AdaptiveQuantization.cpp
@@ -9,7 +9,7 @@
#include "AdaptiveQuantization.h"
-using namespace nsWelsVP;
+using namespace WelsVP;
static void FillWithRandomData (uint8_t* p, int32_t Len) {
for (int32_t i = 0; i < Len; i++) {
--- a/test/processing/ProcessUT_DownSample.cpp
+++ b/test/processing/ProcessUT_DownSample.cpp
@@ -6,7 +6,7 @@
#include "IWelsVP.h"
#include "downsample.h"
-using namespace nsWelsVP;
+using namespace WelsVP;
void DyadicBilinearDownsampler_ref (uint8_t* pDst, const int32_t kiDstStride,
uint8_t* pSrc, const int32_t kiSrcStride,
@@ -272,4 +272,4 @@
GENERATE_DyadicBilinearDownsampler_UT (DyadicBilinearDownsampler_AArch64_neon, 1, WELS_CPU_NEON)
GENERATE_GeneralBilinearDownsampler_UT (GeneralBilinearAccurateDownsamplerWrap_AArch64_neon, GeneralBilinearAccurateDownsampler_ref, 1, WELS_CPU_NEON)
-#endif
\ No newline at end of file
+#endif
--- a/test/processing/ProcessUT_ScrollDetection.cpp
+++ b/test/processing/ProcessUT_ScrollDetection.cpp
@@ -8,7 +8,7 @@
#include "ScrollDetectionFuncs.h"
#include "utils/DataGenerator.h"
-using namespace nsWelsVP;
+using namespace WelsVP;
#define ASSERT_MEMORY_FAIL2X(A, B) \
if (NULL == B) { \
--- a/test/processing/ProcessUT_VaaCalc.cpp
+++ b/test/processing/ProcessUT_VaaCalc.cpp
@@ -6,7 +6,7 @@
#include "IWelsVP.h"
#include "vaacalculation.h"
-using namespace nsWelsVP;
+using namespace WelsVP;
void VAACalcSadSsd_ref (const uint8_t* pCurData, const uint8_t* pRefData, int32_t iPicWidth, int32_t iPicHeight,
int32_t iPicStride,
@@ -844,4 +844,4 @@
GENERATE_VAACalcSadSsdBgd_UT (VAACalcSadSsdBgd_AArch64_neon, 1, WELS_CPU_NEON)
GENERATE_VAACalcSadSsd_UT (VAACalcSadSsd_AArch64_neon, 1, WELS_CPU_NEON)
GENERATE_VAACalcSadVar_UT (VAACalcSadVar_AArch64_neon, 1, WELS_CPU_NEON)
-#endif
\ No newline at end of file
+#endif