| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_CAST_FRAMER_FRAME_BUFFER | 5 #ifndef MEDIA_CAST_FRAMER_FRAME_BUFFER |
| 6 #define MEDIA_CAST_FRAMER_FRAME_BUFFER | 6 #define MEDIA_CAST_FRAMER_FRAME_BUFFER |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 bool AssembleEncodedFrame(EncodedFrame* frame) const; | 32 bool AssembleEncodedFrame(EncodedFrame* frame) const; |
| 33 | 33 |
| 34 bool is_key_frame() const { return is_key_frame_; } | 34 bool is_key_frame() const { return is_key_frame_; } |
| 35 | 35 |
| 36 uint32 last_referenced_frame_id() const { return last_referenced_frame_id_; } | 36 uint32 last_referenced_frame_id() const { return last_referenced_frame_id_; } |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 uint32 frame_id_; | 39 uint32 frame_id_; |
| 40 uint16 max_packet_id_; | 40 uint16 max_packet_id_; |
| 41 uint16 num_packets_received_; | 41 uint16 num_packets_received_; |
| 42 uint16 new_playout_delay_ms_; |
| 42 bool is_key_frame_; | 43 bool is_key_frame_; |
| 43 size_t total_data_size_; | 44 size_t total_data_size_; |
| 44 uint32 last_referenced_frame_id_; | 45 uint32 last_referenced_frame_id_; |
| 45 uint32 rtp_timestamp_; | 46 uint32 rtp_timestamp_; |
| 46 PacketMap packets_; | 47 PacketMap packets_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(FrameBuffer); | 49 DISALLOW_COPY_AND_ASSIGN(FrameBuffer); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace cast | 52 } // namespace cast |
| 52 } // namespace media | 53 } // namespace media |
| 53 | 54 |
| 54 #endif // MEDIA_CAST_FRAMER_FRAME_BUFFER | 55 #endif // MEDIA_CAST_FRAMER_FRAME_BUFFER |
| OLD | NEW |