OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
521 void GtkMainWnd::VideoRenderer::OnFrame( | 521 void GtkMainWnd::VideoRenderer::OnFrame( |
522 const webrtc::VideoFrame& video_frame) { | 522 const webrtc::VideoFrame& video_frame) { |
523 gdk_threads_enter(); | 523 gdk_threads_enter(); |
524 | 524 |
525 rtc::scoped_refptr<webrtc::VideoFrameBuffer> buffer( | 525 rtc::scoped_refptr<webrtc::VideoFrameBuffer> buffer( |
526 webrtc::I420Buffer::Rotate(video_frame.video_frame_buffer(), | 526 webrtc::I420Buffer::Rotate(video_frame.video_frame_buffer(), |
527 video_frame.rotation())); | 527 video_frame.rotation())); |
528 | 528 |
529 SetSize(buffer->width(), buffer->height()); | 529 SetSize(buffer->width(), buffer->height()); |
530 | 530 |
531 libyuv::I420ToRGBA(buffer->DataY(), buffer->StrideY(), | 531 libyuv::I420ToABGR(buffer->DataY(), buffer->StrideY(), |
tommi
2017/01/02 15:37:49
hmm... that's strange. I don't think this has cha
kjellander_webrtc
2017/01/03 09:24:26
You're right we should probably look into what cau
mbonadei
2017/01/03 12:10:23
Yes, I checked out the commit before and the video
| |
532 buffer->DataU(), buffer->StrideU(), | 532 buffer->DataU(), buffer->StrideU(), |
533 buffer->DataV(), buffer->StrideV(), | 533 buffer->DataV(), buffer->StrideV(), |
534 image_.get(), width_ * 4, | 534 image_.get(), width_ * 4, |
535 buffer->width(), buffer->height()); | 535 buffer->width(), buffer->height()); |
536 | 536 |
537 gdk_threads_leave(); | 537 gdk_threads_leave(); |
538 | 538 |
539 g_idle_add(Redraw, main_wnd_); | 539 g_idle_add(Redraw, main_wnd_); |
540 } | 540 } |
OLD | NEW |