]> git.sesse.net Git - vlc/blob - modules/access/bd/clpi.h
Update LGPL license blurb, choosing v2.1+.
[vlc] / modules / access / bd / clpi.h
1 /*****************************************************************************
2  * clpi.h: BluRay Disc CLPI
3  *****************************************************************************
4  * Copyright (C) 2009 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 typedef struct
25 {
26     int     i_pcr_pid;
27     int64_t i_packet;   /* TS Packet number */
28     int64_t i_start;    /* Presentation start time in 45kHz */
29     int64_t i_end;      /* Presentation end time in 45kHz */
30 } bd_clpi_stc_t;
31 void bd_clpi_stc_Parse( bd_clpi_stc_t *p_stc, bs_t *s );
32
33 typedef struct
34 {
35     int i_pid;          /* PID of the associated stream */
36     int i_type;         /* Stream type of the associated stream */
37 } bd_clpi_stream_t;
38 void bd_clpi_stream_Parse( bd_clpi_stream_t *p_stream, bs_t *s );
39
40 typedef struct
41 {
42     bool    b_angle_point;  /* EP angle point change */
43     int64_t i_packet;       /* TS packet number */
44     int64_t i_pts;          /* PTS of the associated stream (90kHz, 33bits) */
45 } bd_clpi_ep_t;
46
47 typedef struct
48 {
49     int i_pid;          /* PID of the associated stream */
50     int i_type;         /* Stream type of the associated stream */
51
52     int          i_ep;
53     bd_clpi_ep_t *p_ep;
54 } bd_clpi_ep_map_t;
55 void bd_clpi_ep_map_Clean( bd_clpi_ep_map_t *p_ep_map );
56 int bd_clpi_ep_map_Parse( bd_clpi_ep_map_t *p_ep_map,
57                           bs_t *s, const int i_ep_map_start );
58
59 typedef struct
60 {
61     int              i_id;
62
63     int              i_stc;
64     bd_clpi_stc_t    *p_stc;
65     
66     int              i_pmt_pid;
67     int              i_stream;
68     bd_clpi_stream_t *p_stream;
69
70     int              i_ep_map;
71     bd_clpi_ep_map_t *p_ep_map;
72 } bd_clpi_t;
73 void bd_clpi_Clean( bd_clpi_t *p_clpi );
74 int bd_clpi_Parse( bd_clpi_t *p_clpi, bs_t *s, int i_id );
75