NIMSDK-AOS  9.16.0
AVChatVideoFrame.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.avchat.video;
2 
3 import com.netease.nrtc.sdk.video.VideoFrame;
4 
5 public class AVChatVideoFrame {
6 
7  private final VideoFrame frame;
8 
9  private final AVChatBuffer buffer;
10 
11  public AVChatVideoFrame(VideoFrame frame) {
12  this.frame = frame;
13  this.buffer = AVChatBuffer.wrap(frame.getBuffer());
14  }
15 
17  return buffer;
18  }
19 
20  public int getRotation() {
21  return frame.getRotation();
22  }
23 
24  public long getTimestampMs() {
25  return frame.getTimestampMs();
26  }
27 
28  public int getRotatedWidth() {
29  return frame.getRotatedWidth();
30  }
31 
32  public int getRotatedHeight() {
33  return frame.getRotatedHeight();
34  }
35 
36  public void retain() {
37  frame.retain();
38  }
39 
40  public void release() {
41  frame.release();
42  }
43 }