webrtc/modules/rtp_rtcp/source
Karl Wiberg 83d3ec177c Convert PayloadUnion from a union to a class, step 1
I need to replace the audio part of PayloadUnion with SdpAudioFormat,
but that's a non-trivially-deletable class and those just don't work
well in unions, especially unions that don't have a discriminator that
says which member is currently active.

This CL converts the union to a class, adds a discriminator, and
provides accessor functions. CL #2 in the series will change all
outsiders to use the accessors instead of the public member variables
directly, and CL #3 will remove the public member variables. (It needs
to be done in separate steps like this because PayloadUnion is
unfortunately part of the API, and just changing it all in one go
would break users.)

BUG=webrtc:8159

Change-Id: I38c44bbb21a2d38600cff59bf37d8d47dfdbce21
Reviewed-on: https://webrtc-review.googlesource.com/4340
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20025}
2017-09-28 18:32:37 +00:00
..
rtcp_packet Move rtcp packet classes from rtp_rtcp to rtp_rtcp_format target 2017-09-15 17:36:30 +00:00
byte_io.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
byte_io_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
dtmf_queue.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
dtmf_queue.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
fec_private_tables_bursty.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
fec_private_tables_random.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
fec_test_helper.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
fec_test_helper.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
flexfec_header_reader_writer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
flexfec_header_reader_writer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
flexfec_header_reader_writer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
flexfec_receiver.cc Change ForwardErrorCorrection class to accept one received packet at a time. 2017-09-18 14:58:59 +00:00
flexfec_receiver_unittest.cc Change ForwardErrorCorrection class to accept one received packet at a time. 2017-09-18 14:58:59 +00:00
flexfec_sender.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
flexfec_sender_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
forward_error_correction.cc Change ForwardErrorCorrection class to accept one received packet at a time. 2017-09-18 14:58:59 +00:00
forward_error_correction.h Change ForwardErrorCorrection class to accept one received packet at a time. 2017-09-18 14:58:59 +00:00
forward_error_correction_internal.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
forward_error_correction_internal.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
nack_rtx_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
packet_loss_stats.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
packet_loss_stats.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
packet_loss_stats_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
playout_delay_oracle.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
playout_delay_oracle.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
playout_delay_oracle_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
receive_statistics_impl.cc Simplify ReceiveStatistics: merge GetActiveStatisticians into RtcpReportBlocks 2017-09-18 13:19:36 +00:00
receive_statistics_impl.h Simplify ReceiveStatistics: merge GetActiveStatisticians into RtcpReportBlocks 2017-09-18 13:19:36 +00:00
receive_statistics_unittest.cc Simplify ReceiveStatistics: merge GetActiveStatisticians into RtcpReportBlocks 2017-09-18 13:19:36 +00:00
remote_ntp_time_estimator.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
remote_ntp_time_estimator_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtcp_nack_stats.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtcp_nack_stats.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtcp_nack_stats_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtcp_packet.cc Move rtcp packet classes from rtp_rtcp to rtp_rtcp_format target 2017-09-15 17:36:30 +00:00
rtcp_packet.h Move rtcp packet classes from rtp_rtcp to rtp_rtcp_format target 2017-09-15 17:36:30 +00:00
rtcp_packet_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtcp_receiver.cc Trigger rtt and stats update on report block rather than receiver report. 2017-09-28 10:29:59 +00:00
rtcp_receiver.h Trigger rtt and stats update on report block rather than receiver report. 2017-09-28 10:29:59 +00:00
rtcp_receiver_unittest.cc Trigger rtt and stats update on report block rather than receiver report. 2017-09-28 10:29:59 +00:00
rtcp_sender.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtcp_sender.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtcp_sender_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_fec_unittest.cc Change ForwardErrorCorrection class to accept one received packet at a time. 2017-09-18 14:58:59 +00:00
rtp_format.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_h264.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_h264.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_h264_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_video_generic.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_video_generic.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_format_video_generic_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_vp8.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_vp8.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_format_vp8_test_helper.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_vp8_test_helper.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_format_vp8_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_format_vp9.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_format_vp9.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_format_vp9_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_header_extension_map.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_header_extension_map_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_header_extensions.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_header_extensions.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_header_parser.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_packet.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_packet.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_packet_history.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_packet_history.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_packet_history_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_packet_received.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_packet_received.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_packet_to_send.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_packet_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_payload_registry.cc Convert PayloadUnion from a union to a class, step 1 2017-09-28 18:32:37 +00:00
rtp_payload_registry_unittest.cc Remove the redundant method GetPayloadSpecifics 2017-09-21 20:19:55 +00:00
rtp_receiver_audio.cc Convert PayloadUnion from a union to a class, step 1 2017-09-28 18:32:37 +00:00
rtp_receiver_audio.h Delete redundant logic for setting is_first_packet_in_frame 2017-09-27 06:45:15 +00:00
rtp_receiver_impl.cc Delete redundant logic for setting is_first_packet_in_frame 2017-09-27 06:45:15 +00:00
rtp_receiver_impl.h Add lock annotations and const declarations to RtpReceiverImpl. 2017-09-27 12:01:46 +00:00
rtp_receiver_strategy.cc Convert PayloadUnion from a union to a class, step 1 2017-09-28 18:32:37 +00:00
rtp_receiver_strategy.h Convert PayloadUnion from a union to a class, step 1 2017-09-28 18:32:37 +00:00
rtp_receiver_unittest.cc Convert PayloadUnion from a union to a class, step 1 2017-09-28 18:32:37 +00:00
rtp_receiver_video.cc Delete redundant logic for setting is_first_packet_in_frame 2017-09-27 06:45:15 +00:00
rtp_receiver_video.h Delete redundant logic for setting is_first_packet_in_frame 2017-09-27 06:45:15 +00:00
rtp_rtcp_config.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_rtcp_impl.cc Trigger rtt and stats update on report block rather than receiver report. 2017-09-28 10:29:59 +00:00
rtp_rtcp_impl.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_rtcp_impl_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_sender.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_sender.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_sender_audio.cc Convert PayloadUnion from a union to a class, step 1 2017-09-28 18:32:37 +00:00
rtp_sender_audio.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_sender_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_sender_video.cc Convert PayloadUnion from a union to a class, step 1 2017-09-28 18:32:37 +00:00
rtp_sender_video.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
rtp_utility.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtp_utility.h Convert PayloadUnion from a union to a class, step 1 2017-09-28 18:32:37 +00:00
rtp_utility_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
time_util.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
time_util.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
time_util_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
tmmbr_help.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
tmmbr_help.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
ulpfec_generator.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ulpfec_generator.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ulpfec_generator_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ulpfec_header_reader_writer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ulpfec_header_reader_writer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ulpfec_header_reader_writer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ulpfec_receiver_impl.cc Change ForwardErrorCorrection class to accept one received packet at a time. 2017-09-18 14:58:59 +00:00
ulpfec_receiver_impl.h Change ForwardErrorCorrection class to accept one received packet at a time. 2017-09-18 14:58:59 +00:00
ulpfec_receiver_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
video_codec_information.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00