Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 11
12 #include "webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.h" 12 #include "webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.h"
13 13
14 #include "vpx/vpx_codec.h" 14 #include "vpx/vpx_codec.h"
15 #include "vpx/vpx_decoder.h" 15 #include "vpx/vpx_decoder.h"
16 #include "vpx/vpx_frame_buffer.h" 16 #include "vpx/vpx_frame_buffer.h"
17 17
18 #include "webrtc/base/checks.h" 18 #include "webrtc/base/checks.h"
19 #include "webrtc/system_wrappers/interface/logging.h" 19 #include "webrtc/system_wrappers/include/logging.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 uint8_t* Vp9FrameBufferPool::Vp9FrameBuffer::GetData() { 23 uint8_t* Vp9FrameBufferPool::Vp9FrameBuffer::GetData() {
24 return data_.data<uint8_t>(); 24 return data_.data<uint8_t>();
25 } 25 }
26 26
27 size_t Vp9FrameBufferPool::Vp9FrameBuffer::GetDataSize() const { 27 size_t Vp9FrameBufferPool::Vp9FrameBuffer::GetDataSize() const {
28 return data_.size(); 28 return data_.size();
29 } 29 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 buffer->Release(); 127 buffer->Release();
128 // When libvpx fails to decode and you continue to try to decode (and fail) 128 // When libvpx fails to decode and you continue to try to decode (and fail)
129 // libvpx can for some reason try to release the same buffer multiple times. 129 // libvpx can for some reason try to release the same buffer multiple times.
130 // Setting |priv| to null protects against trying to Release multiple times. 130 // Setting |priv| to null protects against trying to Release multiple times.
131 fb->priv = nullptr; 131 fb->priv = nullptr;
132 } 132 }
133 return 0; 133 return 0;
134 } 134 }
135 135
136 } // namespace webrtc 136 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_sequence_coder.cc ('k') | webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698