NIMSDK-AOS  9.16.0
AVChatI420Buffer.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.avchat.video;
2 
3 import com.netease.nrtc.sdk.video.VideoFrame;
4 
5 import java.nio.ByteBuffer;
6 
7 public class AVChatI420Buffer extends AVChatBuffer {
8 
9  private final VideoFrame.I420Buffer buffer;
10 
11  AVChatI420Buffer(VideoFrame.I420Buffer buffer) {
12  super(buffer);
13  this.buffer = buffer;
14  }
15 
16  public ByteBuffer getDataY() {
17  return buffer.getDataY();
18  }
19 
20  public ByteBuffer getDataU() {
21  return buffer.getDataU();
22  }
23 
24  public ByteBuffer getDataV() {
25  return buffer.getDataV();
26  }
27 
28  public int getStrideY() {
29  return buffer.getStrideY();
30  }
31 
32  public int getStrideU() {
33  return buffer.getStrideU();
34  }
35 
36  public int getStrideV() {
37  return buffer.getStrideV();
38  }
39 }