source: svn/trunk/newcon3bcm2_21bu/BSEAV/lib/mpeg2_ts_parse/ts_pmt.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: ts_pmt.h $
11 * $brcm_Revision: 1 $
12 * $brcm_Date: 2/7/05 11:30p $
13 *
14 * [File Description:]
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /BSEAV/lib/mpeg2_ts_parse/ts_pmt.h $
19 *
20 * 1   2/7/05 11:30p dlwin
21 * Merge down for release 2005_REFSW_MERGETOMAIN:
22 *
23 * Irvine_BSEAVSW_Devel/3   5/4/04 1:52p erickson
24 * PR10938: added bounds checking and PMT and PAT validation in order to
25 * prevent segfaults on bad data
26 *
27 * Irvine_BSEAVSW_Devel/2   9/8/03 10:05a marcusk
28 * Added routines to get the number of things.
29 *
30 * Irvine_BSEAVSW_Devel/1   8/29/03 5:05p marcusk
31 * Initial Version.
32 *
33 ***************************************************************************/
34#ifndef TS_PMT_H__
35#define TS_PMT_H__
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41typedef struct
42{
43        uint8_t         stream_type;
44        uint16_t        elementary_PID;
45} TS_PMT_stream;
46
47/**
48Returns true if it's a valid PMT
49The other TS_PMT functions assume you have validated the buffer beforehand.
50**/
51bool TS_PMT_validate(const uint8_t *buf, unsigned bfrSize);
52
53uint16_t TS_PMT_getPcrPid( const uint8_t *buf, unsigned bfrSize);
54TS_PSI_descriptor TS_PMT_getDescriptor( const uint8_t *buf, unsigned bfrSize, int descriptorNum );
55
56int TS_PMT_getNumStreams( const uint8_t *buf, unsigned bfrSize);
57BERR_Code TS_PMT_getStream( const uint8_t *buf, unsigned bfrSize, int streamNum, TS_PMT_stream *p_stream );
58TS_PSI_descriptor TS_PMT_getStreamDescriptor( const uint8_t *buf, unsigned bfrSize, int streamNum, int descriptorNum );
59
60#ifdef __cplusplus
61}
62#endif
63#endif
64/* End of File */
Note: See TracBrowser for help on using the repository browser.