Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyuagora committed Oct 30, 2024
1 parent d69bfa1 commit 01e8bf5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 57 deletions.
56 changes: 0 additions & 56 deletions dita/RTC-NG/API/class_externalvideoframe.dita
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,17 @@
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java">public class AgoraVideoFrame {

public static final int FORMAT_NONE = -1;

public static final int FORMAT_TEXTURE_2D = 10;

public static final int FORMAT_TEXTURE_OES = 11;

public static final int FORMAT_I420 = 1;

public static final int FORMAT_BGRA = 2;

public static final int FORMAT_NV21 = 3;

public static final int FORMAT_RGBA = 4;

public static final int FORMAT_I422 = 16;

public static final int BUFFER_TYPE_NONE = -1;

public static final int BUFFER_TYPE_BUFFER = 1;

public static final int BUFFER_TYPE_ARRAY = 2;

public static final int BUFFER_TYPE_TEXTURE = 3;
public AgoraVideoFrame() {
format = 10;
Expand All @@ -51,35 +39,20 @@
}

public int format;

public long timeStamp;

public int stride;

public int height;

public int textureID;

public boolean syncMode;

public float[] transform;

public javax.microedition.khronos.egl.EGLContext eglContext10;

public android.opengl.EGLContext eglContext14;

public byte[] buf;

public int cropLeft;

public int cropTop;

public int cropRight;

public int cropBottom;

public int rotation;

public int alphaStitchMode;
@Override
public String toString() {
Expand All @@ -90,7 +63,6 @@
+ &quot;, cropTop=&quot; + cropTop + &quot;, cropRight=&quot; + cropRight + &quot;, cropBottom=&quot; + cropBottom
+ &quot;, rotation=&quot; + rotation + &quot;, alphaStitchMode=&quot; + alphaStitchMode + &#x27;}&#x27;;
}

}</codeblock>
<codeblock props="hmos" outputclass="language-arkts"></codeblock>
<codeblock props="ios mac" outputclass="language-objectivec">
Expand Down Expand Up @@ -146,67 +118,39 @@ struct ExternalVideoFrame {
textureSliceIndex(0){}

enum EGL_CONTEXT_TYPE {

EGL_CONTEXT10 = 0,

EGL_CONTEXT14 = 1,
};

enum VIDEO_BUFFER_TYPE {

VIDEO_BUFFER_RAW_DATA = 1,

VIDEO_BUFFER_ARRAY = 2,

VIDEO_BUFFER_TEXTURE = 3,
};

VIDEO_BUFFER_TYPE type;

VIDEO_PIXEL_FORMAT format;

void* buffer;

int stride;

int height;

int cropLeft;

int cropTop;

int cropRight;

int cropBottom;

int rotation;

long long timestamp;

void* eglContext;

EGL_CONTEXT_TYPE eglType;

int textureId;

long long fenceObject;

float matrix[16];

uint8_t* metadataBuffer;

int metadataSize;

uint8_t* alphaBuffer;

bool fillAlphaBuffer;

ALPHA_STITCH_MODE alphaStitchMode;

void *d3d11Texture2d;

int textureSliceIndex;

ColorSpace colorSpace;
};</codeblock>
<codeblock props="electron" outputclass="language-typescript">export class ExternalVideoFrame {
Expand Down
2 changes: 1 addition & 1 deletion dita/RTC-NG/API/class_videoframe.dita
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ class VideoFrame {
</plentry>
<plentry id="colorspace">
<pt>colorSpace</pt>
<pd>视频帧的色彩空间属性,默认情况下会应用 Full Range 和 BT.709 标准配置。你可以根据自采集、自渲染的业务需求进行自定义设置,详见 <xref keyref="videocolorspace-link"/>。</pd>
<pd>视频帧的色彩空间属性,默认情况下会应用 Full Range 和 BT.709 标准配置。你可以根据自定义采集、自定义渲染的业务需求进行自定义设置,详见 <xref keyref="videocolorspace-link"/>。</pd>
</plentry>
<plentry props="android hmos">
<pt>sourceType</pt>
Expand Down

0 comments on commit 01e8bf5

Please sign in to comment.