Chromium Code Reviews| 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 #include "media/base/mock_ffmpeg.h" | 5 #include "media/base/mock_ffmpeg.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/ffmpeg/ffmpeg_common.h" | 8 #include "media/ffmpeg/ffmpeg_common.h" |
| 9 | 9 |
| 10 using ::testing::_; | 10 using ::testing::_; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 return MockFFmpeg::get()->AVCodecFindDecoder(id); | 104 return MockFFmpeg::get()->AVCodecFindDecoder(id); |
| 105 } | 105 } |
| 106 | 106 |
| 107 int avcodec_open(AVCodecContext* avctx, AVCodec* codec) { | 107 int avcodec_open(AVCodecContext* avctx, AVCodec* codec) { |
| 108 return MockFFmpeg::get()->AVCodecOpen(avctx, codec); | 108 return MockFFmpeg::get()->AVCodecOpen(avctx, codec); |
| 109 } | 109 } |
| 110 | 110 |
| 111 int avcodec_close(AVCodecContext* avctx) { | 111 int avcodec_close(AVCodecContext* avctx) { |
| 112 return MockFFmpeg::get()->AVCodecClose(avctx); | 112 return MockFFmpeg::get()->AVCodecClose(avctx); |
| 113 } | 113 } |
| 114 | 114 // Deprecated |
| 115 int avcodec_thread_init(AVCodecContext* avctx, int threads) { | 115 //int avcodec_thread_init(AVCodecContext* avctx, int threads) { |
|
scherkus (not reviewing)
2011/06/29 17:00:36
was the function signature changed?
can we get ri
fbarchard
2011/06/29 18:28:27
code review for ffmpeg said
"they should be rename
ilja
2011/06/29 21:40:05
Done.
| |
| 116 return MockFFmpeg::get()->AVCodecThreadInit(avctx, threads); | 116 // return MockFFmpeg::get()->AVCodecThreadInit(avctx, threads); |
| 117 } | 117 //} |
| 118 | 118 |
| 119 void avcodec_flush_buffers(AVCodecContext* avctx) { | 119 void avcodec_flush_buffers(AVCodecContext* avctx) { |
| 120 return MockFFmpeg::get()->AVCodecFlushBuffers(avctx); | 120 return MockFFmpeg::get()->AVCodecFlushBuffers(avctx); |
| 121 } | 121 } |
| 122 | 122 |
| 123 AVCodecContext* avcodec_alloc_context() { | 123 AVCodecContext* avcodec_alloc_context() { |
| 124 return MockFFmpeg::get()->AVCodecAllocContext(); | 124 return MockFFmpeg::get()->AVCodecAllocContext(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 AVFrame* avcodec_alloc_frame() { | 127 AVFrame* avcodec_alloc_frame() { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 MockFFmpeg::get()->AVLogSetLevel(level); | 219 MockFFmpeg::get()->AVLogSetLevel(level); |
| 220 } | 220 } |
| 221 | 221 |
| 222 void av_destruct_packet(AVPacket *pkt) { | 222 void av_destruct_packet(AVPacket *pkt) { |
| 223 MockFFmpeg::get()->AVDestructPacket(pkt); | 223 MockFFmpeg::get()->AVDestructPacket(pkt); |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // extern "C" | 226 } // extern "C" |
| 227 | 227 |
| 228 } // namespace media | 228 } // namespace media |
| OLD | NEW |