Home | History | Annotate | Download | only in pdf

Lines Matching full:static_cast

17   return static_cast<uint8>(pixel & 0xFF);
21 return static_cast<uint8>((pixel >> 8) & 0xFF);
25 return static_cast<uint8>((pixel >> 16) & 0xFF);
29 return static_cast<uint8>((pixel >> 24) & 0xFF);
33 return (static_cast<uint32_t>(alpha) << 24) |
34 (static_cast<uint32_t>(red) << 16) |
35 (static_cast<uint32_t>(green) << 8) |
36 static_cast<uint32_t>(blue);
40 double new_channel = start - (static_cast<double>(start) - end) * ratio;
45 return static_cast<uint8>(new_channel + 0.5);
49 uint32 processed = static_cast<uint32>(src_color) * alpha +
50 static_cast<uint32>(dest_color) * (0xFF - alpha);
51 return static_cast<uint8>((processed / 0xFF) & 0xFF);
66 uint8 alpha = static_cast<uint8>(static_cast<uint32_t>(alpha_adjustment) *
91 double ratio = static_cast<double>(i) / colors.size();
154 double x_ratio = static_cast<double>(src_rc.width()) / dest_rc.width();
155 double y_ratio = static_cast<double>(src_rc.height()) / dest_rc.height();
161 uint32 src_x = static_cast<uint32>(x * x_ratio);
162 uint32 src_y = static_cast<uint32>(y * y_ratio);
218 double r = static_cast<double>(depth_);
247 alpha = static_cast<uint8>(f);
272 int32 depth = static_cast<int32>(matrix.depth());
283 else if (matrix_x >= static_cast<int32>(depth))
288 else if (matrix_y >= static_cast<int32>(depth))