OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 input_frame_height(0), | 765 input_frame_height(0), |
766 send_frame_width(0), | 766 send_frame_width(0), |
767 send_frame_height(0), | 767 send_frame_height(0), |
768 framerate_input(0), | 768 framerate_input(0), |
769 framerate_sent(0), | 769 framerate_sent(0), |
770 nominal_bitrate(0), | 770 nominal_bitrate(0), |
771 preferred_bitrate(0), | 771 preferred_bitrate(0), |
772 adapt_reason(0), | 772 adapt_reason(0), |
773 adapt_changes(0), | 773 adapt_changes(0), |
774 avg_encode_ms(0), | 774 avg_encode_ms(0), |
775 encode_usage_percent(0) { | 775 encode_usage_percent(0), |
| 776 qp(-1) { |
776 } | 777 } |
777 | 778 |
778 std::vector<SsrcGroup> ssrc_groups; | 779 std::vector<SsrcGroup> ssrc_groups; |
779 int packets_cached; | 780 int packets_cached; |
780 int firs_rcvd; | 781 int firs_rcvd; |
781 int plis_rcvd; | 782 int plis_rcvd; |
782 int nacks_rcvd; | 783 int nacks_rcvd; |
783 int input_frame_width; | 784 int input_frame_width; |
784 int input_frame_height; | 785 int input_frame_height; |
785 int send_frame_width; | 786 int send_frame_width; |
786 int send_frame_height; | 787 int send_frame_height; |
787 int framerate_input; | 788 int framerate_input; |
788 int framerate_sent; | 789 int framerate_sent; |
789 int nominal_bitrate; | 790 int nominal_bitrate; |
790 int preferred_bitrate; | 791 int preferred_bitrate; |
791 int adapt_reason; | 792 int adapt_reason; |
792 int adapt_changes; | 793 int adapt_changes; |
793 int avg_encode_ms; | 794 int avg_encode_ms; |
794 int encode_usage_percent; | 795 int encode_usage_percent; |
795 VariableInfo<int> adapt_frame_drops; | 796 VariableInfo<int> adapt_frame_drops; |
796 VariableInfo<int> effects_frame_drops; | 797 VariableInfo<int> effects_frame_drops; |
797 VariableInfo<double> capturer_frame_time; | 798 VariableInfo<double> capturer_frame_time; |
| 799 int qp; // Average codec quantizer value. |
798 }; | 800 }; |
799 | 801 |
800 struct VideoReceiverInfo : public MediaReceiverInfo { | 802 struct VideoReceiverInfo : public MediaReceiverInfo { |
801 VideoReceiverInfo() | 803 VideoReceiverInfo() |
802 : packets_concealed(0), | 804 : packets_concealed(0), |
803 firs_sent(0), | 805 firs_sent(0), |
804 plis_sent(0), | 806 plis_sent(0), |
805 nacks_sent(0), | 807 nacks_sent(0), |
806 frame_width(0), | 808 frame_width(0), |
807 frame_height(0), | 809 frame_height(0), |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1204 // Signal when the media channel is ready to send the stream. Arguments are: | 1206 // Signal when the media channel is ready to send the stream. Arguments are: |
1205 // writable(bool) | 1207 // writable(bool) |
1206 sigslot::signal1<bool> SignalReadyToSend; | 1208 sigslot::signal1<bool> SignalReadyToSend; |
1207 // Signal for notifying that the remote side has closed the DataChannel. | 1209 // Signal for notifying that the remote side has closed the DataChannel. |
1208 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; | 1210 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; |
1209 }; | 1211 }; |
1210 | 1212 |
1211 } // namespace cricket | 1213 } // namespace cricket |
1212 | 1214 |
1213 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ | 1215 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ |
OLD | NEW |