summaryrefslogtreecommitdiff
path: root/gst-libs/gst/idct/idct.h
blob: b5654737fcf8a025a34ce84ca2fd3776af4e7020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* Gnome-Streamer
 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */


#ifndef __GST_IDCT_H__
#define __GST_IDCT_H__

#include <glib.h>

typedef enum {
  GST_IDCT_DEFAULT,    
  GST_IDCT_INT,	
  GST_IDCT_FAST_INT, 
  GST_IDCT_FLOAT,   
  GST_IDCT_MMX,	
  GST_IDCT_MMX32,
  GST_IDCT_SSE,
} GstIDCTMethod;

typedef struct _GstIDCT GstIDCT;
typedef void (*GstIDCTFunction) (gshort *block);

#define GST_IDCT_TRANSPOSE(idct) ((idct)->need_transpose)

struct _GstIDCT {
  /* private */
  GstIDCTFunction convert;
  GstIDCTFunction convert_sparse;
  gboolean need_transpose;
};


GstIDCT *gst_idct_new(GstIDCTMethod method);
#define gst_idct_convert(idct, blocks) (idct)->convert((blocks))
#define gst_idct_convert_sparse(idct, blocks) (idct)->convert_sparse((blocks))
void gst_idct_destroy(GstIDCT *idct);

#endif /* __GST_IDCT_H__ */