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

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [test/] [decoder/] [ldecod/] [inc/] [erc_globals.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 erc_globals.h
5
 *
6
 * \brief
7
 *      global header file for error concealment module
8
 *
9
 * \author
10
 *      - Viktor Varsa                     <viktor.varsa@nokia.com>
11
 *      - Ye-Kui Wang                   <wyk@ieee.org>
12
 ************************************************************************
13
 */
14
 
15
#ifndef _ERC_GLOBALS_H_
16
#define _ERC_GLOBALS_H_
17
 
18
#include <string.h>
19
#include "defines.h"
20
 
21
/* "block" means an 8x8 pixel area */
22
 
23
/* Region modes */
24
#define REGMODE_INTER_COPY       0  //!< Copy region
25
#define REGMODE_INTER_PRED       1  //!< Inter region with motion vectors
26
#define REGMODE_INTRA            2  //!< Intra region
27
#define REGMODE_SPLITTED         3  //!< Any region mode higher than this indicates that the region
28
                                    //!< is splitted which means 8x8 block
29
#define REGMODE_INTER_COPY_8x8   4
30
#define REGMODE_INTER_PRED_8x8   5
31
#define REGMODE_INTRA_8x8        6
32
 
33
//! YUV pixel domain image arrays for a video frame
34
typedef struct
35
{
36
  imgpel *yptr;
37
  imgpel *uptr;
38
  imgpel *vptr;
39
} frame;
40
 
41
//! region structure stores information about a region that is needed for concealment
42
typedef struct
43
{
44
  byte regionMode;  //!< region mode as above
45
  int xMin;         //!< X coordinate of the pixel position of the top-left corner of the region
46
  int yMin;         //!< Y coordinate of the pixel position of the top-left corner of the region
47
  int mv[3];        //!< motion vectors in 1/4 pixel units: mvx = mv[0], mvy = mv[1],
48
                    //!< and ref_frame = mv[2]
49
} objectBuffer_t;
50
 
51
#endif
52
 

powered by: WebSVN 2.1.0

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