videoeditorengine/avcedit/inc/framebuffer.h
changeset 0 951a5db380a0
equal deleted inserted replaced
-1:000000000000 0:951a5db380a0
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description:
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef _FRAMEBUFFER_H_
       
    21 #define _FRAMEBUFFER_H_
       
    22 
       
    23 
       
    24 #include "nrctyp32.h"
       
    25 #include "globals.h"
       
    26 #include "avcdapi.h"
       
    27 
       
    28 
       
    29 #define FRM_NON_REF_PIC     0
       
    30 #define FRM_SHORT_TERM_PIC  1
       
    31 #define FRM_LONG_TERM_PIC   2
       
    32 
       
    33 
       
    34 typedef struct _frmBuf_s {
       
    35   int constraintSet0flag;
       
    36   int constraintSet1flag;
       
    37   int constraintSet2flag;
       
    38   int profile;
       
    39   int level;
       
    40   int width;
       
    41   int height;
       
    42   unsigned cropLeftOff;
       
    43   unsigned cropRightOff;
       
    44   unsigned cropTopOff;
       
    45   unsigned cropBottomOff;
       
    46 
       
    47   int aspectRatioNum;
       
    48   int aspectRatioDenom;
       
    49   int overscanInfo;
       
    50   int videoFormat;
       
    51   int videoFullRangeFlag;
       
    52   int matrixCoefficients;
       
    53   int chromaSampleLocType;
       
    54   int numReorderFrames;
       
    55   float frameRate;
       
    56 
       
    57   int imgPadding;
       
    58 
       
    59   int qp;
       
    60   int chromaQpIndexOffset;
       
    61 
       
    62   int32 frameNum;
       
    63   int32 maxFrameNum;
       
    64   int32 picNum;
       
    65   int longTermFrmIdx;
       
    66   int longTermPicNum;
       
    67   int refType;        /* non-ref, short term or long term */
       
    68   int forOutput;      /* If this frame is waiting for output */
       
    69   int nonExisting;    
       
    70   int32 poc;
       
    71   int isIDR;
       
    72   int idrPicID;
       
    73   int hasMMCO5;
       
    74   int picType;
       
    75 
       
    76   int pictureStructure;
       
    77 
       
    78   int lossy;
       
    79 /*#if defined(ERROR_CONCEALMENT) && defined(BACKCHANNEL_INFO)
       
    80   unsigned char *mbLossMap;
       
    81 #endif*/
       
    82 
       
    83   int sceneCut;
       
    84 
       
    85 } frmBuf_s;
       
    86 
       
    87 
       
    88 typedef struct _mbAttributes_s {
       
    89   int *sliceMap;
       
    90   int8 *mbTypeTable;
       
    91   int8 *qpTable;
       
    92   int8 *refIdxTable;
       
    93   int *cbpTable;
       
    94   int8 *ipModesUpPred;
       
    95   motVec_s *motVecTable;
       
    96   int8 *numCoefUpPred[3];
       
    97   int8 *filterModeTab;
       
    98   int8 *alphaOffset;
       
    99   int8 *betaOffset;
       
   100 } mbAttributes_s;
       
   101 
       
   102 
       
   103 frmBuf_s *frmOpen(mbAttributes_s **mbData, int width, int height);
       
   104 
       
   105 frmBuf_s *frmOpenRef(int width, int height);
       
   106 
       
   107 void frmClose(frmBuf_s *recoBuf, mbAttributes_s *mbData);
       
   108 
       
   109 void frmCloseRef(frmBuf_s *ref);
       
   110 
       
   111 frmBuf_s *frmMakeRefFrame(frmBuf_s *recoBuf, frmBuf_s *refBuf);
       
   112 
       
   113 
       
   114 #endif