当前位置: 首页>>代码示例>>Java>>正文


Java GPUImageSepiaFilter类代码示例

本文整理汇总了Java中jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter的典型用法代码示例。如果您正苦于以下问题:Java GPUImageSepiaFilter类的具体用法?Java GPUImageSepiaFilter怎么用?Java GPUImageSepiaFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


GPUImageSepiaFilter类属于jp.co.cyberagent.android.gpuimage包,在下文中一共展示了GPUImageSepiaFilter类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: FilterAdjuster

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
public FilterAdjuster(final GPUImageFilter filter) {
    if (filter instanceof GPUImageSharpenFilter) {
        adjuster = new SharpnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSepiaFilter) {
        adjuster = new SepiaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageContrastFilter) {
        adjuster = new ContrastAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGammaFilter) {
        adjuster = new GammaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBrightnessFilter) {
        adjuster = new BrightnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSobelEdgeDetection) {
        adjuster = new SobelAdjuster().filter(filter);
    } else if (filter instanceof GPUImageEmbossFilter) {
        adjuster = new EmbossAdjuster().filter(filter);
    } else if (filter instanceof GPUImage3x3TextureSamplingFilter) {
        adjuster = new GPU3x3TextureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHueFilter) {
        adjuster = new HueAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePosterizeFilter) {
        adjuster = new PosterizeAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePixelationFilter) {
        adjuster = new PixelationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSaturationFilter) {
        adjuster = new SaturationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageExposureFilter) {
        adjuster = new ExposureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHighlightShadowFilter) {
        adjuster = new HighlightShadowAdjuster().filter(filter);
    } else if (filter instanceof GPUImageMonochromeFilter) {
        adjuster = new MonochromeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageOpacityFilter) {
        adjuster = new OpacityAdjuster().filter(filter);
    } else if (filter instanceof GPUImageRGBFilter) {
        adjuster = new RGBAdjuster().filter(filter);
    } else if (filter instanceof GPUImageWhiteBalanceFilter) {
        adjuster = new WhiteBalanceAdjuster().filter(filter);
    } else if (filter instanceof GPUImageVignetteFilter) {
        adjuster = new VignetteAdjuster().filter(filter);
    } else if (filter instanceof GPUImageDissolveBlendFilter) {
        adjuster = new DissolveBlendAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGaussianBlurFilter) {
        adjuster = new GaussianBlurAdjuster().filter(filter);
    } else if (filter instanceof GPUImageCrosshatchFilter) {
        adjuster = new CrosshatchBlurAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBulgeDistortionFilter) {
        adjuster = new BulgeDistortionAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGlassSphereFilter) {
        adjuster = new GlassSphereAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHazeFilter) {
        adjuster = new HazeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSphereRefractionFilter) {
        adjuster = new SphereRefractionAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSwirlFilter) {
        adjuster = new SwirlAdjuster().filter(filter);
    } else if (filter instanceof GPUImageColorBalanceFilter) {
        adjuster = new ColorBalanceAdjuster().filter(filter);
    } else if (filter instanceof GPUImageLevelsFilter) {
        adjuster = new LevelsMinMidAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBilateralFilter) {
        adjuster = new BilateralAdjuster().filter(filter);
    } else if (filter instanceof GPUImageTransformFilter) {
        adjuster = new RotateAdjuster().filter(filter);
    }
    else {

        adjuster = null;
    }
}
 
开发者ID:ChillingVan,项目名称:android-openGL-canvas,代码行数:70,代码来源:FilterAdjuster.java

示例2: SepiaFilterPostprocessor

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
public SepiaFilterPostprocessor(Context context, float intensity) {
  super(context, new GPUImageSepiaFilter());
  this.intensity = intensity;

  GPUImageSepiaFilter filter = getFilter();
  filter.setIntensity(intensity);
}
 
开发者ID:CarGuo,项目名称:FrescoUtils,代码行数:8,代码来源:SepiaFilterPostprocessor.java

