Searched refs:buf (Results 1 - 25 of 3827) sorted by last modified time

1234567891011>>

/external/webp/src/dec/
H A Dbuffer.c46 const WebPYUVABuffer* const buf = &buffer->u.YUVA; local
47 const uint64_t y_size = (uint64_t)buf->y_stride * height;
48 const uint64_t u_size = (uint64_t)buf->u_stride * ((height + 1) / 2);
49 const uint64_t v_size = (uint64_t)buf->v_stride * ((height + 1) / 2);
50 const uint64_t a_size = (uint64_t)buf->a_stride * height;
51 ok &= (y_size <= buf->y_size);
52 ok &= (u_size <= buf->u_size);
53 ok &= (v_size <= buf->v_size);
54 ok &= (buf->y_stride >= width);
55 ok &= (buf
66 const WebPRGBABuffer* const buf = &buffer->u.RGBA; local
111 WebPYUVABuffer* const buf = &buffer->u.YUVA; local
127 WebPRGBABuffer* const buf = &buffer->u.RGBA; local
[all...]
H A Dio.c28 const WebPYUVABuffer* const buf = &output->u.YUVA; local
29 uint8_t* const y_dst = buf->y + io->mb_y * buf->y_stride;
30 uint8_t* const u_dst = buf->u + (io->mb_y >> 1) * buf->u_stride;
31 uint8_t* const v_dst = buf->v + (io->mb_y >> 1) * buf->v_stride;
38 memcpy(y_dst + j * buf->y_stride, io->y + j * io->y_stride, mb_w);
41 memcpy(u_dst + j * buf->u_stride, io->u + j * io->uv_stride, uv_w);
42 memcpy(v_dst + j * buf
50 const WebPRGBABuffer* const buf = &output->u.RGBA; local
105 const WebPRGBABuffer* const buf = &p->output->u.RGBA; local
165 const WebPYUVABuffer* const buf = &p->output->u.YUVA; local
221 const WebPRGBABuffer* const buf = &p->output->u.RGBA; local
253 const WebPRGBABuffer* const buf = &p->output->u.RGBA; local
312 const WebPYUVABuffer* const buf = &p->output->u.YUVA; local
365 const WebPRGBABuffer* const buf = &p->output->u.RGBA; local
410 const WebPRGBABuffer* const buf = &p->output->u.RGBA; local
441 const WebPRGBABuffer* const buf = &p->output->u.RGBA; local
[all...]
H A Dvp8.c180 // necessary data in 'buf'.
188 const uint8_t* buf, size_t size) {
190 const uint8_t* sz = buf;
191 const uint8_t* buf_end = buf + size;
198 part_start = buf + last_part * 3;
258 const uint8_t* buf; local
298 buf = headers.data + headers.offset;
308 const uint32_t bits = buf[0] | (buf[1] << 8) | (buf[
187 ParsePartitions(VP8Decoder* const dec, const uint8_t* buf, size_t size) argument
[all...]
H A Dvp8l.c465 const WebPYUVABuffer* const buf = &output->u.YUVA; local
469 uint8_t* const y = buf->y + y_pos * buf->y_stride;
478 uint8_t* const u = buf->u + (y_pos >> 1) * buf->u_stride;
479 uint8_t* const v = buf->v + (y_pos >> 1) * buf->v_stride;
518 if (buf->a != NULL) {
520 uint8_t* const a = buf->a + y_pos * buf
656 const WebPRGBABuffer* const buf = &output->u.RGBA; local
[all...]
H A Dwebp.c153 const uint8_t* buf; local
160 buf = *data;
172 *data = buf;
179 chunk_size = get_le32(buf + TAG_SIZE);
193 if (!memcmp(buf, "ALPH", TAG_SIZE)) { // A valid ALPH header.
194 *alpha_data = buf + CHUNK_HEADER_SIZE;
196 } else if (!memcmp(buf, "VP8 ", TAG_SIZE) ||
197 !memcmp(buf, "VP8L", TAG_SIZE)) { // A valid VP8/VP8L header.
202 buf += disk_chunk_size;
465 WebPDecBuffer buf; local
599 const WebPYUVABuffer* const buf = &output.u.YUVA; local
[all...]
/external/webp/src/enc/
H A Dsyntax.c263 uint8_t buf[3 * (MAX_NUM_PARTITIONS - 1)]; local
270 buf[3 * p + 0] = (part_size >> 0) & 0xff;
271 buf[3 * p + 1] = (part_size >> 8) & 0xff;
272 buf[3 * p + 2] = (part_size >> 16) & 0xff;
274 return p ? pic->writer(buf, 3 * p, pic) : 1;
414 const uint8_t* const buf = VP8BitWriterBuf(enc->parts_ + p); local
417 ok = ok && pic->writer(buf, size, pic);
/external/webp/src/utils/
H A Dbit_reader.c129 const uint8_t* const buf, size_t len) {
131 assert(buf != NULL);
134 br->buf_ = buf;
128 VP8LBitReaderSetBuffer(VP8LBitReader* const br, const uint8_t* const buf, size_t len) argument
/external/webrtc/src/
H A Dcommon_types.h33 virtual int Read(void *buf,int len) = 0;
43 virtual bool Write(const void *buf,int len) = 0;
/external/webrtc/src/modules/audio_processing/utility/
H A Dring_buffer.c39 static size_t GetBufferReadRegions(buf_t* buf, argument
46 const size_t readable_elements = WebRtc_available_read(buf);
49 const size_t margin = buf->element_count - buf->read_pos;
54 *data_ptr_1 = buf->data + buf->read_pos * buf->element_size;
55 *data_ptr_bytes_1 = margin * buf->element_size;
56 *data_ptr_2 = buf->data;
57 *data_ptr_bytes_2 = (read_elements - margin) * buf
[all...]
/external/webrtc/src/system_wrappers/interface/
H A Dfile_wrapper.h62 // Reads |length| bytes from file to |buf|. Returns the number of bytes read
64 virtual int Read(void* buf, int length) = 0;
67 // Writes |length| bytes from |buf| to file. The actual writing may happen
69 virtual bool Write(const void *buf, int length) = 0;
/external/webrtc/src/system_wrappers/source/
H A Dfile_impl.cc190 int FileWrapperImpl::Read(void* buf, int length) argument
198 int bytes_read = static_cast<int>(fread(buf, 1, length, _id));
233 bool FileWrapperImpl::Write(const void* buf, int length) argument
235 if (buf == NULL)
254 size_t num_bytes = fwrite(buf, 1, length, _id);
H A Dfile_impl.h40 virtual int Read(void* buf, int length);
41 virtual bool Write(const void *buf, int length);
/external/wpa_supplicant_6/wpa_supplicant/
H A Dconfig.c170 char *buf; local
172 buf = os_malloc(len + 3);
173 if (buf == NULL)
175 buf[0] = '"';
176 os_memcpy(buf + 1, value, len);
177 buf[len + 1] = '"';
178 buf[len + 2] = '\0';
180 return buf;
186 char *buf; local
188 buf
420 char *start, *end, *buf; local
471 char *buf, *pos, *end; local
504 char *start, *end, *buf; local
575 char *buf, *pos, *end; local
667 char *start, *end, *buf; local
719 char *buf, *pos, *end; local
846 char *start, *end, *buf; local
897 char *buf, *pos, *end; local
946 char *start, *end, *buf; local
1017 char *buf, *pos, *end; local
1115 char *buf; local
1140 char *buf, title[20]; local
[all...]
H A Dconfig_file.c134 char buf[256], *pos, *pos2; local
145 while (wpa_config_get_line(buf, sizeof(buf), f, line, &pos)) {
195 char buf[256], *pos; local
203 while (wpa_config_get_line(buf, sizeof(buf), f, line, &pos)) {
387 char buf[40]; local
392 uuid_bin2str(config->uuid, buf, sizeof(buf));
393 wpa_printf(MSG_DEBUG, "uuid=%s", buf);
507 char buf[256], *pos; local
870 char buf[40]; local
[all...]
H A Dconfig_winreg.c427 TCHAR buf[256]; local
439 _snwprintf(buf, 256, WPA_KEY_PREFIX TEXT("\\configs\\%S"), name);
441 os_snprintf(buf, 256, WPA_KEY_PREFIX TEXT("\\configs\\%s"), name);
444 ret = RegOpenKeyEx(WPA_KEY_ROOT, buf, 0, KEY_QUERY_VALUE, &hk);
447 "configuration registry HKLM\\" TSTR, buf);
561 char buf[40]; local
562 uuid_bin2str(config->uuid, buf, sizeof(buf));
563 wpa_config_write_reg_string(hk, "uuid", buf);
931 TCHAR buf[25 local
[all...]
H A Dctrl_iface.c35 char *buf, int len);
37 char *buf, int len);
166 char *cmd, char *buf,
189 ret = os_snprintf(buf, buflen, "%s", pin);
200 ret = os_snprintf(buf, buflen, "%08d", ret);
317 char *buf, size_t buflen)
323 pos = buf;
324 end = buf + buflen;
330 return pos - buf;
348 return pos - buf;
165 wpa_supplicant_ctrl_iface_wps_pin(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen) argument
315 wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s, const char *params, char *buf, size_t buflen) argument
438 wpa_supplicant_ctrl_iface_blacklist( struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen) argument
492 wpa_supplicant_ctrl_iface_log_level( struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen) argument
540 wpa_supplicant_ctrl_iface_list_networks( struct wpa_supplicant *wpa_s, char *buf, size_t buflen) argument
763 wpa_supplicant_ctrl_iface_scan_result( const struct wpa_scan_res *res, char *buf, size_t buflen) argument
820 wpa_supplicant_ctrl_iface_scan_results( struct wpa_supplicant *wpa_s, char *buf, size_t buflen) argument
999 wpa_supplicant_ctrl_iface_add_network( struct wpa_supplicant *wpa_s, char *buf, size_t buflen) argument
1126 wpa_supplicant_ctrl_iface_get_network( struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen) argument
1195 ctrl_iface_get_capability_pairwise(int res, char *strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) argument
1243 ctrl_iface_get_capability_group(int res, char *strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) argument
1300 ctrl_iface_get_capability_key_mgmt(int res, char *strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) argument
1353 ctrl_iface_get_capability_proto(int res, char *strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) argument
1395 ctrl_iface_get_capability_auth_alg(int res, char *strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) argument
1444 wpa_supplicant_ctrl_iface_get_capability( struct wpa_supplicant *wpa_s, const char *_field, char *buf, size_t buflen) argument
1501 wpa_supplicant_ctrl_iface_bss(struct wpa_supplicant *wpa_s, const char *cmd, char *buf, size_t buflen) argument
1626 wpa_supplicant_driver_cmd(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen) argument
1639 wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s, char *buf, size_t *resp_len) argument
1952 wpa_supplicant_global_iface_list(struct wpa_global *global, char *buf, int len) argument
1994 wpa_supplicant_global_iface_interfaces(struct wpa_global *global, char *buf, int len) argument
2018 wpa_supplicant_global_ctrl_iface_process(struct wpa_global *global, char *buf, size_t *resp_len) argument
[all...]
H A Dctrl_iface.h25 * @buf: Received command buffer (nul terminated string)
38 char *buf, size_t *resp_len);
43 * @buf: Received command buffer (nul terminated string)
55 char *buf, size_t *resp_len);
137 char *buf, size_t len)
136 wpa_supplicant_ctrl_iface_send(struct ctrl_iface_priv *priv, int level, char *buf, size_t len) argument
H A Dctrl_iface_named_pipe.c90 int level, const char *buf,
291 char *buf = dst->req_buf; local
296 buf[len] = '\0';
298 if (os_strcmp(buf, "ATTACH") == 0) {
303 } else if (os_strcmp(buf, "DETACH") == 0) {
307 } else if (os_strncmp(buf, "LEVEL ", 6) == 0) {
308 wpa_printf(MSG_DEBUG, "CTRL_IFACE LEVEL %s", buf + 6);
309 dst->debug_level = atoi(buf + 6);
312 reply = wpa_supplicant_ctrl_iface_process(wpa_s, buf,
482 int level, const char *buf,
481 wpa_supplicant_ctrl_iface_send(struct ctrl_iface_priv *priv, int level, const char *buf, size_t len) argument
725 char *buf = dst->req_buf; local
[all...]
H A Dctrl_iface_udp.c55 int level, const char *buf,
157 char buf[256], *pos; local
166 res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
183 buf[res] = '\0';
185 if (os_strcmp(buf, "GET_COOKIE") == 0) {
197 if (os_strncmp(buf, "COOKIE=", 7) != 0) {
203 if (hexstr2bin(buf + 7, cookie, COOKIE_LEN) < 0) {
215 pos = buf + 7 + 2 * COOKIE_LEN;
346 int level, const char *buf,
345 wpa_supplicant_ctrl_iface_send(struct ctrl_iface_priv *priv, int level, const char *buf, size_t len) argument
437 char buf[256], *pos; local
[all...]
H A Dctrl_iface_unix.c57 int level, const char *buf,
146 char buf[256]; local
154 res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
160 buf[res] = '\0';
162 if (os_strcmp(buf, "ATTACH") == 0) {
169 } else if (os_strcmp(buf, "DETACH") == 0) {
174 } else if (os_strncmp(buf, "LEVEL ", 6) == 0) {
176 buf + 6))
181 reply = wpa_supplicant_ctrl_iface_process(wpa_s, buf,
204 char *buf; local
273 char *buf, *dir = NULL, *gid_str = NULL; local
445 char *buf, *dir = NULL, *gid_str = NULL; local
510 wpa_supplicant_ctrl_iface_send(struct ctrl_iface_priv *priv, int level, const char *buf, size_t len) argument
566 char buf[256]; local
617 char buf[256]; local
[all...]
H A Deapol_test.c102 char buf[128]; local
106 os_snprintf(buf, sizeof(buf), "%s", attr->data);
107 len = os_strlen(buf);
110 buf[0] = '\0';
118 if ((len & 1) || (len / 2) > sizeof(buf)) {
123 if (hexstr2bin(pos, (u8 *) buf, len) < 0) {
130 os_memcpy(buf, &val, 4);
138 if (!radius_msg_add_attr(msg, attr->type, (u8 *) buf, len)) {
175 char buf[12 local
290 eapol_test_eapol_send(void *ctx, int type, const u8 *buf, size_t len) argument
478 u8 buf[100], *pos; local
536 char buf[64]; local
[all...]
H A Dmlme.c225 static int ieee80211_sta_tx(struct wpa_supplicant *wpa_s, const u8 *buf, argument
228 return wpa_drv_send_mlme(wpa_s, buf, len);
236 u8 *buf; local
240 buf = os_malloc(sizeof(*mgmt) + 6 + extra_len);
241 if (buf == NULL) {
247 mgmt = (struct ieee80211_mgmt *) buf;
262 os_memcpy(buf + len, extra, extra_len);
266 ieee80211_sta_tx(wpa_s, buf, len);
267 os_free(buf);
328 u8 *pos, *ies, *buf; local
483 u8 *buf; local
511 u8 *buf; local
648 u8 *buf; local
1839 ieee80211_sta_rx_mgmt(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len, struct ieee80211_rx_status *rx_status) argument
1888 ieee80211_sta_rx_scan(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len, struct ieee80211_rx_status *rx_status) argument
2067 u8 *pos, *buf; local
2792 ieee80211_sta_rx(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len, struct ieee80211_rx_status *rx_status) argument
2925 u8 *buf; local
[all...]
H A Dmlme.h36 void ieee80211_sta_rx(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len,
97 ieee80211_sta_rx(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len, argument
H A Dpreauth_test.c108 const u8 *buf, size_t len)
107 wpa_ether_send(void *wpa_s, const u8 *dest, u16 proto, const u8 *buf, size_t len) argument
/external/wpa_supplicant_6/wpa_supplicant/src/common/
H A Dwpa_common.c32 * @buf: Pointer to the beginning of the EAPOL header (version field)
46 int wpa_eapol_key_mic(const u8 *key, int ver, const u8 *buf, size_t len, argument
53 hmac_md5(key, 16, buf, len, mic);
56 hmac_sha1(key, 16, buf, len, hash);
61 return omac1_aes_128(key, buf, len, mic);
141 u8 *buf, *pos; local
145 buf = os_malloc(buf_len);
146 if (buf == NULL)
149 pos = buf;
167 os_free(buf);
418 u8 buf[1 + WPA_MAX_SSID_LEN + MOBILITY_DOMAIN_ID_LEN + 1 + local
502 u8 buf[FT_R1KH_ID_LEN + ETH_ALEN]; local
528 u8 buf[2 * WPA_NONCE_LEN + 2 * ETH_ALEN]; local
[all...]

Completed in 677 milliseconds

1234567891011>>