public class YYMediaSample
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
isDualCamera |
long |
mAndoridPtsNanos
来自android系统的camera采集系统打的时间戳,
YY传输系统的音视频同步 "不是" 基于此时间戳.
|
int |
mBlenderTextureId |
int |
mBufferOffset |
int |
mBufferSize |
boolean |
mCameraCapture |
int |
mCameraFacing |
int |
mCameraRotate |
boolean |
mCliped |
int |
mClipHeight |
int |
mClipWidth
经过裁剪后,需要输出的图片长宽
|
int |
mClipX
裁剪的起始坐标点
|
int |
mClipY |
int |
mCodecId |
int |
mColorFormat |
java.nio.ByteBuffer |
mDataByteBuffer
Video Data used for TransmitUploadFilter to send encoded video data.
|
byte[] |
mDataBytes
mDataBytes to store NV21 data from Camera callback
|
long |
mDtsMillions
编码时间戳, 单位毫秒
|
int |
mEncodeHeight |
Constant.EncoderInputMode |
mEncoderInputMode |
VideoEncoderType |
mEncoderType |
int |
mEncodeWidth |
java.util.HashMap<java.lang.String,java.lang.String> |
mExtInfo
extentend information
|
int |
mFrameFlag |
int |
mFrameType |
int |
mHeight |
YMFImageBuffer |
mI420
mI420 在native层做YUV转换读写数据都偏移了 arrayOffset(); 它需要传给纹理,glsubimage2d从offset开始读数据
|
int |
mImageFormat
Capture information
|
boolean |
mIsMirrorEnable
摄像头推流镜像,只对前置摄像头生效,前置摄像头默认推流不镜像,后置摄像头不生效,后置摄像头固定预览推流都不镜像。
|
boolean |
mIsPreviewMirrorEnable
摄像头预览镜像,只对前置摄像头生效,前置摄像头默认预览镜像,后置摄像头不生效,后置摄像头固定预览推流都不镜像。
|
boolean |
mIsYUVBuffer |
float[] |
mMainTransformer |
int |
mMasterTextureId |
android.media.MediaFormat |
mMediaFormat
Codec Information
|
YMFImageBuffer |
mNV12 |
YMFImageBuffer |
mNV21 |
int |
mOrginalCameraFacing |
int |
mOrientation |
PictureInPictureDisplayInfo |
mPictureInPictureDisplayInfo |
CameraInterface.CameraResolutionMode |
mResMode |
byte[] |
mRGBABytes |
android.graphics.RectF |
mScreenCropArea |
int |
mSlaveTextureId |
float[] |
mSlaveTransformer |
boolean |
mSwapWidthHeight |
long |
mTextureCreatedThreadId |
boolean |
mTextureFlipVertical |
int |
mTextureTarget
取值EGL中的GLES20.GL_TEXTURE_EXTERNAL_OES(外部纹理,可以跨线程使用,
例如摄像头采集一般用外部纹理), GLES20.GL_TEXTURE_2D(内部纹理,不能跨线程使用,
只能在创建线程中使用), 两者使用的shader不一样.
|
boolean |
mTextureValid
为true则表示数据在texutre中, false则数据在byteBuffer中.
|
boolean |
mUseGPUBeauty |
boolean |
mVideoStabilization |
int |
mWidth
实际的图片信息的长,宽
|
YMFImageBuffer |
mYV12 |
long |
mYYPtsMillions
camera采集系统回调onFrameAvailable函数后, YY媒体框架会获取系统时间戳
YY传输系统的音视频同步是基于此时间戳, 单位是毫秒.
|
| Constructor and Description |
|---|
YYMediaSample() |
| Modifier and Type | Method and Description |
|---|---|
int |
addRef() |
void |
assigne(YYMediaSample sample) |
int |
decRef() |
void |
reset() |
java.lang.String |
toString() |
public int mWidth
public int mHeight
public int mClipWidth
public int mClipHeight
public int mClipX
public int mClipY
public long mAndoridPtsNanos
public long mYYPtsMillions
public long mDtsMillions
public int mImageFormat
public int mCameraFacing
public int mOrginalCameraFacing
public int mCameraRotate
public boolean mSwapWidthHeight
public boolean mCliped
public int mOrientation
public boolean mVideoStabilization
public float[] mMainTransformer
public float[] mSlaveTransformer
public CameraInterface.CameraResolutionMode mResMode
public boolean mCameraCapture
public android.media.MediaFormat mMediaFormat
public int mColorFormat
public int mFrameFlag
public int mFrameType
public boolean mTextureValid
public java.nio.ByteBuffer mDataByteBuffer
public int mBufferOffset
public int mBufferSize
public byte[] mDataBytes
public byte[] mRGBABytes
public boolean mIsYUVBuffer
public boolean mUseGPUBeauty
public YMFImageBuffer mI420
public YMFImageBuffer mYV12
public YMFImageBuffer mNV21
public YMFImageBuffer mNV12
public int mMasterTextureId
public int mSlaveTextureId
public PictureInPictureDisplayInfo mPictureInPictureDisplayInfo
public int mBlenderTextureId
public boolean isDualCamera
public boolean mIsMirrorEnable
public boolean mIsPreviewMirrorEnable
public int mTextureTarget
public long mTextureCreatedThreadId
public boolean mTextureFlipVertical
public int mEncodeWidth
public int mEncodeHeight
public int mCodecId
public VideoEncoderType mEncoderType
public Constant.EncoderInputMode mEncoderInputMode
public java.util.HashMap<java.lang.String,java.lang.String> mExtInfo
public android.graphics.RectF mScreenCropArea
public int addRef()
public int decRef()
public void reset()
public void assigne(YYMediaSample sample)
public java.lang.String toString()
toString in class java.lang.Object