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

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

Issue 7932005: Reland r101418: Fix aspect ratio and clarify video frame dimensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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/video_decoder_config.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // |range_end| - The end time for the range covered by |bytes|. This may be 98 // |range_end| - The end time for the range covered by |bytes|. This may be
99 // different than |end_time| if the index doesn't have data for 99 // different than |end_time| if the index doesn't have data for
100 // that exact time. |range_end| >= |end_time| 100 // that exact time. |range_end| >= |end_time|
101 MEDIA_EXPORT bool GetStreamByteCountOverRange(AVStream* stream, 101 MEDIA_EXPORT bool GetStreamByteCountOverRange(AVStream* stream,
102 const base::TimeDelta& start_time, 102 const base::TimeDelta& start_time,
103 const base::TimeDelta& end_time, 103 const base::TimeDelta& end_time,
104 int64* bytes, 104 int64* bytes,
105 base::TimeDelta* range_start, 105 base::TimeDelta* range_start,
106 base::TimeDelta* range_end); 106 base::TimeDelta* range_end);
107 107
108 // Calculates the width and height of the video surface using the video's 108 // Calculates the natural width and height of the video using the video's
109 // encoded dimensions and sample_aspect_ratio. 109 // encoded dimensions and sample_aspect_ratio.
110 int GetSurfaceHeight(AVStream* stream); 110 int GetNaturalHeight(AVStream* stream);
111 int GetSurfaceWidth(AVStream* stream); 111 int GetNaturalWidth(AVStream* stream);
112 112
113 // Closes & destroys all AVStreams in the context and then closes & 113 // Closes & destroys all AVStreams in the context and then closes &
114 // destroys the AVFormatContext. 114 // destroys the AVFormatContext.
115 void DestroyAVFormatContext(AVFormatContext* format_context); 115 void DestroyAVFormatContext(AVFormatContext* format_context);
116 116
117 } // namespace media 117 } // namespace media
118 118
119 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_ 119 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_
OLDNEW
« no previous file with comments | « media/base/video_decoder_config.cc ('k') | media/ffmpeg/ffmpeg_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698