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

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

Issue 2380933003: Delete unused support for vp8 partitions. (Closed)
Patch Set: Created 4 years, 2 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 int nack_seq_nums_index, 46 int nack_seq_nums_index,
47 int rtt_ms); 47 int rtt_ms);
48 void Reset(); 48 void Reset();
49 int InsertPacket(const VCMPacket& packet, 49 int InsertPacket(const VCMPacket& packet,
50 uint8_t* frame_buffer, 50 uint8_t* frame_buffer,
51 VCMDecodeErrorMode enable_decodable_state, 51 VCMDecodeErrorMode enable_decodable_state,
52 const FrameData& frame_data); 52 const FrameData& frame_data);
53 bool complete() const; 53 bool complete() const;
54 bool decodable() const; 54 bool decodable() const;
55 55
56 // Builds fragmentation headers for VP8, each fragment being a decodable
57 // VP8 partition. Returns the total number of bytes which are decodable. Is
58 // used instead of MakeDecodable for VP8.
59 size_t BuildVP8FragmentationHeader(uint8_t* frame_buffer,
60 size_t frame_buffer_length,
61 RTPFragmentationHeader* fragmentation);
62
63 // Makes the frame decodable. I.e., only contain decodable NALUs. All 56 // Makes the frame decodable. I.e., only contain decodable NALUs. All
64 // non-decodable NALUs will be deleted and packets will be moved to in 57 // non-decodable NALUs will be deleted and packets will be moved to in
65 // memory to remove any empty space. 58 // memory to remove any empty space.
66 // Returns the number of bytes deleted from the session. 59 // Returns the number of bytes deleted from the session.
67 size_t MakeDecodable(); 60 size_t MakeDecodable();
68 61
69 // Sets decodable_ to false. 62 // Sets decodable_ to false.
70 // Used by the dual decoder. After the mode is changed to kNoErrors from 63 // Used by the dual decoder. After the mode is changed to kNoErrors from
71 // kWithErrors or kSelective errors, any states that have been marked 64 // kWithErrors or kSelective errors, any states that have been marked
72 // decodable and are not complete are marked as non-decodable. 65 // decodable and are not complete are marked as non-decodable.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // They are not necessarily equal to the front and back packets, as packets 154 // They are not necessarily equal to the front and back packets, as packets
162 // may enter out of order. 155 // may enter out of order.
163 // TODO(mikhal): Refactor the list to use a map. 156 // TODO(mikhal): Refactor the list to use a map.
164 int first_packet_seq_num_; 157 int first_packet_seq_num_;
165 int last_packet_seq_num_; 158 int last_packet_seq_num_;
166 }; 159 };
167 160
168 } // namespace webrtc 161 } // namespace webrtc
169 162
170 #endif // WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_ 163 #endif // WEBRTC_MODULES_VIDEO_CODING_SESSION_INFO_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/generic_decoder.cc ('k') | webrtc/modules/video_coding/session_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698