/third_party/ffmpeg/libavcodec/ |
H A D | pnm.c | 67 char buf1[32], tuple_type[32]; in ff_pnm_decode_header() local 83 pnm_get(s, buf1, sizeof(buf1)); in ff_pnm_decode_header() 84 s->type= buf1[1]-'0'; in ff_pnm_decode_header() 87 if (buf1[1] == 'F') { in ff_pnm_decode_header() 89 } else if (buf1[1] == 'f') { in ff_pnm_decode_header() 91 } else if (buf1[1] == 'H') { in ff_pnm_decode_header() 94 } else if (buf1[1] == 'h') { in ff_pnm_decode_header() 113 pnm_get(s, buf1, sizeof(buf1)); in ff_pnm_decode_header() [all...] |
/third_party/ffmpeg/libavutil/tests/ |
H A D | pixelutils.c | 80 uint8_t *buf1 = av_malloc(W1*H1); in main() local 84 if (!buf1 || !buf2) { in main() 101 RANDOM_INIT(buf1, W1*H1); in main() 103 ret = run_test("random", buf1, buf2); in main() 108 memset(buf1, 0xff, W1*H1); in main() 110 ret = run_test("max", buf1, buf2); in main() 115 memset(buf1, 0x90, W1*H1); in main() 117 ret = run_test("min", buf1, buf2); in main() 126 av_freep(&buf1); in main() 137 buf1 in main() [all...] |
/third_party/openssl/test/ |
H A D | packettest.c | 243 char buf1[10], buf2[10]; in test_PACKET_strndup() local 248 memset(buf1, 'x', 10); in test_PACKET_strndup() 252 if (!TEST_true(PACKET_buf_init(&pkt, (unsigned char*)buf1, 10)) in test_PACKET_strndup() 255 || !TEST_strn_eq(data, buf1, 10) in test_PACKET_strndup() 270 char buf1[10], buf2[10]; in test_PACKET_contains_zero_byte() local 273 memset(buf1, 'x', 10); in test_PACKET_contains_zero_byte() 277 if (!TEST_true(PACKET_buf_init(&pkt, (unsigned char*)buf1, 10)) in test_PACKET_contains_zero_byte() 305 unsigned char buf1[BUF_LEN] = { 0 }; in test_PACKET_buf_init() local 309 if (!TEST_true(PACKET_buf_init(&pkt, buf1, 4)) in test_PACKET_buf_init() 311 || !TEST_true(PACKET_buf_init(&pkt, buf1, BUF_LE in test_PACKET_buf_init() 350 unsigned char buf1[BUF_LEN]; test_PACKET_get_length_prefixed_1() local 375 unsigned char buf1[1024]; test_PACKET_get_length_prefixed_2() local 399 unsigned char buf1[1024]; test_PACKET_get_length_prefixed_3() local 423 unsigned char buf1[BUF_LEN]; test_PACKET_as_length_prefixed_1() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/times/ |
H A D | times03.c | 81 struct tms buf1, buf2, buf3; in verify_times() local 83 if (times(&buf1) == -1) in verify_times() 86 if (buf1.tms_utime > 5) in verify_times() 87 tst_res(TFAIL, "buf1.tms_utime = %li", buf1.tms_utime); in verify_times() 89 tst_res(TPASS, "buf1.tms_utime <= 5"); in verify_times() 91 if (buf1.tms_stime > 5) in verify_times() 92 tst_res(TFAIL, "buf1.tms_stime = %li", buf1.tms_stime); in verify_times() 94 tst_res(TPASS, "buf1 in verify_times() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | rtpenc_h263.c | 43 void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size) in ff_rtp_send_h263() argument 53 if (size >= 2 && (buf1[0] == 0) && (buf1[1] == 0)) { in ff_rtp_send_h263() 55 buf1 += 2; in ff_rtp_send_h263() 66 const uint8_t *end = ff_h263_find_resync_marker_reverse(buf1, in ff_rtp_send_h263() 67 buf1 + len); in ff_rtp_send_h263() 68 len = end - buf1; in ff_rtp_send_h263() 71 memcpy(q, buf1, len); in ff_rtp_send_h263() 78 buf1 += len; in ff_rtp_send_h263()
|
H A D | rtpenc_mpv.c | 29 void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size) in ff_rtp_send_mpegvideo() argument 34 const uint8_t *end = buf1 + size; in ff_rtp_send_mpegvideo() 56 r1 = buf1; in ff_rtp_send_mpegvideo() 70 if (r - buf1 - 4 <= len) { in ff_rtp_send_mpegvideo() 75 len = r - buf1 - 4; in ff_rtp_send_mpegvideo() 80 if ((r1 - buf1 > 4) && (r - r1 < max_packet_size)) { in ff_rtp_send_mpegvideo() 81 len = r1 - buf1 - 4; in ff_rtp_send_mpegvideo() 105 memcpy(q, buf1, len); in ff_rtp_send_mpegvideo() 112 buf1 += len; in ff_rtp_send_mpegvideo()
|
H A D | hlsplaylist.c | 159 char buf0[128], buf1[128]; in ff_hls_write_file_entry() local 167 if (!strftime(buf1, sizeof(buf1), "%z", tm) || buf1[1]<'0' ||buf1[1]>'2') { in ff_hls_write_file_entry() 173 snprintf(buf1, sizeof(buf1), in ff_hls_write_file_entry() 179 avio_printf(out, "#EXT-X-PROGRAM-DATE-TIME:%s.%03d%s\n", buf0, milli, buf1); in ff_hls_write_file_entry()
|
H A D | rtsp.c | 422 char buf1[64], st_type[64]; in sdp_parse_line() local 439 get_word(buf1, sizeof(buf1), &p); in sdp_parse_line() 440 if (strcmp(buf1, "IN") != 0) in sdp_parse_line() 442 get_word(buf1, sizeof(buf1), &p); in sdp_parse_line() 443 if (strcmp(buf1, "IP4") && strcmp(buf1, "IP6")) in sdp_parse_line() 445 get_word_sep(buf1, sizeof(buf1), "/", in sdp_parse_line() 1187 char buf[MAX_URL_SIZE], buf1[MAX_URL_SIZE], *q; ff_rtsp_read_reply() local [all...] |
H A D | rtpenc.h | 82 void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m); 84 void ff_rtp_send_h264_hevc(AVFormatContext *s1, const uint8_t *buf1, int size); 85 void ff_rtp_send_h261(AVFormatContext *s1, const uint8_t *buf1, int size); 86 void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size); 87 void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf1, int size, 92 void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size);
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | readv.c | 35 char buf1[] = "hello"; in readv_0100() local 37 struct iovec ios[] = {{buf1, strlen(buf1)}, {buf2, strlen(buf2)}}; in readv_0100() 40 if (result != strlen(buf1) + strlen(buf2)) { in readv_0100() 46 memset(buf1, 0, sizeof(buf1)); in readv_0100() 50 if (result != strlen(buf1) + strlen(buf2)) { in readv_0100() 54 if (strcmp(buf1, "hello")) { in readv_0100() 55 t_error("%s failed: buf1 = %s\n", __func__, buf1); in readv_0100() [all...] |
H A D | pwritev.c | 28 char buf1[] = "preadv"; in pwritev_0100() local 32 iov[0].iov_base = buf1; in pwritev_0100() 33 iov[0].iov_len = sizeof(buf1) / sizeof(char); in pwritev_0100() 57 char buf1[] = "pwritev1"; in pwritev_0200() local 61 iov[0].iov_base = buf1; in pwritev_0200() 62 iov[0].iov_len = sizeof(buf1) / sizeof(char); in pwritev_0200() 90 char buf1[] = "pwritev1"; in pwritev_0300() local 94 iov[0].iov_base = buf1; in pwritev_0300() 95 iov[0].iov_len = sizeof(buf1) / sizeof(char); in pwritev_0300()
|
H A D | preadv.c | 31 char buf1[BUFFER_SIZE]; in preadv_0100() local 35 memset(buf1, '\0', BUFFER_SIZE); in preadv_0100() 38 iov[0].iov_base = buf1; in preadv_0100() 39 iov[0].iov_len = sizeof(buf1) / sizeof(char); in preadv_0100() 74 char buf1[8]; in preadv_0200() local 78 iov[0].iov_base = buf1; in preadv_0200() 79 iov[0].iov_len = sizeof(buf1) / sizeof(char); in preadv_0200()
|
/third_party/ltp/testcases/kernel/syscalls/readv/ |
H A D | readv02.c | 31 static char buf1[K_1]; variable 36 {buf1, -1}, 37 {buf1 + CHUNK, CHUNK}, 38 {buf1 + 2*CHUNK, CHUNK}, 42 {buf1, K_1}, 43 {buf1 + CHUNK, K_1}, 44 {buf1 + CHUNK*2, K_1}, 49 {buf1 + CHUNK, CHUNK}, 50 {buf1 + 2*CHUNK, CHUNK}, 54 {buf1, CHUN [all...] |
/third_party/alsa-lib/src/control/ |
H A D | ctlparse.c | 120 char buf[256], buf1[32]; in snd_ctl_ascii_elem_id_get() local 137 snprintf(buf1, sizeof(buf1), ",index=%u", index); in snd_ctl_ascii_elem_id_get() 138 if (strlen(buf) + strlen(buf1) < sizeof(buf)) in snd_ctl_ascii_elem_id_get() 139 strcat(buf, buf1); in snd_ctl_ascii_elem_id_get() 142 snprintf(buf1, sizeof(buf1), ",device=%u", device); in snd_ctl_ascii_elem_id_get() 143 if (strlen(buf) + strlen(buf1) < sizeof(buf)) in snd_ctl_ascii_elem_id_get() 144 strcat(buf, buf1); in snd_ctl_ascii_elem_id_get() 147 snprintf(buf1, sizeo in snd_ctl_ascii_elem_id_get() [all...] |
/third_party/ffmpeg/tests/checkasm/ |
H A D | h264pred.c | 135 AV_WN32A(buf1 + i, r); \ 140 #define src1 (buf1 + 4 * 16) 142 static void check_pred4x4(H264PredContext *h, uint8_t *buf0, uint8_t *buf1, in check_pred4x4() argument 155 if (memcmp(buf0, buf1, BUF_SIZE)) in check_pred4x4() 163 static void check_pred8x8(H264PredContext *h, uint8_t *buf0, uint8_t *buf1, in check_pred8x8() argument 175 if (memcmp(buf0, buf1, BUF_SIZE)) in check_pred8x8() 182 static void check_pred16x16(H264PredContext *h, uint8_t *buf0, uint8_t *buf1, in check_pred16x16() argument 194 if (memcmp(buf0, buf1, BUF_SIZE)) in check_pred16x16() 202 static void check_pred8x8l(H264PredContext *h, uint8_t *buf0, uint8_t *buf1, in check_pred8x8l() argument 222 if (memcmp(buf0, buf1, BUF_SIZ in check_pred8x8l() [all...] |
H A D | blockdsp.c | 38 AV_WN16A(buf1 + i, r); \ 48 call_new(buf1); \ 49 if (memcmp(buf0, buf1, sizeof(*buf0) * size)) \ 58 LOCAL_ALIGNED_32(uint16_t, buf1, [6 * 8 * 8]); in checkasm_check_blockdsp()
|
/third_party/ltp/lib/newlib_tests/ |
H A D | test_guarded_buf.c | 18 static char *buf1; variable 28 buf1[-1] = 0; in do_test() 37 buf1[BUF1_LEN - 1] = 0; in do_test() 46 buf1[BUF1_LEN] = 0; in do_test() 55 buf1[-2] = 0; in do_test() 88 {&buf1, .size = BUF1_LEN},
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
H A D | cpuset_sched_domains_check.c | 54 char buf1[128], buf2[128]; in check_sched_domains() local 91 bitmask_displaylist(buf1, sizeof(buf1), in check_sched_domains() 100 cpu, buf1, buf2); in check_sched_domains() 106 bitmask_displaylist(buf1, sizeof(buf1), in check_sched_domains() 112 cpu, buf1, buf2); in check_sched_domains()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | utimes.c | 40 struct stat buf1; in utimes_0100() local 43 stat(path, &buf1); in utimes_0100() 45 t_mold = buf1.st_mtime; in utimes_0100() 46 t_aold = buf1.st_atime; in utimes_0100() 103 struct stat buf1; in utimes_time64_0100() local 106 stat(path, &buf1); in utimes_time64_0100() 108 t_mold = buf1.st_mtime; in utimes_time64_0100() 109 t_aold = buf1.st_atime; in utimes_time64_0100()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | utf8_test.cc | 38 char buf1[7] = {'\xFF', '\xFF', '\xFF', '\xFF', '\xFF', '\xFF', '\xFF'}; in TEST() local 42 &buf1[absl::strings_internal::EncodeUTF8Char(buf1, test.first)]; in TEST() 45 buf1[apparent_length - 1] == '\xFF') { in TEST() 49 EXPECT_EQ(apparent_length, buf1_written - buf1); in TEST() 52 EXPECT_EQ(std::string(buf1, apparent_length), test.second); in TEST()
|
/third_party/node/test/parallel/ |
H A D | test-buffer-fill.js | 9 const buf1 = Buffer.allocUnsafe(SIZE); 186 [0, 0, buf1.length + 1], 188 ['', 0, buf1.length + 1], 192 () => buf1.fill(...args), 198 () => buf1.fill('a', 0, buf1.length, 'node rocks!'), 211 () => buf1.fill(...args), 221 () => buf1.fill('a', 0, 0, 'foo'), 235 buf1.fill(0); 287 buf1 [all...] |
/third_party/ltp/testcases/kernel/syscalls/rename/ |
H A D | rename13.c | 22 static struct stat buf1, buf2; variable 27 SAFE_STAT(TEMP_FILE1, &buf1); in setup() 38 TST_EXP_EQ_LU(buf1.st_dev, buf2.st_dev); in run() 39 TST_EXP_EQ_LU(buf1.st_ino, buf2.st_ino); in run()
|
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | buffer.cc | 33 double Sub(const uint8_t* buf1, const uint8_t* buf2) { in Sub() argument 34 return static_cast<double>(*reinterpret_cast<const T*>(buf1) - in Sub() 39 const uint8_t* buf1, in CalculateDiff() 44 return Sub<int8_t>(buf1, buf2); in CalculateDiff() 46 return Sub<int16_t>(buf1, buf2); in CalculateDiff() 48 return Sub<int32_t>(buf1, buf2); in CalculateDiff() 50 return Sub<int64_t>(buf1, buf2); in CalculateDiff() 52 return Sub<uint8_t>(buf1, buf2); in CalculateDiff() 54 return Sub<uint16_t>(buf1, buf2); in CalculateDiff() 56 return Sub<uint32_t>(buf1, buf in CalculateDiff() 38 CalculateDiff(const Format::Segment* seg, const uint8_t* buf1, const uint8_t* buf2) CalculateDiff() argument [all...] |
/third_party/node/src/crypto/ |
H A D | crypto_timing.cc | 26 env, "The \"buf1\" argument must be an instance of " in TimingSafeEqual() 37 ArrayBufferOrViewContents<char> buf1(args[0]); in TimingSafeEqual() 40 if (buf1.size() != buf2.size()) { in TimingSafeEqual() 46 CRYPTO_memcmp(buf1.data(), buf2.data(), buf1.size()) == 0); in TimingSafeEqual()
|
/third_party/ltp/testcases/kernel/io/direct_io/ |
H A D | diotest_routines.c | 116 char buf1[BUFSIZ], buf2[BUFSIZ]; in filecmp() local 132 while ((ret1 = read(fd1, buf1, BUFSIZ)) > 0) { in filecmp() 143 if (strncmp(&buf1[i], &buf2[i], 1)) { in filecmp() 146 f1, i, buf1[i], in filecmp() 147 isprint(buf1[i]) ? buf1[1] : '.'); in filecmp()
|