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/AdaptiveQuantization.cpp (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
6969 SVAACalcResult* pVaaCalcResults = NULL;
7070 int8_t iMotionTextureIndexToDeltaQp = 0;
7171 int32_t iAverMotionTextureIndexToDeltaQp = 0; // double to uint32
72− double_t dAverageMotionIndex = 0.0; // double to float
73− double_t dAverageTextureIndex = 0.0;
72+ double dAverageMotionIndex = 0.0; // double to float
73+ double dAverageTextureIndex = 0.0;
7474
75− double_t dQStep = 0.0;
76− double_t dLumaMotionDeltaQp = 0;
77− double_t dLumaTextureDeltaQp = 0;
75+ double dQStep = 0.0;
76+ double dLumaMotionDeltaQp = 0;
77+ double dLumaTextureDeltaQp = 0;
7878
7979 uint8_t* pRefFrameY = NULL, *pCurFrameY = NULL;
8080 int32_t iRefStride = 0, iCurStride = 0;
@@ -170,7 +170,7 @@ EResult CAdaptiveQuantization::Process (int32_t iType, SPixMap* pSrcPixMap, SPix · 89 unmodified lines
170170 pMotionTexture = m_sAdaptiveQuantParam.pMotionTextureUnit;
171171 for (j = 0; j < iMbHeight; j ++) {
172172 for (i = 0; i < iMbWidth; i++) {
173− double_t a = pMotionTexture->uiTextureIndex / dAverageTextureIndex;
173+ double a = pMotionTexture->uiTextureIndex / dAverageTextureIndex;
174174 dQStep = (a - 1) / (a + MODEL_ALPHA);
175175 dLumaTextureDeltaQp = MODEL_TIME * dQStep;// range +- 6
176176

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