| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 MEDIA_EXPORT SampleFormat | 117 MEDIA_EXPORT SampleFormat |
| 118 AVSampleFormatToSampleFormat(AVSampleFormat sample_format); | 118 AVSampleFormatToSampleFormat(AVSampleFormat sample_format); |
| 119 | 119 |
| 120 // Converts FFmpeg's pixel formats to its corresponding supported video format. | 120 // Converts FFmpeg's pixel formats to its corresponding supported video format. |
| 121 MEDIA_EXPORT VideoPixelFormat | 121 MEDIA_EXPORT VideoPixelFormat |
| 122 PixelFormatToVideoPixelFormat(PixelFormat pixel_format); | 122 PixelFormatToVideoPixelFormat(PixelFormat pixel_format); |
| 123 | 123 |
| 124 // Converts video formats to its corresponding FFmpeg's pixel formats. | 124 // Converts video formats to its corresponding FFmpeg's pixel formats. |
| 125 PixelFormat VideoPixelFormatToPixelFormat(VideoPixelFormat video_format); | 125 PixelFormat VideoPixelFormatToPixelFormat(VideoPixelFormat video_format); |
| 126 | 126 |
| 127 ColorSpace AVColorSpaceToColorSpace(AVColorSpace color_space); |
| 128 |
| 127 // Convert FFmpeg UTC representation (YYYY-MM-DD HH:MM:SS) to base::Time. | 129 // Convert FFmpeg UTC representation (YYYY-MM-DD HH:MM:SS) to base::Time. |
| 128 // Returns true and sets |*out| if |date_utc| contains a valid | 130 // Returns true and sets |*out| if |date_utc| contains a valid |
| 129 // date string. Otherwise returns fals and timeline_offset is unmodified. | 131 // date string. Otherwise returns fals and timeline_offset is unmodified. |
| 130 MEDIA_EXPORT bool FFmpegUTCDateToTime(const char* date_utc, base::Time* out); | 132 MEDIA_EXPORT bool FFmpegUTCDateToTime(const char* date_utc, base::Time* out); |
| 131 | 133 |
| 132 } // namespace media | 134 } // namespace media |
| 133 | 135 |
| 134 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_ | 136 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_ |
| OLD | NEW |