deadbeef.Filters
Class FilterOp

java.lang.Object
  extended by deadbeef.Filters.FilterOp

public class FilterOp
extends java.lang.Object

Subsampling scaling algorithm with various filters.

Based on the ResampleOp class from the Java Image Scaling Library. by Morten Nobel-Joergensen which again is based on "Java Image Util".

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program 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 General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see here.

Author:
Morten Nobel-Joergensen / 0xdeadbeef

Constructor Summary
FilterOp()
           
 
Method Summary
 int[] filter(Bitmap src, Palette pal, int w, int h)
           
 Filter getFilter()
          Get current filter
 void setFilter(Filter filter)
          Set current filter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterOp

public FilterOp()
Method Detail

getFilter

public Filter getFilter()
Get current filter

Returns:
Current filter

setFilter

public void setFilter(Filter filter)
Set current filter

Parameters:
filter - Filter

filter

public int[] filter(Bitmap src,
                    Palette pal,
                    int w,
                    int h)
Parameters:
src - Source bitmap
pal - Palette
w - Destination width
h - Destination height
Returns:
Destination integer array (filled with ARGB samples)