Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 914) sorted by relevance

12345678910>>...37

/AliOS-Things-master/components/SDL2/src/video/alios/
A DSDL_AliOS_video.c124 mode.w = 240; in AliOS_VideoInit()
125 mode.h = 320; in AliOS_VideoInit()
126 frame = malloc(mode.w*mode.h*2); in AliOS_VideoInit()
131 mode.w = 320; in AliOS_VideoInit()
132 mode.h = 240; in AliOS_VideoInit()
133 frame = malloc(mode.w*mode.h*2); in AliOS_VideoInit()
138 mode.w = 320; in AliOS_VideoInit()
139 mode.h = 240; in AliOS_VideoInit()
147 SDL_zero(mode); in AliOS_VideoInit()
158 memset(frame, 0xffff, mode.w*mode.h*2); in AliOS_VideoInit()
[all …]
/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/
A Daos_hal_gpio.c31 uint32_t mode; in aos_hal_gpio_init() local
65 mode = AOS_GPIO_DIR_OUTPUT; in aos_hal_gpio_init()
78 mode = AOS_GPIO_DIR_INPUT; in aos_hal_gpio_init()
84 mode = AOS_GPIO_DIR_INPUT; in aos_hal_gpio_init()
90 mode = AOS_GPIO_DIR_INPUT; in aos_hal_gpio_init()
95 mode = AOS_GPIO_DIR_INPUT; in aos_hal_gpio_init()
101 mode = AOS_GPIO_DIR_OUTPUT; in aos_hal_gpio_init()
108 mode = AOS_GPIO_DIR_OUTPUT; in aos_hal_gpio_init()
114 mode = AOS_GPIO_DIR_OUTPUT; in aos_hal_gpio_init()
201 uint32_t mode = 0; in aos_hal_gpio_enable_irq() local
[all …]
/AliOS-Things-master/components/SDL2/src/video/directfb/
A DSDL_DirectFB_modes.c49 SDL_DisplayMode mode; in EnumModesCallback() local
51 mode.w = width; in EnumModesCallback()
52 mode.h = height; in EnumModesCallback()
53 mode.refresh_rate = 0; in EnumModesCallback()
54 mode.driverdata = NULL; in EnumModesCallback()
101 config.width = mode->w; in CheckSetDisplayMode()
116 SDL_DFB_LOG("Mode %d x %d Added\n", mode->w, mode->h); in CheckSetDisplayMode()
154 SDL_DisplayMode mode; in DirectFB_InitModes() local
277 SDL_DisplayMode mode; in DirectFB_GetDisplayModes() local
343 SDL_DFB_ERR("Error setting mode %dx%d-%x\n", mode->w, mode->h, in DirectFB_SetDisplayMode()
[all …]
/AliOS-Things-master/components/py_engine/external/unzip/src/
A Dgzlib.c90 const char *mode;
106 while (*mode) {
107 if (*mode >= '0' && *mode <= '9')
141 mode++;
238 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
288 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
372 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
400 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
432 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
451 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/
A Dgzlib.c94 const char *mode;
123 while (*mode) {
124 if (*mode >= '0' && *mode <= '9')
172 mode++;
326 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
379 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
464 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
492 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
524 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
542 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
[all …]
/AliOS-Things-master/components/SDL2/src/video/windows/
A DSDL_windowsmodes.c53 mode->w = logical_width; in WIN_UpdateDisplayMode()
54 mode->h = logical_height; in WIN_UpdateDisplayMode()
129 mode->driverdata = data; in WIN_GetDisplayMode()
132 mode->format = SDL_PIXELFORMAT_UNKNOWN; in WIN_GetDisplayMode()
133 mode->w = data->DeviceMode.dmPelsWidth; in WIN_GetDisplayMode()
147 SDL_DisplayMode mode; in WIN_AddDisplay() local
171 display.desktop_mode = mode; in WIN_AddDisplay()
172 display.current_mode = mode; in WIN_AddDisplay()
342 SDL_DisplayMode mode; in WIN_GetDisplayModes() local
350 SDL_free(mode.driverdata); in WIN_GetDisplayModes()
[all …]
/AliOS-Things-master/components/ota/2ndboot/updater/xz/linux/lib/xz/
A Dxz_private.h67 # define DEC_IS_SINGLE(mode) ((mode) == XZ_SINGLE) argument
69 # define DEC_IS_SINGLE(mode) (false) argument
73 # define DEC_IS_PREALLOC(mode) ((mode) == XZ_PREALLOC) argument
75 # define DEC_IS_PREALLOC(mode) (false) argument
79 # define DEC_IS_DYNALLOC(mode) ((mode) == XZ_DYNALLOC) argument
81 # define DEC_IS_DYNALLOC(mode) (false) argument
85 # define DEC_IS_MULTI(mode) (true) argument
87 # define DEC_IS_MULTI(mode) ((mode) != XZ_SINGLE) argument
89 # define DEC_IS_MULTI(mode) (false) argument
109 XZ_EXTERN struct xz_dec_lzma2 *xz_dec_lzma2_create(enum xz_mode mode,
/AliOS-Things-master/components/ota/tools/xz/include/
A Dxz_private.h67 #define DEC_IS_SINGLE(mode) ((mode) == XZ_SINGLE) argument
69 #define DEC_IS_SINGLE(mode) (false) argument
73 #define DEC_IS_PREALLOC(mode) ((mode) == XZ_PREALLOC) argument
75 #define DEC_IS_PREALLOC(mode) (false) argument
79 #define DEC_IS_DYNALLOC(mode) ((mode) == XZ_DYNALLOC) argument
81 #define DEC_IS_DYNALLOC(mode) (false) argument
85 #define DEC_IS_MULTI(mode) (true) argument
87 #define DEC_IS_MULTI(mode) ((mode) != XZ_SINGLE) argument
89 #define DEC_IS_MULTI(mode) (false) argument
109 XZ_EXTERN struct xz_dec_lzma2 *xz_dec_lzma2_create(enum xz_mode mode,
/AliOS-Things-master/components/py_engine/tests/wipy/
A Dpin.py68 pin = Pin(p, mode=Pin.IN, pull=pull)
77 Pin(p, mode=Pin.ALT, alt=af[1])
89 pin = Pin(pin_map[0], mode=Pin.IN)
90 pin = Pin(pin_map[0], mode=Pin.OUT)
95 pin = Pin(pin_map[0], mode=Pin.OUT, pull=None)
108 pin.init(mode=Pin.IN)
118 pin = Pin(pin_map[0], mode=Pin.OUT)
135 pin = Pin(pin_map[0], mode=Pin.OUT)
137 print(pin.mode() == Pin.OUT)
138 pin.mode(Pin.IN)
[all …]
/AliOS-Things-master/components/SDL2/test/
A Dtestdisplayinfo.c21 print_mode(const char *prefix, const SDL_DisplayMode *mode) in print_mode() argument
23 if (!mode) in print_mode()
27 prefix, SDL_GetPixelFormatName(mode->format), in print_mode()
28 mode->w, mode->h, mode->refresh_rate); in print_mode()
34 SDL_DisplayMode mode; in main() local
66 if (SDL_GetCurrentDisplayMode(dpy, &mode) == -1) { in main()
69 print_mode("CURRENT", &mode); in main()
72 if (SDL_GetDesktopDisplayMode(dpy, &mode) == -1) { in main()
75 print_mode("DESKTOP", &mode); in main()
79 if (SDL_GetDisplayMode(dpy, m, &mode) == -1) { in main()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/iostream3/
A Dzfstream.cc58 if ((mode & std::ios_base::in) && (mode & std::ios_base::out)) in open()
63 if (!this->open_mode(mode, char_mode)) in open()
72 io_mode = mode; in open()
86 if ((mode & std::ios_base::in) && (mode & std::ios_base::out)) in attach()
91 if (!this->open_mode(mode, char_mode)) in attach()
100 io_mode = mode; in attach()
135 bool testi = mode & std::ios_base::in; in open_mode()
384 this->open(name, mode); in gzifstream()
393 this->attach(fd, mode); in gzifstream()
439 this->open(name, mode); in gzofstream()
[all …]
/AliOS-Things-master/components/py_engine/tests/wipy/wlan/
A Dwlan.py26 print(wifi.mode() == WLAN.STA)
29 wifi = WLAN(mode=WLAN.AP)
30 print(wifi.mode() == WLAN.AP)
35 print(wifi.mode() == WLAN.AP)
41 wifi = WLAN(mode=WLAN.STA)
42 print(wifi.mode() == WLAN.STA)
56 wifi.mode(WLAN.STA)
57 print(wifi.mode() == WLAN.STA)
80 wifi.mode(WLAN.STA)
119 wifi.init(mode=12345)
[all …]
/AliOS-Things-master/components/SDL2/src/video/haiku/
A DSDL_bmodes.cc63 return (display_mode*)(mode->driverdata); in _ExtractBMode()
69 return float(mode.timing.pixel_clock * 1000) in get_refresh_rate()
70 / float(mode.timing.h_total * mode.timing.v_total); in get_refresh_rate()
195 SDL_DisplayMode *mode) { in _BDisplayModeToSdlDisplayMode() argument
196 mode->w = bmode->virtual_width; in _BDisplayModeToSdlDisplayMode()
197 mode->h = bmode->virtual_height; in _BDisplayModeToSdlDisplayMode()
205 mode->driverdata = data; in _BDisplayModeToSdlDisplayMode()
209 mode->driverdata = bmode; in _BDisplayModeToSdlDisplayMode()
228 display.desktop_mode = *mode; in _AddDisplay()
229 display.current_mode = *mode; in _AddDisplay()
[all …]
/AliOS-Things-master/components/SDL2/src/video/dummy/
A DSDL_nullvideo.c54 static int DUMMY_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
116 SDL_DisplayMode mode; in DUMMY_VideoInit() local
119 mode.format = SDL_PIXELFORMAT_RGB888; in DUMMY_VideoInit()
120 mode.w = 1024; in DUMMY_VideoInit()
121 mode.h = 768; in DUMMY_VideoInit()
122 mode.refresh_rate = 0; in DUMMY_VideoInit()
123 mode.driverdata = NULL; in DUMMY_VideoInit()
124 if (SDL_AddBasicVideoDisplay(&mode) < 0) { in DUMMY_VideoInit()
128 SDL_zero(mode); in DUMMY_VideoInit()
129 SDL_AddDisplayMode(&_this->displays[0], &mode); in DUMMY_VideoInit()
[all …]
/AliOS-Things-master/components/drivers/external_device/sh1106/include/
A Dsh1106.h14 void OLED_DrawPoint(int16_t x, int16_t y, uint8_t mode);
15 void OLED_DrawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint8_t mode);
16 void OLED_DrawVerticalLine(uint8_t x, uint8_t y, uint8_t length, uint8_t mode);
17 void OLED_DrawHorizontalLine(uint8_t x, uint8_t y, uint8_t length, uint8_t mode);
18 void OLED_DrawRect(uint8_t x, uint8_t y, uint8_t width, uint8_t height, uint8_t mode);
20 void OLED_DrawCircle(uint8_t x0, uint8_t y0, uint8_t radius, uint8_t width, uint8_t mode);
21 void OLED_FillCircle(uint8_t x0, uint8_t y0, uint8_t r, uint8_t mode);
22 void OLED_Show_Char(uint8_t x, uint8_t y, uint8_t chr, uint8_t size, uint8_t mode);
23 void OLED_Icon_Draw(int16_t x, int16_t y, icon_t *icon, uint8_t mode);
25 void sh1106_show_string(uint8_t x, uint8_t y, const uint8_t *p, uint8_t size, uint8_t mode);
[all …]
/AliOS-Things-master/components/drivers/peripheral/gpio/src/
A Dgpioc.c10 static uint32_t mode_to_irq_trig(uint32_t mode) in mode_to_irq_trig() argument
15 trig = mode & AOS_GPIO_IRQ_TRIG_MASK; in mode_to_irq_trig()
57 *mode = gpioc->pins[pin].mode; in aos_gpioc_get_mode()
172 old_mode = gpioc->pins[pin].mode; in aos_gpioc_set_mode_irq()
217 gpioc->pins[pin].mode = mode; in aos_gpioc_set_mode_irq()
270 uint32_t mode; in aos_gpioc_get_value() local
282 mode = gpioc->pins[pin].mode; in aos_gpioc_get_value()
299 uint32_t mode; in aos_gpioc_set_value() local
310 mode = gpioc->pins[pin].mode; in aos_gpioc_set_value()
333 uint32_t mode; in aos_gpioc_toggle() local
[all …]
/AliOS-Things-master/components/SDL2/src/video/offscreen/
A DSDL_offscreenvideo.c49 static int OFFSCREEN_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
115 SDL_DisplayMode mode; in OFFSCREEN_VideoInit() local
119 mode.format = SDL_PIXELFORMAT_RGB888; in OFFSCREEN_VideoInit()
120 mode.w = 1024; in OFFSCREEN_VideoInit()
121 mode.h = 768; in OFFSCREEN_VideoInit()
122 mode.refresh_rate = 0; in OFFSCREEN_VideoInit()
123 mode.driverdata = NULL; in OFFSCREEN_VideoInit()
124 if (SDL_AddBasicVideoDisplay(&mode) < 0) { in OFFSCREEN_VideoInit()
128 SDL_zero(mode); in OFFSCREEN_VideoInit()
129 SDL_AddDisplayMode(&_this->displays[0], &mode); in OFFSCREEN_VideoInit()
[all …]
/AliOS-Things-master/components/drivers/external_device/sh1106/src/
A Dsh1106.c374 mode = 0; in OLED_Icon_Draw()
386 if (mode == 1) { in OLED_Icon_Draw()
390 if (mode == 2) { in OLED_Icon_Draw()
402 if (mode == 1) { in OLED_Icon_Draw()
406 if (mode == 2) { in OLED_Icon_Draw()
432 if (mode == 0) in OLED_DrawPoint()
434 if (mode == 1) in OLED_DrawPoint()
436 if (mode == 2) in OLED_DrawPoint()
451 uint8_t mode) in OLED_Show_Char() argument
690 uint8_t mode) in OLED_DrawRect() argument
[all …]
/AliOS-Things-master/solutions/genie_mesh_demo/light_ctl/
A Dlight_driver.c25 uint32_t mode; in light_driver_init() local
34 mode = AOS_GPIO_DIR_OUTPUT; in light_driver_init()
35 mode |= AOS_GPIO_OUTPUT_CFG_PP; in light_driver_init()
36 mode |= AOS_GPIO_OUTPUT_INIT_LOW; in light_driver_init()
37 r = aos_gpioc_set_mode(&gpioc, RED_LED, mode); in light_driver_init()
50 mode = AOS_GPIO_DIR_OUTPUT; in light_driver_init()
51 mode |= AOS_GPIO_OUTPUT_CFG_PP; in light_driver_init()
52 mode |= AOS_GPIO_OUTPUT_INIT_LOW; in light_driver_init()
53 r = aos_gpioc_set_mode(&gpioc, GREEN_LED, mode); in light_driver_init()
60 r = aos_gpioc_set_mode(&gpioc, BLUE_LED, mode); in light_driver_init()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dtree_enc.c270 static int PutI4Mode(VP8BitWriter* const bw, int mode, in PutI4Mode() argument
272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode()
273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode()
274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode()
275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode()
277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode()
282 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode()
289 return mode; in PutI4Mode()
293 if (VP8PutBit(bw, (mode == TM_PRED || mode == H_PRED), 156)) { in PutI16Mode()
294 VP8PutBit(bw, mode == TM_PRED, 128); // TM or HE in PutI16Mode()
[all …]
/AliOS-Things-master/components/mbedtls/platform/yoc/
A Daes_alt.c106 if (mode == MBEDTLS_AES_ENCRYPT) { in mbedtls_aes_crypt_ecb()
108 } else if (mode == MBEDTLS_AES_DECRYPT) { in mbedtls_aes_crypt_ecb()
113 if (mode == MBEDTLS_AES_ENCRYPT) { in mbedtls_aes_crypt_ecb()
115 } else if (mode == MBEDTLS_AES_DECRYPT) { in mbedtls_aes_crypt_ecb()
129 if (mode == MBEDTLS_AES_DECRYPT) { in mbedtls_aes_crypt_cbc()
197 int mode, in mbedtls_aes_crypt_cfb128() argument
208 AES_VALIDATE_RET( mode == MBEDTLS_AES_ENCRYPT || in mbedtls_aes_crypt_cfb128()
220 if( mode == MBEDTLS_AES_DECRYPT ) in mbedtls_aes_crypt_cfb128()
256 int mode, in mbedtls_aes_crypt_cfb8() argument
276 if( mode == MBEDTLS_AES_DECRYPT ) in mbedtls_aes_crypt_cfb8()
[all …]
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11modes.c290 … printf("XRandR mode %d: %dx%d@%dHz\n", (int) modeID, mode->w, mode->h, mode->refresh_rate); in SetXRandRModeInfo()
444 SDL_zero(mode); in X11_InitModes_XRandR()
579 mode->w = info->hdisplay; in SetXVidModeModeInfo()
580 mode->h = info->vdisplay; in SetXVidModeModeInfo()
667 SDL_DisplayMode mode; in X11_InitModes() local
722 mode.refresh_rate = 0; in X11_InitModes()
832 SDL_DisplayMode mode; in X11_GetDisplayModes() local
841 mode.driverdata = NULL; in X11_GetDisplayModes()
857 mode.w = screen_w; in X11_GetDisplayModes()
858 mode.h = screen_h; in X11_GetDisplayModes()
[all …]
/AliOS-Things-master/components/freetype/src/gzip/
A Dinflate.c164 z->state->mode = BAD; in inflate()
171 z->state->mode = BAD; in inflate()
176 z->state->mode = FLAG; in inflate()
182 z->state->mode = BAD; in inflate()
193 z->state->mode = DICT4; in inflate()
197 z->state->mode = DICT3; in inflate()
201 z->state->mode = DICT2; in inflate()
205 z->state->mode = DICT1; in inflate()
210 z->state->mode = DICT0; in inflate()
213 z->state->mode = BAD; in inflate()
[all …]
/AliOS-Things-master/components/drivers/peripheral/uart/src/
A Dtty_csi.c22 switch (mode & CSIZE) { in set_format()
40 if (mode & CSTOPB) in set_format()
45 if (mode & PARENB) in set_format()
60 switch (mode & CBAUD) { in set_baudrate()
239 tcflag_t mode; in tty_csi_startup() local
246 mode &= tty->termios.c_cflag; in tty_csi_startup()
248 ret = set_format(tty_csi, mode); in tty_csi_startup()
260 tty_csi->mode = mode; in tty_csi_startup()
294 tcflag_t mode; in tty_csi_set_attr() local
298 mode &= tty->termios.c_cflag; in tty_csi_set_attr()
[all …]
/AliOS-Things-master/components/a2sa/src/driver/platform/rtos/
A Dtemplate.c122 int mode; member
168 playback->mode = mode; in playback_open()
220 if(mode == PCM_STREAM_IN) { in codec_pcm_stream_open()
251 int *mode = (int *)hdl; in codec_pcm_stream_start() local
253 if(*mode == PCM_STREAM_IN) { in codec_pcm_stream_start()
302 int *mode = (int *)hdl; in codec_pcm_stream_pause() local
304 if(*mode == PCM_STREAM_IN) { in codec_pcm_stream_pause()
340 int *mode = (int *)hdl; in codec_pcm_stream_stop() local
342 if(*mode == PCM_STREAM_IN) { in codec_pcm_stream_stop()
355 int *mode = (int *)hdl; in codec_pcm_stream_close() local
[all …]

Completed in 48 milliseconds

12345678910>>...37