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

Side by Side Diff: media/ffmpeg/file_protocol.cc

Issue 555087: Refactor some code that depends on FFmpeg (Closed)
Patch Set: 2010 Created 10 years, 11 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 | « media/ffmpeg/file_protocol.h ('k') | media/filters/bitstream_converter.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "media/tools/media_bench/file_protocol.h" 5 #include "media/ffmpeg/file_protocol.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <io.h> 10 #include <io.h>
11 #else 11 #else
12 #include <unistd.h> 12 #include <unistd.h>
13 #endif 13 #endif
14 #include <fcntl.h> 14 #include <fcntl.h>
15 15
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/file_util.h" 17 #include "base/file_util.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "media/filters/ffmpeg_common.h" 19 #include "media/ffmpeg/ffmpeg_common.h"
20 20
21 // warning C4996: 'open': The POSIX name for this item is deprecated. 21 // warning C4996: 'open': The POSIX name for this item is deprecated.
22 MSVC_PUSH_DISABLE_WARNING(4996) 22 MSVC_PUSH_DISABLE_WARNING(4996)
23 23
24 namespace { 24 namespace {
25 25
26 int GetHandle(URLContext *h) { 26 int GetHandle(URLContext *h) {
27 return static_cast<int>(reinterpret_cast<intptr_t>(h->priv_data)); 27 return static_cast<int>(reinterpret_cast<intptr_t>(h->priv_data));
28 } 28 }
29 29
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 &OpenContext, 75 &OpenContext,
76 &ReadContext, 76 &ReadContext,
77 &WriteContext, 77 &WriteContext,
78 &SeekContext, 78 &SeekContext,
79 &CloseContext, 79 &CloseContext,
80 NULL, // *next 80 NULL, // *next
81 NULL, // url_read_pause 81 NULL, // url_read_pause
82 NULL, // url_read_seek 82 NULL, // url_read_seek
83 &GetHandle 83 &GetHandle
84 }; 84 };
OLDNEW
« no previous file with comments | « media/ffmpeg/file_protocol.h ('k') | media/filters/bitstream_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698