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

Side by Side Diff: media/filters/ffmpeg_glue.h

Issue 14495010: Add UMA stats for audio/video containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
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 // FFmpegGlue is an interface between FFmpeg and Chrome used to proxy FFmpeg's 5 // FFmpegGlue is an interface between FFmpeg and Chrome used to proxy FFmpeg's
6 // read and seek requests to Chrome's internal data structures. The glue works 6 // read and seek requests to Chrome's internal data structures. The glue works
7 // through the AVIO interface provided by FFmpeg. 7 // through the AVIO interface provided by FFmpeg.
8 // 8 //
9 // AVIO works through a special AVIOContext created through avio_alloc_context() 9 // AVIO works through a special AVIOContext created through avio_alloc_context()
10 // which is attached to the AVFormatContext used for demuxing. The AVIO context 10 // which is attached to the AVFormatContext used for demuxing. The AVIO context
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ~FFmpegGlue(); 66 ~FFmpegGlue();
67 67
68 // Opens an AVFormatContext specially prepared to process reads and seeks 68 // Opens an AVFormatContext specially prepared to process reads and seeks
69 // through the FFmpegURLProtocol provided during construction. 69 // through the FFmpegURLProtocol provided during construction.
70 bool OpenContext(); 70 bool OpenContext();
71 AVFormatContext* format_context() { return format_context_; } 71 AVFormatContext* format_context() { return format_context_; }
72 72
73 private: 73 private:
74 bool open_called_; 74 bool open_called_;
75 AVFormatContext* format_context_; 75 AVFormatContext* format_context_;
76 FFmpegURLProtocol* protocol_;
76 scoped_ptr_malloc<AVIOContext, ScopedPtrAVFree> avio_context_; 77 scoped_ptr_malloc<AVIOContext, ScopedPtrAVFree> avio_context_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(FFmpegGlue); 79 DISALLOW_COPY_AND_ASSIGN(FFmpegGlue);
79 }; 80 };
80 81
81 } // namespace media 82 } // namespace media
82 83
83 #endif // MEDIA_FILTERS_FFMPEG_GLUE_H_ 84 #endif // MEDIA_FILTERS_FFMPEG_GLUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698