You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.0 KiB
79 lines
2.0 KiB
2 years ago
|
.class public Lcom/via/gpuimage/GPUImageThresholdEdgeDetection;
|
||
|
.super Lcom/via/gpuimage/GPUImageFilterGroup;
|
||
|
.source "GPUImageThresholdEdgeDetection.java"
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 8
|
||
|
invoke-direct {p0}, Lcom/via/gpuimage/GPUImageFilterGroup;-><init>()V
|
||
|
|
||
|
.line 9
|
||
|
new-instance v0, Lcom/via/gpuimage/GPUImageGrayscaleFilter;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/via/gpuimage/GPUImageGrayscaleFilter;-><init>()V
|
||
|
|
||
|
invoke-virtual {p0, v0}, Lcom/via/gpuimage/GPUImageThresholdEdgeDetection;->addFilter(Lcom/via/gpuimage/GPUImageFilter;)V
|
||
|
|
||
|
.line 10
|
||
|
new-instance v0, Lcom/via/gpuimage/GPUImageSobelThresholdFilter;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/via/gpuimage/GPUImageSobelThresholdFilter;-><init>()V
|
||
|
|
||
|
invoke-virtual {p0, v0}, Lcom/via/gpuimage/GPUImageThresholdEdgeDetection;->addFilter(Lcom/via/gpuimage/GPUImageFilter;)V
|
||
|
|
||
|
.line 11
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public setLineSize(F)V
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 14
|
||
|
invoke-virtual {p0}, Lcom/via/gpuimage/GPUImageThresholdEdgeDetection;->getFilters()Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/via/gpuimage/GPUImage3x3TextureSamplingFilter;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Lcom/via/gpuimage/GPUImage3x3TextureSamplingFilter;->setLineSize(F)V
|
||
|
|
||
|
.line 15
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public setThreshold(F)V
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 18
|
||
|
invoke-virtual {p0}, Lcom/via/gpuimage/GPUImageThresholdEdgeDetection;->getFilters()Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/via/gpuimage/GPUImageSobelThresholdFilter;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Lcom/via/gpuimage/GPUImageSobelThresholdFilter;->setThreshold(F)V
|
||
|
|
||
|
.line 19
|
||
|
return-void
|
||
|
.end method
|