/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/ |
A D | picture_rescale_enc.c | 53 if (width <= 0 || height <= 0) return 0; in AdjustAndCheckRectangle() 54 if ((*left) + width > pic->width) return 0; in AdjustAndCheckRectangle() 80 4 * dst->width, dst->height); in WebPPictureCopy() 104 dst->width = width; in WebPPictureView() 134 tmp.width = width; in WebPPictureCrop() 194 pic->width, pic->height, inverse); in AlphaMultiplyY() 204 prev_width = pic->width; in WebPPictureRescale() 212 tmp.width = width; in WebPPictureRescale() 287 (void)width; in WebPPictureView() 298 (void)width; in WebPPictureCrop() [all …]
|
A D | alpha_enc.c | 58 picture.width = width; in EncodeLossless() 65 WebPDispatchAlphaToGreen(data, width, picture.width, picture.height, in EncodeLossless() 118 const size_t data_size = width * height; in EncodeAlphaInternal() 131 filter_func(data, width, height, width, tmp_alpha); in EncodeAlphaInternal() 188 for (i = 0; i < width; ++i) { in GetNumColors() 210 const int num_colors = GetNumColors(alpha, width, height, width); in GetFilterMap() 214 : WebPEstimateBestFilter(alpha, width, height, width); in GetFilterMap() 297 const int width = pic->width; in EncodeAlpha() local 310 assert(width > 0 && height > 0); in EncodeAlpha() 311 assert(pic->a_stride >= width); in EncodeAlpha() [all …]
|
A D | predictor_enc.c | 124 if (width <= 2) return; in MaxDiffsForRow() 132 for (x = 1; x < width - 1; ++x) { in MaxDiffsForRow() 256 x == 0 || x == width - 1) { in GetResidual() 373 MaxDiffsForRow(context_width, width, argb + y * width + context_start_x, in GetBestPredictorForTile() 436 memcpy(current_row, argb + y * width, in CopyImageWithPrediction() 441 argb + y * width); in CopyImageWithPrediction() 452 MaxDiffsForRow(width, width, argb + (y + 1) * width, lower_max_diffs, in CopyImageWithPrediction() 457 for (x = 0; x < width;) { in CopyImageWithPrediction() 461 if (x_end > width) x_end = width; in CopyImageWithPrediction() 760 if (ix >= width + 2 && in VP8LColorSpaceTransform() [all …]
|
/AliOS-Things-master/components/SDL2/src/video/ |
A D | SDL_blit_0.c | 34 int width, height; in BlitBto1() local 46 srcskip += width - (width + 7) / 8; in BlitBto1() 102 srcskip += width - (width + 7) / 8; in BlitBto2() 138 srcskip += width - (width + 7) / 8; in BlitBto3() 178 srcskip += width - (width + 7) / 8; in BlitBto4() 212 srcskip += width - (width + 7) / 8; in BlitBto1Key() 265 srcskip += width - (width + 7) / 8; in BlitBto2Key() 300 srcskip += width - (width + 7) / 8; in BlitBto3Key() 334 srcskip += width - (width + 7) / 8; in BlitBto4Key() 375 srcskip += width - (width + 7) / 8; in BlitBtoNAlpha() [all …]
|
A D | SDL_yuv.c | 186 Uint32 width, Uint32 height, in yuv_rgb_sse() argument 295 Uint32 width, Uint32 height, in yuv_rgb_std() argument 859 width = (width + 1) / 2; in SDL_ConvertPixels_YUV_to_YUV_Copy() 871 width = ((width + 1) / 2)*2; in SDL_ConvertPixels_YUV_to_YUV_Copy() 885 width = 4 * ((width + 1) / 2); in SDL_ConvertPixels_YUV_to_YUV_Copy() 901 const int UVwidth = (width + 1)/2; in SDL_ConvertPixels_SwapUVPlanes() 957 const int UVwidth = (width + 1)/2; in SDL_ConvertPixels_PackUVPlanes_to_NV() 1609 if (x == (width - 1)) { in SDL_ConvertPixels_Planar2x2_to_Packed4() 1664 if (x == (width - 1)) { in SDL_ConvertPixels_Planar2x2_to_Packed4() 1751 if (x == (width - 1)) { in SDL_ConvertPixels_Packed4_to_Planar2x2() [all …]
|
A D | SDL_blit_1.c | 38 int width, height; in Blit1to1() local 60 , width); in Blit1to1() 112 width); in Blit1to2() 124 --width; in Blit1to2() 223 , width); in Blit1to3() 265 , width); in Blit1to4() 360 width); in Blit1to2Key() 393 width); in Blit1to3Key() 425 width); in Blit1to4Key() 465 width); in Blit1toNAlpha() [all …]
|
A D | SDL_blit_N.c | 256 ONE_PIXEL_BLEND(((UNALIGNED_PTR(dst)) && (width)), width); in Blit_RGB888_RGB565Altivec() 1256 --width; in Blit_RGB888_RGB555() 1382 --width; in Blit_RGB888_RGB565() 1486 width); in Blit_RGB565_32() 2241 width); in Blit4to4CopyAlpha() 2441 width); in BlitNtoN() 2599 width); in Blit2to2Key() 2871 width); in BlitNtoNKey() 2974 width); in BlitNtoNKeyCopyAlpha() 3006 width); in Blit2101010toN() [all …]
|
/AliOS-Things-master/components/SDL2/src/video/yuv2rgb/ |
A D | yuv_rgb.h | 31 uint32_t width, uint32_t height, 37 uint32_t width, uint32_t height, 43 uint32_t width, uint32_t height, 49 uint32_t width, uint32_t height, 55 uint32_t width, uint32_t height, 61 uint32_t width, uint32_t height, 67 uint32_t width, uint32_t height, 73 uint32_t width, uint32_t height, 79 uint32_t width, uint32_t height, 85 uint32_t width, uint32_t height, [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/ |
A D | filters.c | 60 PredictLine_C(in + 1, preds, out + 1, width - 1, inverse); in DoHorizontalFilter_C() 109 PredictLine_C(in, preds, out, width, inverse); in DoVerticalFilter_C() 154 for (w = 1; w < width; ++w) { in DoGradientFilter_C() 193 uint8_t* out, int width) { in HorizontalUnfilter_C() argument 196 for (i = 0; i < width; ++i) { in HorizontalUnfilter_C() 204 uint8_t* out, int width) { in VerticalUnfilter_C() argument 206 HorizontalUnfilter_C(NULL, in, out, width); in VerticalUnfilter_C() 209 for (i = 0; i < width; ++i) out[i] = prev[i] + in[i]; in VerticalUnfilter_C() 215 uint8_t* out, int width) { in GradientUnfilter_C() argument 217 HorizontalUnfilter_C(NULL, in, out, width); in GradientUnfilter_C() [all …]
|
A D | filters_mips_dsp_r2.c | 211 PredictLine_MIPSdspR2(in + 1, out + 1, width - 1); in DoHorizontalFilter_MIPSdspR2() 224 int width, int height, in HorizontalFilter_MIPSdspR2() argument 260 PredictLine_MIPSdspR2(in + 1, out + 1, width - 1); in DoVerticalFilter_MIPSdspR2() 327 PredictLine_MIPSdspR2(in + 1, out + 1, width - 1); in DoGradientFilter_MIPSdspR2() 350 DO_PREDICT_LINE(in + 1, out + 1, width - 1, 1); in HorizontalUnfilter_MIPSdspR2() 354 uint8_t* out, int width) { in VerticalUnfilter_MIPSdspR2() argument 356 HorizontalUnfilter_MIPSdspR2(NULL, in, out, width); in VerticalUnfilter_MIPSdspR2() 358 DO_PREDICT_LINE_VERTICAL(in, prev, out, width, 1); in VerticalUnfilter_MIPSdspR2() 363 uint8_t* out, int width) { in GradientUnfilter_MIPSdspR2() argument 365 HorizontalUnfilter_MIPSdspR2(NULL, in, out, width); in GradientUnfilter_MIPSdspR2() [all …]
|
A D | filters_neon.c | 81 PredictLineLeft_NEON(in + 1, out + 1, width - 1); in DoHorizontalFilter_NEON() 91 PredictLineLeft_NEON(in + 1, out + 1, width - 1); in DoHorizontalFilter_NEON() 121 PredictLineLeft_NEON(in + 1, out + 1, width - 1); in DoVerticalFilter_NEON() 129 PredictLine_NEON(in, in - stride, out, width); in DoVerticalFilter_NEON() 215 if (width <= 1) return; in HorizontalUnfilter_NEON() 217 for (i = 1; i + 16 <= width; i += 16) { in HorizontalUnfilter_NEON() 237 HorizontalUnfilter_NEON(NULL, in, out, width); in VerticalUnfilter_NEON() 240 assert(width >= 0); in VerticalUnfilter_NEON() 241 for (i = 0; i + 16 <= width; i += 16) { in VerticalUnfilter_NEON() 247 for (; i < width; ++i) out[i] = in[i] + prev[i]; in VerticalUnfilter_NEON() [all …]
|
A D | filters_sse2.c | 88 PredictLineLeft_SSE2(in + 1, out + 1, width - 1); in DoHorizontalFilter_SSE2() 98 PredictLineLeft_SSE2(in + 1, out + 1, width - 1); in DoHorizontalFilter_SSE2() 122 PredictLineLeft_SSE2(in + 1, out + 1, width - 1); in DoVerticalFilter_SSE2() 130 PredictLineTop_SSE2(in, in - stride, out, width); in DoVerticalFilter_SSE2() 227 if (width <= 1) return; in HorizontalUnfilter_SSE2() 229 for (i = 1; i + 8 <= width; i += 8) { in HorizontalUnfilter_SSE2() 247 HorizontalUnfilter_SSE2(NULL, in, out, width); in VerticalUnfilter_SSE2() 250 const int max_pos = width & ~31; in VerticalUnfilter_SSE2() 251 assert(width >= 0); in VerticalUnfilter_SSE2() 262 for (; i < width; ++i) out[i] = in[i] + prev[i]; in VerticalUnfilter_SSE2() [all …]
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | mpprint.c | 64 int pad = width - len; in mp_print_strn() 179 width--; in mp_print_int() 185 width -= 2; in mp_print_int() 217 if (prec > width) { in mp_print_mp_int() 218 width = prec; in mp_print_mp_int() 319 width--; in mp_print_mp_int() 323 width -= prefix_len; in mp_print_mp_int() 327 width = prec; in mp_print_mp_int() 369 width--; in mp_print_float() 431 int width = 0; in mp_vprintf() local [all …]
|
/AliOS-Things-master/components/SDL2/src/test/ |
A D | SDL_test_imageBlitBlend.c | 585 SDLTest_imageBlitBlendAdd.width, in SDLTest_ImageBlitBlendAdd() 588 SDLTest_imageBlitBlendAdd.width * SDLTest_imageBlitBlendAdd.bytes_per_pixel, in SDLTest_ImageBlitBlendAdd() 1115 SDLTest_imageBlitBlend.width, in SDLTest_ImageBlitBlend() 1118 SDLTest_imageBlitBlend.width * SDLTest_imageBlitBlend.bytes_per_pixel, in SDLTest_ImageBlitBlend() 1545 SDLTest_imageBlitBlendMod.width, in SDLTest_ImageBlitBlendMod() 1548 SDLTest_imageBlitBlendMod.width * SDLTest_imageBlitBlendMod.bytes_per_pixel, in SDLTest_ImageBlitBlendMod() 2358 SDLTest_imageBlitBlendNone.width, in SDLTest_ImageBlitBlendNone() 2361 SDLTest_imageBlitBlendNone.width * SDLTest_imageBlitBlendNone.bytes_per_pixel, in SDLTest_ImageBlitBlendNone() 2826 SDLTest_imageBlitBlendAll.width, in SDLTest_ImageBlitBlendAll() 2829 SDLTest_imageBlitBlendAll.width * SDLTest_imageBlitBlendAll.bytes_per_pixel, in SDLTest_ImageBlitBlendAll()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/ |
A D | image_enc.c | 146 const uint32_t width = buffer->width; in WebPWritePNG() local 185 const uint32_t width = buffer->width; in WebPWritePNG() local 225 const uint32_t width = buffer->width; in WritePPMPAM() local 263 const uint32_t width = buffer->width; in WebPWrite16bAsPGM() local 298 const uint32_t width = buffer->width; in WebPWriteBMP() local 365 const uint32_t width = buffer->width; in WebPWriteTIFF() local 411 PutLE32(tiff_header + 10 + 8, width); in WebPWriteTIFF() 423 if (fwrite(rgba, bytes_per_px, width, fout) != width) { in WebPWriteTIFF() 444 const uint32_t width = buffer->width; in WebPWriteAlphaPlane() local 468 const int width = buffer->width; in WebPWritePGM() local [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/tools/ |
A D | tiff2rgba.c | 152 TIFFGetField(in, TIFFTAG_IMAGEWIDTH, &width); in cvt_by_tile() 267 TIFFGetField(in, TIFFTAG_IMAGEWIDTH, &width); in cvt_by_strip() 296 wrk_linesize = width * sizeof (uint32); in cvt_by_strip() 297 if (width != wrk_linesize / sizeof (uint32)) in cvt_by_strip() 346 top_line = raster + width * i_row; in cvt_by_strip() 389 TIFFGetField(in, TIFFTAG_IMAGEWIDTH, &width); in cvt_whole_image() 391 pixel_count = width * height; in cvt_whole_image() 394 if (!width || !height || pixel_count / width != height) { in cvt_whole_image() 423 TIFFSwabArrayOfLong(raster, width * height); in cvt_whole_image() 494 TIFFGetField(in, TIFFTAG_IMAGEWIDTH, &width); in tiffcvt() [all …]
|
A D | rgb2ycbcr.c | 231 vertSubSampling, horizSubSampling, width); in cvtStrip() 236 cvtClump(op, tp, vertSubSampling, x, width); in cvtStrip() 239 raster -= vertSubSampling*width; in cvtStrip() 249 cvtClump(op, tp, nrows, x, width); in cvtStrip() 260 uint32 rwidth = roundup(width, horizSubSampling); in cvtRaster() 271 cvtStrip(buf, raster + (y-1)*width, nr, width); in cvtRaster() 296 TIFFGetField(in, TIFFTAG_IMAGEWIDTH, &width); in tiffcvt() 298 pixel_count = width * height; in tiffcvt() 301 if (!width || !height || pixel_count / width != height) { in tiffcvt() 325 TIFFSetField(out, TIFFTAG_IMAGEWIDTH, width); in tiffcvt() [all …]
|
/AliOS-Things-master/components/minilibc/libc/ |
A D | printf.c | 272 width--; in _ntoa_format() 482 width--; in _ftoa() 577 unsigned int fwidth = width; in _etoa() 578 if (width > minwidth) { in _etoa() 655 width = 0U; in _vsnprintf() 657 width = _atoi(&format); in _vsnprintf() 666 width = (unsigned int)w; in _vsnprintf() 820 while (l++ < width) { in _vsnprintf() 828 while (l++ < width) { in _vsnprintf() 844 while (l++ < width) { in _vsnprintf() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/extras/ |
A D | extras.c | 32 int y, width, uv_width; in WebPImportGray() local 36 width = pic->width; in WebPImportGray() 37 uv_width = (width + 1) >> 1; in WebPImportGray() 39 memcpy(pic->y + y * pic->y_stride, gray_data, width); in WebPImportGray() 58 const int width = pic->width; in WebPImportRGB565() local 59 for (x = 0; x < width; ++x) { in WebPImportRGB565() 76 rgb565 += 2 * width; in WebPImportRGB565() 91 const int width = pic->width; in WebPImportRGB4444() local 92 for (x = 0; x < width; ++x) { in WebPImportRGB4444() 111 rgb4444 += 2 * width; in WebPImportRGB4444() [all …]
|
/AliOS-Things-master/components/py_engine/tests/float/ |
A D | string_format2.py | 11 def test_fmt(conv, fill, alignment, sign, prefix, width, precision, type, arg): argument 22 fmt += width 33 fmt += width 103 for width in ("", "4", "6", "8", "10"): 109 test_fmt("", fill, alignment, sign, "", width, prec, type, num) 143 for width in ("", "4", "6", "8", "10"): 154 test_fmt("", fill, alignment, sign, "", width, prec, type, num) 156 test_fmt("", fill, alignment, sign, "", width, "", type, num) 163 for width in ("", "4", "6", "8", "10"): 174 test_fmt("", fill, alignment, sign, "", width, prec, type, num) [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/swig/ |
A D | libwebp.py | 136 def WebPEncodeRGB(rgb, width, height, stride, quality_factor): argument 139 rgb, _UNUSED, _UNUSED, width, height, stride, quality_factor) 144 def WebPEncodeRGBA(rgb, width, height, stride, quality_factor): argument 147 rgb, _UNUSED, _UNUSED, width, height, stride, quality_factor) 152 def WebPEncodeBGR(rgb, width, height, stride, quality_factor): argument 155 rgb, _UNUSED, _UNUSED, width, height, stride, quality_factor) 160 def WebPEncodeBGRA(rgb, width, height, stride, quality_factor): argument 168 def WebPEncodeLosslessRGB(rgb, width, height, stride): argument 175 def WebPEncodeLosslessRGBA(rgb, width, height, stride): argument 182 def WebPEncodeLosslessBGR(rgb, width, height, stride): argument [all …]
|
A D | libwebp.swig | 109 %apply int* OUTPUT { int* width, int* height } 113 int* width, int* height); 127 int* width, int* height); 129 int* width, int* height); 131 int* width, int* height); 133 int* width, int* height); 135 int* width, int* height); 166 const char* function, int* width, int* height) { 208 size = *width * *height * p->size_multiplier; 344 width = w[0] [all …]
|
/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | string_format2.py | 10 def test_fmt(conv, fill, alignment, sign, prefix, width, precision, type, arg): argument 21 fmt += width 32 fmt += width 44 for width in ('', '1', '3', '5', '7'): 50 test_fmt('', fill, alignment, sign, prefix, width, '', type, num) 53 for width in ('', '1', '2'): 56 test_fmt('', fill, alignment, '', '', width, '', 'c', 48) 60 for width in ('', '1', '4', '10'): 64 test_fmt(conv, fill, alignment, '', '', width, '', 's', str)
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/ |
A D | alpha_dec.c | 61 dec->width_ = src_io->width; in ALPHInit() 85 io->width = src_io->width; in ALPHInit() 112 const int width = alph_dec->width_; in ALPHDecode() local 125 dst += width; in ALPHDecode() 126 deltas += width; in ALPHDecode() 130 memcpy(dst, deltas, width * sizeof(*dst)); in ALPHDecode() 132 dst += width; in ALPHDecode() 133 deltas += width; in ALPHDecode() 151 const int stride = io->width; in AllocateAlphaPlane() 180 const int width = io->width; in VP8DecompressAlphaRows() local [all …]
|
A D | buffer_dec.c | 44 const int width = buffer->width; in CheckDecBuffer() local 50 const int uv_width = (width + 1) / 2; in CheckDecBuffer() 63 ok &= (y_stride >= width); in CheckDecBuffer() 70 ok &= (a_stride >= width); in CheckDecBuffer() 80 ok &= (stride >= width * kModeBpp[mode]); in CheckDecBuffer() 88 const int w = buffer->width; in AllocateBuffer() 192 x + cw > width || y + ch > height) { in WebPAllocateDecBuffer() 195 width = cw; in WebPAllocateDecBuffer() 207 width = scaled_width; in WebPAllocateDecBuffer() 214 buffer->width = width; in WebPAllocateDecBuffer() [all …]
|