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

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [test/] [decoder/] [ldecod/] [src/] [nalu.c] - Blame information for rev 100

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jamey.hick
 
2
/*!
3
 ************************************************************************
4
 * \file  nalu.c
5
 *
6
 * \brief
7
 *    Decoder NALU support functions
8
 *
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
#include <assert.h>
16
 
17
#include "global.h"
18
#include "nalu.h"
19
 
20
 
21
 
22
 
23
/*!
24
 *************************************************************************************
25
 * \brief
26
 *    Converts a NALU to an RBSP
27
 *
28
 * \param
29
 *    nalu: nalu structure to be filled
30
 *
31
 * \return
32
 *    length of the RBSP in bytes
33
 *************************************************************************************
34
 */
35
 
36
int NALUtoRBSP (NALU_t *nalu)
37
{
38
  assert (nalu != NULL);
39
 
40
  nalu->len = EBSPtoRBSP (nalu->buf, nalu->len, 1) ;
41
 
42
  return nalu->len ;
43
}
44
 

powered by: WebSVN 2.1.0

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