Lines Matching refs:size

60 static void sdp_write_address(char *buff, int size, const char *dest_addr,
69 av_strlcatf(buff, size, "c=IN %s %s/%d\r\n", dest_type, dest_addr, ttl);
71 av_strlcatf(buff, size, "c=IN %s %s\r\n", dest_type, dest_addr);
76 static void sdp_write_header(char *buff, int size, struct sdp_session_level *s)
78 av_strlcatf(buff, size, "v=%d\r\n"
84 sdp_write_address(buff, size, s->dst_addr, s->dst_type, s->ttl);
85 av_strlcatf(buff, size, "t=%d %d\r\n"
91 static int resolve_destination(char *dest_addr, int size, char *type,
106 getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size,
117 static int resolve_destination(char *dest_addr, int size, char *type,
124 static int sdp_get_address(char *dest_addr, int size, int *ttl, const char *url)
130 av_url_split(proto, sizeof(proto), NULL, 0, dest_addr, size, &port, NULL, 0, url);
402 2 + // packet size
404 2 + // header size
426 config[11] = 0; // size of comment header; nonexistent
511 static int sdp_write_media_attributes(char *buff, int size, const AVStream *st,
520 av_strlcatf(buff, size, "a=rtpmap:%d VC2/90000\r\n", payload_type);
532 av_strlcatf(buff, size, "a=rtpmap:%d H264/90000\r\n"
547 av_strlcatf(buff, size, "a=rtpmap:%d H261/90000\r\n", payload_type);
549 av_strlcatf(buff, size, "a=fmtp:%d %s\r\n", payload_type, pic_fmt);
555 * actually specifies the maximum video size, but we only know
556 * the current size. This is required for playback on Android
561 av_strlcatf(buff, size, "a=rtpmap:%d H263-2000/90000\r\n"
572 av_strlcatf(buff, size, "a=rtpmap:%d H265/90000\r\n", payload_type);
574 av_strlcatf(buff, size, "a=fmtp:%d %s\r\n",
583 av_strlcatf(buff, size, "a=rtpmap:%d MP4V-ES/90000\r\n"
594 av_strlcatf(buff, size, "a=rtpmap:%d MP4A-LATM/%d/%d\r\n"
610 av_strlcatf(buff, size, "a=rtpmap:%d MPEG4-GENERIC/%d/%d\r\n"
620 av_strlcatf(buff, size, "a=rtpmap:%d L16/%d/%d\r\n",
626 av_strlcatf(buff, size, "a=rtpmap:%d L24/%d/%d\r\n",
632 av_strlcatf(buff, size, "a=rtpmap:%d PCMU/%d/%d\r\n",
638 av_strlcatf(buff, size, "a=rtpmap:%d PCMA/%d/%d\r\n",
643 av_strlcatf(buff, size, "a=rtpmap:%d AMR/%d/%d\r\n"
649 av_strlcatf(buff, size, "a=rtpmap:%d AMR-WB/%d/%d\r\n"
664 av_strlcatf(buff, size, "a=rtpmap:%d vorbis/%d/%d\r\n"
695 av_strlcatf(buff, size, "a=rtpmap:%d theora/90000\r\n"
730 av_strlcatf(buff, size, "a=rtpmap:%d raw/90000\r\n"
737 av_strlcatf(buff, size, "; interlace");
738 av_strlcatf(buff, size, "\r\n");
743 av_strlcatf(buff, size, "a=rtpmap:%d VP8/90000\r\n",
747 av_strlcatf(buff, size, "a=rtpmap:%d VP9/90000\r\n",
752 av_strlcatf(buff, size, "a=rtpmap:%d JPEG/90000\r\n",
757 av_strlcatf(buff, size, "a=rtpmap:%d G722/%d/%d\r\n",
763 av_strlcatf(buff, size, "a=rtpmap:%d AAL2-G726-%d/%d\r\n",
771 av_strlcatf(buff, size, "a=rtpmap:%d G726-%d/%d\r\n",
778 av_strlcatf(buff, size, "a=rtpmap:%d iLBC/%d\r\n"
784 av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n",
794 av_strlcatf(buff, size, "a=rtpmap:%d opus/48000/2\r\n",
797 av_strlcatf(buff, size, "a=fmtp:%d sprop-stereo=1\r\n",
811 int ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx,
828 av_strlcatf(buff, size, "m=%s %d RTP/AVP %d\r\n", type, port, payload_type);
829 sdp_write_address(buff, size, dest_addr, dest_type, ttl);
831 av_strlcatf(buff, size, "b=AS:%"PRId64"\r\n", p->bit_rate / 1000);
834 return sdp_write_media_attributes(buff, size, st, payload_type, fmt);
837 int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size)
844 memset(buf, 0, size);
868 sdp_write_header(buf, size, &s);
880 int ret = ff_sdp_write_media(buf, size, ac[i]->streams[j], index++,
888 av_strlcatf(buf, size,
898 av_strlcatf(buf, size,
910 int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size)
915 int ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx,