• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java GPUImageSepiaFilter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java TrainingParameters类代码示例发布时间:2022-05-21
下一篇:
Java Field类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap