/usr/share/gir-1.0/GstRtp-0.10.gir is in libgstreamer-plugins-base0.10-dev 0.10.36-1ubuntu0.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GLib" version="2.0"/>
<include name="GModule" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gst" version="0.10"/>
<include name="GstBase" version="0.10"/>
<include name="libxml2" version="2.0"/>
<package name="gstreamer-rtp-0.10"/>
<c:include name="gst/rtp/gstbasertpaudiopayload.h"/>
<c:include name="gst/rtp/gstbasertpdepayload.h"/>
<c:include name="gst/rtp/gstbasertppayload.h"/>
<c:include name="gst/rtp/gstrtcpbuffer.h"/>
<c:include name="gst/rtp/gstrtpbuffer.h"/>
<c:include name="gst/rtp/gstrtppayloads.h"/>
<namespace name="GstRtp"
version="0.10"
shared-library="libgstrtp-0.10.so.0"
c:identifier-prefixes="Gst"
c:symbol-prefixes="gst">
<class name="BaseRTPAudioPayload"
c:symbol-prefix="base_rtp_audio_payload"
c:type="GstBaseRTPAudioPayload"
parent="BaseRTPPayload"
glib:type-name="GstBaseRTPAudioPayload"
glib:get-type="gst_base_rtp_audio_payload_get_type"
glib:type-struct="BaseRTPAudioPayloadClass">
<doc xml:whitespace="preserve">Provides a base class for audio RTP payloaders for frame or sample based
audio codecs (constant bitrate)
This class derives from GstBaseRTPPayload. It can be used for payloading
audio codecs. It will only work with constant bitrate codecs. It supports
both frame based and sample based codecs. It takes care of packing up the
audio data into RTP packets and filling up the headers accordingly. The
payloading is done based on the maximum MTU (mtu) and the maximum time per
packet (max-ptime). The general idea is to divide large data buffers into
smaller RTP packets. The RTP packet size is the minimum of either the MTU,
max-ptime (if set) or available data. The RTP packet size is always larger or
equal to min-ptime (if set). If min-ptime is not set, any residual data is
sent in a last RTP packet. In the case of frame based codecs, the resulting
RTP packets always contain full frames.
<refsect2>
<title>Usage</title>
<para>
To use this base class, your child element needs to call either
gst_base_rtp_audio_payload_set_frame_based() or
gst_base_rtp_audio_payload_set_sample_based(). This is usually done in the
element's _init() function. Then, the child element must call either
gst_base_rtp_audio_payload_set_frame_options(),
gst_base_rtp_audio_payload_set_sample_options() or
gst_base_rtp_audio_payload_set_samplebits_options. Since
GstBaseRTPAudioPayload derives from GstBaseRTPPayload, the child element
must set any variables or call/override any functions required by that base
class. The child element does not need to override any other functions
specific to GstBaseRTPAudioPayload.
</para>
</refsect2></doc>
<method name="flush"
c:identifier="gst_base_rtp_audio_payload_flush"
version="0.10.25">
<doc xml:whitespace="preserve">Create an RTP buffer and store @payload_len bytes of the adapter as the
payload. Set the timestamp on the new buffer to @timestamp before pushing
the buffer downstream.
If @payload_len is -1, all pending bytes will be flushed. If @timestamp is
-1, the timestamp will be calculated automatically.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstFlowReturn</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="payload_len" transfer-ownership="none">
<doc xml:whitespace="preserve">length of payload</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstClockTime</doc>
<type name="Gst.ClockTime" c:type="GstClockTime"/>
</parameter>
</parameters>
</method>
<method name="get_adapter"
c:identifier="gst_base_rtp_audio_payload_get_adapter"
version="0.10.13"
introspectable="0">
<doc xml:whitespace="preserve">Gets the internal adapter used by the depayloader.</doc>
<return-value>
<doc xml:whitespace="preserve">a #GstAdapter.</doc>
<type name="GstBase.Adapter" c:type="GstAdapter*"/>
</return-value>
</method>
<method name="push"
c:identifier="gst_base_rtp_audio_payload_push"
version="0.10.13">
<doc xml:whitespace="preserve">Create an RTP buffer and store @payload_len bytes of @data as the
payload. Set the timestamp on the new buffer to @timestamp before pushing
the buffer downstream.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstFlowReturn</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">data to set as payload</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="payload_len" transfer-ownership="none">
<doc xml:whitespace="preserve">length of payload</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstClockTime</doc>
<type name="Gst.ClockTime" c:type="GstClockTime"/>
</parameter>
</parameters>
</method>
<method name="set_frame_based"
c:identifier="gst_base_rtp_audio_payload_set_frame_based">
<doc xml:whitespace="preserve">Tells #GstBaseRTPAudioPayload that the child element is for a frame based
audio codec</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="set_frame_options"
c:identifier="gst_base_rtp_audio_payload_set_frame_options">
<doc xml:whitespace="preserve">Sets the options for frame based audio codecs.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="frame_duration" transfer-ownership="none">
<doc xml:whitespace="preserve">The duraction of an audio frame in milliseconds.</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:whitespace="preserve">The size of an audio frame in bytes.</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="set_sample_based"
c:identifier="gst_base_rtp_audio_payload_set_sample_based">
<doc xml:whitespace="preserve">Tells #GstBaseRTPAudioPayload that the child element is for a sample based
audio codec</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="set_sample_options"
c:identifier="gst_base_rtp_audio_payload_set_sample_options">
<doc xml:whitespace="preserve">Sets the options for sample based audio codecs.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sample_size" transfer-ownership="none">
<doc xml:whitespace="preserve">Size per sample in bytes.</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="set_samplebits_options"
c:identifier="gst_base_rtp_audio_payload_set_samplebits_options"
version="0.10.18">
<doc xml:whitespace="preserve">Sets the options for sample based audio codecs.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="sample_size" transfer-ownership="none">
<doc xml:whitespace="preserve">Size per sample in bits.</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</method>
<property name="buffer-list" writable="1" transfer-ownership="none">
<type name="gboolean"/>
</property>
<field name="payload">
<type name="BaseRTPPayload" c:type="GstBaseRTPPayload"/>
</field>
<field name="priv">
<type name="BaseRTPAudioPayloadPrivate"
c:type="GstBaseRTPAudioPayloadPrivate*"/>
</field>
<field name="base_ts">
<type name="Gst.ClockTime" c:type="GstClockTime"/>
</field>
<field name="frame_size">
<type name="gint" c:type="gint"/>
</field>
<field name="frame_duration">
<type name="gint" c:type="gint"/>
</field>
<field name="sample_size">
<type name="gint" c:type="gint"/>
</field>
<field name="_gst_reserved">
<array zero-terminated="0" c:type="gpointer" fixed-size="4">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</class>
<record name="BaseRTPAudioPayloadClass"
c:type="GstBaseRTPAudioPayloadClass"
glib:is-gtype-struct-for="BaseRTPAudioPayload">
<doc xml:whitespace="preserve">Base class for audio RTP payloader.</doc>
<field name="parent_class">
<type name="BaseRTPPayloadClass" c:type="GstBaseRTPPayloadClass"/>
</field>
<field name="_gst_reserved" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="4">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<record name="BaseRTPAudioPayloadPrivate"
c:type="GstBaseRTPAudioPayloadPrivate"
disguised="1">
</record>
<class name="BaseRTPDepayload"
c:symbol-prefix="base_rtp_depayload"
c:type="GstBaseRTPDepayload"
parent="Gst.Element"
glib:type-name="GstBaseRTPDepayload"
glib:get-type="gst_base_rtp_depayload_get_type"
glib:type-struct="BaseRTPDepayloadClass">
<doc xml:whitespace="preserve">Provides a base class for RTP depayloaders</doc>
<virtual-method name="add_to_queue">
<return-value transfer-ownership="none">
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="in" transfer-ownership="none">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="handle_event">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="event" transfer-ownership="none">
<type name="Gst.Event" c:type="GstEvent*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="packet_lost">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="event" transfer-ownership="none">
<type name="Gst.Event" c:type="GstEvent*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="process" introspectable="0">
<return-value>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="in" transfer-ownership="none">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="set_caps">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="caps" transfer-ownership="none">
<type name="Gst.Caps" c:type="GstCaps*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="set_gst_timestamp">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="buf" transfer-ownership="none">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</virtual-method>
<method name="push" c:identifier="gst_base_rtp_depayload_push">
<doc xml:whitespace="preserve">Push @out_buf to the peer of @filter. This function takes ownership of
@out_buf.
Unlike gst_base_rtp_depayload_push_ts(), this function will not apply
any timestamp on the outgoing buffer. Subclasses should therefore timestamp
outgoing buffers themselves.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstFlowReturn.</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="out_buf" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBuffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</method>
<method name="push_list"
c:identifier="gst_base_rtp_depayload_push_list"
version="0.10.32">
<doc xml:whitespace="preserve">Push @out_list to the peer of @filter. This function takes ownership of
@out_list.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstFlowReturn.</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="out_list" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBufferList</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
</method>
<method name="push_ts" c:identifier="gst_base_rtp_depayload_push_ts">
<doc xml:whitespace="preserve">Push @out_buf to the peer of @filter. This function takes ownership of
@out_buf.
Unlike gst_base_rtp_depayload_push(), this function will by default apply
the last incomming timestamp on the outgoing buffer when it didn't have a
timestamp already. The set_get_timestamp vmethod can be overwritten to change
this behaviour (and take, for example, @timestamp into account).</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstFlowReturn.</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:whitespace="preserve">an RTP timestamp to apply</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="out_buf" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBuffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</method>
<property name="queue-delay" writable="1" transfer-ownership="none">
<type name="guint"/>
</property>
<field name="parent">
<type name="Gst.Element" c:type="GstElement"/>
</field>
<field name="sinkpad">
<type name="Gst.Pad" c:type="GstPad*"/>
</field>
<field name="srcpad">
<type name="Gst.Pad" c:type="GstPad*"/>
</field>
<field name="queuelock" introspectable="0">
<type c:type="GStaticRecMutex"/>
</field>
<field name="thread_running">
<type name="gboolean" c:type="gboolean"/>
</field>
<field name="thread">
<type name="GLib.Thread" c:type="GThread*"/>
</field>
<field name="clock_rate">
<type name="guint" c:type="guint"/>
</field>
<field name="queue_delay">
<type name="guint" c:type="guint"/>
</field>
<field name="queue">
<type name="GLib.Queue" c:type="GQueue*"/>
</field>
<field name="segment">
<type name="Gst.Segment" c:type="GstSegment"/>
</field>
<field name="need_newsegment">
<type name="gboolean" c:type="gboolean"/>
</field>
<field name="priv" readable="0" private="1">
<type name="BaseRTPDepayloadPrivate"
c:type="GstBaseRTPDepayloadPrivate*"/>
</field>
<field name="_gst_reserved" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="3">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</class>
<record name="BaseRTPDepayloadClass"
c:type="GstBaseRTPDepayloadClass"
glib:is-gtype-struct-for="BaseRTPDepayload">
<doc xml:whitespace="preserve">Base class for audio RTP payloader.</doc>
<field name="parent_class">
<type name="Gst.ElementClass" c:type="GstElementClass"/>
</field>
<field name="set_caps">
<callback name="set_caps">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="filter" transfer-ownership="none">
<type name="BaseRTPDepayload" c:type="GstBaseRTPDepayload*"/>
</parameter>
<parameter name="caps" transfer-ownership="none">
<type name="Gst.Caps" c:type="GstCaps*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="add_to_queue">
<callback name="add_to_queue">
<return-value transfer-ownership="none">
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="filter" transfer-ownership="none">
<type name="BaseRTPDepayload" c:type="GstBaseRTPDepayload*"/>
</parameter>
<parameter name="in" transfer-ownership="none">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="process" introspectable="0">
<callback name="process" introspectable="0">
<return-value>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="base" transfer-ownership="none">
<type name="BaseRTPDepayload" c:type="GstBaseRTPDepayload*"/>
</parameter>
<parameter name="in" transfer-ownership="none">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="set_gst_timestamp">
<callback name="set_gst_timestamp">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="filter" transfer-ownership="none">
<type name="BaseRTPDepayload" c:type="GstBaseRTPDepayload*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="buf" transfer-ownership="none">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="packet_lost">
<callback name="packet_lost">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="filter" transfer-ownership="none">
<type name="BaseRTPDepayload" c:type="GstBaseRTPDepayload*"/>
</parameter>
<parameter name="event" transfer-ownership="none">
<type name="Gst.Event" c:type="GstEvent*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="handle_event">
<callback name="handle_event">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="filter" transfer-ownership="none">
<type name="BaseRTPDepayload" c:type="GstBaseRTPDepayload*"/>
</parameter>
<parameter name="event" transfer-ownership="none">
<type name="Gst.Event" c:type="GstEvent*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="_gst_reserved" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="2">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<record name="BaseRTPDepayloadPrivate"
c:type="GstBaseRTPDepayloadPrivate"
disguised="1">
</record>
<class name="BaseRTPPayload"
c:symbol-prefix="basertppayload"
c:type="GstBaseRTPPayload"
parent="Gst.Element"
abstract="1"
glib:type-name="GstBaseRTPPayload"
glib:get-type="gst_basertppayload_get_type"
glib:type-struct="BaseRTPPayloadClass">
<doc xml:whitespace="preserve">Provides a base class for RTP payloaders</doc>
<virtual-method name="get_caps">
<return-value transfer-ownership="full">
<type name="Gst.Caps" c:type="GstCaps*"/>
</return-value>
<parameters>
<parameter name="pad" transfer-ownership="none">
<type name="Gst.Pad" c:type="GstPad*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="handle_buffer">
<return-value transfer-ownership="none">
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="set_caps">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="caps" transfer-ownership="none">
<type name="Gst.Caps" c:type="GstCaps*"/>
</parameter>
</parameters>
</virtual-method>
<method name="is_filled" c:identifier="gst_basertppayload_is_filled">
<doc xml:whitespace="preserve">Check if the packet with @size and @duration would exceed the configured
maximum size.
configured MTU or max_ptime.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the packet of @size and @duration would exceed the</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the packet</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="duration" transfer-ownership="none">
<doc xml:whitespace="preserve">the duration of the packet</doc>
<type name="Gst.ClockTime" c:type="GstClockTime"/>
</parameter>
</parameters>
</method>
<method name="push" c:identifier="gst_basertppayload_push">
<doc xml:whitespace="preserve">Push @buffer to the peer element of the payloader. The SSRC, payload type,
seqnum and timestamp of the RTP buffer will be updated first.
This function takes ownership of @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstFlowReturn.</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBuffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</method>
<method name="push_list"
c:identifier="gst_basertppayload_push_list"
version="0.10.24">
<doc xml:whitespace="preserve">Push @list to the peer element of the payloader. The SSRC, payload type,
seqnum and timestamp of the RTP buffer will be updated first.
This function takes ownership of @list.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstFlowReturn.</doc>
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBufferList</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
</method>
<method name="set_options" c:identifier="gst_basertppayload_set_options">
<doc xml:whitespace="preserve">Set the rtp options of the payloader. These options will be set in the caps
of the payloader. Subclasses must call this method before calling
gst_basertppayload_push() or gst_basertppayload_set_outcaps().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="media" transfer-ownership="none">
<doc xml:whitespace="preserve">the media type (typically "audio" or "video")</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="dynamic" transfer-ownership="none">
<doc xml:whitespace="preserve">if the payload type is dynamic</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="encoding_name" transfer-ownership="none">
<doc xml:whitespace="preserve">the encoding name</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="clock_rate" transfer-ownership="none">
<doc xml:whitespace="preserve">the clock rate of the media</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="set_outcaps"
c:identifier="gst_basertppayload_set_outcaps"
introspectable="0">
<doc xml:whitespace="preserve">Configure the output caps with the optional parameters.
Variable arguments should be in the form field name, field type
(as a GType), value(s). The last variable argument should be NULL.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the caps could be set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="fieldname" transfer-ownership="none">
<doc xml:whitespace="preserve">the first field name or %NULL</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter transfer-ownership="none">
<varargs>
</varargs>
</parameter>
</parameters>
</method>
<property name="max-ptime" writable="1" transfer-ownership="none">
<type name="gint64"/>
</property>
<property name="min-ptime" writable="1" transfer-ownership="none">
<type name="gint64"/>
</property>
<property name="mtu" writable="1" transfer-ownership="none">
<type name="guint"/>
</property>
<property name="perfect-rtptime" writable="1" transfer-ownership="none">
<type name="gboolean"/>
</property>
<property name="pt" writable="1" transfer-ownership="none">
<type name="guint"/>
</property>
<property name="ptime-multiple" writable="1" transfer-ownership="none">
<type name="gint64"/>
</property>
<property name="seqnum" transfer-ownership="none">
<type name="guint"/>
</property>
<property name="seqnum-offset" writable="1" transfer-ownership="none">
<type name="gint"/>
</property>
<property name="ssrc" writable="1" transfer-ownership="none">
<type name="guint"/>
</property>
<property name="timestamp" transfer-ownership="none">
<type name="guint"/>
</property>
<property name="timestamp-offset" writable="1" transfer-ownership="none">
<type name="guint"/>
</property>
<field name="element">
<type name="Gst.Element" c:type="GstElement"/>
</field>
<field name="sinkpad" readable="0" private="1">
<type name="Gst.Pad" c:type="GstPad*"/>
</field>
<field name="srcpad" readable="0" private="1">
<type name="Gst.Pad" c:type="GstPad*"/>
</field>
<field name="seq_rand" readable="0" private="1">
<type name="GLib.Rand" c:type="GRand*"/>
</field>
<field name="ssrc_rand" readable="0" private="1">
<type name="GLib.Rand" c:type="GRand*"/>
</field>
<field name="ts_rand" readable="0" private="1">
<type name="GLib.Rand" c:type="GRand*"/>
</field>
<field name="ts_base" readable="0" private="1">
<type name="guint32" c:type="guint32"/>
</field>
<field name="seqnum_base" readable="0" private="1">
<type name="guint16" c:type="guint16"/>
</field>
<field name="media" readable="0" private="1">
<type name="utf8" c:type="gchar*"/>
</field>
<field name="encoding_name" readable="0" private="1">
<type name="utf8" c:type="gchar*"/>
</field>
<field name="dynamic" readable="0" private="1">
<type name="gboolean" c:type="gboolean"/>
</field>
<field name="clock_rate" readable="0" private="1">
<type name="guint32" c:type="guint32"/>
</field>
<field name="ts_offset" readable="0" private="1">
<type name="gint32" c:type="gint32"/>
</field>
<field name="timestamp" readable="0" private="1">
<type name="guint32" c:type="guint32"/>
</field>
<field name="seqnum_offset" readable="0" private="1">
<type name="gint16" c:type="gint16"/>
</field>
<field name="seqnum" readable="0" private="1">
<type name="guint16" c:type="guint16"/>
</field>
<field name="max_ptime" readable="0" private="1">
<type name="gint64" c:type="gint64"/>
</field>
<field name="pt" readable="0" private="1">
<type name="guint" c:type="guint"/>
</field>
<field name="ssrc" readable="0" private="1">
<type name="guint" c:type="guint"/>
</field>
<field name="current_ssrc" readable="0" private="1">
<type name="guint" c:type="guint"/>
</field>
<field name="mtu" readable="0" private="1">
<type name="guint" c:type="guint"/>
</field>
<field name="segment" readable="0" private="1">
<type name="Gst.Segment" c:type="GstSegment"/>
</field>
<field name="min_ptime" readable="0" private="1">
<type name="guint64" c:type="guint64"/>
</field>
<field name="priv" readable="0" private="1">
<type name="BaseRTPPayloadPrivate" c:type="GstBaseRTPPayloadPrivate*"/>
</field>
<union name="abidata" c:type="abidata">
<record name="ABI" c:type="ABI">
<field name="ptime" writable="1">
<type name="guint64" c:type="guint64"/>
</field>
<field name="ptime_multiple" writable="1">
<type name="guint64" c:type="guint64"/>
</field>
</record>
<field name="_gst_reserved" writable="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="3">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</union>
</class>
<record name="BaseRTPPayloadClass"
c:type="GstBaseRTPPayloadClass"
glib:is-gtype-struct-for="BaseRTPPayload">
<doc xml:whitespace="preserve">Base class for audio RTP payloader.</doc>
<field name="parent_class">
<type name="Gst.ElementClass" c:type="GstElementClass"/>
</field>
<field name="set_caps">
<callback name="set_caps">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="payload" transfer-ownership="none">
<type name="BaseRTPPayload" c:type="GstBaseRTPPayload*"/>
</parameter>
<parameter name="caps" transfer-ownership="none">
<type name="Gst.Caps" c:type="GstCaps*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="handle_buffer">
<callback name="handle_buffer">
<return-value transfer-ownership="none">
<type name="Gst.FlowReturn" c:type="GstFlowReturn"/>
</return-value>
<parameters>
<parameter name="payload" transfer-ownership="none">
<type name="BaseRTPPayload" c:type="GstBaseRTPPayload*"/>
</parameter>
<parameter name="buffer" transfer-ownership="none">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="handle_event">
<callback name="handle_event">
<return-value transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="pad" transfer-ownership="none">
<type name="Gst.Pad" c:type="GstPad*"/>
</parameter>
<parameter name="event" transfer-ownership="none">
<type name="Gst.Event" c:type="GstEvent*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="get_caps">
<callback name="get_caps">
<return-value transfer-ownership="full">
<type name="Gst.Caps" c:type="GstCaps*"/>
</return-value>
<parameters>
<parameter name="payload" transfer-ownership="none">
<type name="BaseRTPPayload" c:type="GstBaseRTPPayload*"/>
</parameter>
<parameter name="pad" transfer-ownership="none">
<type name="Gst.Pad" c:type="GstPad*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="_gst_reserved" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="2">
<type name="gpointer" c:type="gpointer"/>
</array>
</field>
</record>
<record name="BaseRTPPayloadPrivate"
c:type="GstBaseRTPPayloadPrivate"
disguised="1">
</record>
<enumeration name="RTCPFBType" version="0.10.23" c:type="GstRTCPFBType">
<doc xml:whitespace="preserve">Different types of feedback messages.</doc>
<member name="fb_type_invalid"
value="0"
c:identifier="GST_RTCP_FB_TYPE_INVALID"/>
<member name="rtpfb_type_nack"
value="1"
c:identifier="GST_RTCP_RTPFB_TYPE_NACK"/>
<member name="rtpfb_type_tmmbr"
value="3"
c:identifier="GST_RTCP_RTPFB_TYPE_TMMBR"/>
<member name="rtpfb_type_tmmbn"
value="4"
c:identifier="GST_RTCP_RTPFB_TYPE_TMMBN"/>
<member name="psfb_type_pli"
value="1"
c:identifier="GST_RTCP_PSFB_TYPE_PLI"/>
<member name="psfb_type_sli"
value="2"
c:identifier="GST_RTCP_PSFB_TYPE_SLI"/>
<member name="psfb_type_rpsi"
value="3"
c:identifier="GST_RTCP_PSFB_TYPE_RPSI"/>
<member name="psfb_type_afb"
value="15"
c:identifier="GST_RTCP_PSFB_TYPE_AFB"/>
<member name="psfb_type_fir"
value="4"
c:identifier="GST_RTCP_PSFB_TYPE_FIR"/>
<member name="psfb_type_tstr"
value="5"
c:identifier="GST_RTCP_PSFB_TYPE_TSTR"/>
<member name="psfb_type_tstn"
value="6"
c:identifier="GST_RTCP_PSFB_TYPE_TSTN"/>
<member name="psfb_type_vbcn"
value="7"
c:identifier="GST_RTCP_PSFB_TYPE_VBCN"/>
</enumeration>
<record name="RTCPPacket" c:type="GstRTCPPacket">
<doc xml:whitespace="preserve">Data structure that points to a packet at @offset in @buffer.
The size of the structure is made public to allow stack allocations.</doc>
<field name="buffer" writable="1">
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</field>
<field name="offset" writable="1">
<type name="guint" c:type="guint"/>
</field>
<field name="padding" readable="0" private="1">
<type name="gboolean" c:type="gboolean"/>
</field>
<field name="count" readable="0" private="1">
<type name="guint8" c:type="guint8"/>
</field>
<field name="type" readable="0" private="1">
<type name="RTCPType" c:type="GstRTCPType"/>
</field>
<field name="length" readable="0" private="1">
<type name="guint16" c:type="guint16"/>
</field>
<field name="item_offset" readable="0" private="1">
<type name="guint" c:type="guint"/>
</field>
<field name="item_count" readable="0" private="1">
<type name="guint" c:type="guint"/>
</field>
<field name="entry_offset" readable="0" private="1">
<type name="guint" c:type="guint"/>
</field>
<method name="add_rb" c:identifier="gst_rtcp_packet_add_rb">
<doc xml:whitespace="preserve">Add a new report block to @packet with the given values.
the max MTU is exceeded or the number of report blocks is greater than
#GST_RTCP_MAX_RB_COUNT.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the packet was created. This function can return %FALSE if</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">data source being reported</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="fractionlost" transfer-ownership="none">
<doc xml:whitespace="preserve">fraction lost since last SR/RR</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="packetslost" transfer-ownership="none">
<doc xml:whitespace="preserve">the cumululative number of packets lost</doc>
<type name="gint32" c:type="gint32"/>
</parameter>
<parameter name="exthighestseq" transfer-ownership="none">
<doc xml:whitespace="preserve">the extended last sequence number received</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="jitter" transfer-ownership="none">
<doc xml:whitespace="preserve">the interarrival jitter</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="lsr" transfer-ownership="none">
<doc xml:whitespace="preserve">the last SR packet from this source</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="dlsr" transfer-ownership="none">
<doc xml:whitespace="preserve">the delay since last SR packet</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="bye_add_ssrc" c:identifier="gst_rtcp_packet_bye_add_ssrc">
<doc xml:whitespace="preserve">Add @ssrc to the BYE @packet.
the max MTU is exceeded or the number of sources blocks is greater than
#GST_RTCP_MAX_BYE_SSRC_COUNT.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the ssrc was added. This function can return %FALSE if</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">an SSRC to add</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="bye_add_ssrcs"
c:identifier="gst_rtcp_packet_bye_add_ssrcs">
<doc xml:whitespace="preserve">Adds @len SSRCs in @ssrc to BYE @packet.
the max MTU is exceeded or the number of sources blocks is greater than
#GST_RTCP_MAX_BYE_SSRC_COUNT.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the all the SSRCs were added. This function can return %FALSE if</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">an array of SSRCs to add</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">number of elements in @ssrc</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="bye_get_nth_ssrc"
c:identifier="gst_rtcp_packet_bye_get_nth_ssrc">
<doc xml:whitespace="preserve">Get the @nth SSRC of the BYE @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The @nth SSRC of @packet.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
<parameters>
<parameter name="nth" transfer-ownership="none">
<doc xml:whitespace="preserve">the nth SSRC to get</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="bye_get_reason"
c:identifier="gst_rtcp_packet_bye_get_reason">
<doc xml:whitespace="preserve">Get the reason in @packet.
a reason string. The string must be freed with g_free() after usage.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The reason for the BYE @packet or NULL if the packet did not contain</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
</method>
<method name="bye_get_reason_len"
c:identifier="gst_rtcp_packet_bye_get_reason_len">
<doc xml:whitespace="preserve">Get the length of the reason string.
present.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The length of the reason string or 0 when there is no reason string</doc>
<type name="guint8" c:type="guint8"/>
</return-value>
</method>
<method name="bye_get_ssrc_count"
c:identifier="gst_rtcp_packet_bye_get_ssrc_count">
<doc xml:whitespace="preserve">Get the number of SSRC fields in @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The number of SSRC fields in @packet.</doc>
<type name="guint" c:type="guint"/>
</return-value>
</method>
<method name="bye_set_reason"
c:identifier="gst_rtcp_packet_bye_set_reason">
<doc xml:whitespace="preserve">Set the reason string to @reason in @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if the string could be set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="reason" transfer-ownership="none">
<doc xml:whitespace="preserve">a reason string</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="fb_get_fci"
c:identifier="gst_rtcp_packet_fb_get_fci"
version="0.10.31">
<doc xml:whitespace="preserve">Get the Feedback Control Information attached to a RTPFB or PSFB @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a pointer to the FCI</doc>
<type name="guint8" c:type="guint8*"/>
</return-value>
</method>
<method name="fb_get_fci_length"
c:identifier="gst_rtcp_packet_fb_get_fci_length"
version="0.10.31">
<doc xml:whitespace="preserve">Get the length of the Feedback Control Information attached to a
RTPFB or PSFB @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The length of the FCI in 32-bit words.</doc>
<type name="guint16" c:type="guint16"/>
</return-value>
</method>
<method name="fb_get_media_ssrc"
c:identifier="gst_rtcp_packet_fb_get_media_ssrc"
version="0.10.23">
<doc xml:whitespace="preserve">Get the media SSRC field of the RTPFB or PSFB @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the media SSRC.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
</method>
<method name="fb_get_sender_ssrc"
c:identifier="gst_rtcp_packet_fb_get_sender_ssrc"
version="0.10.23">
<doc xml:whitespace="preserve">Get the sender SSRC field of the RTPFB or PSFB @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the sender SSRC.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
</method>
<method name="fb_get_type"
c:identifier="gst_rtcp_packet_fb_get_type"
version="0.10.23">
<doc xml:whitespace="preserve">Get the feedback message type of the FB @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The feedback message type.</doc>
<type name="RTCPFBType" c:type="GstRTCPFBType"/>
</return-value>
</method>
<method name="fb_set_fci_length"
c:identifier="gst_rtcp_packet_fb_set_fci_length"
version="0.10.31">
<doc xml:whitespace="preserve">Set the length of the Feedback Control Information attached to a
RTPFB or PSFB @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if there was enough space in the packet to add this much FCI</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="wordlen" transfer-ownership="none">
<doc xml:whitespace="preserve">Length of the FCI in 32-bit words</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
</parameters>
</method>
<method name="fb_set_media_ssrc"
c:identifier="gst_rtcp_packet_fb_set_media_ssrc"
version="0.10.23">
<doc xml:whitespace="preserve">Set the media SSRC field of the RTPFB or PSFB @packet.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">a media SSRC</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="fb_set_sender_ssrc"
c:identifier="gst_rtcp_packet_fb_set_sender_ssrc"
version="0.10.23">
<doc xml:whitespace="preserve">Set the sender SSRC field of the RTPFB or PSFB @packet.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">a sender SSRC</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="fb_set_type"
c:identifier="gst_rtcp_packet_fb_set_type"
version="0.10.23">
<doc xml:whitespace="preserve">Set the feedback message type of the FB @packet.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">the #GstRTCPFBType to set</doc>
<type name="RTCPFBType" c:type="GstRTCPFBType"/>
</parameter>
</parameters>
</method>
<method name="get_count" c:identifier="gst_rtcp_packet_get_count">
<doc xml:whitespace="preserve">Get the count field in @packet.
valid packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The count field in @packet or -1 if @packet does not point to a</doc>
<type name="guint8" c:type="guint8"/>
</return-value>
</method>
<method name="get_length" c:identifier="gst_rtcp_packet_get_length">
<doc xml:whitespace="preserve">Get the length field of @packet. This is the length of the packet in
32-bit words minus one.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The length field of @packet.</doc>
<type name="guint16" c:type="guint16"/>
</return-value>
</method>
<method name="get_padding" c:identifier="gst_rtcp_packet_get_padding">
<doc xml:whitespace="preserve">Get the packet padding of the packet pointed to by @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">If the packet has the padding bit set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="get_rb" c:identifier="gst_rtcp_packet_get_rb">
<doc xml:whitespace="preserve">Parse the values of the @nth report block in @packet and store the result in
the values.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="nth" transfer-ownership="none">
<doc xml:whitespace="preserve">the nth report block in @packet</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">result for data source being reported</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="fractionlost" transfer-ownership="none">
<doc xml:whitespace="preserve">result for fraction lost since last SR/RR</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="packetslost" transfer-ownership="none">
<doc xml:whitespace="preserve">result for the cumululative number of packets lost</doc>
<type name="gint32" c:type="gint32*"/>
</parameter>
<parameter name="exthighestseq" transfer-ownership="none">
<doc xml:whitespace="preserve">result for the extended last sequence number received</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="jitter" transfer-ownership="none">
<doc xml:whitespace="preserve">result for the interarrival jitter</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="lsr" transfer-ownership="none">
<doc xml:whitespace="preserve">result for the last SR packet from this source</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="dlsr" transfer-ownership="none">
<doc xml:whitespace="preserve">result for the delay since last SR packet</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
</parameters>
</method>
<method name="get_rb_count" c:identifier="gst_rtcp_packet_get_rb_count">
<doc xml:whitespace="preserve">Get the number of report blocks in @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The number of report blocks in @packet.</doc>
<type name="guint" c:type="guint"/>
</return-value>
</method>
<method name="get_type" c:identifier="gst_rtcp_packet_get_type">
<doc xml:whitespace="preserve">Get the packet type of the packet pointed to by @packet.
pointing to a valid packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The packet type or GST_RTCP_TYPE_INVALID when @packet is not</doc>
<type name="RTCPType" c:type="GstRTCPType"/>
</return-value>
</method>
<method name="move_to_next" c:identifier="gst_rtcp_packet_move_to_next">
<doc xml:whitespace="preserve">Move the packet pointer @packet to the next packet in the payload.
Use gst_rtcp_buffer_get_first_packet() to initialize @packet.
function.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @packet is pointing to a valid packet after calling this</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="remove" c:identifier="gst_rtcp_packet_remove">
<doc xml:whitespace="preserve">Removes the packet pointed to by @packet and moves pointer to the next one
function.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @packet is pointing to a valid packet after calling this</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="rr_get_ssrc" c:identifier="gst_rtcp_packet_rr_get_ssrc">
<doc xml:whitespace="preserve">Get the ssrc field of the RR @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the ssrc.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
</method>
<method name="rr_set_ssrc" c:identifier="gst_rtcp_packet_rr_set_ssrc">
<doc xml:whitespace="preserve">Set the ssrc field of the RR @packet.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">the SSRC to set</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="sdes_add_entry"
c:identifier="gst_rtcp_packet_sdes_add_entry">
<doc xml:whitespace="preserve">Add a new SDES entry to the current item in @packet.
reached.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the item could be added, %FALSE if the MTU has been</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">the #GstRTCPSDESType of the SDES entry</doc>
<type name="RTCPSDESType" c:type="GstRTCPSDESType"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the data length</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">the data</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
</parameters>
</method>
<method name="sdes_add_item"
c:identifier="gst_rtcp_packet_sdes_add_item">
<doc xml:whitespace="preserve">Add a new SDES item for @ssrc to @packet.
items has been exceeded for the SDES packet or the MTU has been reached.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the item could be added, %FALSE if the maximum amount of</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">the SSRC of the new item to add</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="sdes_copy_entry"
c:identifier="gst_rtcp_packet_sdes_copy_entry">
<doc xml:whitespace="preserve">This function is like gst_rtcp_packet_sdes_get_entry() but it returns a
null-terminated copy of the data instead. use g_free() after usage.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if there was valid data.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">result of the entry type</doc>
<type name="RTCPSDESType" c:type="GstRTCPSDESType*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">result length of the entry data</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">result entry data</doc>
<type name="guint8" c:type="guint8**"/>
</parameter>
</parameters>
</method>
<method name="sdes_first_entry"
c:identifier="gst_rtcp_packet_sdes_first_entry">
<doc xml:whitespace="preserve">Move to the first SDES entry in the current item.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if there was a first entry.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="sdes_first_item"
c:identifier="gst_rtcp_packet_sdes_first_item">
<doc xml:whitespace="preserve">Move to the first SDES item in @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if there was a first item.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="sdes_get_entry"
c:identifier="gst_rtcp_packet_sdes_get_entry">
<doc xml:whitespace="preserve">Get the data of the current SDES item entry. @type (when not NULL) will
contain the type of the entry. @data (when not NULL) will point to @len
bytes.
When @type refers to a text item, @data will point to a UTF8 string. Note
that this UTF8 string is NOT null-terminated. Use
gst_rtcp_packet_sdes_copy_entry() to get a null-terminated copy of the entry.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if there was valid data.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">result of the entry type</doc>
<type name="RTCPSDESType" c:type="GstRTCPSDESType*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">result length of the entry data</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">result entry data</doc>
<type name="guint8" c:type="guint8**"/>
</parameter>
</parameters>
</method>
<method name="sdes_get_item_count"
c:identifier="gst_rtcp_packet_sdes_get_item_count">
<doc xml:whitespace="preserve">Get the number of items in the SDES packet @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The number of items in @packet.</doc>
<type name="guint" c:type="guint"/>
</return-value>
</method>
<method name="sdes_get_ssrc"
c:identifier="gst_rtcp_packet_sdes_get_ssrc">
<doc xml:whitespace="preserve">Get the SSRC of the current SDES item.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the SSRC of the current item.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
</method>
<method name="sdes_next_entry"
c:identifier="gst_rtcp_packet_sdes_next_entry">
<doc xml:whitespace="preserve">Move to the next SDES entry in the current item.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if there was a next entry.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="sdes_next_item"
c:identifier="gst_rtcp_packet_sdes_next_item">
<doc xml:whitespace="preserve">Move to the next SDES item in @packet.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if there was a next item.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="set_rb" c:identifier="gst_rtcp_packet_set_rb">
<doc xml:whitespace="preserve">Set the @nth new report block in @packet with the given values.
Note: Not implemented.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="nth" transfer-ownership="none">
<doc xml:whitespace="preserve">the nth report block to set</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">data source being reported</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="fractionlost" transfer-ownership="none">
<doc xml:whitespace="preserve">fraction lost since last SR/RR</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="packetslost" transfer-ownership="none">
<doc xml:whitespace="preserve">the cumululative number of packets lost</doc>
<type name="gint32" c:type="gint32"/>
</parameter>
<parameter name="exthighestseq" transfer-ownership="none">
<doc xml:whitespace="preserve">the extended last sequence number received</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="jitter" transfer-ownership="none">
<doc xml:whitespace="preserve">the interarrival jitter</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="lsr" transfer-ownership="none">
<doc xml:whitespace="preserve">the last SR packet from this source</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="dlsr" transfer-ownership="none">
<doc xml:whitespace="preserve">the delay since last SR packet</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="sr_get_sender_info"
c:identifier="gst_rtcp_packet_sr_get_sender_info">
<doc xml:whitespace="preserve">Parse the SR sender info and store the values.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">result SSRC</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="ntptime" transfer-ownership="none">
<doc xml:whitespace="preserve">result NTP time</doc>
<type name="guint64" c:type="guint64*"/>
</parameter>
<parameter name="rtptime" transfer-ownership="none">
<doc xml:whitespace="preserve">result RTP time</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="packet_count" transfer-ownership="none">
<doc xml:whitespace="preserve">result packet count</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
<parameter name="octet_count" transfer-ownership="none">
<doc xml:whitespace="preserve">result octet count</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
</parameters>
</method>
<method name="sr_set_sender_info"
c:identifier="gst_rtcp_packet_sr_set_sender_info">
<doc xml:whitespace="preserve">Set the given values in the SR packet @packet.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">the SSRC</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="ntptime" transfer-ownership="none">
<doc xml:whitespace="preserve">the NTP time</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="rtptime" transfer-ownership="none">
<doc xml:whitespace="preserve">the RTP time</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="packet_count" transfer-ownership="none">
<doc xml:whitespace="preserve">the packet count</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="octet_count" transfer-ownership="none">
<doc xml:whitespace="preserve">the octet count</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
</record>
<enumeration name="RTCPSDESType" c:type="GstRTCPSDESType">
<doc xml:whitespace="preserve">Different types of SDES content.</doc>
<member name="invalid" value="-1" c:identifier="GST_RTCP_SDES_INVALID"/>
<member name="end" value="0" c:identifier="GST_RTCP_SDES_END"/>
<member name="cname" value="1" c:identifier="GST_RTCP_SDES_CNAME"/>
<member name="name" value="2" c:identifier="GST_RTCP_SDES_NAME"/>
<member name="email" value="3" c:identifier="GST_RTCP_SDES_EMAIL"/>
<member name="phone" value="4" c:identifier="GST_RTCP_SDES_PHONE"/>
<member name="loc" value="5" c:identifier="GST_RTCP_SDES_LOC"/>
<member name="tool" value="6" c:identifier="GST_RTCP_SDES_TOOL"/>
<member name="note" value="7" c:identifier="GST_RTCP_SDES_NOTE"/>
<member name="priv" value="8" c:identifier="GST_RTCP_SDES_PRIV"/>
</enumeration>
<enumeration name="RTCPType" c:type="GstRTCPType">
<doc xml:whitespace="preserve">Different RTCP packet types.</doc>
<member name="invalid" value="0" c:identifier="GST_RTCP_TYPE_INVALID"/>
<member name="sr" value="200" c:identifier="GST_RTCP_TYPE_SR"/>
<member name="rr" value="201" c:identifier="GST_RTCP_TYPE_RR"/>
<member name="sdes" value="202" c:identifier="GST_RTCP_TYPE_SDES"/>
<member name="bye" value="203" c:identifier="GST_RTCP_TYPE_BYE"/>
<member name="app" value="204" c:identifier="GST_RTCP_TYPE_APP"/>
<member name="rtpfb" value="205" c:identifier="GST_RTCP_TYPE_RTPFB"/>
<member name="psfb" value="206" c:identifier="GST_RTCP_TYPE_PSFB"/>
</enumeration>
<constant name="RTCP_MAX_BYE_SSRC_COUNT"
value="31"
c:type="GST_RTCP_MAX_BYE_SSRC_COUNT">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTCP_MAX_RB_COUNT"
value="31"
c:type="GST_RTCP_MAX_RB_COUNT">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTCP_MAX_SDES" value="255" c:type="GST_RTCP_MAX_SDES">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTCP_MAX_SDES_ITEM_COUNT"
value="31"
c:type="GST_RTCP_MAX_SDES_ITEM_COUNT">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTCP_VALID_MASK"
value="57598"
c:type="GST_RTCP_VALID_MASK">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTCP_VALID_VALUE" value="0" c:type="GST_RTCP_VALID_VALUE">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTCP_VERSION" value="2" c:type="GST_RTCP_VERSION">
<type name="gint" c:type="gint"/>
</constant>
<enumeration name="RTPPayload" c:type="GstRTPPayload">
<doc xml:whitespace="preserve">Standard predefined fixed payload types.
The official list is at:
http://www.iana.org/assignments/rtp-parameters
Audio:
reserved: 19
unassigned: 20-23,
Video:
unassigned: 24, 27, 29, 30, 35-71, 77-95
Reserved for RTCP conflict avoidance: 72-76</doc>
<member name="pcmu" value="0" c:identifier="GST_RTP_PAYLOAD_PCMU"/>
<member name="1016" value="1" c:identifier="GST_RTP_PAYLOAD_1016"/>
<member name="g721" value="2" c:identifier="GST_RTP_PAYLOAD_G721"/>
<member name="gsm" value="3" c:identifier="GST_RTP_PAYLOAD_GSM"/>
<member name="g723" value="4" c:identifier="GST_RTP_PAYLOAD_G723"/>
<member name="dvi4_8000"
value="5"
c:identifier="GST_RTP_PAYLOAD_DVI4_8000"/>
<member name="dvi4_16000"
value="6"
c:identifier="GST_RTP_PAYLOAD_DVI4_16000"/>
<member name="lpc" value="7" c:identifier="GST_RTP_PAYLOAD_LPC"/>
<member name="pcma" value="8" c:identifier="GST_RTP_PAYLOAD_PCMA"/>
<member name="g722" value="9" c:identifier="GST_RTP_PAYLOAD_G722"/>
<member name="l16_stereo"
value="10"
c:identifier="GST_RTP_PAYLOAD_L16_STEREO"/>
<member name="l16_mono"
value="11"
c:identifier="GST_RTP_PAYLOAD_L16_MONO"/>
<member name="qcelp" value="12" c:identifier="GST_RTP_PAYLOAD_QCELP"/>
<member name="cn" value="13" c:identifier="GST_RTP_PAYLOAD_CN"/>
<member name="mpa" value="14" c:identifier="GST_RTP_PAYLOAD_MPA"/>
<member name="g728" value="15" c:identifier="GST_RTP_PAYLOAD_G728"/>
<member name="dvi4_11025"
value="16"
c:identifier="GST_RTP_PAYLOAD_DVI4_11025"/>
<member name="dvi4_22050"
value="17"
c:identifier="GST_RTP_PAYLOAD_DVI4_22050"/>
<member name="g729" value="18" c:identifier="GST_RTP_PAYLOAD_G729"/>
<member name="cellb" value="25" c:identifier="GST_RTP_PAYLOAD_CELLB"/>
<member name="jpeg" value="26" c:identifier="GST_RTP_PAYLOAD_JPEG"/>
<member name="nv" value="28" c:identifier="GST_RTP_PAYLOAD_NV"/>
<member name="h261" value="31" c:identifier="GST_RTP_PAYLOAD_H261"/>
<member name="mpv" value="32" c:identifier="GST_RTP_PAYLOAD_MPV"/>
<member name="mp2t" value="33" c:identifier="GST_RTP_PAYLOAD_MP2T"/>
<member name="h263" value="34" c:identifier="GST_RTP_PAYLOAD_H263"/>
</enumeration>
<record name="RTPPayloadInfo" c:type="GstRTPPayloadInfo">
<doc xml:whitespace="preserve">Structure holding default payload type information.</doc>
<field name="payload_type" writable="1">
<type name="guint8" c:type="guint8"/>
</field>
<field name="media" writable="1">
<type name="utf8" c:type="gchar*"/>
</field>
<field name="encoding_name" writable="1">
<type name="utf8" c:type="gchar*"/>
</field>
<field name="clock_rate" writable="1">
<type name="guint" c:type="guint"/>
</field>
<field name="encoding_parameters" writable="1">
<type name="utf8" c:type="gchar*"/>
</field>
<field name="bitrate" writable="1">
<type name="guint" c:type="guint"/>
</field>
<function name="for_name" c:identifier="gst_rtp_payload_info_for_name">
<doc xml:whitespace="preserve">Get the #GstRTPPayloadInfo for @media and @encoding_name. This function is
mostly used to get the default clock-rate and bandwidth for dynamic payload
types specified with @media and @encoding name.
The search for @encoding_name will be performed in a case insensitve way.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstRTPPayloadInfo or NULL when no info could be found.</doc>
<type name="RTPPayloadInfo" c:type="GstRTPPayloadInfo*"/>
</return-value>
<parameters>
<parameter name="media" transfer-ownership="none">
<doc xml:whitespace="preserve">the media to find</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="encoding_name" transfer-ownership="none">
<doc xml:whitespace="preserve">the encoding name to find</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</function>
<function name="for_pt" c:identifier="gst_rtp_payload_info_for_pt">
<doc xml:whitespace="preserve">Get the #GstRTPPayloadInfo for @payload_type. This function is
mostly used to get the default clock-rate and bandwidth for static payload
types specified with @payload_type.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstRTPPayloadInfo or NULL when no info could be found.</doc>
<type name="RTPPayloadInfo" c:type="GstRTPPayloadInfo*"/>
</return-value>
<parameters>
<parameter name="payload_type" transfer-ownership="none">
<doc xml:whitespace="preserve">the payload_type to find</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
</record>
<constant name="RTP_PAYLOAD_1016_STRING"
value="1"
c:type="GST_RTP_PAYLOAD_1016_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_CELLB_STRING"
value="25"
c:type="GST_RTP_PAYLOAD_CELLB_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_CN_STRING"
value="13"
c:type="GST_RTP_PAYLOAD_CN_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_DVI4_11025_STRING"
value="16"
c:type="GST_RTP_PAYLOAD_DVI4_11025_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_DVI4_16000_STRING"
value="6"
c:type="GST_RTP_PAYLOAD_DVI4_16000_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_DVI4_22050_STRING"
value="17"
c:type="GST_RTP_PAYLOAD_DVI4_22050_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_DVI4_8000_STRING"
value="5"
c:type="GST_RTP_PAYLOAD_DVI4_8000_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_DYNAMIC_STRING"
value="[96, 127]"
c:type="GST_RTP_PAYLOAD_DYNAMIC_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_G721_STRING"
value="2"
c:type="GST_RTP_PAYLOAD_G721_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_G722_STRING"
value="9"
c:type="GST_RTP_PAYLOAD_G722_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_G723_53"
value="17"
c:type="GST_RTP_PAYLOAD_G723_53">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTP_PAYLOAD_G723_53_STRING"
value="17"
c:type="GST_RTP_PAYLOAD_G723_53_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_G723_63"
value="16"
c:type="GST_RTP_PAYLOAD_G723_63">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTP_PAYLOAD_G723_63_STRING"
value="16"
c:type="GST_RTP_PAYLOAD_G723_63_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_G723_STRING"
value="4"
c:type="GST_RTP_PAYLOAD_G723_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_G728_STRING"
value="15"
c:type="GST_RTP_PAYLOAD_G728_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_G729_STRING"
value="18"
c:type="GST_RTP_PAYLOAD_G729_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_GSM_STRING"
value="3"
c:type="GST_RTP_PAYLOAD_GSM_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_H261_STRING"
value="31"
c:type="GST_RTP_PAYLOAD_H261_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_H263_STRING"
value="34"
c:type="GST_RTP_PAYLOAD_H263_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_JPEG_STRING"
value="26"
c:type="GST_RTP_PAYLOAD_JPEG_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_L16_MONO_STRING"
value="11"
c:type="GST_RTP_PAYLOAD_L16_MONO_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_L16_STEREO_STRING"
value="10"
c:type="GST_RTP_PAYLOAD_L16_STEREO_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_LPC_STRING"
value="7"
c:type="GST_RTP_PAYLOAD_LPC_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_MP2T_STRING"
value="33"
c:type="GST_RTP_PAYLOAD_MP2T_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_MPA_STRING"
value="14"
c:type="GST_RTP_PAYLOAD_MPA_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_MPV_STRING"
value="32"
c:type="GST_RTP_PAYLOAD_MPV_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_NV_STRING"
value="28"
c:type="GST_RTP_PAYLOAD_NV_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_PCMA_STRING"
value="8"
c:type="GST_RTP_PAYLOAD_PCMA_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_PCMU_STRING"
value="0"
c:type="GST_RTP_PAYLOAD_PCMU_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_QCELP_STRING"
value="12"
c:type="GST_RTP_PAYLOAD_QCELP_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_TS41" value="19" c:type="GST_RTP_PAYLOAD_TS41">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTP_PAYLOAD_TS41_STRING"
value="19"
c:type="GST_RTP_PAYLOAD_TS41_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_PAYLOAD_TS48" value="18" c:type="GST_RTP_PAYLOAD_TS48">
<type name="gint" c:type="gint"/>
</constant>
<constant name="RTP_PAYLOAD_TS48_STRING"
value="18"
c:type="GST_RTP_PAYLOAD_TS48_STRING">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="RTP_VERSION" value="2" c:type="GST_RTP_VERSION">
<type name="gint" c:type="gint"/>
</constant>
<function name="rtcp_buffer_add_packet"
c:identifier="gst_rtcp_buffer_add_packet">
<doc xml:whitespace="preserve">Add a new packet of @type to @buffer. @packet will point to the newly created
packet.
if the max mtu is exceeded for the buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the packet could be created. This function returns %FALSE</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">a valid RTCP buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">the #GstRTCPType of the new packet</doc>
<type name="RTCPType" c:type="GstRTCPType"/>
</parameter>
<parameter name="packet" transfer-ownership="none">
<doc xml:whitespace="preserve">pointer to new packet</doc>
<type name="RTCPPacket" c:type="GstRTCPPacket*"/>
</parameter>
</parameters>
</function>
<function name="rtcp_buffer_end" c:identifier="gst_rtcp_buffer_end">
<doc xml:whitespace="preserve">Finish @buffer after being constructured. This function is usually called
after gst_rtcp_buffer_new() and after adding the RTCP items to the new buffer.
The function adjusts the size of @buffer with the total length of all the
added packets.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">a buffer with an RTCP packet</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtcp_buffer_get_first_packet"
c:identifier="gst_rtcp_buffer_get_first_packet">
<doc xml:whitespace="preserve">Initialize a new #GstRTCPPacket pointer that points to the first packet in
@buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if the packet existed in @buffer.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">a valid RTCP buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="packet" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstRTCPPacket</doc>
<type name="RTCPPacket" c:type="GstRTCPPacket*"/>
</parameter>
</parameters>
</function>
<function name="rtcp_buffer_get_packet_count"
c:identifier="gst_rtcp_buffer_get_packet_count">
<doc xml:whitespace="preserve">Get the number of RTCP packets in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the number of RTCP packets in @buffer.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">a valid RTCP buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtcp_buffer_new"
c:identifier="gst_rtcp_buffer_new"
introspectable="0">
<doc xml:whitespace="preserve">Create a new buffer for constructing RTCP packets. The packet will have a
maximum size of @mtu.</doc>
<return-value>
<doc xml:whitespace="preserve">A newly allocated buffer.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="mtu" transfer-ownership="none">
<doc xml:whitespace="preserve">the maximum mtu size.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtcp_buffer_new_copy_data"
c:identifier="gst_rtcp_buffer_new_copy_data"
introspectable="0">
<doc xml:whitespace="preserve">Create a new buffer and set the data to a copy of @len
bytes of @data and the size to @len. The data will be freed when the buffer
is freed.</doc>
<return-value>
<doc xml:whitespace="preserve">A newly allocated buffer with a copy of @data and of size @len.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">data for the new buffer</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of data</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtcp_buffer_new_take_data"
c:identifier="gst_rtcp_buffer_new_take_data"
introspectable="0">
<doc xml:whitespace="preserve">Create a new buffer and set the data and size of the buffer to @data and @len
respectively. @data will be freed when the buffer is unreffed, so this
function transfers ownership of @data to the new buffer.</doc>
<return-value>
<doc xml:whitespace="preserve">A newly allocated buffer with @data and of size @len.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">data for the new buffer</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of data</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtcp_buffer_validate"
c:identifier="gst_rtcp_buffer_validate">
<doc xml:whitespace="preserve">Check if the data pointed to by @buffer is a valid RTCP packet using
gst_rtcp_buffer_validate_data().</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer is a valid RTCP packet.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer to validate</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtcp_buffer_validate_data"
c:identifier="gst_rtcp_buffer_validate_data">
<doc xml:whitespace="preserve">Check if the @data and @size point to the data of a valid RTCP (compound)
packet.
Use this function to validate a packet before using the other functions in
this module.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if the data points to a valid RTCP packet.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">the data to validate</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of @data to validate</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtcp_ntp_to_unix" c:identifier="gst_rtcp_ntp_to_unix">
<doc xml:whitespace="preserve">Converts an NTP time to UNIX nanoseconds. @ntptime can typically be
the NTP time of an SR RTCP message and contains, in the upper 32 bits, the
number of seconds since 1900 and, in the lower 32 bits, the fractional
seconds. The resulting value will be the number of nanoseconds since 1970.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the UNIX time for @ntptime in nanoseconds.</doc>
<type name="guint64" c:type="guint64"/>
</return-value>
<parameters>
<parameter name="ntptime" transfer-ownership="none">
<doc xml:whitespace="preserve">an NTP timestamp</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
</parameters>
</function>
<function name="rtcp_sdes_name_to_type"
c:identifier="gst_rtcp_sdes_name_to_type"
version="0.10.26">
<doc xml:whitespace="preserve">Convert @name into a @GstRTCPSDESType. @name is typically a key in a
#GstStructure containing SDES items.
is a private sdes item.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the #GstRTCPSDESType for @name or #GST_RTCP_SDES_PRIV when @name</doc>
<type name="RTCPSDESType" c:type="GstRTCPSDESType"/>
</return-value>
<parameters>
<parameter name="name" transfer-ownership="none">
<doc xml:whitespace="preserve">a SDES name</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</function>
<function name="rtcp_sdes_type_to_name"
c:identifier="gst_rtcp_sdes_type_to_name"
version="0.10.26">
<doc xml:whitespace="preserve">Converts @type to the string equivalent. The string is typically used as a
key in a #GstStructure containing SDES items.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the string equivalent of @type</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstRTCPSDESType</doc>
<type name="RTCPSDESType" c:type="GstRTCPSDESType"/>
</parameter>
</parameters>
</function>
<function name="rtcp_unix_to_ntp" c:identifier="gst_rtcp_unix_to_ntp">
<doc xml:whitespace="preserve">Converts a UNIX timestamp in nanoseconds to an NTP time. The caller should
pass a value with nanoseconds since 1970. The NTP time will, in the upper
32 bits, contain the number of seconds since 1900 and, in the lower 32
bits, the fractional seconds. The resulting value can be used as an ntptime
for constructing SR RTCP packets.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the NTP time for @unixtime.</doc>
<type name="guint64" c:type="guint64"/>
</return-value>
<parameters>
<parameter name="unixtime" transfer-ownership="none">
<doc xml:whitespace="preserve">an UNIX timestamp in nanoseconds</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_add_extension_onebyte_header"
c:identifier="gst_rtp_buffer_add_extension_onebyte_header"
version="0.10.31">
<doc xml:whitespace="preserve">Adds a RFC 5285 header extension with a one byte header to the end of the
RTP header. If there is already a RFC 5285 header extension with a one byte
header, the new extension will be appended.
It will not work if there is already a header extension that does not follow
the mecanism described in RFC 5285 or if there is a header extension with
a two bytes header as described in RFC 5285. In that case, use
gst_rtp_buffer_add_extension_twobytes_header()</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if header extension could be added</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the header extension (between 1 and 14).</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the data in bytes</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_add_extension_twobytes_header"
c:identifier="gst_rtp_buffer_add_extension_twobytes_header"
version="0.10.31">
<doc xml:whitespace="preserve">Adds a RFC 5285 header extension with a two bytes header to the end of the
RTP header. If there is already a RFC 5285 header extension with a two bytes
header, the new extension will be appended.
It will not work if there is already a header extension that does not follow
the mecanism described in RFC 5285 or if there is a header extension with
a one byte header as described in RFC 5285. In that case, use
gst_rtp_buffer_add_extension_onebyte_header()</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if header extension could be added</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="appbits" transfer-ownership="none">
<doc xml:whitespace="preserve">Application specific bits</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the header extension</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the data in bytes</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_allocate_data"
c:identifier="gst_rtp_buffer_allocate_data">
<doc xml:whitespace="preserve">Allocate enough data in @buffer to hold an RTP packet with @csrc_count CSRCs,
a payload length of @payload_len and padding of @pad_len.
MALLOCDATA of @buffer will be overwritten and will not be freed.
All other RTP header fields will be set to 0/FALSE.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBuffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="payload_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of the payload</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="pad_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the amount of padding</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="csrc_count" transfer-ownership="none">
<doc xml:whitespace="preserve">the number of CSRC entries</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_calc_header_len"
c:identifier="gst_rtp_buffer_calc_header_len">
<doc xml:whitespace="preserve">Calculate the header length of an RTP packet with @csrc_count CSRC entries.
An RTP packet can have at most 15 CSRC entries.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The length of an RTP header with @csrc_count CSRC entries.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="csrc_count" transfer-ownership="none">
<doc xml:whitespace="preserve">the number of CSRC entries</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_calc_packet_len"
c:identifier="gst_rtp_buffer_calc_packet_len">
<doc xml:whitespace="preserve">Calculate the total length of an RTP packet with a payload size of @payload_len,
a padding of @pad_len and a @csrc_count CSRC entries.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The total length of an RTP header with given parameters.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="payload_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of the payload</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="pad_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the amount of padding</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="csrc_count" transfer-ownership="none">
<doc xml:whitespace="preserve">the number of CSRC entries</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_calc_payload_len"
c:identifier="gst_rtp_buffer_calc_payload_len">
<doc xml:whitespace="preserve">Calculate the length of the payload of an RTP packet with size @packet_len,
a padding of @pad_len and a @csrc_count CSRC entries.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The length of the payload of an RTP packet with given parameters.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="packet_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of the total RTP packet</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="pad_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the amount of padding</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="csrc_count" transfer-ownership="none">
<doc xml:whitespace="preserve">the number of CSRC entries</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_compare_seqnum"
c:identifier="gst_rtp_buffer_compare_seqnum"
version="0.10.15">
<doc xml:whitespace="preserve">Compare two sequence numbers, taking care of wraparounds. This function
returns the difference between @seqnum1 and @seqnum2.
are equal or a positive value if @seqnum1 is smaller than @segnum2.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a negative value if @seqnum1 is bigger than @seqnum2, 0 if they</doc>
<type name="gint" c:type="gint"/>
</return-value>
<parameters>
<parameter name="seqnum1" transfer-ownership="none">
<doc xml:whitespace="preserve">a sequence number</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
<parameter name="seqnum2" transfer-ownership="none">
<doc xml:whitespace="preserve">a sequence number</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_default_clock_rate"
c:identifier="gst_rtp_buffer_default_clock_rate"
version="0.10.13">
<doc xml:whitespace="preserve">Get the default clock-rate for the static payload type @payload_type.
the clock-rate is undefined.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the default clock rate or -1 if the payload type is not static or</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
<parameters>
<parameter name="payload_type" transfer-ownership="none">
<doc xml:whitespace="preserve">the static payload type</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_ext_timestamp"
c:identifier="gst_rtp_buffer_ext_timestamp"
version="0.10.15">
<doc xml:whitespace="preserve">Update the @exttimestamp field with @timestamp. For the first call of the
method, @exttimestamp should point to a location with a value of -1.
This function makes sure that the returned value is a constantly increasing
value even in the case where there is a timestamp wraparound.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The extended timestamp of @timestamp.</doc>
<type name="guint64" c:type="guint64"/>
</return-value>
<parameters>
<parameter name="exttimestamp" transfer-ownership="none">
<doc xml:whitespace="preserve">a previous extended timestamp</doc>
<type name="guint64" c:type="guint64*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:whitespace="preserve">a new timestamp</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_csrc"
c:identifier="gst_rtp_buffer_get_csrc">
<doc xml:whitespace="preserve">Get the CSRC at index @idx in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the CSRC at index @idx in host order.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:whitespace="preserve">the index of the CSRC to get</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_csrc_count"
c:identifier="gst_rtp_buffer_get_csrc_count">
<doc xml:whitespace="preserve">Get the CSRC count of the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the CSRC count of @buffer.</doc>
<type name="guint8" c:type="guint8"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_extension"
c:identifier="gst_rtp_buffer_get_extension">
<doc xml:whitespace="preserve">Check if the extension bit is set on the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer has the extension bit set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_extension_data"
c:identifier="gst_rtp_buffer_get_extension_data"
version="0.10.15">
<doc xml:whitespace="preserve">Get the extension data. @bits will contain the extension 16 bits of custom
data. @data will point to the data in the extension and @wordlen will contain
the length of @data in 32 bits words.
If @buffer did not contain an extension, this function will return %FALSE
with @bits, @data and @wordlen unchanged.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer had the extension bit set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="bits" transfer-ownership="none">
<doc xml:whitespace="preserve">location for result bits</doc>
<type name="guint16" c:type="guint16*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer*"/>
</parameter>
<parameter name="wordlen" transfer-ownership="none">
<doc xml:whitespace="preserve">location for length of @data in 32 bits words</doc>
<type name="guint" c:type="guint*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_extension_onebyte_header"
c:identifier="gst_rtp_buffer_get_extension_onebyte_header"
version="0.10.31">
<doc xml:whitespace="preserve">Parses RFC 5285 style header extensions with a one byte header. It will
return the nth extension with the requested id.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer had the requested header extension</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the header extension to be read (between 1 and 14).</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="nth" transfer-ownership="none">
<doc xml:whitespace="preserve">Read the nth extension packet with the requested ID</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer*"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the data in bytes</doc>
<type name="guint" c:type="guint*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_extension_twobytes_header"
c:identifier="gst_rtp_buffer_get_extension_twobytes_header"
version="0.10.31">
<doc xml:whitespace="preserve">Parses RFC 5285 style header extensions with a two bytes header. It will
return the nth extension with the requested id.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer had the requested header extension</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="appbits" transfer-ownership="none">
<doc xml:whitespace="preserve">Application specific bits</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the header extension to be read (between 1 and 14).</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="nth" transfer-ownership="none">
<doc xml:whitespace="preserve">Read the nth extension packet with the requested ID</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer*"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the data in bytes</doc>
<type name="guint" c:type="guint*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_header_len"
c:identifier="gst_rtp_buffer_get_header_len">
<doc xml:whitespace="preserve">Return the total length of the header in @buffer. This include the length of
the fixed header, the CSRC list and the extension header.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The total length of the header in @buffer.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_marker"
c:identifier="gst_rtp_buffer_get_marker">
<doc xml:whitespace="preserve">Check if the marker bit is set on the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer has the marker bit set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_packet_len"
c:identifier="gst_rtp_buffer_get_packet_len">
<doc xml:whitespace="preserve">Return the total length of the packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The total length of the packet in @buffer.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_padding"
c:identifier="gst_rtp_buffer_get_padding">
<doc xml:whitespace="preserve">Check if the padding bit is set on the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer has the padding bit set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_payload"
c:identifier="gst_rtp_buffer_get_payload"
introspectable="0">
<doc xml:whitespace="preserve">Get a pointer to the payload data in @buffer. This pointer is valid as long
as a reference to @buffer is held.</doc>
<return-value>
<doc xml:whitespace="preserve">A pointer to the payload data in @buffer.</doc>
<type name="gpointer" c:type="gpointer"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_payload_buffer"
c:identifier="gst_rtp_buffer_get_payload_buffer"
introspectable="0">
<doc xml:whitespace="preserve">Create a buffer of the payload of the RTP packet in @buffer. This function
will internally create a subbuffer of @buffer so that a memcpy can be
avoided.</doc>
<return-value>
<doc xml:whitespace="preserve">A new buffer with the data of the payload.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_payload_len"
c:identifier="gst_rtp_buffer_get_payload_len">
<doc xml:whitespace="preserve">Get the length of the payload of the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The length of the payload in @buffer.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_payload_subbuffer"
c:identifier="gst_rtp_buffer_get_payload_subbuffer"
version="0.10.10"
introspectable="0">
<doc xml:whitespace="preserve">Create a subbuffer of the payload of the RTP packet in @buffer. @offset bytes
are skipped in the payload and the subbuffer will be of size @len.
If @len is -1 the total payload starting from @offset if subbuffered.</doc>
<return-value>
<doc xml:whitespace="preserve">A new buffer with the specified data of the payload.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="offset" transfer-ownership="none">
<doc xml:whitespace="preserve">the offset in the payload</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length in the payload</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_payload_type"
c:identifier="gst_rtp_buffer_get_payload_type">
<doc xml:whitespace="preserve">Get the payload type of the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The payload type.</doc>
<type name="guint8" c:type="guint8"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_seq" c:identifier="gst_rtp_buffer_get_seq">
<doc xml:whitespace="preserve">Get the sequence number of the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The sequence number in host order.</doc>
<type name="guint16" c:type="guint16"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_ssrc"
c:identifier="gst_rtp_buffer_get_ssrc">
<doc xml:whitespace="preserve">Get the SSRC of the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the SSRC of @buffer in host order.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_timestamp"
c:identifier="gst_rtp_buffer_get_timestamp">
<doc xml:whitespace="preserve">Get the timestamp of the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The timestamp in host order.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_get_version"
c:identifier="gst_rtp_buffer_get_version">
<doc xml:whitespace="preserve">Get the version number of the RTP packet in @buffer.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The version of @buffer.</doc>
<type name="guint8" c:type="guint8"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_add_extension_onebyte_header"
c:identifier="gst_rtp_buffer_list_add_extension_onebyte_header"
version="0.10.31">
<doc xml:whitespace="preserve">Adds a RFC 5285 header extension with a one byte header to the end of the
RTP header. If there is already a RFC 5285 header extension with a one byte
header, the new extension will be appended.
It will not work if there is already a header extension that does not follow
the mecanism described in RFC 5285 or if there is a header extension with
a two bytes header as described in RFC 5285. In that case, use
gst_rtp_buffer_list_add_extension_twobytes_header()
This function will not modify the data section of the RTP buffer, only
the header.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if header extension could be added</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="it" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBufferListIterator pointing right after the #GstBuffer where the header extension should be added</doc>
<type name="Gst.BufferListIterator" c:type="GstBufferListIterator*"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the header extension (between 1 and 14).</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the data in bytes</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_add_extension_twobytes_header"
c:identifier="gst_rtp_buffer_list_add_extension_twobytes_header"
version="0.10.31">
<doc xml:whitespace="preserve">Adds a RFC 5285 header extension with a two bytes header to the end of the
RTP header. If there is already a RFC 5285 header extension with a two bytes
header, the new extension will be appended.
It will not work if there is already a header extension that does not follow
the mecanism described in RFC 5285 or if there is a header extension with
a one byte header as described in RFC 5285. In that case, use
gst_rtp_buffer_add_extension_onebyte_header()
This function will not modify the data section of the RTP buffer, only
the header.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if header extension could be added</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="it" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBufferListIterator pointing right after the #GstBuffer where the header extension should be added</doc>
<type name="Gst.BufferListIterator" c:type="GstBufferListIterator*"/>
</parameter>
<parameter name="appbits" transfer-ownership="none">
<doc xml:whitespace="preserve">Application specific bits</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the header extension</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the data in bytes</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_from_buffer"
c:identifier="gst_rtp_buffer_list_from_buffer"
introspectable="0">
<doc xml:whitespace="preserve">Splits a #GstBuffer into a #GstBufferList containing separate
buffers for the header and data sections.</doc>
<return-value>
<doc xml:whitespace="preserve">a #GstBufferList</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstBuffer containing a RTP packet</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_get_extension_onebyte_header"
c:identifier="gst_rtp_buffer_list_get_extension_onebyte_header"
version="0.10.31">
<doc xml:whitespace="preserve">Parses RFC 5285 style header extensions with a one byte header. It will
return the nth extension with the requested id.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer had the requested header extension</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="bufferlist" transfer-ownership="none">
<doc xml:whitespace="preserve">the bufferlist</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
<parameter name="group_idx" transfer-ownership="none">
<doc xml:whitespace="preserve">The index of the group in the #GstBufferList</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the header extension to be read (between 1 and 14).</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="nth" transfer-ownership="none">
<doc xml:whitespace="preserve">Read the nth extension packet with the requested ID</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer*"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the data in bytes</doc>
<type name="guint" c:type="guint*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_get_extension_twobytes_header"
c:identifier="gst_rtp_buffer_list_get_extension_twobytes_header"
version="0.10.31">
<doc xml:whitespace="preserve">Parses RFC 5285 style header extensions with a two bytes header. It will
return the nth extension with the requested id.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer had the requested header extension</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="bufferlist" transfer-ownership="none">
<doc xml:whitespace="preserve">the bufferlist</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
<parameter name="group_idx" transfer-ownership="none">
<doc xml:whitespace="preserve">The index of the group in the #GstBufferList</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="appbits" transfer-ownership="none">
<doc xml:whitespace="preserve">Application specific bits</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:whitespace="preserve">The ID of the header extension to be read (between 1 and 14).</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="nth" transfer-ownership="none">
<doc xml:whitespace="preserve">Read the nth extension packet with the requested ID</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">location for data</doc>
<type name="gpointer" c:type="gpointer*"/>
</parameter>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of the data in bytes</doc>
<type name="guint" c:type="guint*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_get_payload_len"
c:identifier="gst_rtp_buffer_list_get_payload_len"
version="0.10.24">
<doc xml:whitespace="preserve">Get the length of the payload of the RTP packet in @list.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The length of the payload in @list.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_get_payload_type"
c:identifier="gst_rtp_buffer_list_get_payload_type"
version="0.10.24">
<doc xml:whitespace="preserve">Get the payload type of the first RTP packet in @list.
All packets in @list should have the same payload type.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The payload type.</doc>
<type name="guint8" c:type="guint8"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_get_seq"
c:identifier="gst_rtp_buffer_list_get_seq"
version="0.10.24">
<doc xml:whitespace="preserve">Get the sequence number of the first RTP packet in @list.
All packets within @list have the same sequence number.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The seq number</doc>
<type name="guint16" c:type="guint16"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_get_ssrc"
c:identifier="gst_rtp_buffer_list_get_ssrc"
version="0.10.24">
<doc xml:whitespace="preserve">Get the SSRC of the first RTP packet in @list.
All RTP packets within @list have the same SSRC.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the SSRC of @list in host order.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_get_timestamp"
c:identifier="gst_rtp_buffer_list_get_timestamp"
version="0.10.24">
<doc xml:whitespace="preserve">Get the timestamp of the first RTP packet in @list.
All packets within @list have the same timestamp.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The timestamp in host order.</doc>
<type name="guint32" c:type="guint32"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_set_payload_type"
c:identifier="gst_rtp_buffer_list_set_payload_type"
version="0.10.24">
<doc xml:whitespace="preserve">Set the payload type of each RTP packet in @list to @payload_type.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
<parameter name="payload_type" transfer-ownership="none">
<doc xml:whitespace="preserve">the new type</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_set_seq"
c:identifier="gst_rtp_buffer_list_set_seq"
version="0.10.24">
<doc xml:whitespace="preserve">Set the sequence number of each RTP packet in @list to @seq.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">The seq number of the last packet in the list + 1.</doc>
<type name="guint16" c:type="guint16"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
<parameter name="seq" transfer-ownership="none">
<doc xml:whitespace="preserve">the new sequence number</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_set_ssrc"
c:identifier="gst_rtp_buffer_list_set_ssrc"
version="0.10.24">
<doc xml:whitespace="preserve">Set the SSRC on each RTP packet in @list to @ssrc.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">the new SSRC</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_set_timestamp"
c:identifier="gst_rtp_buffer_list_set_timestamp"
version="0.10.24">
<doc xml:whitespace="preserve">Set the timestamp of each RTP packet in @list to @timestamp.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:whitespace="preserve">the new timestamp</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_list_validate"
c:identifier="gst_rtp_buffer_list_validate"
version="0.10.24">
<doc xml:whitespace="preserve">Check if all RTP packets in the @list are valid using gst_rtp_buffer_validate_data().
Use this function to validate an list before using the other functions in
this module.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @list consists only of valid RTP packets.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer list to validate</doc>
<type name="Gst.BufferList" c:type="GstBufferList*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_new_allocate"
c:identifier="gst_rtp_buffer_new_allocate"
introspectable="0">
<doc xml:whitespace="preserve">Allocate a new #GstBuffer with enough data to hold an RTP packet with
@csrc_count CSRCs, a payload length of @payload_len and padding of @pad_len.
All other RTP header fields will be set to 0/FALSE.
parameters.</doc>
<return-value>
<doc xml:whitespace="preserve">A newly allocated buffer that can hold an RTP packet with given</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="payload_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of the payload</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="pad_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the amount of padding</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="csrc_count" transfer-ownership="none">
<doc xml:whitespace="preserve">the number of CSRC entries</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_new_allocate_len"
c:identifier="gst_rtp_buffer_new_allocate_len"
introspectable="0">
<doc xml:whitespace="preserve">Create a new #GstBuffer that can hold an RTP packet that is exactly
@packet_len long. The length of the payload depends on @pad_len and
@csrc_count and can be calculated with gst_rtp_buffer_calc_payload_len().
All RTP header fields will be set to 0/FALSE.</doc>
<return-value>
<doc xml:whitespace="preserve">A newly allocated buffer that can hold an RTP packet of @packet_len.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="packet_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the total length of the packet</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="pad_len" transfer-ownership="none">
<doc xml:whitespace="preserve">the amount of padding</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="csrc_count" transfer-ownership="none">
<doc xml:whitespace="preserve">the number of CSRC entries</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_new_copy_data"
c:identifier="gst_rtp_buffer_new_copy_data"
introspectable="0">
<doc xml:whitespace="preserve">Create a new buffer and set the data to a copy of @len
bytes of @data and the size to @len. The data will be freed when the buffer
is freed.</doc>
<return-value>
<doc xml:whitespace="preserve">A newly allocated buffer with a copy of @data and of size @len.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">data for the new buffer</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of data</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_new_take_data"
c:identifier="gst_rtp_buffer_new_take_data"
introspectable="0">
<doc xml:whitespace="preserve">Create a new buffer and set the data and size of the buffer to @data and @len
respectively. @data will be freed when the buffer is unreffed, so this
function transfers ownership of @data to the new buffer.</doc>
<return-value>
<doc xml:whitespace="preserve">A newly allocated buffer with @data and of size @len.</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">data for the new buffer</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of data</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_pad_to" c:identifier="gst_rtp_buffer_pad_to">
<doc xml:whitespace="preserve">Set the amount of padding in the RTP packet in @buffer to
@len. If @len is 0, the padding is removed.
NOTE: This function does not work correctly.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the new amount of padding</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_csrc"
c:identifier="gst_rtp_buffer_set_csrc">
<doc xml:whitespace="preserve">Modify the CSRC at index @idx in @buffer to @csrc.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="idx" transfer-ownership="none">
<doc xml:whitespace="preserve">the CSRC index to set</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
<parameter name="csrc" transfer-ownership="none">
<doc xml:whitespace="preserve">the CSRC in host order to set at @idx</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_extension"
c:identifier="gst_rtp_buffer_set_extension">
<doc xml:whitespace="preserve">Set the extension bit on the RTP packet in @buffer to @extension.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="extension" transfer-ownership="none">
<doc xml:whitespace="preserve">the new extension</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_extension_data"
c:identifier="gst_rtp_buffer_set_extension_data"
version="0.10.18">
<doc xml:whitespace="preserve">Set the extension bit of the rtp buffer and fill in the @bits and @length of the
extension header. It will refuse to set the extension data if the buffer is not
large enough.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">True if done.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="bits" transfer-ownership="none">
<doc xml:whitespace="preserve">the bits specific for the extension</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
<parameter name="length" transfer-ownership="none">
<doc xml:whitespace="preserve">the length that counts the number of 32-bit words in the extension, excluding the extension header ( therefore zero is a valid length)</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_marker"
c:identifier="gst_rtp_buffer_set_marker">
<doc xml:whitespace="preserve">Set the marker bit on the RTP packet in @buffer to @marker.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="marker" transfer-ownership="none">
<doc xml:whitespace="preserve">the new marker</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_packet_len"
c:identifier="gst_rtp_buffer_set_packet_len">
<doc xml:whitespace="preserve">Set the total @buffer size to @len. The data in the buffer will be made
larger if needed. Any padding will be removed from the packet.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the new packet length</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_padding"
c:identifier="gst_rtp_buffer_set_padding">
<doc xml:whitespace="preserve">Set the padding bit on the RTP packet in @buffer to @padding.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="padding" transfer-ownership="none">
<doc xml:whitespace="preserve">the new padding</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_payload_type"
c:identifier="gst_rtp_buffer_set_payload_type">
<doc xml:whitespace="preserve">Set the payload type of the RTP packet in @buffer to @payload_type.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="payload_type" transfer-ownership="none">
<doc xml:whitespace="preserve">the new type</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_seq" c:identifier="gst_rtp_buffer_set_seq">
<doc xml:whitespace="preserve">Set the sequence number of the RTP packet in @buffer to @seq.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="seq" transfer-ownership="none">
<doc xml:whitespace="preserve">the new sequence number</doc>
<type name="guint16" c:type="guint16"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_ssrc"
c:identifier="gst_rtp_buffer_set_ssrc">
<doc xml:whitespace="preserve">Set the SSRC on the RTP packet in @buffer to @ssrc.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="ssrc" transfer-ownership="none">
<doc xml:whitespace="preserve">the new SSRC</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_timestamp"
c:identifier="gst_rtp_buffer_set_timestamp">
<doc xml:whitespace="preserve">Set the timestamp of the RTP packet in @buffer to @timestamp.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="timestamp" transfer-ownership="none">
<doc xml:whitespace="preserve">the new timestamp</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_set_version"
c:identifier="gst_rtp_buffer_set_version">
<doc xml:whitespace="preserve">Set the version of the RTP packet in @buffer to @version.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
<parameter name="version" transfer-ownership="none">
<doc xml:whitespace="preserve">the new version</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_validate"
c:identifier="gst_rtp_buffer_validate">
<doc xml:whitespace="preserve">Check if the data pointed to by @buffer is a valid RTP packet using
gst_rtp_buffer_validate_data().
Use this function to validate a packet before using the other functions in
this module.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if @buffer is a valid RTP packet.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="buffer" transfer-ownership="none">
<doc xml:whitespace="preserve">the buffer to validate</doc>
<type name="Gst.Buffer" c:type="GstBuffer*"/>
</parameter>
</parameters>
</function>
<function name="rtp_buffer_validate_data"
c:identifier="gst_rtp_buffer_validate_data">
<doc xml:whitespace="preserve">Check if the @data and @size point to the data of a valid RTP packet.
This function checks the length, version and padding of the packet data.
Use this function to validate a packet before using the other functions in
this module.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">TRUE if the data points to a valid RTP packet.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">the data to validate</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of @data to validate</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="rtp_payload_info_for_name"
c:identifier="gst_rtp_payload_info_for_name"
moved-to="RTPPayloadInfo.for_name">
<doc xml:whitespace="preserve">Get the #GstRTPPayloadInfo for @media and @encoding_name. This function is
mostly used to get the default clock-rate and bandwidth for dynamic payload
types specified with @media and @encoding name.
The search for @encoding_name will be performed in a case insensitve way.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstRTPPayloadInfo or NULL when no info could be found.</doc>
<type name="RTPPayloadInfo" c:type="GstRTPPayloadInfo*"/>
</return-value>
<parameters>
<parameter name="media" transfer-ownership="none">
<doc xml:whitespace="preserve">the media to find</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="encoding_name" transfer-ownership="none">
<doc xml:whitespace="preserve">the encoding name to find</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</function>
<function name="rtp_payload_info_for_pt"
c:identifier="gst_rtp_payload_info_for_pt"
moved-to="RTPPayloadInfo.for_pt">
<doc xml:whitespace="preserve">Get the #GstRTPPayloadInfo for @payload_type. This function is
mostly used to get the default clock-rate and bandwidth for static payload
types specified with @payload_type.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">a #GstRTPPayloadInfo or NULL when no info could be found.</doc>
<type name="RTPPayloadInfo" c:type="GstRTPPayloadInfo*"/>
</return-value>
<parameters>
<parameter name="payload_type" transfer-ownership="none">
<doc xml:whitespace="preserve">the payload_type to find</doc>
<type name="guint8" c:type="guint8"/>
</parameter>
</parameters>
</function>
</namespace>
</repository>
|