| 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 25 matching lines...) Expand all Loading... |
| 36 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 36 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 37 */ | 37 */ |
| 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 <stddef.h> |
| 47 #include <stdint.h> |
| 46 #include <sys/types.h> | 48 #include <sys/types.h> |
| 47 | 49 |
| 48 #include "base/logging.h" | 50 #include "base/logging.h" |
| 49 #include "base/macros.h" | 51 #include "base/macros.h" |
| 50 #include "media/base/media_export.h" | 52 #include "media/base/media_export.h" |
| 51 | 53 |
| 52 namespace media { | 54 namespace media { |
| 53 | 55 |
| 54 // A class to decode the VP8's boolean entropy coded stream. It's a variant of | 56 // 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. | 57 // arithmetic coding. See RFC 6386 - Chapter 7. Boolean Entropy Decoder. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 size_t value_; | 126 size_t value_; |
| 125 int count_; | 127 int count_; |
| 126 size_t range_; | 128 size_t range_; |
| 127 | 129 |
| 128 DISALLOW_COPY_AND_ASSIGN(Vp8BoolDecoder); | 130 DISALLOW_COPY_AND_ASSIGN(Vp8BoolDecoder); |
| 129 }; | 131 }; |
| 130 | 132 |
| 131 } // namespace media | 133 } // namespace media |
| 132 | 134 |
| 133 #endif // MEDIA_FILTERS_VP8_BOOL_DECODER_H_ | 135 #endif // MEDIA_FILTERS_VP8_BOOL_DECODER_H_ |
| OLD | NEW |