|
|
@ -972,6 +972,7 @@ public class EasyPlayerClient implements Client.SourceCallBack {
|
|
|
|
System.arraycopy(in, 0, nv12Data, 0, in.length);
|
|
|
|
System.arraycopy(in, 0, nv12Data, 0, in.length);
|
|
|
|
// nv12
|
|
|
|
// nv12
|
|
|
|
i420callback.onI420Data(nv12Data);
|
|
|
|
i420callback.onI420Data(nv12Data);
|
|
|
|
|
|
|
|
if (!mClient.isPaused()) {
|
|
|
|
// yuvuv_to_yuv
|
|
|
|
// yuvuv_to_yuv
|
|
|
|
JNIUtil.yuvConvert(in, realWidth, realHeight, 4);
|
|
|
|
JNIUtil.yuvConvert(in, realWidth, realHeight, 4);
|
|
|
|
// // 旋转90或180或270度
|
|
|
|
// // 旋转90或180或270度
|
|
|
@ -983,6 +984,7 @@ public class EasyPlayerClient implements Client.SourceCallBack {
|
|
|
|
displayTmp.put(in);
|
|
|
|
displayTmp.put(in);
|
|
|
|
// 旋转90或270度,则宽高需要互换
|
|
|
|
// 旋转90或270度,则宽高需要互换
|
|
|
|
displayer.decoder_decodeBuffer(displayTmp, realWidth, realHeight);
|
|
|
|
displayer.decoder_decodeBuffer(displayTmp, realWidth, realHeight);
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
mIndex = 0;
|
|
|
|
mIndex = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|