|
1 | 1 | defmodule ExWebRTC.RTP.H264.StapA do |
2 | | - @moduledoc """ |
3 | | - Module responsible for parsing Single Time Agregation Packets type A. |
4 | | -
|
5 | | - Documented in [RFC6184](https://tools.ietf.org/html/rfc6184#page-22) |
6 | | -
|
7 | | - ``` |
8 | | - 0 1 2 3 |
9 | | - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |
10 | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
11 | | - | RTP Header | |
12 | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
13 | | - |STAP-A NAL HDR | NALU 1 Size | NALU 1 HDR | |
14 | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
15 | | - | NALU 1 Data | |
16 | | - : : |
17 | | - + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
18 | | - | | NALU 2 Size | NALU 2 HDR | |
19 | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
20 | | - | NALU 2 Data | |
21 | | - : : |
22 | | - | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
23 | | - | :...OPTIONAL RTP padding | |
24 | | - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
25 | | - ``` |
26 | | - """ |
| 2 | + @moduledoc false |
| 3 | + # Module responsible for parsing Single Time Agregation Packets type A. |
| 4 | + # |
| 5 | + # Documented in [RFC6184](https://tools.ietf.org/html/rfc6184#page-22) |
| 6 | + # |
| 7 | + # 0 1 2 3 |
| 8 | + # 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |
| 9 | + # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 10 | + # | RTP Header | |
| 11 | + # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 12 | + # |STAP-A NAL HDR | NALU 1 Size | NALU 1 HDR | |
| 13 | + # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 14 | + # | NALU 1 Data | |
| 15 | + # : : |
| 16 | + # + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 17 | + # | | NALU 2 Size | NALU 2 HDR | |
| 18 | + # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 19 | + # | NALU 2 Data | |
| 20 | + # : : |
| 21 | + # | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 22 | + # | :...OPTIONAL RTP padding | |
| 23 | + # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
27 | 24 |
|
28 | 25 | @spec parse(binary()) :: {:ok, [binary()]} | {:error, :packet_malformed} |
29 | 26 | def parse(data) do |
|
0 commit comments