// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/parsers/h264_bit_reader.h" #include "base/check.h" namespace media { H264BitReader::H264BitReader() : … { … } H264BitReader::~H264BitReader() = default; bool H264BitReader::Initialize(const uint8_t* data, off_t size) { … } bool H264BitReader::UpdateCurrByte() { … } // Read |num_bits| (1 to 31 inclusive) from the stream and return them // in |out|, with first bit in the stream as MSB in |out| at position // (|num_bits| - 1). bool H264BitReader::ReadBits(int num_bits, int* out) { … } off_t H264BitReader::NumBitsLeft() { … } bool H264BitReader::HasMoreRBSPData() { … } size_t H264BitReader::NumEmulationPreventionBytesRead() { … } } // namespace media