Lines Matching +full:db4 +full:- +full:db7
1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
69 MPEG-2 Transport Stream (MPEG TS) packet format according to IEC 61883:
72 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ --------
74 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 1394
76 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ --------
78 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ CIP
80 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ --------
82 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
88 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ --------
90 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
94 The following fields are fixed for IEEE-1394:
109 +-----+-----+-----+-----+-----+-----+-----+-----+
110 | db0 | db1 | db2 | db3 | db4 | db5 | db6 | db7 |
111 +-----+-----+-----+-----+-----+-----+-----+-----+
115 1) R < 1.5 Mbps: any of db0..db7 may be payload,
116 2) 1.5 < R < 3 Mbps: db0/db1 or db2/db3 or db4/db5 or db6/db7 is payload,
117 3) 3 < R < 6 Mbps: db0/db1/db2/db3 or db4/db5/db6/db7 is payload,
118 4) R > 6 Mbps: all db0..db7 contain the payload.
162 if (strcmp(filename, "-") == 0) in mpegtsrecv()
166 if (fd == -1) in mpegtsrecv()
194 fprintf(stderr, "(EAGAIN) - push 'Play'?\n"); in mpegtsrecv()
211 if (ciph->fmt != CIP_FMT_MPEG) in mpegtsrecv()
212 errx(1, "unknown format 0x%x", ciph->fmt); in mpegtsrecv()
213 if (ciph->fn != 3) { in mpegtsrecv()
216 ciph->fn); in mpegtsrecv()
220 if (pkt->mode.stream.len <= sizeof(struct ciphdr)) { in mpegtsrecv()
229 pkt->mode.stream.len - sizeof(struct ciphdr)); in mpegtsrecv()
231 ciph->len, ciph->len * 4); in mpegtsrecv()
234 ciph->fn, (1<<ciph->fn) ); in mpegtsrecv()
235 fprintf(stderr, "QCP (CIP header): %d\n", ciph->qpc ); in mpegtsrecv()
236 fprintf(stderr, "DBC counter (CIP header): %d\n", ciph->dbc ); in mpegtsrecv()
244 if (ciph->dbc % (1<<ciph->fn) == 0) in mpegtsrecv()
249 pkt->mode.stream.len - sizeof(struct ciphdr)); in mpegtsrecv()
252 write(fd, pld->payload, in mpegtsrecv()
253 sizeof(pld->payload)); in mpegtsrecv()
259 pkt_size = pkt->mode.stream.len + 4; in mpegtsrecv()
261 tlen -= pkt_size; in mpegtsrecv()