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

Side by Side Diff: media/filters/bitstream_converter.cc

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « media/filters/bitstream_converter.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 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 #include "media/filters/bitstream_converter.h" 5 #include "media/filters/bitstream_converter.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 namespace media { 10 namespace media {
11 11
12 bool IdentityBitstreamConverter::Initialize() {
13 return true;
14 }
15
16 bool IdentityBitstreamConverter::ConvertPacket(AVPacket* packet) {
17 return true;
18 }
19
12 FFmpegBitstreamConverter::FFmpegBitstreamConverter( 20 FFmpegBitstreamConverter::FFmpegBitstreamConverter(
13 const std::string& filter_name, 21 const std::string& filter_name,
14 AVCodecContext* stream_context) 22 AVCodecContext* stream_context)
15 : filter_name_(filter_name), 23 : filter_name_(filter_name),
16 stream_filter_(NULL), 24 stream_filter_(NULL),
17 stream_context_(stream_context) { 25 stream_context_(stream_context) {
18 CHECK(stream_context_); 26 CHECK(stream_context_);
19 } 27 }
20 28
21 FFmpegBitstreamConverter::~FFmpegBitstreamConverter() { 29 FFmpegBitstreamConverter::~FFmpegBitstreamConverter() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 av_free_packet(packet); 68 av_free_packet(packet);
61 packet->data = converted_data; 69 packet->data = converted_data;
62 packet->size = converted_size; 70 packet->size = converted_size;
63 packet->destruct = av_destruct_packet; 71 packet->destruct = av_destruct_packet;
64 } 72 }
65 73
66 return true; 74 return true;
67 } 75 }
68 76
69 } // namespace media 77 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/bitstream_converter.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698