示例3: onCreate

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
    requestWindowFeature(Window.FEATURE_NO_TITLE);

    setContentView(R.layout.activity_realtime_camera_preview);

    mSurfaceView = (GLSurfaceView) findViewById(R.id.gl_surface_view);
    mGPUImage = new GPUImage(this);
    mGPUImage.setGLSurfaceView(mSurfaceView);

    mSeekBar = (SeekBar) findViewById(R.id.seekBar1);
    mSeekBar.setMax(100);
    mSeekBar.setEnabled(false);
    mSeekBar.setOnSeekBarChangeListener(this);

    // セピア
    mSepia = new GPUImageSepiaFilter();
    // 白黒
    mGray = new GPUImageGrayscaleFilter();
    // シャープ
    // -4.0 to 4.0
    mSharp = new GPUImageSharpenFilter();
    // エッジ
    // 0.0 to 5.0
    mEdge = new GPUImageSobelEdgeDetection();

    findViewById(R.id.sepia).setOnClickListener(this);
    findViewById(R.id.gray).setOnClickListener(this);
    findViewById(R.id.sharp).setOnClickListener(this);
    findViewById(R.id.edge).setOnClickListener(this);
}
 
开发者ID:android-opensource-library-56,项目名称:android-opensource-library-56,代码行数:35,代码来源:RealtimeCameraPreviewActivity.java

示例4: onCreate

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_image_proccessing);

    mImageView = (GPUImageView) findViewById(R.id.gpuimage);
    Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
            R.drawable.image);
    mImageView.setImage(bitmap);

    mSeekBar = (SeekBar) findViewById(R.id.seekBar1);
    mSeekBar.setMax(100);
    mSeekBar.setEnabled(false);
    mSeekBar.setOnSeekBarChangeListener(this);

    // セピア
    mSepia = new GPUImageSepiaFilter();
    // 白黒
    mGray = new GPUImageGrayscaleFilter();
    // シャープ
    // -4.0 to 4.0
    mSharp = new GPUImageSharpenFilter();
    // エッジ
    // 0.0 to 5.0
    mEdge = new GPUImageSobelEdgeDetection();

    findViewById(R.id.sepia).setOnClickListener(this);
    findViewById(R.id.gray).setOnClickListener(this);
    findViewById(R.id.sharp).setOnClickListener(this);
    findViewById(R.id.edge).setOnClickListener(this);

}
 
开发者ID:android-opensource-library-56,项目名称:android-opensource-library-56,代码行数:33,代码来源:ImageProccessingActivity.java

示例5: SepiaFilterTransformation

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
public SepiaFilterTransformation(Context context, BitmapPool pool, float intensity) {
  super(context, pool, new GPUImageSepiaFilter());
  mIntensity = intensity;
  GPUImageSepiaFilter filter = getFilter();
  filter.setIntensity(mIntensity);
}
 
开发者ID:open-android,项目名称:Glide-transformations,代码行数:7,代码来源:SepiaFilterTransformation.java

示例6: SepiaFilterTransformation

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
public SepiaFilterTransformation(Context context, float intensity) {
  super(context, new GPUImageSepiaFilter());
  mIntensity = intensity;
  GPUImageSepiaFilter filter = getFilter();
  filter.setIntensity(mIntensity);
}
 
开发者ID:open-android,项目名称:Picasso-transformations,代码行数:7,代码来源:SepiaFilterTransformation.java

