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

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

Issue 1230593005: Reland: Change the video color space default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: big rebase Created 5 years, 5 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/cast/sender/h264_vt_encoder_unittest.cc ('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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « media/cast/sender/h264_vt_encoder_unittest.cc ('k') | media/ffmpeg/ffmpeg_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698