OpenCores
URL https://opencores.org/ocsvn/bluespec-h264/bluespec-h264/trunk

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [test/] [decoder/] [ldecod/] [inc/] [nalucommon.h] - Blame information for rev 100

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jamey.hick
 
2
/*!
3
 **************************************************************************************
4
 * \file
5
 *    nalucommon.h.h
6
 * \brief
7
 *    NALU handling common to encoder and decoder
8
 *  \date 25 November 2002
9
 * \author
10
 *    Main contributors (see contributors.h for copyright, address and affiliation details)
11
 *      - Stephan Wenger        <stewe@cs.tu-berlin.de>
12
 ***************************************************************************************
13
 */
14
 
15
 
16
#ifndef _NALUCOMMON_H_
17
#define _NALUCOMMON_H_
18
 
19
#define MAXRBSPSIZE 64000
20
 
21
#define NALU_TYPE_SLICE    1
22
#define NALU_TYPE_DPA      2
23
#define NALU_TYPE_DPB      3
24
#define NALU_TYPE_DPC      4
25
#define NALU_TYPE_IDR      5
26
#define NALU_TYPE_SEI      6
27
#define NALU_TYPE_SPS      7
28
#define NALU_TYPE_PPS      8
29
#define NALU_TYPE_AUD      9
30
#define NALU_TYPE_EOSEQ    10
31
#define NALU_TYPE_EOSTREAM 11
32
#define NALU_TYPE_FILL     12
33
 
34
#define NALU_PRIORITY_HIGHEST     3
35
#define NALU_PRIORITY_HIGH        2
36
#define NALU_PRIRITY_LOW          1
37
#define NALU_PRIORITY_DISPOSABLE  0
38
 
39
 
40
typedef struct
41
{
42
  int startcodeprefix_len;      //! 4 for parameter sets and first slice in picture, 3 for everything else (suggested)
43
  unsigned len;                 //! Length of the NAL unit (Excluding the start code, which does not belong to the NALU)
44
  unsigned max_size;            //! Nal Unit Buffer size
45
  int nal_unit_type;            //! NALU_TYPE_xxxx
46
  int nal_reference_idc;        //! NALU_PRIORITY_xxxx
47
  int forbidden_bit;            //! should be always FALSE
48
  byte *buf;        //! conjtains the first byte followed by the EBSP
49
} NALU_t;
50
 
51
 
52
NALU_t *AllocNALU();
53
void FreeNALU(NALU_t *n);
54
 
55
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.