xine-lib  1.2.9
cpb.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 Julian Scheel
3  *
4  * This file is part of xine, a free video player.
5  *
6  * xine is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * xine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19  *
20  * cpb.h: Coded Picture Buffer
21  */
22 
23 #ifndef CPB_H_
24 #define CPB_H_
25 
26 #include "nal.h"
27 
29  IDR_PIC = 0x01,
30  REFERENCE = 0x02,
31  NOT_EXISTING = 0x04,
32  INTERLACED = 0x08
33 };
34 
36 {
37  uint32_t flag_mask;
38 
39  uint32_t max_pic_num;
40  int32_t pic_num;
41 
45 
48 
49  uint8_t repeat_pic;
50 
51  /* buffer data for the image slices, which
52  * are passed to the decoder
53  */
54  uint32_t slice_cnt;
55 
56  int64_t pts;
57 
58  struct nal_unit *sei_nal;
59  struct nal_unit *sps_nal;
60  struct nal_unit *pps_nal;
61  struct nal_unit *slc_nal;
62 };
63 
64 static struct coded_picture* create_coded_picture(void);
65 static void free_coded_picture(struct coded_picture *pic);
66 
67 #endif /* CPB_H_ */
uint32_t long_term_frame_idx
Definition: cpb.h:44
uint32_t flag_mask
Definition: cpb.h:37
int32_t top_field_order_cnt
Definition: cpb.h:46
struct nal_unit * sps_nal
Definition: cpb.h:59
static struct coded_picture * create_coded_picture(void)
Definition: cpb.c:31
Definition: cpb.h:31
picture_flags
Definition: cpb.h:28
Definition: cpb.h:32
int64_t pts
Definition: cpb.h:56
static void free_coded_picture(struct coded_picture *pic)
uint8_t repeat_pic
Definition: cpb.h:49
int32_t bottom_field_order_cnt
Definition: cpb.h:47
Definition: cpb.h:29
uint32_t max_pic_num
Definition: cpb.h:39
struct nal_unit * sei_nal
Definition: cpb.h:58
Definition: cpb.h:30
uint32_t slice_cnt
Definition: cpb.h:54
Definition: nal.h:459
uint32_t long_term_pic_num
Definition: cpb.h:43
struct nal_unit * pps_nal
Definition: cpb.h:60
int32_t pic_num
Definition: cpb.h:40
struct nal_unit * slc_nal
Definition: cpb.h:61
uint8_t used_for_long_term_ref
Definition: cpb.h:42
Definition: cpb.h:35