// 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. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include "media/parsers/h264_poc.h" #include <stddef.h> #include <algorithm> #include "base/logging.h" #include "media/parsers/h264_parser.h" namespace media { namespace { // Check if a slice includes memory management control operation 5, which // results in some |pic_order_cnt| state being cleared. bool HasMMCO5(const media::H264SliceHeader& slice_hdr) { … } } // namespace H264POC::H264POC() { … } H264POC::~H264POC() = default; void H264POC::Reset() { … } std::optional<int32_t> H264POC::ComputePicOrderCnt( const H264SPS* sps, const H264SliceHeader& slice_hdr) { … } } // namespace media