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

Side by Side Diff: remoting/codec/scoped_vpx_codec.cc

Issue 1323333002: Copy libvpx from DEPS to src (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update include order and rebase Created 5 years, 3 months 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
« no previous file with comments | « remoting/codec/BUILD.gn ('k') | remoting/codec/video_decoder_vpx.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/codec/scoped_vpx_codec.h" 5 #include "remoting/codec/scoped_vpx_codec.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 extern "C" { 9 extern "C" {
10 #define VPX_CODEC_DISABLE_COMPAT 1 10 #define VPX_CODEC_DISABLE_COMPAT 1
11 #include "third_party/libvpx/source/libvpx/vpx/vpx_codec.h" 11 #include "third_party/libvpx_new/source/libvpx/vpx/vpx_codec.h"
12 } 12 }
13 namespace remoting { 13 namespace remoting {
14 14
15 void VpxCodecDeleter::operator()(vpx_codec_ctx_t* codec) { 15 void VpxCodecDeleter::operator()(vpx_codec_ctx_t* codec) {
16 if (codec) { 16 if (codec) {
17 vpx_codec_err_t ret = vpx_codec_destroy(codec); 17 vpx_codec_err_t ret = vpx_codec_destroy(codec);
18 CHECK_EQ(ret, VPX_CODEC_OK) << "Failed to destroy codec"; 18 CHECK_EQ(ret, VPX_CODEC_OK) << "Failed to destroy codec";
19 delete codec; 19 delete codec;
20 } 20 }
21 } 21 }
22 22
23 } // namespace remoting 23 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/codec/BUILD.gn ('k') | remoting/codec/video_decoder_vpx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698