2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
12 /****************************************************************************
14 * Module Title : preproc.h
16 * Description : simple preprocessor
18 ****************************************************************************/
20 #ifndef __INC_PREPROC_H
21 #define __INC_PREPROC_H
23 /****************************************************************************
25 ****************************************************************************/
29 unsigned char *frame_buffer
;
31 unsigned int *fixed_divide
;
33 unsigned char *frame_buffer_alloc
;
34 unsigned int *fixed_divide_alloc
;
37 /****************************************************************************
39 ****************************************************************************/
40 void pre_proc_machine_specific_config(void);
41 void delete_pre_proc(pre_proc_instance
*ppi
);
42 int init_pre_proc(pre_proc_instance
*ppi
, int frame_size
);
43 extern void spatial_filter_c(pre_proc_instance
*ppi
, unsigned char *s
, unsigned char *d
, int width
, int height
, int pitch
, int strength
);
44 extern void (*temp_filter
)(pre_proc_instance
*ppi
, unsigned char *s
, unsigned char *d
, int bytes
, int strength
);