| 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 |
| 11 #include "webrtc/examples/peerconnection/client/linux/main_wnd.h" | 11 #include "webrtc/examples/peerconnection/client/linux/main_wnd.h" |
| 12 | 12 |
| 13 #include <gdk/gdkkeysyms.h> | 13 #include <gdk/gdkkeysyms.h> |
| 14 #include <gtk/gtk.h> | 14 #include <gtk/gtk.h> |
| 15 #include <stddef.h> | 15 #include <stddef.h> |
| 16 | 16 |
| 17 #include "libyuv/convert_from.h" | 17 #include "libyuv/convert_from.h" |
| 18 #include "webrtc/api/video/i420_buffer.h" | 18 #include "webrtc/api/video/i420_buffer.h" |
| 19 #include "webrtc/examples/peerconnection/client/defaults.h" | 19 #include "webrtc/examples/peerconnection/client/defaults.h" |
| 20 #include "webrtc/base/checks.h" | 20 #include "webrtc/rtc_base/checks.h" |
| 21 #include "webrtc/base/logging.h" | 21 #include "webrtc/rtc_base/logging.h" |
| 22 #include "webrtc/base/stringutils.h" | 22 #include "webrtc/rtc_base/stringutils.h" |
| 23 | 23 |
| 24 using rtc::sprintfn; | 24 using rtc::sprintfn; |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // | 28 // |
| 29 // Simple static functions that simply forward the callback to the | 29 // Simple static functions that simply forward the callback to the |
| 30 // GtkMainWnd instance. | 30 // GtkMainWnd instance. |
| 31 // | 31 // |
| 32 | 32 |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 libyuv::I420ToABGR(buffer->DataY(), buffer->StrideY(), | 539 libyuv::I420ToABGR(buffer->DataY(), buffer->StrideY(), |
| 540 buffer->DataU(), buffer->StrideU(), | 540 buffer->DataU(), buffer->StrideU(), |
| 541 buffer->DataV(), buffer->StrideV(), | 541 buffer->DataV(), buffer->StrideV(), |
| 542 image_.get(), width_ * 4, | 542 image_.get(), width_ * 4, |
| 543 buffer->width(), buffer->height()); | 543 buffer->width(), buffer->height()); |
| 544 | 544 |
| 545 gdk_threads_leave(); | 545 gdk_threads_leave(); |
| 546 | 546 |
| 547 g_idle_add(Redraw, main_wnd_); | 547 g_idle_add(Redraw, main_wnd_); |
| 548 } | 548 } |
| OLD | NEW |