| OLD | NEW |
| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 const base::TimeDelta& end_time, | 102 const base::TimeDelta& end_time, |
| 103 int64* bytes, | 103 int64* bytes, |
| 104 base::TimeDelta* range_start, | 104 base::TimeDelta* range_start, |
| 105 base::TimeDelta* range_end); | 105 base::TimeDelta* range_end); |
| 106 | 106 |
| 107 // Calculates the width and height of the video surface using the video's | 107 // Calculates the width and height of the video surface using the video's |
| 108 // encoded dimensions and sample_aspect_ratio. | 108 // encoded dimensions and sample_aspect_ratio. |
| 109 int GetSurfaceHeight(AVStream* stream); | 109 int GetSurfaceHeight(AVStream* stream); |
| 110 int GetSurfaceWidth(AVStream* stream); | 110 int GetSurfaceWidth(AVStream* stream); |
| 111 | 111 |
| 112 // Closes & destroys all AVStreams in the context and then closes & |
| 113 // destroys the AVFormatContext. |
| 114 void DestroyAVFormatContext(AVFormatContext* format_context); |
| 115 |
| 112 } // namespace media | 116 } // namespace media |
| 113 | 117 |
| 114 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_ | 118 #endif // MEDIA_FFMPEG_FFMPEG_COMMON_H_ |
| OLD | NEW |