示例7: FilterAdjuster

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
public FilterAdjuster(final GPUImageFilter filter) {
    if (filter instanceof GPUImageSharpenFilter) {
        adjuster = new SharpnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSepiaFilter) {
        adjuster = new SepiaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageContrastFilter) {
        adjuster = new ContrastAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGammaFilter) {
        adjuster = new GammaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBrightnessFilter) {
        adjuster = new BrightnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSobelEdgeDetection) {
        adjuster = new SobelAdjuster().filter(filter);
    } else if (filter instanceof GPUImageEmbossFilter) {
        adjuster = new EmbossAdjuster().filter(filter);
    } else if (filter instanceof GPUImage3x3TextureSamplingFilter) {
        adjuster = new GPU3x3TextureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHueFilter) {
        adjuster = new HueAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePosterizeFilter) {
        adjuster = new PosterizeAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePixelationFilter) {
        adjuster = new PixelationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSaturationFilter) {
        adjuster = new SaturationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageExposureFilter) {
        adjuster = new ExposureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHighlightShadowFilter) {
        adjuster = new HighlightShadowAdjuster().filter(filter);
    } else if (filter instanceof GPUImageMonochromeFilter) {
        adjuster = new MonochromeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageOpacityFilter) {
        adjuster = new OpacityAdjuster().filter(filter);
    } else if (filter instanceof GPUImageRGBFilter) {
        adjuster = new RGBAdjuster().filter(filter);
    } else if (filter instanceof GPUImageWhiteBalanceFilter) {
        adjuster = new WhiteBalanceAdjuster().filter(filter);
    } else if (filter instanceof GPUImageVignetteFilter) {
        adjuster = new VignetteAdjuster().filter(filter);
    } else if (filter instanceof GPUImageDissolveBlendFilter) {
        adjuster = new DissolveBlendAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGaussianBlurFilter) {
        adjuster = new GaussianBlurAdjuster().filter(filter);
    } else if (filter instanceof GPUImageCrosshatchFilter) {
        adjuster = new CrosshatchBlurAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBulgeDistortionFilter) {
        adjuster = new BulgeDistortionAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGlassSphereFilter) {
        adjuster = new GlassSphereAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHazeFilter) {
        adjuster = new HazeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSphereRefractionFilter) {
        adjuster = new SphereRefractionAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSwirlFilter) {
        adjuster = new SwirlAdjuster().filter(filter);
    } else if (filter instanceof GPUImageColorBalanceFilter) {
        adjuster = new ColorBalanceAdjuster().filter(filter);
    } else {
        adjuster = null;
    }
}
 
开发者ID:macyuan,项目名称:TAG,代码行数:62,代码来源:GPUImageFilterTools.java

示例8: FilterAdjuster

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
public FilterAdjuster(final GPUImageFilter filter) {
  if (filter instanceof GPUImageSharpenFilter) {
    adjuster = new SharpnessAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSepiaFilter) {
    adjuster = new SepiaAdjuster().filter(filter);
  } else if (filter instanceof GPUImageContrastFilter) {
    adjuster = new ContrastAdjuster().filter(filter);
  } else if (filter instanceof GPUImageGammaFilter) {
    adjuster = new GammaAdjuster().filter(filter);
  } else if (filter instanceof GPUImageBrightnessFilter) {
    adjuster = new BrightnessAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSobelEdgeDetection) {
    adjuster = new SobelAdjuster().filter(filter);
  } else if (filter instanceof GPUImageEmbossFilter) {
    adjuster = new EmbossAdjuster().filter(filter);
  } else if (filter instanceof GPUImage3x3TextureSamplingFilter) {
    adjuster = new GPU3x3TextureAdjuster().filter(filter);
  } else if (filter instanceof GPUImageHueFilter) {
    adjuster = new HueAdjuster().filter(filter);
  } else if (filter instanceof GPUImagePosterizeFilter) {
    adjuster = new PosterizeAdjuster().filter(filter);
  } else if (filter instanceof GPUImagePixelationFilter) {
    adjuster = new PixelationAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSaturationFilter) {
    adjuster = new SaturationAdjuster().filter(filter);
  } else if (filter instanceof GPUImageExposureFilter) {
    adjuster = new ExposureAdjuster().filter(filter);
  } else if (filter instanceof GPUImageHighlightShadowFilter) {
    adjuster = new HighlightShadowAdjuster().filter(filter);
  } else if (filter instanceof GPUImageMonochromeFilter) {
    adjuster = new MonochromeAdjuster().filter(filter);
  } else if (filter instanceof GPUImageOpacityFilter) {
    adjuster = new OpacityAdjuster().filter(filter);
  } else if (filter instanceof GPUImageRGBFilter) {
    adjuster = new RGBAdjuster().filter(filter);
  } else if (filter instanceof GPUImageWhiteBalanceFilter) {
    adjuster = new WhiteBalanceAdjuster().filter(filter);
  } else if (filter instanceof GPUImageVignetteFilter) {
    adjuster = new VignetteAdjuster().filter(filter);
  } else if (filter instanceof GPUImageDissolveBlendFilter) {
    adjuster = new DissolveBlendAdjuster().filter(filter);
  } else if (filter instanceof GPUImageGaussianBlurFilter) {
    adjuster = new GaussianBlurAdjuster().filter(filter);
  } else if (filter instanceof GPUImageCrosshatchFilter) {
    adjuster = new CrosshatchBlurAdjuster().filter(filter);
  } else if (filter instanceof GPUImageBulgeDistortionFilter) {
    adjuster = new BulgeDistortionAdjuster().filter(filter);
  } else if (filter instanceof GPUImageGlassSphereFilter) {
    adjuster = new GlassSphereAdjuster().filter(filter);
  } else if (filter instanceof GPUImageHazeFilter) {
    adjuster = new HazeAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSphereRefractionFilter) {
    adjuster = new SphereRefractionAdjuster().filter(filter);
  } else if (filter instanceof GPUImageSwirlFilter) {
    adjuster = new SwirlAdjuster().filter(filter);
  } else if (filter instanceof GPUImageColorBalanceFilter) {
    adjuster = new ColorBalanceAdjuster().filter(filter);
  } else if (filter instanceof GPUImageLevelsFilter) {
    adjuster = new LevelsMinMidAdjuster().filter(filter);
  } else {
    adjuster = null;
  }
}
 
