/third_party/ffmpeg/libavcodec/ |
D | pnm.c | 67 char buf1[32], tuple_type[32]; in ff_pnm_decode_header() local 81 pnm_get(s, buf1, sizeof(buf1)); in ff_pnm_decode_header() 82 s->type= buf1[1]-'0'; in ff_pnm_decode_header() 84 if (buf1[1] == 'F') { in ff_pnm_decode_header() 86 } else if (buf1[1] == 'f') { in ff_pnm_decode_header() 104 pnm_get(s, buf1, sizeof(buf1)); in ff_pnm_decode_header() 105 if (!strcmp(buf1, "WIDTH")) { in ff_pnm_decode_header() 106 pnm_get(s, buf1, sizeof(buf1)); in ff_pnm_decode_header() 107 w = strtol(buf1, NULL, 10); in ff_pnm_decode_header() 108 } else if (!strcmp(buf1, "HEIGHT")) { in ff_pnm_decode_header() [all …]
|
/third_party/gstreamer/gstreamer/tests/check/elements/ |
D | dataurisrc.c | 237 GstBuffer *buf1, *buf2; in GST_START_TEST() local 287 buf1 = NULL; in GST_START_TEST() 288 flow = gst_pad_get_range (src_pad, 0, 100, &buf1); in GST_START_TEST() 290 fail_unless (buf1 != NULL); in GST_START_TEST() 291 fail_unless_equals_int (gst_buffer_get_size (buf1), 100); in GST_START_TEST() 292 fail_unless (gst_buffer_memcmp (buf1, 0, data, 100) == 0); in GST_START_TEST() 301 gst_buffer_unref (buf1); in GST_START_TEST() 312 buf1 = NULL; in GST_START_TEST() 313 flow = gst_pad_get_range (src_pad, 1, 100, &buf1); in GST_START_TEST() 315 fail_unless (buf1 != NULL); in GST_START_TEST() [all …]
|
/third_party/boost/boost/sort/common/util/ |
D | merge.hpp | 85 static Iter3_t merge(Iter1_t buf1, const Iter1_t end_buf1, Iter2_t buf2, in merge() argument 104 if (size_t((end_buf1 - buf1) + (end_buf2 - buf2)) >= MIN_CHECK) in merge() 106 if (buf1 == end_buf1) return move_forward(buf_out, buf2, end_buf2); in merge() 107 if (buf2 == end_buf2) return move_forward(buf_out, buf1, end_buf1); in merge() 111 Iter3_t mid = move_forward(buf_out, buf1, end_buf1); in merge() 115 if (comp(*(end_buf2 - 1), *buf1)) in merge() 118 return move_forward(mid, buf1, end_buf1); in merge() 121 while ((buf1 != end_buf1) and (buf2 != end_buf2)) in merge() 123 *(buf_out++) = (not comp(*buf2, *buf1)) ? in merge() 124 std::move(*(buf1++)) : std::move(*(buf2++)); in merge() [all …]
|
/third_party/ffmpeg/libavutil/tests/ |
D | pixelutils.c | 76 uint8_t *buf1 = av_malloc(W1*H1); in main() local 80 if (!buf1 || !buf2) { in main() 97 RANDOM_INIT(buf1, W1*H1); in main() 99 ret = run_test("random", buf1, buf2); in main() 104 memset(buf1, 0xff, W1*H1); in main() 106 ret = run_test("max", buf1, buf2); in main() 111 memset(buf1, 0x90, W1*H1); in main() 113 ret = run_test("min", buf1, buf2); in main() 122 av_freep(&buf1); in main() 133 buf1 = av_malloc(size1); in main() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/rename/ |
D | rename01.c | 85 struct stat buf1; variable 136 SAFE_STAT(cleanup, TC[i].name2, &buf1); in main() 142 if (buf1.st_dev != *TC[i].olddev || in main() 143 buf1.st_ino != *TC[i].oldino) { in main() 153 if (stat(fname, &buf1) != -1) { in main() 193 SAFE_STAT(cleanup, fname, &buf1); in setup() 195 f_olddev = buf1.st_dev; in setup() 196 f_oldino = buf1.st_ino; in setup() 201 SAFE_STAT(cleanup, fdir, &buf1); in setup() 203 d_olddev = buf1.st_dev; in setup() [all …]
|
D | rename13.c | 78 struct stat buf1, buf2; variable 120 SAFE_STAT(cleanup, fname, &buf1); in main() 132 if (buf1.st_dev != olddev || buf1.st_ino != oldino) { in main() 164 SAFE_STAT(cleanup, fname, &buf1); in setup() 167 olddev = buf1.st_dev; in setup() 168 oldino = buf1.st_ino; in setup()
|
D | rename03.c | 83 struct stat buf1, buf2; variable 200 SAFE_STAT(cleanup, fname, &buf1); in setup2() 203 f_olddev = buf1.st_dev; in setup2() 204 f_oldino = buf1.st_ino; in setup2() 210 SAFE_STAT(cleanup, fdir, &buf1); in setup2() 212 d_olddev = buf1.st_dev; in setup2() 213 d_oldino = buf1.st_ino; in setup2()
|
/third_party/ltp/testcases/kernel/syscalls/readv/ |
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, CHUNK},
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
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()
|
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()
|
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/gstreamer/gstplugins_bad/gst/debugutils/ |
D | gstcompare.c | 240 gst_compare_meta (GstCompare * comp, GstBuffer * buf1, GstCaps * caps1, in gst_compare_meta() argument 246 if (GST_BUFFER_FLAGS (buf1) != GST_BUFFER_FLAGS (buf2)) { in gst_compare_meta() 248 GST_DEBUG_OBJECT (comp, "flags %d != flags %d", GST_BUFFER_FLAGS (buf1), in gst_compare_meta() 253 if (GST_BUFFER_TIMESTAMP (buf1) != GST_BUFFER_TIMESTAMP (buf2)) { in gst_compare_meta() 257 GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf1)), in gst_compare_meta() 260 if (GST_BUFFER_DURATION (buf1) != GST_BUFFER_DURATION (buf2)) { in gst_compare_meta() 264 GST_TIME_ARGS (GST_BUFFER_DURATION (buf1)), in gst_compare_meta() 268 if (GST_BUFFER_OFFSET (buf1) != GST_BUFFER_OFFSET (buf2)) { in gst_compare_meta() 272 GST_BUFFER_OFFSET (buf1), GST_BUFFER_OFFSET (buf2)); in gst_compare_meta() 274 if (GST_BUFFER_OFFSET_END (buf1) != GST_BUFFER_OFFSET_END (buf2)) { in gst_compare_meta() [all …]
|
/third_party/ffmpeg/libavformat/ |
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()
|
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()
|
/third_party/openssl/test/ |
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_LEN)) in test_PACKET_buf_init() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/times/ |
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() 91 if (buf1.tms_stime > 5) in verify_times() 92 tst_res(TFAIL, "buf1.tms_stime = %li", buf1.tms_stime); in verify_times() 107 if (buf1.tms_utime >= buf2.tms_utime) { in verify_times() 109 buf1.tms_utime, buf2.tms_utime); in verify_times() 112 buf1.tms_utime, buf2.tms_utime); in verify_times() 120 if (buf1.tms_stime >= buf2.tms_stime) { in verify_times() [all …]
|
/third_party/gstreamer/gstreamer/tests/check/gst/ |
D | gstbufferlist.c | 48 GstBuffer *buf1; in GST_START_TEST() local 57 buf1 = gst_buffer_new (); in GST_START_TEST() 62 ASSERT_BUFFER_REFCOUNT (buf1, "buf1", 1); in GST_START_TEST() 63 gst_buffer_list_add (list, buf1); in GST_START_TEST() 64 ASSERT_BUFFER_REFCOUNT (buf1, "buf1", 1); /* list takes ownership */ in GST_START_TEST() 104 GstBuffer *buf1; in GST_START_TEST() local 110 buf1 = gst_buffer_new_allocate (NULL, 1, NULL); in GST_START_TEST() 111 gst_buffer_list_add (list, buf1); in GST_START_TEST() 122 fail_unless (buf == buf1); in GST_START_TEST() 123 ASSERT_BUFFER_REFCOUNT (buf1, "buf1", 1); in GST_START_TEST() [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | rtpmux.c | 372 GstBuffer *buf1; in GST_START_TEST() local 388 buf1 = gst_harness_pull (h); in GST_START_TEST() 392 fail_unless_equals_int (111111, _rtp_buffer_get_ssrc (buf1)); in GST_START_TEST() 395 gst_buffer_unref (buf1); in GST_START_TEST() 410 GstBuffer *buf1; in GST_START_TEST() local 421 buf1 = gst_harness_pull (h); in GST_START_TEST() 425 fail_unless_equals_int (222222, _rtp_buffer_get_ssrc (buf1)); in GST_START_TEST() 428 gst_buffer_unref (buf1); in GST_START_TEST() 443 GstBuffer *buf1; in GST_START_TEST() local 458 buf1 = gst_harness_pull (h); in GST_START_TEST() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
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/ffmpeg/tests/checkasm/ |
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_SIZE)) in check_pred8x8l() [all …]
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
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/ltp/lib/newlib_tests/ |
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/gstreamer/gstreamer/tests/check/libs/ |
D | transform2.c | 32 GstBuffer *buf1, *buf2; variable 63 fail_unless (buf1 == NULL || buf2 == NULL); in collate_submit_input_buffer() 65 if (buf1 == NULL) { in collate_submit_input_buffer() 66 buf1 = trans->queued_buf; in collate_submit_input_buffer() 80 if (buf1 == NULL || buf2 == NULL) in collate_generate_output() 83 fail_unless (buf1 != NULL && buf2 != NULL); in collate_generate_output() 86 gst_buffer_unref (buf1); in collate_generate_output() 88 buf1 = NULL; in collate_generate_output()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
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/abseil-cpp/absl/strings/internal/ |
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()
|