Commit 5956f489 authored by Martin Storsjö's avatar Martin Storsjö

rtpdec_hevc: Add asterisks at the start of each long comment line

This is the common style for such comments.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 5d8cae45
...@@ -224,19 +224,19 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx ...@@ -224,19 +224,19 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx
} }
/* /*
decode the HEVC payload header according to section 4 of draft version 6: * decode the HEVC payload header according to section 4 of draft version 6:
*
0 1 * 0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|F| Type | LayerId | TID | * |F| Type | LayerId | TID |
+-------------+-----------------+ * +-------------+-----------------+
*
Forbidden zero (F): 1 bit * Forbidden zero (F): 1 bit
NAL unit type (Type): 6 bits * NAL unit type (Type): 6 bits
NUH layer ID (LayerId): 6 bits * NUH layer ID (LayerId): 6 bits
NUH temporal ID plus 1 (TID): 3 bits * NUH temporal ID plus 1 (TID): 3 bits
*/ */
nal_type = (buf[0] >> 1) & 0x3f; nal_type = (buf[0] >> 1) & 0x3f;
lid = ((buf[0] << 5) & 0x20) | ((buf[1] >> 3) & 0x1f); lid = ((buf[0] << 5) & 0x20) | ((buf[1] >> 3) & 0x1f);
tid = buf[1] & 0x07; tid = buf[1] & 0x07;
...@@ -314,17 +314,17 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx ...@@ -314,17 +314,17 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx
len -= RTP_HEVC_PAYLOAD_HEADER_SIZE; len -= RTP_HEVC_PAYLOAD_HEADER_SIZE;
/* /*
decode the FU header * decode the FU header
*
0 1 2 3 4 5 6 7 * 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+ * +-+-+-+-+-+-+-+-+
|S|E| FuType | * |S|E| FuType |
+---------------+ * +---------------+
*
Start fragment (S): 1 bit * Start fragment (S): 1 bit
End fragment (E): 1 bit * End fragment (E): 1 bit
FuType: 6 bits * FuType: 6 bits
*/ */
first_fragment = buf[0] & 0x80; first_fragment = buf[0] & 0x80;
last_fragment = buf[0] & 0x40; last_fragment = buf[0] & 0x40;
fu_type = buf[0] & 0x3f; fu_type = buf[0] & 0x3f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment