OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Interface and some concrete classes for applying various transforms | 5 // Interface and some concrete classes for applying various transforms |
6 // to AVPackets. FFmpegBitstreamConverter, in particular, can be used | 6 // to AVPackets. FFmpegBitstreamConverter, in particular, can be used |
7 // to apply FFmpeg bitstream filters to the incoming AVPacket to transcode | 7 // to apply FFmpeg bitstream filters to the incoming AVPacket to transcode |
8 // the packet format. | 8 // the packet format. |
9 | 9 |
10 #ifndef MEDIA_FILTERS_BITSTREAM_CONVERTER_H_ | 10 #ifndef MEDIA_FILTERS_BITSTREAM_CONVERTER_H_ |
11 #define MEDIA_FILTERS_BITSTREAM_CONVERTER_H_ | 11 #define MEDIA_FILTERS_BITSTREAM_CONVERTER_H_ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/logging.h" | |
18 | 17 |
19 // FFmpeg types. | 18 // FFmpeg types. |
20 struct AVBitStreamFilterContext; | 19 struct AVBitStreamFilterContext; |
21 struct AVCodecContext; | 20 struct AVCodecContext; |
22 struct AVPacket; | 21 struct AVPacket; |
23 | 22 |
24 namespace media { | 23 namespace media { |
25 | 24 |
26 class BitstreamConverter { | 25 class BitstreamConverter { |
27 public: | 26 public: |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 std::string filter_name_; | 72 std::string filter_name_; |
74 AVBitStreamFilterContext* stream_filter_; | 73 AVBitStreamFilterContext* stream_filter_; |
75 AVCodecContext* stream_context_; | 74 AVCodecContext* stream_context_; |
76 | 75 |
77 DISALLOW_COPY_AND_ASSIGN(FFmpegBitstreamConverter); | 76 DISALLOW_COPY_AND_ASSIGN(FFmpegBitstreamConverter); |
78 }; | 77 }; |
79 | 78 |
80 } // namespace media | 79 } // namespace media |
81 | 80 |
82 #endif // MEDIA_FILTERS_BITSTREAM_CONVERTER_H_ | 81 #endif // MEDIA_FILTERS_BITSTREAM_CONVERTER_H_ |
OLD | NEW |