source: svn/newcon3bcm2_21bu/BSEAV/lib/mpeg2_ts_parse/psip_ett.c

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2008, 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: psip_ett.c $
11 * $brcm_Revision: 2 $
12 * $brcm_Date: 6/9/08 11:19a $
13 *
14 * [File Description:]
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /BSEAV/lib/mpeg2_ts_parse/psip_ett.c $
19 *
20 * 2   6/9/08 11:19a tokushig
21 * PR42421: fix compile warning about missing newline at end of the file
22 *
23 * 1   2/7/05 11:25p dlwin
24 * Merge down for release 2005_REFSW_MERGETOMAIN:
25 *
26 * Irvine_BSEAVSW_Devel/1   8/29/03 5:03p marcusk
27 * Initial Version.
28 *
29 ***************************************************************************/
30#include "bstd.h"
31#include "psip_priv.h"
32#include "psip_ett.h"
33
34void PSIP_ETT_getHeader( const uint8_t *buf, PSIP_ETT_header *p_header )
35{
36        p_header->ETM_id.source_id = TS_READ_16( &buf[PSIP_TABLE_DATA_OFFSET] );
37        p_header->ETM_id.event_id = (uint16_t)(TS_READ_16( &buf[PSIP_TABLE_DATA_OFFSET+2] ) >> 2);
38        p_header->ETM_id.id_type = ((buf[PSIP_TABLE_DATA_OFFSET+3]&0x2)?PSIP_ETT_event_id:PSIP_ETT_channel_id);
39        p_header->p_extended_text_message = &buf[PSIP_TABLE_DATA_OFFSET+4];
40}
41
Note: See TracBrowser for help on using the repository browser.