Delete AndroidVideoCapturer::FrameFactory.
Splits VideoCapturer::OnFrameCaptured into helper methods, which enables use of the VideoAdaptation logic without using a frame factory. Refactors AndroidVideoCapturer to make adaptation decision earlier, so we can crop and rotate using NV12ToI420Rotate. BUG=webrtc:5682 Review-Url: https://codereview.webrtc.org/1973873003 Cr-Commit-Position: refs/heads/master@{#12895}
This commit is contained in:
@ -794,8 +794,8 @@ class JavaVideoRendererWrapper
|
||||
jobject CricketToJavaTextureFrame(const cricket::VideoFrame* frame) {
|
||||
NativeHandleImpl* handle = reinterpret_cast<NativeHandleImpl*>(
|
||||
frame->video_frame_buffer()->native_handle());
|
||||
jfloatArray sampling_matrix = jni()->NewFloatArray(16);
|
||||
jni()->SetFloatArrayRegion(sampling_matrix, 0, 16, handle->sampling_matrix);
|
||||
jfloatArray sampling_matrix = handle->sampling_matrix.ToJava(jni());
|
||||
|
||||
return jni()->NewObject(
|
||||
*j_frame_class_, j_texture_frame_ctor_id_,
|
||||
frame->width(), frame->height(),
|
||||
|
||||
Reference in New Issue
Block a user