Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_FILTERS_VP9_UNCOMPRESSED_HEADER_PARSER_H_ | |
| 6 #define MEDIA_FILTERS_VP9_UNCOMPRESSED_HEADER_PARSER_H_ | |
| 7 | |
| 8 #include "media/filters/vp9_parser.h" | |
| 9 #include "media/filters/vp9_raw_bits_reader.h" | |
| 10 | |
| 11 namespace media { | |
| 12 | |
| 13 class Vp9UncompressedHeaderParser { | |
| 14 public: | |
| 15 Vp9UncompressedHeaderParser(Vp9Parser::Context* context); | |
| 16 bool Parse(const uint8_t* stream, off_t frame_size, Vp9FrameHeader* fhdr); | |
| 17 | |
| 18 private: | |
| 19 uint8_t ReadProfile(); | |
| 20 bool VerifySyncCode(); | |
| 21 bool ReadColorConfig(Vp9FrameHeader* fhdr); | |
| 22 void ReadFrameSize(Vp9FrameHeader* fhdr); | |
| 23 bool ReadFrameSizeFromRefs(Vp9FrameHeader* fhdr); | |
| 24 void ReadRenderSize(Vp9FrameHeader* fhdr); | |
| 25 Vp9InterpolationFilter ReadInterpolationFilter(); | |
| 26 void ResetLoopfilter(); | |
| 27 void SetupPastIndependence(Vp9FrameHeader* fhdr); | |
| 28 void ReadLoopFilterParams(); | |
| 29 void ReadQuantizationParams(Vp9QuantizationParams* quants); | |
| 30 int8_t ReadDeltaQ(); | |
| 31 uint8_t ReadProb(); | |
| 32 bool ReadSegmentationParams(); | |
| 33 bool ReadTileInfo(Vp9FrameHeader* fhdr); | |
| 34 | |
| 35 // Raw bits decoder for uncompressed frame header. | |
|
Pawel Osciak
2016/08/04 10:20:20
s/decoder/reader/ ?
kcwu
2016/08/05 11:38:48
Done.
| |
| 36 Vp9RawBitsReader reader_; | |
| 37 | |
| 38 Vp9Parser::Context* context_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(Vp9UncompressedHeaderParser); | |
| 41 }; | |
| 42 | |
| 43 } // namespace media | |
| 44 | |
| 45 #endif // MEDIA_FILTERS_VP9_UNCOMPRESSED_HEADER_PARSER_H_ | |
| OLD | NEW |