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

Side by Side Diff: media/ffmpeg/ffmpeg_common.h

Issue 10912080: Switch to AVIO instead of a custom FFmpeg URLProtocol handler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: AVIO! Created 8 years, 2 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 | « no previous file | media/ffmpeg/ffmpeg_common.cc » ('j') | media/filters/audio_file_reader.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_FFMPEG_FFMPEG_COMMON_H_ 5 #ifndef MEDIA_FFMPEG_FFMPEG_COMMON_H_
6 #define MEDIA_FFMPEG_FFMPEG_COMMON_H_ 6 #define MEDIA_FFMPEG_FFMPEG_COMMON_H_
7 7
8 // Used for FFmpeg error codes. 8 // Used for FFmpeg error codes.
9 #include <cerrno> 9 #include <cerrno>
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // Converts video formats to its corresponding FFmpeg's pixel formats. 98 // Converts video formats to its corresponding FFmpeg's pixel formats.
99 PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format); 99 PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format);
100 100
101 // Converts an FFmpeg video codec ID into its corresponding supported codec id. 101 // Converts an FFmpeg video codec ID into its corresponding supported codec id.
102 VideoCodec CodecIDToVideoCodec(CodecID codec_id); 102 VideoCodec CodecIDToVideoCodec(CodecID codec_id);
103 103
104 // Converts an FFmpeg audio codec ID into its corresponding supported codec id. 104 // Converts an FFmpeg audio codec ID into its corresponding supported codec id.
105 AudioCodec CodecIDToAudioCodec(CodecID codec_id); 105 AudioCodec CodecIDToAudioCodec(CodecID codec_id);
106 106
107 // Closes & destroys all AVStreams in the context and then closes &
108 // destroys the AVFormatContext.
109 void DestroyAVFormatContext(AVFormatContext* format_context);
110
111 } // namespace media 107 } // namespace media
112 108
113 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_ 109 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_
OLDNEW
« no previous file with comments | « no previous file | media/ffmpeg/ffmpeg_common.cc » ('j') | media/filters/audio_file_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698