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

Side by Side Diff: media/filters/vp8_parser.h

Issue 852103002: Revert of Add accelerated video decoder interface, VP8 and H.264 implementations and hook up to V4L2SVDA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « media/filters/h264_parser.cc ('k') | media/video/h264_poc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // This file contains an implementation of a VP8 raw stream parser, 5 // This file contains an implementation of a VP8 raw stream parser,
6 // as defined in RFC 6386. 6 // as defined in RFC 6386.
7 7
8 #ifndef MEDIA_FILTERS_VP8_PARSER_H_ 8 #ifndef MEDIA_FILTERS_VP8_PARSER_H_
9 #define MEDIA_FILTERS_VP8_PARSER_H_ 9 #define MEDIA_FILTERS_VP8_PARSER_H_
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 const size_t kMaxDCTPartitions = 8; 86 const size_t kMaxDCTPartitions = 8;
87 87
88 struct MEDIA_EXPORT Vp8FrameHeader { 88 struct MEDIA_EXPORT Vp8FrameHeader {
89 Vp8FrameHeader(); 89 Vp8FrameHeader();
90 90
91 enum FrameType { KEYFRAME = 0, INTERFRAME = 1 }; 91 enum FrameType { KEYFRAME = 0, INTERFRAME = 1 };
92 bool IsKeyframe() const { return key_frame == KEYFRAME; } 92 bool IsKeyframe() const { return key_frame == KEYFRAME; }
93 93
94 enum GoldenRefreshMode { 94 enum GoldenRefreshMode {
95 COPY_LAST_TO_GOLDEN = 1, 95 kCopyLastToGolden = 1,
96 COPY_ALT_TO_GOLDEN = 2, 96 kCopyAltToGolden = 2,
97 }; 97 };
98 98
99 enum AltRefreshMode { 99 enum AltRefreshMode {
100 COPY_LAST_TO_ALT = 1, 100 kCopyLastToAlt = 1,
101 COPY_GOLDEN_TO_ALT = 2, 101 kCopyGoldenToAlt = 2,
102 }; 102 };
103 103
104 FrameType key_frame; 104 FrameType key_frame;
105 uint8_t version; 105 uint8_t version;
106 bool is_experimental; 106 bool is_experimental;
107 bool show_frame; 107 bool show_frame;
108 size_t first_part_size; 108 size_t first_part_size;
109 109
110 uint16_t width; 110 uint16_t width;
111 uint8_t horizontal_scale; 111 uint8_t horizontal_scale;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 const uint8_t* stream_; 184 const uint8_t* stream_;
185 size_t bytes_left_; 185 size_t bytes_left_;
186 Vp8BoolDecoder bd_; 186 Vp8BoolDecoder bd_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(Vp8Parser); 188 DISALLOW_COPY_AND_ASSIGN(Vp8Parser);
189 }; 189 };
190 190
191 } // namespace media 191 } // namespace media
192 192
193 #endif // MEDIA_FILTERS_VP8_PARSER_H_ 193 #endif // MEDIA_FILTERS_VP8_PARSER_H_
OLDNEW
« no previous file with comments | « media/filters/h264_parser.cc ('k') | media/video/h264_poc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698