clpi.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * clpi.h: BluRay Disc CLPI
00003  *****************************************************************************
00004  * Copyright (C) 2009 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 typedef struct
00025 {
00026     int     i_pcr_pid;
00027     int64_t i_packet;   /* TS Packet number */
00028     int64_t i_start;    /* Presentation start time in 45kHz */
00029     int64_t i_end;      /* Presentation end time in 45kHz */
00030 } bd_clpi_stc_t;
00031 void bd_clpi_stc_Parse( bd_clpi_stc_t *p_stc, bs_t *s );
00032 
00033 typedef struct
00034 {
00035     int i_pid;          /* PID of the associated stream */
00036     int i_type;         /* Stream type of the associated stream */
00037 } bd_clpi_stream_t;
00038 void bd_clpi_stream_Parse( bd_clpi_stream_t *p_stream, bs_t *s );
00039 
00040 typedef struct
00041 {
00042     bool    b_angle_point;  /* EP angle point change */
00043     int64_t i_packet;       /* TS packet number */
00044     int64_t i_pts;          /* PTS of the associated stream (90kHz, 33bits) */
00045 } bd_clpi_ep_t;
00046 
00047 typedef struct
00048 {
00049     int i_pid;          /* PID of the associated stream */
00050     int i_type;         /* Stream type of the associated stream */
00051 
00052     int          i_ep;
00053     bd_clpi_ep_t *p_ep;
00054 } bd_clpi_ep_map_t;
00055 void bd_clpi_ep_map_Clean( bd_clpi_ep_map_t *p_ep_map );
00056 int bd_clpi_ep_map_Parse( bd_clpi_ep_map_t *p_ep_map,
00057                           bs_t *s, const int i_ep_map_start );
00058 
00059 typedef struct
00060 {
00061     int              i_id;
00062 
00063     int              i_stc;
00064     bd_clpi_stc_t    *p_stc;
00065     
00066     int              i_pmt_pid;
00067     int              i_stream;
00068     bd_clpi_stream_t *p_stream;
00069 
00070     int              i_ep_map;
00071     bd_clpi_ep_map_t *p_ep_map;
00072 } bd_clpi_t;
00073 void bd_clpi_Clean( bd_clpi_t *p_clpi );
00074 int bd_clpi_Parse( bd_clpi_t *p_clpi, bs_t *s, int i_id );
00075 

Generated on Tue May 25 08:04:52 2010 for VLC by  doxygen 1.5.6