76 lines
2 KiB
Smali
76 lines
2 KiB
Smali
.class public final enum Lorg/webrtc/HardwareVideoEncoder$YuvFormat$2;
|
|
.super Lorg/webrtc/HardwareVideoEncoder$YuvFormat;
|
|
.source "HardwareVideoEncoder.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lorg/webrtc/HardwareVideoEncoder$YuvFormat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x4009
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lorg/webrtc/HardwareVideoEncoder$YuvFormat;-><init>(Ljava/lang/String;ILorg/webrtc/HardwareVideoEncoder$1;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public fillBuffer(Ljava/nio/ByteBuffer;Lorg/webrtc/VideoFrame$Buffer;)V
|
|
.locals 9
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$Buffer;->toI420()Lorg/webrtc/VideoFrame$I420Buffer;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$I420Buffer;->getDataY()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$I420Buffer;->getStrideY()I
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$I420Buffer;->getDataU()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$I420Buffer;->getStrideU()I
|
|
|
|
move-result v3
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$I420Buffer;->getDataV()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$I420Buffer;->getStrideV()I
|
|
|
|
move-result v5
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$Buffer;->getWidth()I
|
|
|
|
move-result v7
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$Buffer;->getHeight()I
|
|
|
|
move-result v8
|
|
|
|
move-object v6, p1
|
|
|
|
invoke-static/range {v0 .. v8}, Lorg/webrtc/YuvHelper;->I420ToNV12(Ljava/nio/ByteBuffer;ILjava/nio/ByteBuffer;ILjava/nio/ByteBuffer;ILjava/nio/ByteBuffer;II)V
|
|
|
|
invoke-interface {p2}, Lorg/webrtc/VideoFrame$Buffer;->release()V
|
|
|
|
return-void
|
|
.end method
|