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 29 matching lines...) Expand all Loading... |
40 #include "talk/media/webrtc/webrtcvideoframe.h" | 40 #include "talk/media/webrtc/webrtcvideoframe.h" |
41 #include "talk/media/webrtc/webrtcvoiceengine.h" | 41 #include "talk/media/webrtc/webrtcvoiceengine.h" |
42 #include "webrtc/base/buffer.h" | 42 #include "webrtc/base/buffer.h" |
43 #include "webrtc/base/logging.h" | 43 #include "webrtc/base/logging.h" |
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/base/trace_event.h" | 46 #include "webrtc/base/trace_event.h" |
47 #include "webrtc/call.h" | 47 #include "webrtc/call.h" |
48 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 48 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
49 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h" | 49 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h" |
50 #include "webrtc/system_wrappers/interface/field_trial.h" | 50 #include "webrtc/system_wrappers/include/field_trial.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 namespace cricket { | 54 namespace cricket { |
55 namespace { | 55 namespace { |
56 | 56 |
57 // Wrap cricket::WebRtcVideoEncoderFactory as a webrtc::VideoEncoderFactory. | 57 // Wrap cricket::WebRtcVideoEncoderFactory as a webrtc::VideoEncoderFactory. |
58 class EncoderFactoryAdapter : public webrtc::VideoEncoderFactory { | 58 class EncoderFactoryAdapter : public webrtc::VideoEncoderFactory { |
59 public: | 59 public: |
60 // EncoderFactoryAdapter doesn't take ownership of |factory|, which is owned | 60 // EncoderFactoryAdapter doesn't take ownership of |factory|, which is owned |
(...skipping 2688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2749 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2749 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2750 } | 2750 } |
2751 } | 2751 } |
2752 | 2752 |
2753 return video_codecs; | 2753 return video_codecs; |
2754 } | 2754 } |
2755 | 2755 |
2756 } // namespace cricket | 2756 } // namespace cricket |
2757 | 2757 |
2758 #endif // HAVE_WEBRTC_VIDEO | 2758 #endif // HAVE_WEBRTC_VIDEO |
OLD | NEW |