History

Remove typedefs for float_t and double_t

The actual float and double data types are defined in C89 and are usable as such without any extra typedefs. Removing the extra typedefs simplifies the compatibility typedef headers, simplifies portability and makes the code base easier to work with for people new to the library.

Martin Storsjö committed 12 years ago

Commit d36b10f1 parent ba6bf7d4 files · +15 −20Browse files

Showing the changes to codec/processing/src/adaptivequantization (1 of 4 files). Show all

Unified · Split

codec/processing/src/adaptivequantization/AdaptiveQuantization.cpp+6−6
@@ -69,12 +69,12 @@ EResult CAdaptiveQuantization::Process (int32_t iType, SPixMap* pSrcPixMap, SPix · 68 unmodified lines
69 SVAACalcResult* pVaaCalcResults = NULL;69 SVAACalcResult* pVaaCalcResults = NULL;
70 int8_t iMotionTextureIndexToDeltaQp = 0;70 int8_t iMotionTextureIndexToDeltaQp = 0;
71 int32_t iAverMotionTextureIndexToDeltaQp = 0; // double to uint3271 int32_t iAverMotionTextureIndexToDeltaQp = 0; // double to uint32
72 double_t dAverageMotionIndex = 0.0; // double to float72 double dAverageMotionIndex = 0.0; // double to float
73 double_t dAverageTextureIndex = 0.0;73 double dAverageTextureIndex = 0.0;
74 74
75 double_t dQStep = 0.0;75 double dQStep = 0.0;
76 double_t dLumaMotionDeltaQp = 0;76 double dLumaMotionDeltaQp = 0;
77 double_t dLumaTextureDeltaQp = 0;77 double dLumaTextureDeltaQp = 0;
78 78
79 uint8_t* pRefFrameY = NULL, *pCurFrameY = NULL;79 uint8_t* pRefFrameY = NULL, *pCurFrameY = NULL;
80 int32_t iRefStride = 0, iCurStride = 0;80 int32_t iRefStride = 0, iCurStride = 0;
@@ -170,7 +170,7 @@ EResult CAdaptiveQuantization::Process (int32_t iType, SPixMap* pSrcPixMap, SPix · 89 unmodified lines
170 pMotionTexture = m_sAdaptiveQuantParam.pMotionTextureUnit;170 pMotionTexture = m_sAdaptiveQuantParam.pMotionTextureUnit;
171 for (j = 0; j < iMbHeight; j ++) {171 for (j = 0; j < iMbHeight; j ++) {
172 for (i = 0; i < iMbWidth; i++) {172 for (i = 0; i < iMbWidth; i++) {
173 double_t a = pMotionTexture->uiTextureIndex / dAverageTextureIndex;173 double a = pMotionTexture->uiTextureIndex / dAverageTextureIndex;
174 dQStep = (a - 1) / (a + MODEL_ALPHA);174 dQStep = (a - 1) / (a + MODEL_ALPHA);
175 dLumaTextureDeltaQp = MODEL_TIME * dQStep;// range +- 6175 dLumaTextureDeltaQp = MODEL_TIME * dQStep;// range +- 6
176 176

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t