| OLD | NEW |
| 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 | 5 |
| 6 /* | 6 /* |
| 7 * Copyright (c) 2010, The WebM Project authors. All rights reserved. | 7 * Copyright (c) 2010, The WebM Project authors. All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // This file is modified from the dboolhuff.{c,h} from the WebM's libvpx | 39 // This file is modified from the dboolhuff.{c,h} from the WebM's libvpx |
| 40 // project. (http://www.webmproject.org/code) | 40 // project. (http://www.webmproject.org/code) |
| 41 // It is used to decode bits from a vp8 stream. | 41 // It is used to decode bits from a vp8 stream. |
| 42 | 42 |
| 43 #ifndef MEDIA_FILTERS_VP8_BOOL_DECODER_H_ | 43 #ifndef MEDIA_FILTERS_VP8_BOOL_DECODER_H_ |
| 44 #define MEDIA_FILTERS_VP8_BOOL_DECODER_H_ | 44 #define MEDIA_FILTERS_VP8_BOOL_DECODER_H_ |
| 45 | 45 |
| 46 #include <sys/types.h> | 46 #include <sys/types.h> |
| 47 | 47 |
| 48 #include "base/basictypes.h" | |
| 49 #include "base/logging.h" | 48 #include "base/logging.h" |
| 50 #include "media/base/media_export.h" | 49 #include "media/base/media_export.h" |
| 51 | 50 |
| 52 namespace media { | 51 namespace media { |
| 53 | 52 |
| 54 // A class to decode the VP8's boolean entropy coded stream. It's a variant of | 53 // A class to decode the VP8's boolean entropy coded stream. It's a variant of |
| 55 // arithmetic coding. See RFC 6386 - Chapter 7. Boolean Entropy Decoder. | 54 // arithmetic coding. See RFC 6386 - Chapter 7. Boolean Entropy Decoder. |
| 56 class MEDIA_EXPORT Vp8BoolDecoder { | 55 class MEDIA_EXPORT Vp8BoolDecoder { |
| 57 public: | 56 public: |
| 58 Vp8BoolDecoder(); | 57 Vp8BoolDecoder(); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 size_t value_; | 123 size_t value_; |
| 125 int count_; | 124 int count_; |
| 126 size_t range_; | 125 size_t range_; |
| 127 | 126 |
| 128 DISALLOW_COPY_AND_ASSIGN(Vp8BoolDecoder); | 127 DISALLOW_COPY_AND_ASSIGN(Vp8BoolDecoder); |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 } // namespace media | 130 } // namespace media |
| 132 | 131 |
| 133 #endif // MEDIA_FILTERS_VP8_BOOL_DECODER_H_ | 132 #endif // MEDIA_FILTERS_VP8_BOOL_DECODER_H_ |
| OLD | NEW |