// 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. // // This file contains an implementation of a H26xAnnexBBitstreamBuilder class // for constructing raw bitstream buffers containing NAL units in H.264 Annex-B // stream format. // See H.264 spec Annex B and chapter 7 for more details. #ifndef MEDIA_FILTERS_H26X_ANNEX_B_BITSTREAM_BUILDER_H_ #define MEDIA_FILTERS_H26X_ANNEX_B_BITSTREAM_BUILDER_H_ #include <stdint.h> #include "base/containers/heap_array.h" #include "base/gtest_prod_util.h" #include "base/memory/raw_ptr.h" #include "base/memory/ref_counted.h" #include "media/base/media_export.h" #include "media/parsers/h264_parser.h" #include "media/parsers/h265_nalu_parser.h" namespace media { // Holds one or more NALUs as a raw bitstream buffer in H.264 Annex-B format. // Note that this class currently does NOT insert emulation prevention // three-byte sequences (spec 7.3.1) by default. class MEDIA_EXPORT H26xAnnexBBitstreamBuilder { … }; } // namespace media #endif // MEDIA_FILTERS_H26X_ANNEX_B_BITSTREAM_BUILDER_H_