OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "webrtc/base/stringutils.h" | 44 #include "webrtc/base/stringutils.h" |
45 #include "webrtc/base/timeutils.h" | 45 #include "webrtc/base/timeutils.h" |
46 #include "webrtc/call.h" | 46 #include "webrtc/call.h" |
47 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 47 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
48 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h" | 48 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h" |
49 #include "webrtc/system_wrappers/interface/field_trial.h" | 49 #include "webrtc/system_wrappers/interface/field_trial.h" |
50 #include "webrtc/system_wrappers/interface/trace_event.h" | 50 #include "webrtc/system_wrappers/interface/trace_event.h" |
51 #include "webrtc/video_decoder.h" | 51 #include "webrtc/video_decoder.h" |
52 #include "webrtc/video_encoder.h" | 52 #include "webrtc/video_encoder.h" |
53 | 53 |
54 #define UNIMPLEMENTED \ | |
55 LOG(LS_ERROR) << "Call to unimplemented function " << __FUNCTION__; \ | |
56 RTC_NOTREACHED() | |
57 | |
58 namespace cricket { | 54 namespace cricket { |
59 namespace { | 55 namespace { |
60 | 56 |
61 // Wrap cricket::WebRtcVideoEncoderFactory as a webrtc::VideoEncoderFactory. | 57 // Wrap cricket::WebRtcVideoEncoderFactory as a webrtc::VideoEncoderFactory. |
62 class EncoderFactoryAdapter : public webrtc::VideoEncoderFactory { | 58 class EncoderFactoryAdapter : public webrtc::VideoEncoderFactory { |
63 public: | 59 public: |
64 // EncoderFactoryAdapter doesn't take ownership of |factory|, which is owned | 60 // EncoderFactoryAdapter doesn't take ownership of |factory|, which is owned |
65 // by e.g. PeerConnectionFactory. | 61 // by e.g. PeerConnectionFactory. |
66 explicit EncoderFactoryAdapter(cricket::WebRtcVideoEncoderFactory* factory) | 62 explicit EncoderFactoryAdapter(cricket::WebRtcVideoEncoderFactory* factory) |
67 : factory_(factory) {} | 63 : factory_(factory) {} |
(...skipping 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2737 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2733 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2738 } | 2734 } |
2739 } | 2735 } |
2740 | 2736 |
2741 return video_codecs; | 2737 return video_codecs; |
2742 } | 2738 } |
2743 | 2739 |
2744 } // namespace cricket | 2740 } // namespace cricket |
2745 | 2741 |
2746 #endif // HAVE_WEBRTC_VIDEO | 2742 #endif // HAVE_WEBRTC_VIDEO |
OLD | NEW |