OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:kFractionBits
(Results
1 - 2
of
2
) sorted by null
/external/chromium_org/third_party/WebKit/Source/wtf/
SaturatedArithmeticTest.cpp
109
const int
kFractionBits
= 6;
110
const int intMaxForLayoutUnit = INT_MAX >>
kFractionBits
;
111
const int intMinForLayoutUnit = INT_MIN >>
kFractionBits
;
113
EXPECT_EQ(0, saturatedSet(0,
kFractionBits
));
117
const int maxInternalRepresentation = INT_MAX ^ ((1 <<
kFractionBits
)-1);
119
saturatedSet(intMaxForLayoutUnit,
kFractionBits
));
121
EXPECT_EQ(getMaxSaturatedSetResultForTesting(
kFractionBits
),
122
saturatedSet(intMaxForLayoutUnit + 100,
kFractionBits
));
124
EXPECT_EQ((intMaxForLayoutUnit - 100) <<
kFractionBits
,
125
saturatedSet(intMaxForLayoutUnit - 100,
kFractionBits
));
[
all
...]
/external/chromium_org/media/base/
yuv_convert.cc
208
const int
kFractionBits
= 16;
209
const int kFractionMax = 1 <<
kFractionBits
;
210
const int kFractionMask = ((1 <<
kFractionBits
) - 1);
278
source_dx = ((source_dy >>
kFractionBits
) * y_pitch) <<
kFractionBits
;
310
int source_y_subpixel_delta = ((1 <<
kFractionBits
) * source_height) / height;
319
else if (source_y_subpixel > ((source_height - 1) <<
kFractionBits
))
320
source_y_subpixel = (source_height - 1) <<
kFractionBits
;
328
int source_y = source_y_subpixel >>
kFractionBits
;
370
int source_y = (source_y_subpixel + (kFractionMax / 2)) >>
kFractionBits
;
[
all
...]
Completed in 90 milliseconds