Lines Matching defs:size

126     { "buffer_size",    "System data size (in bytes)",                     OFFSET(buffer_size),    AV_OPT_TYPE_INT,    { .i64 = -1 },    -1, INT_MAX, .flags = D|E },
132 { "udplite_coverage", "choose UDPLite head size which should be validated by checksum", OFFSET(udplite_coverage), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, D|E },
133 { "pkt_size", "Maximum UDP packet size", OFFSET(pkt_size), AV_OPT_TYPE_INT, { .i64 = 1472 }, -1, INT_MAX, .flags = D|E },
139 { "fifo_size", "set the UDP receiving circular buffer size, expressed as a number of packets with size of 188 bytes", OFFSET(circular_buffer_size), AV_OPT_TYPE_INT, {.i64 = 7*4096}, 0, INT_MAX, D },
419 * 'pkt_size=n' : set max packet size
883 /* limit the tx buf size to limit latency */
891 /* set udp recv buffer size to the requested value (default UDP_RX_BUF_SIZE) */
900 av_log(h, AV_LOG_DEBUG, "end receive buffer size reported is %d\n", tmp);
902 av_log(h, AV_LOG_WARNING, "attempted to set receive buffer to size %d but it only ended up set as %d\n", s->buffer_size, tmp);
984 static int udp_read(URLContext *h, uint8_t *buf, int size)
997 if (avail) { // >=size) {
1002 if(avail > size){
1003 av_log(h, AV_LOG_WARNING, "Part of datagram lost due to insufficient buffer size\n");
1004 avail = size;
1040 ret = recvfrom(s->udp_fd, buf, size, 0, (struct sockaddr *)&addr, &addr_len);
1048 static int udp_write(URLContext *h, const uint8_t *buf, int size)
1069 if (av_fifo_can_write(s->fifo) < size + 4) {
1074 AV_WL32(tmp, size);
1075 av_fifo_write(s->fifo, tmp, 4); /* size of packet */
1076 av_fifo_write(s->fifo, buf, size); /* the data */
1079 return size;
1089 ret = sendto (s->udp_fd, buf, size, 0,
1093 ret = send(s->udp_fd, buf, size, 0);