Home
last modified time | relevance | path

Searched refs:dst_size (Results 1 – 25 of 67) sorted by relevance

123

/external/chromium_org/content/browser/renderer_host/
Dcompositing_iosurface_transformer_mac_unittest.cc246 const gfx::Size& dst_size) { in ImagePlaneDifference() argument
250 for (int y = 0; y < dst_size.height(); ++y) { in ImagePlaneDifference()
251 const uint8* p = expected + y * dst_size.width(); in ImagePlaneDifference()
252 const uint8* const p_end = p + dst_size.width(); in ImagePlaneDifference()
291 const gfx::Size& dst_size) { in RunResizeTest() argument
295 << "]; dst_size=[" << dst_size.width() << 'x' in RunResizeTest()
296 << dst_size.height() << ']'); in RunResizeTest()
303 original_texture, src_rect, dst_size, &scaled_texture)); in RunResizeTest()
307 ReadBackTexture(scaled_texture, dst_size, GL_BGRA); in RunResizeTest()
314 ScaleBitmapWithSkia(src_bitmap, src_rect, dst_size); in RunResizeTest()
[all …]
Dcompositing_iosurface_transformer_mac.cc27 void SetTransformationsForOffScreenRendering(const gfx::Size& dst_size) { in SetTransformationsForOffScreenRendering() argument
28 glViewport(0, 0, dst_size.width(), dst_size.height()); in SetTransformationsForOffScreenRendering()
31 glOrtho(0, dst_size.width(), 0, dst_size.height(), -1, 1); in SetTransformationsForOffScreenRendering()
128 GLuint src_texture, const gfx::Rect& src_subrect, const gfx::Size& dst_size, in ResizeBilinear() argument
130 if (src_subrect.IsEmpty() || dst_size.IsEmpty()) in ResizeBilinear()
137 PrepareTexture(RGBA_OUTPUT, dst_size); in ResizeBilinear()
147 texture_target_, src_subrect.size() == dst_size ? GL_NEAREST : GL_LINEAR, in ResizeBilinear()
152 SetTransformationsForOffScreenRendering(dst_size); in ResizeBilinear()
156 dst_size.width(), dst_size.height()); in ResizeBilinear()
169 const gfx::Size& dst_size, in TransformRGBToYV12() argument
[all …]
Dcompositing_iosurface_transformer_mac.h54 const gfx::Size& dst_size, GLuint* texture);
82 const gfx::Size& dst_size,
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
Drealloc_unittest.cc91 for (int dst_size = 0; dst_size >= 0; dst_size = NextSize(dst_size)) { in main() local
94 unsigned char* dst = (unsigned char*) realloc(src, dst_size); in main()
95 CHECK(Valid(dst, min(src_size, dst_size))); in main()
96 Fill(dst, dst_size); in main()
97 CHECK(Valid(dst, dst_size)); in main()
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
Drealloc_unittest.cc91 for (int dst_size = 0; dst_size >= 0; dst_size = NextSize(dst_size)) { in main() local
94 unsigned char* dst = (unsigned char*) realloc(src, dst_size); in main()
95 CHECK(Valid(dst, min(src_size, dst_size))); in main()
96 Fill(dst, dst_size); in main()
97 CHECK(Valid(dst, dst_size)); in main()
/external/chromium_org/content/common/gpu/client/
Dgl_helper.cc142 const gfx::Size& dst_size,
154 const gfx::Size& dst_size,
161 void ReadbackAsync(const gfx::Size& dst_size,
179 const gfx::Size& dst_size,
187 const gfx::Size& dst_size,
241 const gfx::Size& dst_size,
279 const gfx::Size& dst_size,
316 const gfx::Size& dst_size,
346 const gfx::Size& dst_size, in CreateScaler() argument
353 dst_size, in CreateScaler()
[all …]
Dgl_helper_benchmark.cc141 const gfx::Size dst_size(output_sizes[outsize], in TEST_F() local
152 dst_size.width(), in TEST_F()
153 dst_size.height()); in TEST_F()
162 dst_size.width(), in TEST_F()
163 dst_size.height(), in TEST_F()
185 dst_size, in TEST_F()
218 dst_size.width(), in TEST_F()
219 dst_size.height(), in TEST_F()
271 const gfx::Size dst_size(input.width() * percents[p] / 100, in TEST_F() local
276 dst_size, in TEST_F()
[all …]
Dgl_helper_scaling.cc61 const gfx::Size& dst_size,
197 spec_.dst_size, in Execute()
201 gl_->Viewport(0, 0, spec_.dst_size.width(), spec_.dst_size.height()); in Execute()
235 virtual const gfx::Size& DstSize() OVERRIDE { return spec_.dst_size; } in DstSize()
258 dst_size(dst_size_), in ScalerStage()
278 const gfx::Size& dst_size, in ConvertScalerOpsToScalerStages() argument
399 const gfx::Size& dst_size, in ComputeScalerStages() argument
404 src_subrect.size() == dst_size) { in ComputeScalerStages()
408 dst_size, in ComputeScalerStages()
417 dst_size.width(), in ComputeScalerStages()
[all …]
Dgl_helper_scaling.h63 const gfx::Size& dst_size,
70 const gfx::Size& dst_size,
78 const gfx::Size& dst_size,
156 gfx::Size dst_size; member
167 const gfx::Size& dst_size,
179 const gfx::Size& dst_size,
Dgl_helper.h173 const gfx::Size& dst_size,
193 const gfx::Size& dst_size,
210 const gfx::Size& dst_size,
226 const gfx::Size& dst_size,
299 const gfx::Size& dst_size,
314 const gfx::Size& dst_size,
/external/chromium_org/base/allocator/
Dallocator_unittest.cc416 for (int dst_size = 0; dst_size >= 0; dst_size = NextSize(dst_size)) { in TEST() local
420 reinterpret_cast<unsigned char*>(realloc(src, dst_size)); in TEST()
421 EXPECT_TRUE(Valid(dst, min(src_size, dst_size))); in TEST()
422 Fill(dst, dst_size); in TEST()
423 EXPECT_TRUE(Valid(dst, dst_size)); in TEST()
466 for (int dst_size = 0; dst_size >= 0; dst_size = NextSize(dst_size)) { in TEST() local
472 reinterpret_cast<unsigned char*>(_recalloc(src, 1, dst_size)); in TEST()
473 EXPECT_TRUE(Valid(dst, min(src_size, dst_size))); in TEST()
474 Fill(dst, dst_size); in TEST()
475 EXPECT_TRUE(Valid(dst, dst_size)); in TEST()
/external/opencv/cvaux/src/
Dcvlines.cpp125 uchar * dst, int dst_step, CvSize dst_size, CvPoint start, CvPoint end )
131 if( !src || !dst || (dst_size.width | dst_size.height) < 0 ||
132 dst_step < dst_size.width * 3 ||
133 (unsigned) start.x >= (unsigned) dst_size.width ||
134 (unsigned) start.y >= (unsigned) dst_size.height ||
135 (unsigned) end.x >= (unsigned) dst_size.width ||
136 (unsigned) end.y >= (unsigned) dst_size.height )
247 CvSize dst_size, /* dest image size */ in icvPostWarpImage8uC3R() argument
262 cvInitMatHeader( &mat, dst_size.height, dst_size.width, CV_8UC3, dst, dst_step ); in icvPostWarpImage8uC3R()
292 dst_size, /* dest image size */ in icvPostWarpImage8uC3R()
/external/chromium_org/third_party/brotli/src/woff2/
Dglyph.cc247 uint8_t* dst, size_t dst_size) { in StorePoints() argument
282 if (*offset >= dst_size) { in StorePoints()
287 if (*offset >= dst_size) { in StorePoints()
299 if (*offset >= dst_size) { in StorePoints()
305 if (*offset + x_bytes + y_bytes > dst_size) { in StorePoints()
342 bool StoreGlyph(const Glyph& glyph, uint8_t* dst, size_t* dst_size) { in StoreGlyph() argument
346 if (*dst_size < ((10ULL + glyph.composite_data_size) + in StoreGlyph()
362 if (*dst_size < ((12ULL + 2 * glyph.contours.size()) + in StoreGlyph()
372 if (!StorePoints(glyph, &offset, dst, *dst_size)) { in StoreGlyph()
376 *dst_size = offset; in StoreGlyph()
Dwoff2_dec.cc201 uint8_t* dst, size_t dst_size, size_t* glyph_size) { in StorePoints() argument
240 if (flag_offset >= dst_size) { in StorePoints()
245 if (flag_offset >= dst_size) { in StorePoints()
257 if (flag_offset >= dst_size) { in StorePoints()
265 flag_offset + xy_bytes > dst_size) { in StorePoints()
354 size_t dst_size, size_t* glyph_size, bool* have_instructions) { in ProcessComposite() argument
382 if (composite_glyph_size + kCompositeGlyphBegin > dst_size) { in ProcessComposite()
396 uint8_t* dst, size_t dst_size) { in StoreLoca() argument
402 if (offset_size * loca_size > dst_size) { in StoreLoca()
419 uint8_t* dst, size_t dst_size, in ReconstructGlyf() argument
[all …]
Dfont.cc93 bool WriteFont(const Font& font, uint8_t* dst, size_t dst_size) { in WriteFont() argument
94 if (dst_size < 12ULL + 16ULL * font.num_tables) { in WriteFont()
113 dst_size < table.offset + table.length) { in WriteFont()
119 dst_size < table.offset + table.length + padding_size) { in WriteFont()
/external/chromium_org/third_party/ots/src/
Dwoff2.cc305 uint8_t* dst, size_t dst_size, size_t* glyph_size) { in StorePoints() argument
344 if (flag_offset >= dst_size) { in StorePoints()
349 if (flag_offset >= dst_size) { in StorePoints()
361 if (flag_offset >= dst_size) { in StorePoints()
369 flag_offset + xy_bytes > dst_size) { in StorePoints()
458 size_t dst_size, size_t* glyph_size, bool* have_instructions) { in ProcessComposite() argument
486 if (composite_glyph_size + kCompositeGlyphBegin > dst_size) { in ProcessComposite()
500 uint8_t* dst, size_t dst_size) { in StoreLoca() argument
507 if (offset_size * loca_size > dst_size) { in StoreLoca()
524 uint8_t* dst, size_t dst_size, in ReconstructGlyf() argument
[all …]
/external/chromium_org/content/renderer/pepper/
Dpepper_media_stream_video_track_host.cc96 const gfx::Size& dst_size, in ConvertFromMediaVideoFrame() argument
100 if (src->coded_size() == dst_size) { in ConvertFromMediaVideoFrame()
108 dst_size.width() * 4, in ConvertFromMediaVideoFrame()
109 dst_size.width(), in ConvertFromMediaVideoFrame()
110 dst_size.height()); in ConvertFromMediaVideoFrame()
118 dst_size.width(), in ConvertFromMediaVideoFrame()
119 dst_size.height(), in ConvertFromMediaVideoFrame()
122 dst_size.width() * 4, in ConvertFromMediaVideoFrame()
136 int dst_width = dst_size.width(); in ConvertFromMediaVideoFrame()
137 int dst_height = dst_size.height(); in ConvertFromMediaVideoFrame()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vlc.h70 vl_vlc_init_table(struct vl_vlc_entry *dst, unsigned dst_size, const struct vl_vlc_compressed *src,… in vl_vlc_init_table() argument
72 unsigned i, bits = util_logbase2(dst_size); in vl_vlc_init_table()
74 assert(dst && dst_size); in vl_vlc_init_table()
77 for (i=0;i<dst_size;++i) { in vl_vlc_init_table()
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/
Dvl_vlc.h70 vl_vlc_init_table(struct vl_vlc_entry *dst, unsigned dst_size, const struct vl_vlc_compressed *src,… in vl_vlc_init_table() argument
72 unsigned i, bits = util_logbase2(dst_size); in vl_vlc_init_table()
74 assert(dst && dst_size); in vl_vlc_init_table()
77 for (i=0;i<dst_size;++i) { in vl_vlc_init_table()
/external/chromium_org/content/renderer/media/webrtc/
Dwebrtc_video_capturer_adapter.cc156 const size_t dst_size = in UpdateI420Buffer() local
159 if (dst_size != buffer_size_) { in UpdateI420Buffer()
162 base::AlignedAlloc(dst_size + media::VideoFrame::kFrameSizePadding, in UpdateI420Buffer()
164 buffer_size_ = dst_size; in UpdateI420Buffer()
/external/chromium_org/base/strings/
Dstring_util.cc870 size_t lcpyT(CHAR* dst, const CHAR* src, size_t dst_size) { in lcpyT() argument
871 for (size_t i = 0; i < dst_size; ++i) { in lcpyT()
877 if (dst_size != 0) in lcpyT()
878 dst[dst_size - 1] = 0; in lcpyT()
881 while (src[dst_size]) ++dst_size; in lcpyT()
882 return dst_size; in lcpyT()
887 size_t base::strlcpy(char* dst, const char* src, size_t dst_size) { in strlcpy() argument
888 return lcpyT<char>(dst, src, dst_size); in strlcpy()
890 size_t base::wcslcpy(wchar_t* dst, const wchar_t* src, size_t dst_size) { in wcslcpy() argument
891 return lcpyT<wchar_t>(dst, src, dst_size); in wcslcpy()
/external/pixman/test/
Dscaling-crash-test.c131 do_test (int32_t dst_size, in do_test() argument
143 if (run_test (dst_size, 1, in do_test()
157 if (run_test (1, dst_size, in do_test()
/external/stlport/src/c_locale_win32/
Dc_wlocale_win32.c222 wchar_t* dst, size_t dst_size, in _WLocale_strxfrm() argument
229 _STLP_WCSNCPY(dst, dst_size, src, src_size); in _WLocale_strxfrm()
233 if (dst_size > INT_MAX) { in _WLocale_strxfrm()
234 dst_size = INT_MAX; in _WLocale_strxfrm()
236 result = LCMapStringW(lcol->lc.id, LCMAP_SORTKEY, src, (int)src_size, dst, (int)dst_size); in _WLocale_strxfrm()
/external/chromium_org/third_party/libyuv/util/
Dconvert.cc230 const int dst_size = dst_width * dst_height * 4; // ARGB scaled in main() local
243 uint8* const ch_dst = new uint8[dst_size]; in main()
341 static_cast<size_t>(dst_size), in main()
343 if (bytes_rec < static_cast<size_t>(dst_size)) in main()
/external/chromium_org/ppapi/cpp/
Drect.cc12 void AdjustAlongAxis(T dst_origin, T dst_size, in AdjustAlongAxis() argument
16 *size = std::min(dst_size, *size); in AdjustAlongAxis()
18 *size = std::min(dst_size, *size); in AdjustAlongAxis()
19 *origin = std::min(dst_origin + dst_size, *origin + *size) - *size; in AdjustAlongAxis()

123