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

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

Issue 236023003: Add WebMediaPlayer::timelineOffset() support to WebMediaPlayerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR comments Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « media/base/stream_parser.h ('k') | media/ffmpeg/ffmpeg_common.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) 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Converts FFmpeg's audio sample format to Chrome's SampleFormat. 103 // Converts FFmpeg's audio sample format to Chrome's SampleFormat.
104 MEDIA_EXPORT SampleFormat 104 MEDIA_EXPORT SampleFormat
105 AVSampleFormatToSampleFormat(AVSampleFormat sample_format); 105 AVSampleFormatToSampleFormat(AVSampleFormat sample_format);
106 106
107 // Converts FFmpeg's pixel formats to its corresponding supported video format. 107 // Converts FFmpeg's pixel formats to its corresponding supported video format.
108 VideoFrame::Format PixelFormatToVideoFormat(PixelFormat pixel_format); 108 VideoFrame::Format PixelFormatToVideoFormat(PixelFormat pixel_format);
109 109
110 // Converts video formats to its corresponding FFmpeg's pixel formats. 110 // Converts video formats to its corresponding FFmpeg's pixel formats.
111 PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format); 111 PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format);
112 112
113 // Convert FFmpeg UTC representation (YYYY-MM-DD HH:MM:SS) to base::Time.
114 // Returns true and sets |*out| if |date_utc| contains a valid
115 // date string. Otherwise returns fals and timeline_offset is unmodified.
116 MEDIA_EXPORT bool FFmpegUTCDateToTime(const char* date_utc, base::Time* out);
117
113 } // namespace media 118 } // namespace media
114 119
115 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_ 120 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_
OLDNEW
« no previous file with comments | « media/base/stream_parser.h ('k') | media/ffmpeg/ffmpeg_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698