Split the implementation of VP8Encoder|Decoder::Create into a seperated file
(vp8_factory.cc). R=fischman@webrtc.org, marpan@google.com, marpan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/8589004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5606 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
79a1cff65a
commit
7f52a6ef2b
@ -31,6 +31,7 @@
|
|||||||
'reference_picture_selection.cc',
|
'reference_picture_selection.cc',
|
||||||
'include/vp8.h',
|
'include/vp8.h',
|
||||||
'include/vp8_common_types.h',
|
'include/vp8_common_types.h',
|
||||||
|
'vp8_factory.cc',
|
||||||
'vp8_impl.cc',
|
'vp8_impl.cc',
|
||||||
'default_temporal_layers.cc',
|
'default_temporal_layers.cc',
|
||||||
'default_temporal_layers.h',
|
'default_temporal_layers.h',
|
||||||
|
24
webrtc/modules/video_coding/codecs/vp8/vp8_factory.cc
Normal file
24
webrtc/modules/video_coding/codecs/vp8/vp8_factory.cc
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by a BSD-style license
|
||||||
|
* that can be found in the LICENSE file in the root of the source
|
||||||
|
* tree. An additional intellectual property rights grant can be found
|
||||||
|
* in the file PATENTS. All contributing project authors may
|
||||||
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "webrtc/modules/video_coding/codecs/vp8/vp8_impl.h"
|
||||||
|
|
||||||
|
namespace webrtc {
|
||||||
|
|
||||||
|
VP8Encoder* VP8Encoder::Create() {
|
||||||
|
return new VP8EncoderImpl();
|
||||||
|
}
|
||||||
|
|
||||||
|
VP8Decoder* VP8Decoder::Create() {
|
||||||
|
return new VP8DecoderImpl();
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace webrtc
|
@ -35,10 +35,6 @@ enum { kVp8ErrorPropagationTh = 30 };
|
|||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
VP8Encoder* VP8Encoder::Create() {
|
|
||||||
return new VP8EncoderImpl();
|
|
||||||
}
|
|
||||||
|
|
||||||
VP8EncoderImpl::VP8EncoderImpl()
|
VP8EncoderImpl::VP8EncoderImpl()
|
||||||
: encoded_image_(),
|
: encoded_image_(),
|
||||||
encoded_complete_callback_(NULL),
|
encoded_complete_callback_(NULL),
|
||||||
@ -496,10 +492,6 @@ int VP8EncoderImpl::RegisterEncodeCompleteCallback(
|
|||||||
return WEBRTC_VIDEO_CODEC_OK;
|
return WEBRTC_VIDEO_CODEC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
VP8Decoder* VP8Decoder::Create() {
|
|
||||||
return new VP8DecoderImpl();
|
|
||||||
}
|
|
||||||
|
|
||||||
VP8DecoderImpl::VP8DecoderImpl()
|
VP8DecoderImpl::VP8DecoderImpl()
|
||||||
: decode_complete_callback_(NULL),
|
: decode_complete_callback_(NULL),
|
||||||
inited_(false),
|
inited_(false),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user