Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 650) sorted by relevance

12345678910>>...26

/AliOS-Things-master/components/py_engine/tests/extmod/
A Dframebuf4.py11 print(buf[y * w // 2 : (y + 1) * w // 2])
15 w = 16 variable
17 buf = bytearray(w * h // 2)
29 fbuf.pixel(w - 1, 0, 0x02)
31 fbuf.pixel(w - 1, h - 1, 0x03)
37 print(fbuf.pixel(0, 0), fbuf.pixel(w - 1, 0), fbuf.pixel(w - 1, h - 1), fbuf.pixel(0, h - 1))
38 print(fbuf.pixel(1, 0), fbuf.pixel(w - 2, 0), fbuf.pixel(w - 2, h - 1), fbuf.pixel(1, h - 1))
41 fbuf.fill_rect(0, 0, w, h, 0x0F)
43 fbuf.fill_rect(0, 0, w, h, 0xF0)
47 fbuf.fill_rect(1, 0, w // 2, 1, 0xF1)
[all …]
/AliOS-Things-master/components/SDL2/src/render/
A DSDL_yuv_sw.c59 swdata->w = w; in SDL_SW_CreateYUVTexture()
100 swdata->pitches[0] = w; in SDL_SW_CreateYUVTexture()
116 swdata->pitches[0] = w; in SDL_SW_CreateYUVTexture()
148 rect->w == swdata->w && rect->h == swdata->h) { in SDL_SW_UpdateYUVTexture()
159 length = rect->w; in SDL_SW_UpdateYUVTexture()
262 length = rect->w; in SDL_SW_UpdateYUVTexturePlanar()
266 dst += swdata->w; in SDL_SW_UpdateYUVTexturePlanar()
313 && (rect->x != 0 || rect->y != 0 || rect->w != swdata->w in SDL_SW_LockYUVTexture()
349 if (srcrect->x || srcrect->y || srcrect->w < swdata->w || srcrect->h < swdata->h) { in SDL_SW_CopyYUVToRGB()
356 } else if ((srcrect->w != w) || (srcrect->h != h)) { in SDL_SW_CopyYUVToRGB()
[all …]
/AliOS-Things-master/components/SDL2/src/libm/
A Dk_tan.c71 double z,r,v,w,s; in __kernel_tan() local
86 w = pio4lo-y; in __kernel_tan()
87 x = z+w; y = 0.0; in __kernel_tan()
90 w = z*z; in __kernel_tan()
95 r = T[1]+w*(T[3]+w*(T[5]+w*(T[7]+w*(T[9]+w*T[11])))); in __kernel_tan()
96 v = z*(T[2]+w*(T[4]+w*(T[6]+w*(T[8]+w*(T[10]+w*T[12]))))); in __kernel_tan()
100 w = x+r; in __kernel_tan()
103 return (double)(1-((hx>>30)&2))*(v-2.0*(x-(w*w/(w+v)-r))); in __kernel_tan()
105 if(iy==1) return w; in __kernel_tan()
110 z = w; in __kernel_tan()
[all …]
A Ds_atan.c73 double w,s1,s2,z; in atan() local
108 w = z*z; in atan()
110 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10]))))); in atan()
111 s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9])))); in atan()
A De_rem_pio2.c71 double z=0.0,w,t,r,fn; in __ieee754_rem_pio2() local
116 y[0] = r-w; in __ieee754_rem_pio2()
121 w = fn*pio2_2; in __ieee754_rem_pio2()
122 r = t-w; in __ieee754_rem_pio2()
123 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2()
124 y[0] = r-w; in __ieee754_rem_pio2()
129 w = fn*pio2_3; in __ieee754_rem_pio2()
130 r = t-w; in __ieee754_rem_pio2()
131 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2()
132 y[0] = r-w; in __ieee754_rem_pio2()
[all …]
/AliOS-Things-master/components/py_engine/engine/lib/libm/
A Dkf_tan.c57 float z,r,v,w,s; local
70 w = pio4lo-y;
71 x = z+w; y = 0.0;
74 w = z*z;
79 r = T[1]+w*(T[3]+w*(T[5]+w*(T[7]+w*(T[9]+w*T[11]))));
80 v = z*(T[2]+w*(T[4]+w*(T[6]+w*(T[8]+w*(T[10]+w*T[12])))));
84 w = x+r;
87 return (float)(1-((hx>>30)&2))*(v-(float)2.0*(x-(w*w/(w+v)-r)));
89 if(iy==1) return w;
95 z = w;
[all …]
A Def_rem_pio2.c114 float z,w,t,r,fn; local
159 y[0] = r-w;
164 w = fn*pio2_2;
165 r = t-w;
166 w = fn*pio2_2t-((t-r)-w);
167 y[0] = r-w;
172 w = fn*pio2_3;
173 r = t-w;
174 w = fn*pio2_3t-((t-r)-w);
175 y[0] = r-w;
[all …]
/AliOS-Things-master/components/py_engine/engine/lib/libm_dbl/
A D__tan.c68 double_t z, r, v, w, s, a; in __tan() local
85 w = z * z; in __tan()
91 r = T[1] + w*(T[3] + w*(T[5] + w*(T[7] + w*(T[9] + w*T[11])))); in __tan()
92 v = z*(T[2] + w*(T[4] + w*(T[6] + w*(T[8] + w*(T[10] + w*T[12]))))); in __tan()
95 w = x + r; in __tan()
98 v = s - 2.0 * (x + (r - w*w/(w + s))); in __tan()
102 return w; in __tan()
104 w0 = w; in __tan()
107 a0 = a = -1.0 / w; in __tan()
A Datan.c65 double_t w,s1,s2,z; in atan() local
108 w = z*z; in atan()
110 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10]))))); in atan()
111 s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9])))); in atan()
A D__cos.c63 double_t hz,z,r,w; in __cos() local
66 w = z*z; in __cos()
67 r = z*(C1+z*(C2+z*C3)) + w*w*(C4+z*(C5+z*C6)); in __cos()
69 w = 1.0-hz; in __cos()
70 return w + (((1.0-w)-hz) + (z*r-x*y)); in __cos()
A D__rem_pio2.c51 double_t z,w,t,r,fn; in __rem_pio2() local
125 y[0] = r - w; in __rem_pio2()
131 w = fn*pio2_2; in __rem_pio2()
132 r = t - w; in __rem_pio2()
133 w = fn*pio2_2t - ((t-r)-w); in __rem_pio2()
134 y[0] = r - w; in __rem_pio2()
139 w = fn*pio2_3; in __rem_pio2()
140 r = t - w; in __rem_pio2()
141 w = fn*pio2_3t - ((t-r)-w); in __rem_pio2()
142 y[0] = r - w; in __rem_pio2()
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_objx/
A Dlv_canvas.h242 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument
243 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument
244 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) (LV_IMG_PX_SIZE_ALPHA_BYTE * w * h) argument
247 #define LV_CANVAS_BUF_SIZE_ALPHA_1BIT(w, h) ((((w / 8) + 1) * h)) argument
248 #define LV_CANVAS_BUF_SIZE_ALPHA_2BIT(w, h) ((((w / 4) + 1) * h)) argument
249 #define LV_CANVAS_BUF_SIZE_ALPHA_4BIT(w, h) ((((w / 2) + 1) * h)) argument
250 #define LV_CANVAS_BUF_SIZE_ALPHA_8BIT(w, h) ((w * h)) argument
253 #define LV_CANVAS_BUF_SIZE_INDEXED_1BIT(w, h) (LV_CANVAS_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2) argument
254 #define LV_CANVAS_BUF_SIZE_INDEXED_2BIT(w, h) (LV_CANVAS_BUF_SIZE_ALPHA_2BIT(w, h) + 4 * 4) argument
255 #define LV_CANVAS_BUF_SIZE_INDEXED_4BIT(w, h) (LV_CANVAS_BUF_SIZE_ALPHA_4BIT(w, h) + 4 * 16) argument
[all …]
/AliOS-Things-master/components/py_engine/tests/perf_bench/
A Dmisc_aes.py68 def aes_add_round_key(state, w): argument
70 state[i] ^= w[i]
75 def aes_sb_sr_mc_ark(state, w, w_idx, temp): argument
94 def aes_sb_sr_ark(state, w, w_idx, temp): argument
101 temp[temp_idx] = x0 ^ w[w_idx]
113 def aes_state(state, w, temp, nr): argument
114 aes_add_round_key(state, w)
119 aes_sb_sr_ark(state, w, w_idx, temp)
126 w[i] = key[i]
139 t = w
[all …]
/AliOS-Things-master/components/SDL2/test/
A Dtestviewport.c56 sprite_w = temp->w; in LoadSprite()
115 SDL_RenderDrawLine(renderer, 1, 0, viewport.w-2, 0); in DrawOnViewport()
118 SDL_RenderDrawLine(renderer, viewport.w-1, 1, viewport.w-1, viewport.h-2); in DrawOnViewport()
129 SDL_RenderDrawPoint(renderer, viewport.h/2, viewport.w/2 - viewport.w); in DrawOnViewport()
130 SDL_RenderDrawPoint(renderer, viewport.h/2, viewport.w/2 + viewport.w); in DrawOnViewport()
133 rect.w = 8; in DrawOnViewport()
135 rect.x = (viewport.w - rect.w) / 2; in DrawOnViewport()
141 rect.x = (viewport.w - rect.w) / 2; in DrawOnViewport()
167 viewport.w = 100 + j * 50; in loop()
237 int w, h; in main() local
[all …]
A Dtestautomation_rect.c457 refRectB.w = refRectA.w; in rect_testIntersectRectOutside()
486 refRectB.w = refRectA.w; in rect_testIntersectRectPartial()
514 refRectB.w = refRectA.w; in rect_testIntersectRectPartial()
534 expectedResult.w = refRectB.w; in rect_testIntersectRectPartial()
548 expectedResult.w = refRectB.w; in rect_testIntersectRectPartial()
749 refRectB.w = refRectA.w; in rect_testHasIntersectionOutside()
776 refRectB.w = refRectA.w; in rect_testHasIntersectionPartial()
796 refRectB.w = refRectA.w; in rect_testHasIntersectionPartial()
1279 refRectB.w=refRectA.w - 2; in rect_testUnionRectOutside()
1479 for (w=-1; w<2; w++) { in rect_testRectEmpty()
[all …]
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11framebuffer.c148 int x, y, w ,h; in X11_UpdateWindowFramebuffer() local
154 w = rects[i].w; in X11_UpdateWindowFramebuffer()
157 if (w <= 0 || h <= 0 || (x + w) <= 0 || (y + h) <= 0) { in X11_UpdateWindowFramebuffer()
163 x += w; in X11_UpdateWindowFramebuffer()
171 if (x + w > window->w) in X11_UpdateWindowFramebuffer()
172 w = window->w - x; in X11_UpdateWindowFramebuffer()
186 w = rects[i].w; in X11_UpdateWindowFramebuffer()
189 if (w <= 0 || h <= 0 || (x + w) <= 0 || (y + h) <= 0) { in X11_UpdateWindowFramebuffer()
195 x += w; in X11_UpdateWindowFramebuffer()
203 if (x + w > window->w) in X11_UpdateWindowFramebuffer()
[all …]
/AliOS-Things-master/components/py_engine/tests/thread/
A Dstress_aes.py84 def aes_add_round_key(state, w): argument
86 state[i] ^= w[i]
91 def aes_sb_sr_mc_ark(state, w, w_idx, temp): argument
110 def aes_sb_sr_ark(state, w, w_idx, temp): argument
117 temp[temp_idx] = x0 ^ w[w_idx]
129 def aes_state(state, w, temp, nr): argument
130 aes_add_round_key(state, w)
135 aes_sb_sr_ark(state, w, w_idx, temp)
142 w[i] = key[i]
155 t = w
[all …]
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_fillrect.c70 n = w * bpp; \
100 SDL_FillRect1SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h) in SDL_FillRect1SSE() argument
107 n = w; in SDL_FillRect1SSE()
135 SDL_FillRect1(Uint8 * pixels, int pitch, Uint32 color, int w, int h) in SDL_FillRect1() argument
141 n = w; in SDL_FillRect1()
174 SDL_FillRect2(Uint8 * pixels, int pitch, Uint32 color, int w, int h) in SDL_FillRect2() argument
180 n = w; in SDL_FillRect2()
198 SDL_FillRect3(Uint8 * pixels, int pitch, Uint32 color, int w, int h) in SDL_FillRect3() argument
213 n = w; in SDL_FillRect3()
226 SDL_FillRect4(Uint8 * pixels, int pitch, Uint32 color, int w, int h) in SDL_FillRect4() argument
[all …]
/AliOS-Things-master/components/py_engine/engine/drivers/display/
A Dlcd160cr.py142 def clip_line(c, w, h): argument
151 elif c[0] > w:
159 elif c[2] > w:
216 self.w = self.buf[5][1]
273 if w is None:
274 w = self.w - x
277 if w <= 127:
286 ix = i * w * 2
343 if x + w <= 0 or y + h <= 0 or x >= self.w or y >= self.h:
349 w += x
[all …]
/AliOS-Things-master/components/SDL2/src/gfx/
A DSDL_gfxBlitFunc.c433 dr.w = dst->w; in SDL_gfxBlitRGBA()
446 w = srcrect->w; in SDL_gfxBlitRGBA()
448 w += srcx; in SDL_gfxBlitRGBA()
453 if (maxw < w) in SDL_gfxBlitRGBA()
454 w = maxw; in SDL_gfxBlitRGBA()
469 w = src->w; in SDL_gfxBlitRGBA()
482 w -= dx; in SDL_gfxBlitRGBA()
486 dx = dr.x + w - clip->x - clip->w; in SDL_gfxBlitRGBA()
488 w -= dx; in SDL_gfxBlitRGBA()
501 if (w > 0 && h > 0) { in SDL_gfxBlitRGBA()
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_draw/
A Dlv_img_decoder.c263 header->w = ((lv_img_dsc_t *)src)->header.w; in lv_img_decoder_built_in_info()
568 w = (dsc->header.w >> 3); /*E.g. w = 20 -> w = 2 + 1*/ in lv_img_decoder_built_in_line_alpha()
569 if(dsc->header.w & 0x7) w++; in lv_img_decoder_built_in_line_alpha()
576 if(dsc->header.w & 0x3) w++; in lv_img_decoder_built_in_line_alpha()
583 if(dsc->header.w & 0x1) w++; in lv_img_decoder_built_in_line_alpha()
589 w = dsc->header.w; /*E.g. x = 7 -> w = 7 (bytes)*/ in lv_img_decoder_built_in_line_alpha()
653 w = (dsc->header.w >> 3); /*E.g. w = 20 -> w = 2 + 1*/ in lv_img_decoder_built_in_line_indexed()
654 if(dsc->header.w & 0x7) w++; in lv_img_decoder_built_in_line_indexed()
661 if(dsc->header.w & 0x3) w++; in lv_img_decoder_built_in_line_indexed()
668 if(dsc->header.w & 0x1) w++; in lv_img_decoder_built_in_line_indexed()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dpicture_psnr_enc.c39 int w, int h) { in AccumulateLSIM() argument
45 for (x = 0; x < w; ++x) { in AccumulateLSIM()
47 const int x_1 = (x + RADIUS + 1 >= w) ? w : x + RADIUS + 1; in AccumulateLSIM()
84 const int w0 = (w < VP8_SSIM_KERNEL) ? w : VP8_SSIM_KERNEL; in AccumulateSSIM()
85 const int w1 = w - VP8_SSIM_KERNEL - 1; in AccumulateSSIM()
91 for (x = 0; x < w; ++x) { in AccumulateSSIM()
104 for (; x < w; ++x) { in AccumulateSSIM()
109 for (x = 0; x < w; ++x) { in AccumulateSSIM()
181 int w, h, c; in WebPPictureDistortion() local
193 w = src->width; in WebPPictureDistortion()
[all …]
/AliOS-Things-master/components/SDL2/src/image/
A DIMG_xv.c48 static int get_header(SDL_RWops *src, int *w, int *h) in get_header() argument
52 *w = 0; in get_header()
69 SDL_sscanf(line, "%d %d", w, h); in get_header()
70 if ( *w >= 0 && *h >= 0 ) { in get_header()
86 int w, h; in IMG_isXV() local
92 if ( get_header(src, &w, &h) == 0 ) { in IMG_isXV()
105 int w, h; in IMG_LoadXV_RW() local
115 if ( get_header(src, &w, &h) < 0 ) { in IMG_LoadXV_RW()
121 surface = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h, 8, 0xe0, 0x1c, 0x03, 0); in IMG_LoadXV_RW()
129 if ( SDL_RWread(src, pixels, w, 1) <= 0 ) { in IMG_LoadXV_RW()
/AliOS-Things-master/components/SDL2/src/gfx/Test/
A DTestRotozoom.c127 dest.x = (screen->w - rotozoom_picture->w)/2; in RotatePicture()
135 dest.w = rotozoom_picture->w; in RotatePicture()
159 dest.w = rotozoom_picture->w; in RotatePicture()
188 dest.w = rotozoom_picture->w; in RotatePicture()
200 dest.w = rotozoom_picture->w; in RotatePicture()
249 dest.w = rotozoom_picture->w; in ZoomPicture()
293 dest.w = rotozoom_picture->w; in RotatePicture90Degrees()
340 dest.w = rotozoom_picture->w; in CustomTest()
483 target.x = screen->w/2 - zoomed1->w; in AccuracyTest2()
485 target.w = zoomed1->w; in AccuracyTest2()
[all …]
/AliOS-Things-master/components/SDL2/src/video/directfb/
A DSDL_DirectFB_WM.c61 x1 = x + w / 2; in DrawTriangle()
63 x3 = x + w; in DrawTriangle()
64 y1 = y + w; in DrawTriangle()
70 x3 = x + w; in DrawTriangle()
72 y2 = y + w; in DrawTriangle()
73 y3 = y + w; in DrawTriangle()
122 int x, y, w; in DirectFB_WM_RedrawLayout() local
146 for (i = windata->size.w - t->right_size; i < windata->size.w; i++) in DirectFB_WM_RedrawLayout()
154 x = windata->size.w - t->right_size - w + d; in DirectFB_WM_RedrawLayout()
174 dr.w = w - 2 * d; in DirectFB_WM_RedrawLayout()
[all …]

Completed in 84 milliseconds

12345678910>>...26