// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // This file contains an implementation of an H265 Annex-B video stream parser, // but it only handles NALU parsing. #ifndef MEDIA_PARSERS_H265_NALU_PARSER_H_ #define MEDIA_PARSERS_H265_NALU_PARSER_H_ #include <stdint.h> #include <sys/types.h> #include <vector> #include "base/memory/raw_ptr.h" #include "media/base/media_export.h" #include "media/base/ranges.h" #include "media/parsers/h264_bit_reader.h" #include "media/parsers/h264_parser.h" namespace media { struct SubsampleEntry; // For explanations of each struct and its members, see H.265 specification // at http://www.itu.int/rec/T-REC-H.265. struct MEDIA_EXPORT H265NALU { … }; // Class to parse an Annex-B H.265 stream NALUs. class MEDIA_EXPORT H265NaluParser { … }; } // namespace media #endif // MEDIA_PARSERS_H265_NALU_PARSER_H_