| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file contains declarations for deleters for use with |scoped_ptr|. To | 5 // This file contains declarations for deleters for use with |scoped_ptr|. To |
| 6 // avoid requiring additional #includes, the (inline) definitions are in | 6 // avoid requiring additional #includes, the (inline) definitions are in |
| 7 // ffmpeg_common.h. (Forward declarations of deleters aren't sufficient for | 7 // ffmpeg_common.h. (Forward declarations of deleters aren't sufficient for |
| 8 // |scoped_ptr|.) | 8 // |scoped_ptr|.) |
| 9 | 9 |
| 10 #ifndef MEDIA_FFMPEG_FFMPEG_DELETERS_H_ | 10 #ifndef MEDIA_FFMPEG_FFMPEG_DELETERS_H_ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 struct ScopedPtrAVFreeContext { | 30 struct ScopedPtrAVFreeContext { |
| 31 void operator()(void* x) const; | 31 void operator()(void* x) const; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 // Frees an AVFrame object in a class that can be passed as a Deleter argument | 34 // Frees an AVFrame object in a class that can be passed as a Deleter argument |
| 35 // to scoped_ptr_malloc. | 35 // to scoped_ptr_malloc. |
| 36 struct ScopedPtrAVFreeFrame { | 36 struct ScopedPtrAVFreeFrame { |
| 37 void operator()(void* x) const; | 37 void operator()(void* x) const; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 // Frees an AVCodecParserContext object in a class that can be passed as a |
| 41 // Deleter argument to scoped_ptr_malloc. |
| 42 struct ScopedPtrAVFreeParserContext { |
| 43 void operator()(void* x) const; |
| 44 }; |
| 45 |
| 40 } // namespace media | 46 } // namespace media |
| 41 | 47 |
| 42 #endif // MEDIA_FFMPEG_FFMPEG_DELETERS_H_ | 48 #endif // MEDIA_FFMPEG_FFMPEG_DELETERS_H_ |
| OLD | NEW |