/third_party/ffmpeg/libavcodec/ |
H A D | bmpenc.c | 70 int n_bytes_image, n_bytes_per_row, n_bytes, i, n, hsize, ret; in bmp_encode_frame() local 114 n_bytes = n_bytes_image + hsize; in bmp_encode_frame() 115 if ((ret = ff_get_encode_buffer(avctx, pkt, n_bytes, 0)) < 0) in bmp_encode_frame() 120 bytestream_put_le32(&buf, n_bytes); // BITMAPFILEHEADER.bfSize in bmp_encode_frame()
|
/third_party/mbedtls/library/ |
H A D | bignum_core.c | 609 /* Fill X with n_bytes random bytes. 617 size_t n_bytes, in mbedtls_mpi_core_fill_random() 621 const size_t limbs = CHARS_TO_LIMBS(n_bytes); in mbedtls_mpi_core_fill_random() 622 const size_t overhead = (limbs * ciL) - n_bytes; in mbedtls_mpi_core_fill_random() 630 MBEDTLS_MPI_CHK(f_rng(p_rng, (unsigned char *) X + overhead, n_bytes)); in mbedtls_mpi_core_fill_random() local 646 size_t n_bytes = (n_bits + 7) / 8; in mbedtls_mpi_core_random() local 666 int count = (n_bytes > 4 ? 30 : 250); in mbedtls_mpi_core_random() 678 n_bytes, in mbedtls_mpi_core_random() 680 mbedtls_mpi_core_shift_r(X, limbs, 8 * n_bytes - n_bits); in mbedtls_mpi_core_random() 615 mbedtls_mpi_core_fill_random( mbedtls_mpi_uint *X, size_t X_limbs, size_t n_bytes, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) mbedtls_mpi_core_fill_random() argument
|
/third_party/pulseaudio/src/modules/alsa/ |
H A D | alsa-sink.c | 555 static size_t check_left_to_play(struct userdata *u, size_t n_bytes, bool on_timeout) { in check_left_to_play() argument 564 if (n_bytes <= u->hwbuf_size) in check_left_to_play() 565 left_to_play = u->hwbuf_size - n_bytes; in check_left_to_play() 627 size_t n_bytes; in mmap_write() local 642 n_bytes = (size_t) n * u->frame_size; in mmap_write() 645 pa_log_debug("avail: %lu", (unsigned long) n_bytes); in mmap_write() 648 left_to_play = check_left_to_play(u, n_bytes, on_timeout); in mmap_write() 667 if (PA_UNLIKELY(n_bytes <= u->hwbuf_unused)) { in mmap_write() 693 } else if (j >= 2 && (n_bytes < (DEFAULT_WRITE_ITERATION_THRESHOLD * (u->hwbuf_size - u->hwbuf_unused)))) { in mmap_write() 700 n_bytes in mmap_write() 824 size_t n_bytes; unix_write() local [all...] |
H A D | alsa-source.c | 532 static size_t check_left_to_record(struct userdata *u, size_t n_bytes, bool on_timeout) { in check_left_to_record() argument 542 if (n_bytes <= rec_space) in check_left_to_record() 543 left_to_record = rec_space - n_bytes; in check_left_to_record() 600 size_t n_bytes; in mmap_read() local 613 n_bytes = (size_t) n * u->frame_size; in mmap_read() 616 pa_log_debug("avail: %lu", (unsigned long) n_bytes); in mmap_read() 619 left_to_record = check_left_to_record(u, n_bytes, on_timeout); in mmap_read() 631 if (PA_UNLIKELY(n_bytes <= 0)) { in mmap_read() 671 frames = (snd_pcm_uframes_t) (n_bytes / u->frame_size); in mmap_read() 732 pa_log_debug("Read %lu bytes (of possible %lu bytes)", (unsigned long) (frames * u->frame_size), (unsigned long) n_bytes); in mmap_read() 775 size_t n_bytes; unix_read() local [all...] |
/third_party/lame/frontend/ |
H A D | lame_main.c | 402 size_t n_bytes = lame_get_id3v2_tag(gf, id3v2tag, id3v2_size); in lame_encoder_loop() local 403 size_t written = fwrite(id3v2tag, 1, n_bytes, outf); in lame_encoder_loop() 405 if (written != n_bytes) { in lame_encoder_loop()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | cord.h | 546 // Advances the `Cord::CharIterator` by `n_bytes` and returns the bytes 547 // advanced as a separate `Cord`. `n_bytes` must be less than or equal to the 550 static Cord AdvanceAndRead(CharIterator* it, size_t n_bytes); 554 // Advances the `Cord::CharIterator` by `n_bytes`. `n_bytes` must be less than 557 static void Advance(CharIterator* it, size_t n_bytes); 1394 inline Cord Cord::AdvanceAndRead(CharIterator* it, size_t n_bytes) { in AdvanceAndRead() argument 1396 return it->chunk_iterator_.AdvanceAndReadBytes(n_bytes); in AdvanceAndRead() 1399 inline void Cord::Advance(CharIterator* it, size_t n_bytes) { in Advance() argument 1401 it->chunk_iterator_.AdvanceBytes(n_bytes); in Advance() [all...] |
/third_party/node/src/crypto/ |
H A D | crypto_keys.cc | 168 size_t n_bytes = data[1] & ~0x80; in IsASN1Sequence() local 169 if (n_bytes + 2 > size || n_bytes > sizeof(size_t)) in IsASN1Sequence() 172 for (size_t i = 0; i < n_bytes; i++) in IsASN1Sequence() 174 *data_offset = 2 + n_bytes; in IsASN1Sequence() 175 *data_size = std::min(size - 2 - n_bytes, length); in IsASN1Sequence()
|
H A D | crypto_common.cc | 729 long n_bytes = BIO_get_mem_data(tmp.get(), &oline); // NOLINT(runtime/int) in PrintGeneralName() local 730 CHECK_GE(n_bytes, 0); in PrintGeneralName() 731 CHECK_IMPLIES(n_bytes != 0, oline != nullptr); in PrintGeneralName() 732 PrintAltName(out, oline, static_cast<size_t>(n_bytes), true, nullptr); in PrintGeneralName()
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | compile-i386.c | 521 static struct storage *stack_alloc(int n_bytes) in stack_alloc() argument 532 stor->size = n_bytes; in stack_alloc() 533 f->stack_size += n_bytes; in stack_alloc()
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cCopyImageTests.cpp | 1673 static const GLuint n_bytes = sizeof(T); in readBaseTypeFromSignedChannel() local 1674 static const GLuint n_bits = 8u * n_bytes; in readBaseTypeFromSignedChannel() 1921 static const GLuint n_bytes = sizeof(T); in writeBaseTypeToSignedChannel() local 1922 static const GLuint n_bits = 8u * n_bytes; in writeBaseTypeToSignedChannel()
|