fwmpegts.c (228990) | fwmpegts.c (289677) |
---|---|
1/* 2 * Copyright (C) 2005 3 * Petr Holub, Hidetoshi Shimokawa. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * | 1/* 2 * Copyright (C) 2005 3 * Petr Holub, Hidetoshi Shimokawa. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/usr.sbin/fwcontrol/fwmpegts.c 228990 2011-12-30 10:58:14Z uqs $ | 34 * $FreeBSD: head/usr.sbin/fwcontrol/fwmpegts.c 289677 2015-10-21 05:37:09Z eadler $ |
35 */ 36#include <sys/param.h> 37#include <sys/ioctl.h> 38#include <sys/time.h> 39#include <sys/types.h> 40#include <sys/uio.h> 41 42#if __FreeBSD_version >= 500000 --- 71 unchanged lines hidden (view full) --- 114 +-----+-----+-----+-----+-----+-----+-----+-----+ 115 116We have several cases of payload distribution based on stream 117bandwidth (R): 1181) R < 1.5 Mbps: any of db0..db7 may be payload, 1192) 1.5 < R < 3 Mbps: db0/db1 or db2/db3 or db4/db5 or db6/db7 is payload, 1203) 3 < R < 6 Mbps: db0/db1/db2/db3 or db4/db5/db6/db7 is payload, 1214) R > 6 Mbps: all db0..db7 contain the payload. | 35 */ 36#include <sys/param.h> 37#include <sys/ioctl.h> 38#include <sys/time.h> 39#include <sys/types.h> 40#include <sys/uio.h> 41 42#if __FreeBSD_version >= 500000 --- 71 unchanged lines hidden (view full) --- 114 +-----+-----+-----+-----+-----+-----+-----+-----+ 115 116We have several cases of payload distribution based on stream 117bandwidth (R): 1181) R < 1.5 Mbps: any of db0..db7 may be payload, 1192) 1.5 < R < 3 Mbps: db0/db1 or db2/db3 or db4/db5 or db6/db7 is payload, 1203) 3 < R < 6 Mbps: db0/db1/db2/db3 or db4/db5/db6/db7 is payload, 1214) R > 6 Mbps: all db0..db7 contain the payload. |
122Curently, only case (4) is supported in fwmpegts.c | 122Currently, only case (4) is supported in fwmpegts.c |
123 124Each packet may contain N MPEG TS data blocks with timestamp header, 125which are (4+188)B long. Experimentally, the N ranges from 0 through 3. 126 127*****************************************************************************/ 128 129 130typedef uint8_t mpeg_ts_pld[188]; --- 144 unchanged lines hidden --- | 123 124Each packet may contain N MPEG TS data blocks with timestamp header, 125which are (4+188)B long. Experimentally, the N ranges from 0 through 3. 126 127*****************************************************************************/ 128 129 130typedef uint8_t mpeg_ts_pld[188]; --- 144 unchanged lines hidden --- |