Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
michael@0 | 2 | // Use of this source code is governed by a BSD-style license that can be |
michael@0 | 3 | // found in the LICENSE file. |
michael@0 | 4 | |
michael@0 | 5 | #ifndef MEDIA_MP4_AVC_H_ |
michael@0 | 6 | #define MEDIA_MP4_AVC_H_ |
michael@0 | 7 | |
michael@0 | 8 | #include <vector> |
michael@0 | 9 | |
michael@0 | 10 | #include "mp4_demuxer/basictypes.h" |
michael@0 | 11 | |
michael@0 | 12 | namespace mp4_demuxer { |
michael@0 | 13 | |
michael@0 | 14 | struct AVCDecoderConfigurationRecord; |
michael@0 | 15 | |
michael@0 | 16 | class AVC { |
michael@0 | 17 | public: |
michael@0 | 18 | static bool ConvertFrameToAnnexB(int length_size, std::vector<uint8_t>* buffer); |
michael@0 | 19 | |
michael@0 | 20 | static bool ConvertConfigToAnnexB( |
michael@0 | 21 | const AVCDecoderConfigurationRecord& avc_config, |
michael@0 | 22 | std::vector<uint8_t>* buffer); |
michael@0 | 23 | }; |
michael@0 | 24 | |
michael@0 | 25 | } // namespace mp4_demuxer |
michael@0 | 26 | |
michael@0 | 27 | #endif // MEDIA_MP4_AVC_H_ |