michael@0: /* michael@0: * Copyright (c) 2011 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: michael@0: #ifndef ERROR_CONCEALMENT_H_ michael@0: #define ERROR_CONCEALMENT_H_ michael@0: michael@0: #include "onyxd_int.h" michael@0: #include "ec_types.h" michael@0: michael@0: /* Allocate memory for the overlap lists */ michael@0: int vp8_alloc_overlap_lists(VP8D_COMP *pbi); michael@0: michael@0: /* Deallocate the overlap lists */ michael@0: void vp8_de_alloc_overlap_lists(VP8D_COMP *pbi); michael@0: michael@0: /* Estimate all missing motion vectors. */ michael@0: void vp8_estimate_missing_mvs(VP8D_COMP *pbi); michael@0: michael@0: /* Functions for spatial MV interpolation */ michael@0: michael@0: /* Interpolates all motion vectors for a macroblock mb at position michael@0: * (mb_row, mb_col). */ michael@0: void vp8_interpolate_motion(MACROBLOCKD *mb, michael@0: int mb_row, int mb_col, michael@0: int mb_rows, int mb_cols, michael@0: int mi_stride); michael@0: michael@0: /* Conceal a macroblock with corrupt residual. michael@0: * Copies the prediction signal to the reconstructed image. michael@0: */ michael@0: void vp8_conceal_corrupt_mb(MACROBLOCKD *xd); michael@0: michael@0: #endif // ERROR_CONCEALMENT_H_