开发者ID:XueyanLiu,项目名称:miku,代码行数:64,代码来源:FilterTools.java

示例9: SepiaFilterTransformation

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
public SepiaFilterTransformation(float intensity) {
  super(new GPUImageSepiaFilter());
  this.intensity = intensity;
  GPUImageSepiaFilter filter = getFilter();
  filter.setIntensity(this.intensity);
}
 
开发者ID:wasabeef,项目名称:glide-transformations,代码行数:7,代码来源:SepiaFilterTransformation.java

示例10: FilterAdjuster

import jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter; //导入依赖的package包/类
public FilterAdjuster(final GPUImageFilter filter) {
    if (filter instanceof GPUImageSharpenFilter) {
        adjuster = new SharpnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSepiaFilter) {
        adjuster = new SepiaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageContrastFilter) {
        adjuster = new ContrastAdjuster().filter(filter);
    } else if (filter instanceof GPUImageGammaFilter) {
        adjuster = new GammaAdjuster().filter(filter);
    } else if (filter instanceof GPUImageBrightnessFilter) {
        adjuster = new BrightnessAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSobelEdgeDetection) {
        adjuster = new SobelAdjuster().filter(filter);
    } else if (filter instanceof GPUImage3x3TextureSamplingFilter) {
        adjuster = new GPU3x3TextureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageEmbossFilter) {
        adjuster = new EmbossAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHueFilter) {
        adjuster = new HueAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePosterizeFilter) {
        adjuster = new PosterizeAdjuster().filter(filter);
    } else if (filter instanceof GPUImagePixelationFilter) {
        adjuster = new PixelationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageSaturationFilter) {
        adjuster = new SaturationAdjuster().filter(filter);
    } else if (filter instanceof GPUImageExposureFilter) {
        adjuster = new ExposureAdjuster().filter(filter);
    } else if (filter instanceof GPUImageHighlightShadowFilter) {
        adjuster = new HighlightShadowAdjuster().filter(filter);
    } else if (filter instanceof GPUImageMonochromeFilter) {
        adjuster = new MonochromeAdjuster().filter(filter);
    } else if (filter instanceof GPUImageOpacityFilter) {
        adjuster = new OpacityAdjuster().filter(filter);
    } else if (filter instanceof GPUImageRGBFilter) {
        adjuster = new RedAdjuster().filter(filter);
    } else if (filter instanceof GPUImageWhiteBalanceFilter) {
        adjuster = new WhiteBalanceAdjuster().filter(filter);
    } else if (filter instanceof GPUImageVignetteFilter) {
        adjuster = new VignetteAdjuster().filter(filter);
    } else if (filter instanceof GPUImageDissolveBlendFilter) {
        adjuster = new DissolveBlendAdjuster().filter(filter);
    } else {
        adjuster = null;
    }
}
 
开发者ID:k0shk0sh,项目名称:Filtra-StyleMe-,代码行数:46,代码来源:FilterAdjuster.java


注:本文中的jp.co.cyberagent.android.gpuimage.GPUImageSepiaFilter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。