/* * Copyright (c) 2017 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "vpx_dsp/skin_detection.h" #define MODEL_MODE … // Fixed-point skin color model parameters. static const int skin_mean[5][2] = …; static const int skin_inv_cov[4] = …; // q16 static const int skin_threshold[6] = …; // q18 // Thresholds on luminance. static const int y_low = …; static const int y_high = …; // Evaluates the Mahalanobis distance measure for the input CbCr values. static int vpx_evaluate_skin_color_difference(const int cb, const int cr, const int idx) { … } // Checks if the input yCbCr values corresponds to skin color. int vpx_skin_pixel(const int y, const int cb, const int cr, int motion) { … }