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

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [test/] [decoder/] [ldecod/] [src/] [nal_part.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  nal_part.c
5
 *
6
 * \brief
7
 *    Network Adaptation layer for partition file
8
 *
9
 * \author
10
 *    Main contributors (see contributors.h for copyright, address and affiliation details)
11
 *    - Tobias Oelbaum <oelbaum@hhi.de, oelbaum@drehvial.de>
12
 ************************************************************************
13
 */
14
 
15
#include <string.h>
16
 
17
#include "contributors.h"
18
#include "global.h"
19
#include "elements.h"
20
 
21
int assignSE2partition[][SE_MAX_ELEMENTS] =
22
{
23
  // 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19  // elementnumber (no not uncomment)
24
  {  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },   //!< all elements in one partition no data partitioning
25
  {  0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 2, 2, 2, 2, 0, 0, 0, 0 }    //!< three partitions per slice
26
};
27
 
28
int PartitionMode;
29
 
30
/*!
31
 ************************************************************************
32
 * \brief
33
 *    Resets the entries in the bitstream struct
34
 ************************************************************************
35
 */
36
void free_Partition(Bitstream *currStream)
37
{
38
  byte *buf = currStream->streamBuffer;
39
 
40
  currStream->bitstream_length = 0;
41
  currStream->frame_bitoffset = 0;
42
  currStream->ei_flag =0;
43
  memset (buf, 0x00, MAX_CODED_FRAME_SIZE);
44
}

powered by: WebSVN 2.1.0

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