mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
89 lines
2.5 KiB
Smali
89 lines
2.5 KiB
Smali
.class public interface abstract Lorg/webrtc/VideoProcessor;
|
|
.super Ljava/lang/Object;
|
|
.source "VideoProcessor.java"
|
|
|
|
# interfaces
|
|
.implements Lorg/webrtc/CapturerObserver;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static applyFrameAdaptationParameters(Lorg/webrtc/VideoFrame;Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;)Lorg/webrtc/VideoFrame;
|
|
.locals 7
|
|
|
|
.line 67
|
|
iget-boolean v0, p1, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;->drop:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 72
|
|
:cond_0
|
|
invoke-virtual {p0}, Lorg/webrtc/VideoFrame;->getBuffer()Lorg/webrtc/VideoFrame$Buffer;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p1, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;->cropX:I
|
|
|
|
iget v2, p1, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;->cropY:I
|
|
|
|
iget v3, p1, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;->cropWidth:I
|
|
|
|
iget v4, p1, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;->cropHeight:I
|
|
|
|
iget v5, p1, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;->scaleWidth:I
|
|
|
|
iget v6, p1, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;->scaleHeight:I
|
|
|
|
invoke-interface/range {v0 .. v6}, Lorg/webrtc/VideoFrame$Buffer;->cropAndScale(IIIIII)Lorg/webrtc/VideoFrame$Buffer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 74
|
|
new-instance v1, Lorg/webrtc/VideoFrame;
|
|
|
|
invoke-virtual {p0}, Lorg/webrtc/VideoFrame;->getRotation()I
|
|
|
|
move-result p0
|
|
|
|
iget-wide v2, p1, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;->timestampNs:J
|
|
|
|
invoke-direct {v1, v0, p0, v2, v3}, Lorg/webrtc/VideoFrame;-><init>(Lorg/webrtc/VideoFrame$Buffer;IJ)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onFrameCaptured(Lorg/webrtc/VideoFrame;Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;)V
|
|
.locals 0
|
|
|
|
.line 48
|
|
invoke-static {p1, p2}, Lorg/webrtc/VideoProcessor;->applyFrameAdaptationParameters(Lorg/webrtc/VideoFrame;Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;)Lorg/webrtc/VideoFrame;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 50
|
|
invoke-interface {p0, p1}, Lorg/webrtc/VideoProcessor;->onFrameCaptured(Lorg/webrtc/VideoFrame;)V
|
|
|
|
.line 51
|
|
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->release()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract setSink(Lorg/webrtc/VideoSink;)V
|
|
.end method
|