Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: webrtc/modules/video_coding/frame_object.h

Issue 1847193003: Convert Vp8 Rtp headers to frame references. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ 12 #define WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
13 13
14 #include "webrtc/modules/video_coding/packet.h" 14 #include "webrtc/modules/video_coding/packet.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 namespace video_coding { 17 namespace video_coding {
18 18
19 class FrameObject { 19 class FrameObject {
20 public: 20 public:
21 virtual uint16_t picture_id() const = 0;
22 virtual bool GetBitstream(uint8_t* destination) const = 0; 21 virtual bool GetBitstream(uint8_t* destination) const = 0;
23 virtual ~FrameObject() {} 22 virtual ~FrameObject() {}
23
24 uint16_t picture_id;
25 uint8_t num_references;
pbos-webrtc 2016/04/01 14:24:44 size_t (unless this is bits put on the wire)
philipel 2016/04/05 12:40:49 Done.
26 uint16_t references[5];
pbos-webrtc 2016/04/01 14:24:44 Comment what 5 comes from.
philipel 2016/04/05 12:40:49 Done.
24 }; 27 };
25 28
26 class PacketBuffer; 29 class PacketBuffer;
27 30
28 class RtpFrameObject : public FrameObject { 31 class RtpFrameObject : public FrameObject {
29 public: 32 public:
30 RtpFrameObject(PacketBuffer* packet_buffer, 33 RtpFrameObject(PacketBuffer* packet_buffer,
31 uint16_t picture_id,
32 uint16_t first_packet, 34 uint16_t first_packet,
33 uint16_t last_packet); 35 uint16_t last_packet);
36
34 ~RtpFrameObject(); 37 ~RtpFrameObject();
35 uint16_t first_packet() const; 38 uint16_t first_packet() const;
36 uint16_t last_packet() const; 39 uint16_t last_packet() const;
37 uint16_t picture_id() const override;
38 bool GetBitstream(uint8_t* destination) const override; 40 bool GetBitstream(uint8_t* destination) const override;
39 41
40 private: 42 private:
41 PacketBuffer* packet_buffer_; 43 PacketBuffer* packet_buffer_;
42 uint16_t picture_id_;
43 uint16_t first_packet_; 44 uint16_t first_packet_;
44 uint16_t last_packet_; 45 uint16_t last_packet_;
45 }; 46 };
46 47
47 } // namespace video_coding 48 } // namespace video_coding
48 } // namespace webrtc 49 } // namespace webrtc
49 50
50 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ 51 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.cc » ('j') | webrtc/modules/video_coding/packet_buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698