Skip to content

Commit

Permalink
New translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilla-luodan committed Nov 13, 2024
1 parent c5ccf3b commit c1d1583
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<section id="detailed_desc">
<p>You need to register the callback when calling the <xref keyref="registerVideoFrameObserver"/> method. After you successfully register the video frame observer, the SDK triggers this callback each time it receives a video frame. You need to set your preferred video data in the return value of this callback.</p>
<note>The default types of pixel format (<ph keyref="VIDEO_PIXEL_DEFAULT"/>) for the raw video are as follows:<ul>
<li props="android cpp bp unreal">On the Android platform, the default video frame type may be I420Buffer or TextureBuffer. TextureBuffer 类型的纹理格式可能为 OES 格式或者 RGB 格式。 如果 <apiname keyref="getVideoFormatPreference"/> 返回的视频帧类型为 <ph keyref="VIDEO_PIXEL_DEFAULT"/>,你需要在处理视频数据时增加对 I420Buffer TextureBuffer 的适配。 The cases where the video frame type is fixed as I420Buffer include but are not limited to:<ul>
<li props="android cpp bp unreal">On the Android platform, the default video frame type may be I420Buffer or TextureBuffer. The texture format of TextureBuffer type may be OES or RGB. If the returned video frame type is <ph keyref="VIDEO_PIXEL_DEFAULT"/> when you call <apiname keyref="getVideoFormatPreference"/>, you need to adapt to I420Buffer or TextureBuffer when processing video data. The cases where the video frame type is fixed as I420Buffer include but are not limited to:<ul>
<li>Specific devices, such as: LG G5 SE (H848), Google Pixel 4a, Samsung Galaxy A7, or Xiaomi Mi Max.</li>
<li>Image enhancement extension has been integrated and video noise reduction or low-light enhancement function has been enabled.</li>
</ul></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
<p props="native unreal bp">If you need to send the preprocessed data to the SDK, you need to call <xref keyref="getVideoFrameProcessMode"/> first to set the video processing mode to read and write mode (<ph keyref="PROCESS_MODE_READ_WRITE"/>).</p>
<p props="flutter rn electron">You can get raw video data collected by the local device through this callback.</p>
<note type="attention" id="default">
<p props="android" id="java">该回调默认提供的视频数据格式为 I420Buffer TextureBufferTextureBuffer 类型的纹理格式可能为 0ES 格式或者 RGB 格式。 如果你需要其他格式的视频数据,可在 <xref keyref="getVideoFormatPreference"/> 回调的返回值中设置预期的数据格式。</p>
<p props="apple">该回调默认提供的视频数据格式为 I420 CVPixelBufferRef,如果你需要其他格式的视频数据,可在 <xref keyref="getVideoFormatPreference"/> 回调中返回预期的数据格式。</p>
<p props="cpp">该回调默认提供的视频数据格式为 YUV420,如果你需要其他格式的视频数据,可在 getVideoFormatPreference 回调的返回值中设置预期的数据格式。</p></note>
<p props="android" id="java">The default video format that you get from this callback may be I420Buffer or TextureBuffer. The texture format of TextureBuffer can be either 0ES format or RGB format. If you need video data in other formats, you can set the expected data format in the return value of the <xref keyref="getVideoFormatPreference"/> callback.</p>
<p props="apple">The default video format that you get from this callback is I420 or CVPixelBufferRef. If you need other formats, you can set the expected data format in the <xref keyref="getVideoFormatPreference"/> callback.</p>
<p props="cpp">The default video format that you get from this callback is YUV420. If you need other formats, you can set the expected data format in the getVideoFormatPreference callback.</p></note>
</section>
<section id="scenario" deliveryTarget="details">
<title>Applicable scenarios</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
</section>
<section id="detailed_desc">
<p>After you successfully register the video frame observer, the SDK triggers this callback each time it receives a video frame. In this callback, you can get the video data sent from the remote end before rendering, and then process it according to the particular scenarios.</p>
<p props="android" id="java">该回调默认提供的视频数据格式为 I420Buffer TextureBufferTextureBuffer 类型的纹理格式可能为 0ES 格式或者 RGB 格式。 如果你需要其他格式的视频数据,可在 <xref keyref="getVideoFormatPreference"/> 回调的返回值中设置预期的数据格式。</p>
<p props="apple">该回调默认提供的视频数据格式为 I420 CVPixelBufferRef,如果你需要其他格式的视频数据,可在 <xref keyref="getVideoFormatPreference"/> 回调中返回预期的数据格式。</p>
<p props="cpp">该回调默认提供的视频数据格式为 YUV420,如果你需要其他格式的视频数据,可在 getVideoFormatPreference 回调的返回值中设置预期的数据格式。</p>
<p props="android" id="java">The default video format that you get from this callback may be I420Buffer or TextureBuffer. The texture format of TextureBuffer can be either 0ES format or RGB format. If you need video data in other formats, you can set the expected data format in the return value of the <xref keyref="getVideoFormatPreference"/> callback.</p>
<p props="apple">The default video format that you get from this callback is I420 or CVPixelBufferRef. If you need other formats, you can set the expected data format in the <xref keyref="getVideoFormatPreference"/> callback.</p>
<p props="cpp">The default video format that you get from this callback is YUV420. If you need other formats, you can set the expected data format in the getVideoFormatPreference callback.</p>
<note type="attention" props="native unreal bp electron rn flutter">
<ul>
<li props="native unreal bp">If you need to send the preprocessed data to the SDK, you need to call <xref keyref="getVideoFrameProcessMode"/> first to set the video processing mode to read and write mode (<ph keyref="PROCESS_MODE_READ_WRITE"/>).</li>
Expand Down

0 comments on commit c1d1583

Please sign in to comment.