/third_party/cef/libcef/browser/ |
D | image_impl.cc | 98 bool CefImageImpl::AddBitmap(float scale_factor, in AddBitmap() argument 123 return AddBitmap(scale_factor, bitmap); in AddBitmap() 126 bool CefImageImpl::AddPNG(float scale_factor, in AddPNG() argument 135 return AddBitmap(scale_factor, bitmap); in AddPNG() 138 bool CefImageImpl::AddJPEG(float scale_factor, in AddJPEG() argument 146 return AddBitmap(scale_factor, *bitmap); in AddJPEG() 159 bool CefImageImpl::HasRepresentation(float scale_factor) { in HasRepresentation() argument 161 return image_.AsImageSkia().HasRepresentation(scale_factor); in HasRepresentation() 164 bool CefImageImpl::RemoveRepresentation(float scale_factor) { in RemoveRepresentation() argument 167 if (image_skia.HasRepresentation(scale_factor)) { in RemoveRepresentation() [all …]
|
D | image_impl.h | 34 bool AddBitmap(float scale_factor, 41 bool AddPNG(float scale_factor, 44 bool AddJPEG(float scale_factor, 49 bool HasRepresentation(float scale_factor) override; 50 bool RemoveRepresentation(float scale_factor) override; 51 bool GetRepresentationInfo(float scale_factor, 55 CefRefPtr<CefBinaryValue> GetAsBitmap(float scale_factor, 60 CefRefPtr<CefBinaryValue> GetAsPNG(float scale_factor, 64 CefRefPtr<CefBinaryValue> GetAsJPEG(float scale_factor, 80 gfx::ImageSkia GetForced1xScaleRepresentation(float scale_factor) const; [all …]
|
/third_party/cef/libcef_dll/ctocpp/ |
D | image_ctocpp.cc | 73 bool CefImageCToCpp::AddBitmap(float scale_factor, in AddBitmap() argument 95 _struct->add_bitmap(_struct, scale_factor, pixel_width, pixel_height, in AddBitmap() 103 bool CefImageCToCpp::AddPNG(float scale_factor, in AddPNG() argument 121 _struct->add_png(_struct, scale_factor, png_data, png_data_size); in AddPNG() 128 bool CefImageCToCpp::AddJPEG(float scale_factor, in AddJPEG() argument 146 _struct->add_jpeg(_struct, scale_factor, jpeg_data, jpeg_data_size); in AddJPEG() 185 bool CefImageCToCpp::HasRepresentation(float scale_factor) { in HasRepresentation() argument 195 int _retval = _struct->has_representation(_struct, scale_factor); in HasRepresentation() 202 bool CefImageCToCpp::RemoveRepresentation(float scale_factor) { in RemoveRepresentation() argument 212 int _retval = _struct->remove_representation(_struct, scale_factor); in RemoveRepresentation() [all …]
|
D | image_ctocpp.h | 38 bool AddBitmap(float scale_factor, 45 bool AddPNG(float scale_factor, 48 bool AddJPEG(float scale_factor, 53 bool HasRepresentation(float scale_factor) override; 54 bool RemoveRepresentation(float scale_factor) override; 55 bool GetRepresentationInfo(float scale_factor, 59 CefRefPtr<CefBinaryValue> GetAsBitmap(float scale_factor, 64 CefRefPtr<CefBinaryValue> GetAsPNG(float scale_factor, 68 CefRefPtr<CefBinaryValue> GetAsJPEG(float scale_factor,
|
/third_party/cef/tests/ceftests/ |
D | image_unittest.cc | 14 void LoadImage(CefRefPtr<CefImage> image, double scale_factor) { in LoadImage() argument 15 image_util::LoadIconImage(image, scale_factor); in LoadImage() 18 void VerifyScaleEmpty(CefRefPtr<CefImage> image, float scale_factor) { in VerifyScaleEmpty() argument 23 EXPECT_FALSE(image->HasRepresentation(scale_factor)); in VerifyScaleEmpty() 24 EXPECT_FALSE(image->GetRepresentationInfo(scale_factor, actual_scale_factor, in VerifyScaleEmpty() 29 EXPECT_FALSE(image->RemoveRepresentation(scale_factor)); in VerifyScaleEmpty() 33 float scale_factor, in VerifyScaleExists() argument 41 if (scale_factor == expected_scale_factor) in VerifyScaleExists() 42 EXPECT_TRUE(image->HasRepresentation(scale_factor)); in VerifyScaleExists() 44 EXPECT_FALSE(image->HasRepresentation(scale_factor)); in VerifyScaleExists() [all …]
|
D | image_util.cc | 13 double scale_factor, in LoadImage() argument 19 if (scale_factor == 1.0f) in LoadImage() 21 else if (scale_factor == 2.0f) in LoadImage() 25 EXPECT_TRUE(image->AddPNG(scale_factor, image_str.c_str(), image_str.size())); in LoadImage() 33 double scale_factor, in LoadIconImage() argument 35 LoadImage(image, scale_factor, name, CefSize(16, 16)); in LoadIconImage()
|
D | image_util.h | 16 double scale_factor, 22 double scale_factor,
|
/third_party/cef/include/ |
D | cef_image.h | 83 virtual bool AddBitmap(float scale_factor, 97 virtual bool AddPNG(float scale_factor, 107 virtual bool AddJPEG(float scale_factor, 127 virtual bool HasRepresentation(float scale_factor) = 0; 133 virtual bool RemoveRepresentation(float scale_factor) = 0; 142 virtual bool GetRepresentationInfo(float scale_factor, 156 virtual CefRefPtr<CefBinaryValue> GetAsBitmap(float scale_factor, 170 virtual CefRefPtr<CefBinaryValue> GetAsPNG(float scale_factor, 185 virtual CefRefPtr<CefBinaryValue> GetAsJPEG(float scale_factor,
|
/third_party/cef/libcef_dll/cpptoc/ |
D | image_cpptoc.cc | 76 float scale_factor, in image_add_bitmap() argument 97 scale_factor, pixel_width, pixel_height, color_type, alpha_type, in image_add_bitmap() 105 float scale_factor, in image_add_png() argument 122 CefImageCppToC::Get(self)->AddPNG(scale_factor, png_data, png_data_size); in image_add_png() 129 float scale_factor, in image_add_jpeg() argument 145 bool _retval = CefImageCppToC::Get(self)->AddJPEG(scale_factor, jpeg_data, in image_add_jpeg() 185 float scale_factor) { in image_has_representation() argument 195 bool _retval = CefImageCppToC::Get(self)->HasRepresentation(scale_factor); in image_has_representation() 202 float scale_factor) { in image_remove_representation() argument 212 bool _retval = CefImageCppToC::Get(self)->RemoveRepresentation(scale_factor); in image_remove_representation() [all …]
|
/third_party/cef/include/capi/ |
D | cef_image_capi.h | 84 float scale_factor, 98 float scale_factor, 108 float scale_factor, 127 float scale_factor); 133 float scale_factor); 142 float scale_factor, 157 float scale_factor, 173 float scale_factor, 189 float scale_factor,
|
/third_party/mindspore/mindspore/train/ |
D | loss_scale_manager.py | 131 scale_factor=2, argument 138 if scale_factor <= 0: 139 … raise ValueError("The argument 'scale_factor' should be > 0, but got {}".format(scale_factor)) 140 self.scale_factor = scale_factor 141 self.increase_ratio = scale_factor 142 self.decrease_ratio = 1 / scale_factor 195 return nn.DynamicLossScaleUpdateCell(self.loss_scale, self.scale_factor, self.scale_window)
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/ |
D | resize.cl | 21 int4 in_size, int4 out_size, float2 scale_factor) { 30 int src_x = (int)(X * scale_factor.x); 31 int src_y = (int)(Y * scale_factor.y); 37 int4 in_size, int4 out_size, float2 scale_factor) { 44 int src_x = (int)(X * scale_factor.x); 45 int src_y = (int)(Y * scale_factor.y); 51 int4 out_size, float2 scale_factor) { 60 float scale_x = X * scale_factor.x; 61 float scale_y = Y * scale_factor.y; 76 int4 out_size, float2 scale_factor) { [all …]
|
/third_party/cef/libcef/common/ |
D | resource_bundle_delegate.cc | 7 ui::ResourceScaleFactor scale_factor) { in GetPathForResourcePack() argument 33 ui::ResourceScaleFactor scale_factor) { in LoadDataResourceBytes() argument 44 ui::ResourceScaleFactor scale_factor, in GetRawDataResource() argument 53 if (scale_factor != ui::kScaleFactorNone) { in GetRawDataResource() 55 resource_id, static_cast<cef_scale_factor_t>(scale_factor), in GetRawDataResource()
|
D | resource_bundle_delegate.h | 27 ui::ResourceScaleFactor scale_factor) override; 34 ui::ResourceScaleFactor scale_factor) override; 37 ui::ResourceScaleFactor scale_factor,
|
D | resource_bundle_impl.cc | 26 ScaleFactor scale_factor) { in GetDataResourceForScale() argument 32 resource_id, static_cast<ui::ResourceScaleFactor>(scale_factor)); in GetDataResourceForScale()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/sponge/common/ |
D | crd_to_uint_crd_impl.cu | 20 __global__ void Crd_To_Uint_Crd(const int atom_numbers, const VECTOR *scale_factor, const VECTOR *c… in Crd_To_Uint_Crd() argument 24 uint_crd[atom_i].uint_x = crd[atom_i].x * scale_factor[0].x; in Crd_To_Uint_Crd() 25 uint_crd[atom_i].uint_y = crd[atom_i].y * scale_factor[0].y; in Crd_To_Uint_Crd() 26 uint_crd[atom_i].uint_z = crd[atom_i].z * scale_factor[0].z; in Crd_To_Uint_Crd()
|
D | crd_to_uint_crd_quarter_impl.cu | 19 __global__ void Crd_To_Uint_Crd_Quarter(const int atom_numbers, const VECTOR *scale_factor, const V… in Crd_To_Uint_Crd_Quarter() argument 25 temp.x *= scale_factor[0].x; in Crd_To_Uint_Crd_Quarter() 26 temp.y *= scale_factor[0].y; in Crd_To_Uint_Crd_Quarter() 27 temp.z *= scale_factor[0].z; in Crd_To_Uint_Crd_Quarter()
|
/third_party/ffmpeg/libavcodec/ |
D | sbc.c | 92 bitneed[ch][sb] = frame->scale_factor[ch][sb]; in ff_sbc_calculate_bits() 98 if (frame->scale_factor[ch][sb] == 0) in ff_sbc_calculate_bits() 102 loudness = frame->scale_factor[ch][sb] - sbc_offset4[sf][sb]; in ff_sbc_calculate_bits() 104 loudness = frame->scale_factor[ch][sb] - sbc_offset8[sf][sb]; in ff_sbc_calculate_bits() 174 bitneed[ch][sb] = frame->scale_factor[ch][sb]; in ff_sbc_calculate_bits() 182 if (frame->scale_factor[ch][sb] == 0) in ff_sbc_calculate_bits() 186 loudness = frame->scale_factor[ch][sb] - sbc_offset4[sf][sb]; in ff_sbc_calculate_bits() 188 loudness = frame->scale_factor[ch][sb] - sbc_offset8[sf][sb]; in ff_sbc_calculate_bits()
|
D | sbcdsp.c | 271 uint32_t scale_factor[2][8], in sbc_calc_scalefactors() 283 scale_factor[ch][sb] = (31 - SCALE_OUT_BITS) - ff_clz(x); in sbc_calc_scalefactors() 289 uint32_t scale_factor[2][8], in sbc_calc_scalefactors_j() 308 scale_factor[0][sb] = (31 - SCALE_OUT_BITS) - ff_clz(x); in sbc_calc_scalefactors_j() 309 scale_factor[1][sb] = (31 - SCALE_OUT_BITS) - ff_clz(y); in sbc_calc_scalefactors_j() 328 scale_factor[0][sb] = (31 - SCALE_OUT_BITS) - in sbc_calc_scalefactors_j() 330 scale_factor[1][sb] = (31 - SCALE_OUT_BITS) - in sbc_calc_scalefactors_j() 346 if ((scale_factor[0][sb] + scale_factor[1][sb]) > x + y) { in sbc_calc_scalefactors_j() 348 scale_factor[0][sb] = x; in sbc_calc_scalefactors_j() 349 scale_factor[1][sb] = y; in sbc_calc_scalefactors_j()
|
D | g722dec.c | 66 c->band[0].scale_factor = 8; in g722_decode_init() 67 c->band[1].scale_factor = 2; in g722_decode_init() 115 rlow = av_clip_intp2((c->band[0].scale_factor * quantizer_table[ilow] >> 10) in g722_decode_frame() 120 dhigh = c->band[1].scale_factor * ff_g722_high_inv_quant[ihigh] >> 10; in g722_decode_frame()
|
D | g722enc.c | 63 c->band[0].scale_factor = 8; in g722_encode_init() 64 c->band[1].scale_factor = 2; in g722_encode_init() 146 int pred = 141 * state->scale_factor >> 8; in encode_high() 158 if (limit > low_quant[8] * state->scale_factor) in encode_low() 160 while (i < 29 && limit > low_quant[i] * state->scale_factor) in encode_low() 217 decoded = av_clip_intp2((cur_node->state.scale_factor * in g722_encode_trellis() 274 dhigh = cur_node->state.scale_factor * in g722_encode_trellis() 326 ff_g722_update_high_predictor(&c->band[1], c->band[1].scale_factor * in encode_byte()
|
D | g722.c | 146 band->scale_factor * ff_g722_low_inv_quant4[ilow] >> 10); in ff_g722_update_low_predictor() 151 band->scale_factor = linear_scale_factor(band->log_factor - (8 << 11)); in ff_g722_update_low_predictor() 162 band->scale_factor = linear_scale_factor(band->log_factor - (10 << 11)); in ff_g722_update_high_predictor()
|
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/ |
D | dataset.py | 163 …img_data, scale_factor = mmcv.imrescale(img, (config.img_width, config.img_height), return_scale=T… 166 scale_factor = scale_factor*scale_factor2 168 gt_bboxes = gt_bboxes * scale_factor 186 …img_data, scale_factor = mmcv.imrescale(img, (config.img_width, config.img_height), return_scale=T… 189 scale_factor = scale_factor*scale_factor2 198 img_shape = np.append(img_shape, (scale_factor, scale_factor)) 209 scale_factor = np.array( 214 gt_bboxes = gt_bboxes * scale_factor 227 scale_factor = np.array( 232 gt_bboxes = gt_bboxes * scale_factor
|
/third_party/gstreamer/gstplugins_bad/gst/siren/ |
D | common.c | 227 int *scale_factor, int *number_of_regions, int *sample_rate_code, in GetSirenCodecInfo() argument 240 *scale_factor = 22; in GetSirenCodecInfo() 250 *scale_factor = 1; in GetSirenCodecInfo() 268 *scale_factor = 33; in GetSirenCodecInfo() 287 *scale_factor = 33; in GetSirenCodecInfo()
|
/third_party/mindspore/tests/ut/python/nn/ |
D | test_resizebilinear.py | 48 return interpolate(self.value, scale_factor=2) 74 return interpolate(x, scale_factor=2) 104 return interpolate(self.value, size=(5, 5), scale_factor=2)
|