Home
last modified time | relevance | path

Searched refs:out_size (Results 1 – 25 of 123) sorted by relevance

12345

/third_party/libwebsockets/lib/misc/
Dbase64-decode.c53 char *out, int out_size) in _lws_b64_encode_string() argument
69 if (done + 4 >= out_size) in _lws_b64_encode_string()
82 if (done + 1 >= out_size) in _lws_b64_encode_string()
91 lws_b64_encode_string(const char *in, int in_len, char *out, int out_size) in lws_b64_encode_string() argument
93 return _lws_b64_encode_string(encode_orig, in, in_len, out, out_size); in lws_b64_encode_string()
97 lws_b64_encode_string_url(const char *in, int in_len, char *out, int out_size) in lws_b64_encode_string_url() argument
99 return _lws_b64_encode_string(encode_url, in, in_len, out, out_size); in lws_b64_encode_string_url()
111 uint8_t *out, size_t *out_size, int final) in lws_b64_decode_stateful() argument
114 uint8_t *orig_out = out, *end_out = out + *out_size; in lws_b64_decode_stateful()
169 *out_size = (unsigned int)(out - orig_out); in lws_b64_decode_stateful()
[all …]
/third_party/ffmpeg/libavcodec/
Dh264_mp4toannexb_bsf.c49 static void count_or_copy(uint8_t **out, uint64_t *out_size, in count_or_copy() argument
52 uint8_t start_code_size = ps < 0 ? 0 : *out_size == 0 || ps ? 4 : 3; in count_or_copy()
65 *out_size += start_code_size + in_size; in count_or_copy()
214 uint64_t out_size; in h264_mp4toannexb_filter() local
241 out_size = 0; in h264_mp4toannexb_filter()
243 old_out_size = out_size; in h264_mp4toannexb_filter()
276 count_or_copy(&out, &out_size, s->sps, s->sps_size, -1, j); in h264_mp4toannexb_filter()
278 h264_mp4toannexb_modify_encryption_info(in, out_size, old_out_size, j); in h264_mp4toannexb_filter()
279 old_out_size = out_size; in h264_mp4toannexb_filter()
295 count_or_copy(&out, &out_size, ctx->par_out->extradata, in h264_mp4toannexb_filter()
[all …]
Dtruehd_core_bsf.c43 int in_size, out_size; in truehd_core_filter() local
96 out_size = end + 4 + last_offset; in truehd_core_filter()
97 if (out_size < in_size) { in truehd_core_filter()
114 out_size -= reduce; in truehd_core_filter()
115 pkt->size = out_size; in truehd_core_filter()
123 parity_nibble ^= out_size / 2; in truehd_core_filter()
152 auheader |= (out_size / 2) & 0x0fff; in truehd_core_filter()
Dws-snd1.c60 int in_size, out_size, ret; in ws_snd_decode_frame() local
73 out_size = AV_RL16(&buf[0]); in ws_snd_decode_frame()
83 frame->nb_samples = out_size; in ws_snd_decode_frame()
87 samples_end = samples + out_size; in ws_snd_decode_frame()
89 if (in_size == out_size) { in ws_snd_decode_frame()
90 memcpy(samples, buf, out_size); in ws_snd_decode_frame()
Ddvbsub_parser.c50 int out_size = 0; in dvbsub_parse() local
129 out_size += len + 6; in dvbsub_parse()
153 if (out_size > 0) in dvbsub_parse()
156 *poutbuf_size = out_size; in dvbsub_parse()
Dmediacodecdec.c72 static int h2645_ps_to_nalu(const uint8_t *src, int src_size, uint8_t **out, int *out_size) in h2645_ps_to_nalu() argument
79 if (!out || !out_size) { in h2645_ps_to_nalu()
89 *out_size = sizeof(nalu_header) + src_size; in h2645_ps_to_nalu()
95 for (i = 4; i < *out_size; i++) { in h2645_ps_to_nalu()
96 if (i < *out_size - 3 && in h2645_ps_to_nalu()
102 *out_size += 1; in h2645_ps_to_nalu()
103 new = av_realloc(*out, *out_size); in h2645_ps_to_nalu()
111 memmove(p + i + 1, p + i, *out_size - (i + 1)); in h2645_ps_to_nalu()
118 *out_size = 0; in h2645_ps_to_nalu()
Drle.c53 int ff_rle_encode(uint8_t *outbuf, int out_size, const uint8_t *ptr, int bpp, in ff_rle_encode() argument
62 if (out + bpp + 1 > outbuf + out_size) in ff_rle_encode()
71 if (out + bpp * count >= outbuf + out_size) in ff_rle_encode()
/third_party/ffmpeg/libavformat/
Drtmphttp.c47 int out_size; ///< current output buffer size member
66 rt->out_size, 0); in rtmp_http_send_cmd()
73 rt->out_size = 0; in rtmp_http_send_cmd()
89 if (rt->out_size + size > rt->out_capacity) { in rtmp_http_write()
91 rt->out_capacity = (rt->out_size + size) * 2; in rtmp_http_write()
93 rt->out_size = 0; in rtmp_http_write()
99 memcpy(rt->out_data + rt->out_size, buf, size); in rtmp_http_write()
100 rt->out_size += size; in rtmp_http_write()
126 if (rt->out_size > 0) { in rtmp_http_read()
172 rt->out_size = 0; in rtmp_http_close()
Ddata_uri.c75 size_t out_size = 3 * (in_size / 4) + 1; in data_open() local
77 if (out_size > INT_MAX || !(ddata = av_malloc(out_size))) in data_open()
79 if ((ret = av_base64_decode(ddata, data, out_size)) < 0) { in data_open()
Dxa.c39 uint32_t out_size; member
79 xa->out_size = avio_rl32(pb); in xa_read_header()
108 if (xa->sent_bytes >= xa->out_size) in xa_read_packet()
Dwestwood_aud.c151 int out_size = AV_RL16(&preamble[2]); in wsaud_read_packet() local
156 AV_WL16(&pkt->data[0], out_size); in wsaud_read_packet()
159 pkt->duration = out_size; in wsaud_read_packet()
Dcrypto.c332 int total_size, blocks, pad_len, out_size; in crypto_write() local
337 out_size = total_size - pad_len; in crypto_write()
338 blocks = out_size / BLOCKSIZE; in crypto_write()
340 if (out_size) { in crypto_write()
341 av_fast_malloc(&c->write_buf, &c->write_buf_size, out_size); in crypto_write()
357 ret = ffurl_write(c->hd, c->write_buf, out_size); in crypto_write()
/third_party/libwebsockets/include/libwebsockets/
Dlws-sha1-base64.h57 lws_b64_encode_string(const char *in, int in_len, char *out, int out_size);
69 lws_b64_encode_string_url(const char *in, int in_len, char *out, int out_size);
80 lws_b64_decode_string(const char *in, char *out, int out_size);
92 lws_b64_decode_string_len(const char *in, int in_len, char *out, int out_size);
107 uint8_t *out, size_t *out_size, int final);
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/
Dsymbolize_darwin.inc64 bool Symbolize(const void* pc, char* out, int out_size) {
65 if (out_size <= 0 || pc == nullptr) {
81 if (len + 1 <= static_cast<size_t>(out_size)) { // +1 for '\0'
86 strncpy(out, symbol.c_str(), out_size);
89 if (out[out_size - 1] != '\0') {
92 int ellipsis_size = std::min<int>(sizeof(kEllipsis) - 1, out_size - 1);
93 memcpy(out + out_size - ellipsis_size - 1, kEllipsis, ellipsis_size);
94 out[out_size - 1] = '\0';
Dsymbolize_win32.inc57 bool Symbolize(const void* pc, char* out, int out_size) {
58 if (out_size <= 0) {
68 strncpy(out, symbol->Name, out_size);
69 if (out[out_size - 1] != '\0') {
73 std::min<int>(sizeof(kEllipsis) - 1, out_size - 1);
74 memcpy(out + out_size - ellipsis_size - 1, kEllipsis, ellipsis_size);
75 out[out_size - 1] = '\0';
Dsymbolize_emscripten.inc47 bool Symbolize(const void* pc, char* out, int out_size) {
58 strncpy(out, func_name, out_size);
60 if (out[out_size - 1] != '\0') {
63 int ellipsis_size = std::min<int>(sizeof(kEllipsis) - 1, out_size - 1);
64 memcpy(out + out_size - ellipsis_size - 1, kEllipsis, ellipsis_size);
65 out[out_size - 1] = '\0';
/third_party/ffmpeg/libavformat/tests/
Dmovenc.c55 int out_size; variable
101 out_size += size; in io_write()
129 (type != AVIO_DATA_MARKER_HEADER || out_size == 0) && in io_write_data_type()
150 out_size = 0; in init_out()
159 printf(" %d %s\n", out_size, cur_name); in close_out()
494 check(out_size == 0, "delay_moov flushed prematurely"); in main()
499 check(out_size > 0, "delay_moov didn't output anything"); in main()
508 check(out_size > 0, "No moov written"); in main()
530 check(out_size > 0, "No automatic flush?"); in main()
531 empty_moov_pos = prev_pos = out_size; in main()
[all …]
/third_party/skia/third_party/externals/libwebp/imageio/
Dpnmdec.c50 char out[MAX_LINE_SIZE + 1], size_t* const out_size) { in ReadLine() argument
52 *out_size = 0; in ReadLine()
63 *out_size = i; in ReadLine()
75 size_t out_size; in ReadPAMFields() local
80 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadPAMFields()
115 if (out_size > 20) sprintf(out + 20 - strlen(kEllipsis), kEllipsis); in ReadPAMFields()
143 size_t out_size; in ReadHeader() local
154 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader()
159 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader()
163 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader()
/third_party/ffmpeg/libavutil/
Dbase64.c81 int av_base64_decode(uint8_t *out, const char *in_str, int out_size) in av_base64_decode() argument
93 end = out + out_size; in av_base64_decode()
145 char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size) in av_base64_encode() argument
155 out_size < AV_BASE64_SIZE(in_size)) in av_base64_encode()
Ddetection_bbox.c21 AVDetectionBBoxHeader *av_detection_bbox_alloc(uint32_t nb_bboxes, size_t *out_size) in av_detection_bbox_alloc() argument
45 if (out_size) in av_detection_bbox_alloc()
46 *out_size = size; in av_detection_bbox_alloc()
Dvideo_enc_params.c28 unsigned int nb_blocks, size_t *out_size) in av_video_enc_params_alloc() argument
51 if (out_size) in av_video_enc_params_alloc()
52 *out_size = size; in av_video_enc_params_alloc()
Dbase64.h42 int av_base64_decode(uint8_t *out, const char *in, int out_size);
60 char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size);
/third_party/protobuf/src/google/protobuf/io/
Dzero_copy_stream_unittest.cc147 int out_size; in WriteToOutput() local
150 if (!output->Next(&out, &out_size)) { in WriteToOutput()
153 EXPECT_GT(out_size, 0); in WriteToOutput()
155 if (in_size <= out_size) { in WriteToOutput()
157 output->BackUp(out_size - in_size); in WriteToOutput()
161 memcpy(out, in, out_size); in WriteToOutput()
162 in += out_size; in WriteToOutput()
163 in_size -= out_size; in WriteToOutput()
171 int out_size = size; in ReadFromInput() local
180 return size - out_size; in ReadFromInput()
[all …]
/third_party/elfutils/libelf/
Delf_compress.c96 size_t out_size = 2 * block; in __libelf_compress() local
97 void *out_buf = malloc (out_size); in __libelf_compress()
159 z.avail_out = out_size - used; in __libelf_compress()
167 used += (out_size - used) - z.avail_out; in __libelf_compress()
177 void *bigger = realloc (out_buf, out_size + block); in __libelf_compress()
184 out_size += block; in __libelf_compress()
/third_party/mbedtls/include/mbedtls/
Dnist_kw.h134 unsigned char *output, size_t *out_len, size_t out_size);
161 unsigned char *output, size_t *out_len, size_t out_size);

12345