Template
107 lines
3.8 KiB
C
107 lines
3.8 KiB
C
|
|
/*!
|
|
************************************************************************
|
|
* \file ferc_api.h.h
|
|
*
|
|
* \brief
|
|
* Definitions for frame lost error concealment.
|
|
*
|
|
* Based on Thomson APIs for concealing entire frame loss.
|
|
* Modification to be compatible with frame loss in auxiliary view,
|
|
* and some improvements in error concealment strategies
|
|
*
|
|
* \author
|
|
* Previous work
|
|
* - Jill Boyce <jill.boyce@thomson.net>
|
|
* - Saurav K Bandyopadhyay <saurav@ieee.org>
|
|
* - Zhenyu Wu <Zhenyu.Wu@thomson.net>
|
|
* - Purvin Pandit <Purvin.Pandit@thomson.net>
|
|
* Actual Work
|
|
* - Jo���o Carreira
|
|
*
|
|
************************************************************************
|
|
*/
|
|
|
|
#ifndef _FERC_API_H
|
|
#define _FERC_API_H
|
|
|
|
#define CONCEAL_REMAINING_FRAMES 1
|
|
|
|
|
|
#include "global.h"
|
|
#include "mbuffer.h"
|
|
|
|
/* Concealment Modes */
|
|
enum {
|
|
|
|
NONE_CONCEAL = 0,
|
|
// References
|
|
FRAME_COPY_FF = 1,
|
|
FRAME_COPY_BC = 2,
|
|
MOTION_COPY_TEMPORAL = 3,
|
|
MOTION_COPY_SPATIAL = 4,
|
|
MOTION_COPY_TEMPORAL_SPATIAL = 5,
|
|
MOTION_COPY_ENHANCED = 6,
|
|
// Concealment strategies implemented
|
|
INTERVIEW_COPY = 10,
|
|
MOTION_INTRAVIEW = 11,
|
|
MOTION_INTERVIEW = 12,
|
|
MOTION_INTERVIEW_FIRST = 13,
|
|
MOTION_INTERVIEW_MVE_INTERCOPY = 14,
|
|
MOTION_SMART_MOTION_BASED = 15,
|
|
MOTION_ITERATIONS = 16,
|
|
|
|
MOTION_INTERACTIVE_INTRA_INTER = 17,
|
|
MOTION_INTRA_INTER_SAD = 18,
|
|
ENHANCED_MVE = 19,
|
|
|
|
// Auxiliary methods
|
|
CONCEALMV = 50,
|
|
MOTION_INTRAVIEW_DISP = 51,
|
|
ZERO_MV_CONC = 52,
|
|
|
|
MSE_BASED = 60,
|
|
SPAT_TEMP_DIFF = 61,
|
|
MOTION_DISP_FRAME = 62,
|
|
NONE = 63,
|
|
|
|
//Previous proposed
|
|
REF_DFDP = 21,
|
|
REF_ISMID = 22,
|
|
};
|
|
|
|
|
|
extern void fercOpenFrameConcealment ( VideoParameters *p_Vid );
|
|
extern void fercCloseFrameConcealment ( VideoParameters *p_Vid );
|
|
|
|
extern void fercFillCurrPicture(VideoParameters *p_Vid, StorablePicture *currPicture);
|
|
|
|
extern void fercConcealLostRefFrames(DecodedPictureBuffer *p_Dpb, Slice *currSlice, int is_IDR);
|
|
|
|
extern void fercSlindingWindowsOnceFrameRemoved( DecodedPictureBuffer *p_Dpb , int pos );
|
|
extern void fercAddPOC2Dpb( DecodedPictureBuffer *p_Dpb , int poc );
|
|
extern void fercResetPOCInDpb( DecodedPictureBuffer *p_Dpb );
|
|
extern void fercConcealLostNonRefFrames(DecodedPictureBuffer *p_Dpb, unsigned int diff);
|
|
|
|
extern void fercConcealLostInterviewRefFrames(DecodedPictureBuffer *p_Dpb, StorablePicture **LostPicture, Slice *currSlice, int MissingView);
|
|
|
|
extern void fercConcealRemainingLostFrames(DecodedPictureBuffer *p_Dpb, FrameStore *fs);
|
|
|
|
extern void fercWriteConcealedLostNonRefFrames(DecodedPictureBuffer *p_Dpb, int iPoc, int iView);
|
|
|
|
extern StorablePicture *fercGetPictureForConcealFromDpb(DecodedPictureBuffer *p_Dpb, int poc, int search_view_id, int search_mode, int search_concealed, unsigned int *position);
|
|
|
|
extern void fercSaveListsInfo( VideoParameters *p_Vid, Slice *currSlice );
|
|
|
|
/* Error Propagation Concealment Functions */
|
|
extern void GetDisparityForCurrentSlice(Slice *currSlice);
|
|
|
|
extern void fercCopyImg( VideoParameters *p_Vid, StorablePicture *Source, StorablePicture *Dest );
|
|
extern void fercModLostRefFrames( VideoParameters *p_Vid, StorablePicture *DecPicture );
|
|
|
|
extern void ProjectMotionToCurrSlice (VideoParameters *p_Vid, StorablePicture *currPicture, Slice *currSlice);
|
|
extern void ChangeInterViewPrediction(Macroblock *currMB, StorablePicture *dec_picture, int pred_dir, int i, int j, int block_size_x, int block_size_y );
|
|
extern void fercFreeMotionPropInfo( StorablePicture *p );
|
|
|
|
#endif
|