/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
typedef uint16_t CONV_BUF_TYPE; typedefstruct ConvolveParams { int do_average;
CONV_BUF_TYPE *dst; int dst_stride; int round_0; int round_1; int plane; int is_compound; int use_dist_wtd_comp_avg; int fwd_offset; int bck_offset;
} ConvolveParams;
typedefstruct WienerConvolveParams { int round_0; int round_1;
} WienerConvolveParams;
typedefvoid (*aom_convolve_fn_t)(const uint8_t *src, int src_stride,
uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, constint subpel_x_qn, constint subpel_y_qn,
ConvolveParams *conv_params);
typedefvoid (*aom_highbd_convolve_fn_t)( const uint16_t *src, int src_stride, uint16_t *dst, int dst_stride, int w, int h, const InterpFilterParams *filter_params_x, const InterpFilterParams *filter_params_y, constint subpel_x_qn, constint subpel_y_qn, ConvolveParams *conv_params, int bd);
struct AV1Common; struct scale_factors;
void av1_convolve_2d_facade(const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *interp_filters[2], constint subpel_x_qn, int x_step_q4, constint subpel_y_qn, int y_step_q4, int scaled,
ConvolveParams *conv_params);
staticinline ConvolveParams get_conv_params_no_round(int cmp_index, int plane,
CONV_BUF_TYPE *dst, int dst_stride, int is_compound, int bd) {
ConvolveParams conv_params;
assert(IMPLIES(cmp_index, is_compound));
// By default, set do average to 1 if this is the second single prediction // in a compound mode.
conv_params.do_average = cmp_index; return conv_params;
}
staticinline ConvolveParams get_conv_params(int do_average, int plane, int bd) { return get_conv_params_no_round(do_average, plane, NULL, 0, 0, bd);
}
void av1_highbd_convolve_2d_facade(const uint8_t *src8, int src_stride,
uint8_t *dst, int dst_stride, int w, int h, const InterpFilterParams *interp_filters[2], constint subpel_x_qn, int x_step_q4, constint subpel_y_qn, int y_step_q4, int scaled, ConvolveParams *conv_params, int bd);
#ifdef __cplusplus
} // extern "C" #endif
#endif// AOM_AV1_COMMON_CONVOLVE_H_
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.