| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |