VisualC/external/include/MPEGfilter.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 09 Jan 2012 04:20:54 -0500
changeset 556 2686e67b59fd
parent 495 VisualC/smpeg/include/MPEGfilter.h@b4d178cd982d
permissions -rwxr-xr-x
Moved external libraries into the "external" directory and added x64 build configuration.
slouken@495
     1
/*
slouken@495
     2
    SMPEG - SDL MPEG Player Library
slouken@495
     3
    Copyright (C) 1999  Loki Entertainment Software
slouken@495
     4
slouken@495
     5
    This library is free software; you can redistribute it and/or
slouken@495
     6
    modify it under the terms of the GNU Library General Public
slouken@495
     7
    License as published by the Free Software Foundation; either
slouken@495
     8
    version 2 of the License, or (at your option) any later version.
slouken@495
     9
slouken@495
    10
    This library is distributed in the hope that it will be useful,
slouken@495
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@495
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@495
    13
    Library General Public License for more details.
slouken@495
    14
slouken@495
    15
    You should have received a copy of the GNU Library General Public
slouken@495
    16
    License along with this library; if not, write to the Free
slouken@495
    17
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
slouken@495
    18
*/
slouken@495
    19
slouken@495
    20
/* MPEG filters */
slouken@495
    21
slouken@495
    22
#ifndef _MPEGFILTER_H_
slouken@495
    23
#define _MPEGFILTER_H_
slouken@495
    24
slouken@495
    25
/* SMPEG filter info flags */
slouken@495
    26
#define SMPEG_FILTER_INFO_MB_ERROR    1
slouken@495
    27
#define SMPEG_FILTER_INFO_PIXEL_ERROR 2
slouken@495
    28
slouken@495
    29
/* Filter info from SMPEG */
slouken@495
    30
typedef struct SMPEG_FilterInfo {
slouken@495
    31
  Uint16* yuv_mb_square_error;
slouken@495
    32
  Uint16* yuv_pixel_square_error;
slouken@495
    33
} SMPEG_FilterInfo;
slouken@495
    34
slouken@495
    35
/* MPEG filter definition */
slouken@495
    36
struct SMPEG_Filter;
slouken@495
    37
slouken@495
    38
/* Callback functions for the filter */
slouken@495
    39
typedef void (* SMPEG_FilterCallback)( SDL_Overlay * dest, SDL_Overlay * source, SDL_Rect * region, SMPEG_FilterInfo * filter_info, void * data );
slouken@495
    40
typedef void (* SMPEG_FilterDestroy)( struct SMPEG_Filter * filter );
slouken@495
    41
slouken@495
    42
/* The filter definition itself */
slouken@495
    43
typedef struct SMPEG_Filter {
slouken@495
    44
  Uint32 flags;
slouken@495
    45
  void * data;
slouken@495
    46
  SMPEG_FilterCallback callback;
slouken@495
    47
  SMPEG_FilterDestroy destroy;
slouken@495
    48
} SMPEG_Filter;
slouken@495
    49
slouken@495
    50
/* SMPEG built-in filters. */
slouken@495
    51
#ifdef __cplusplus
slouken@495
    52
extern "C" {
slouken@495
    53
#endif
slouken@495
    54
slouken@495
    55
/* The null filter (default). It simply copies the source rectangle to the video overlay. */ 
slouken@495
    56
extern DECLSPEC SMPEG_Filter * SMPEGfilter_null(void);
slouken@495
    57
slouken@495
    58
/* The bilinear filter. A basic low-pass filter that will produce a smoother image. */ 
slouken@495
    59
extern DECLSPEC SMPEG_Filter * SMPEGfilter_bilinear(void);
slouken@495
    60
slouken@495
    61
/* The deblocking filter. It filters block borders and non-intra coded blocks to reduce blockiness */ 
slouken@495
    62
extern DECLSPEC SMPEG_Filter * SMPEGfilter_deblocking(void);
slouken@495
    63
slouken@495
    64
#ifdef __cplusplus
slouken@495
    65
};
slouken@495
    66
#endif
slouken@495
    67
#endif /* _MPEGFILTER_H_ */