blob: 5ff5e4ac05bd9f9723d475077e31a1b3fe0e56ff [file] [log] [blame] [edit]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_GPU_H264_BUILDER_H_
#define MEDIA_GPU_H264_BUILDER_H_
#include "media/gpu/media_gpu_export.h"
#include "media/parsers/h264_parser.h"
namespace media {
class H26xAnnexBBitstreamBuilder;
// Build the packed bitstream of H264SPS into |bitstream_builder|.
MEDIA_GPU_EXPORT void BuildPackedH264SPS(
H26xAnnexBBitstreamBuilder& bitstream_builder,
const H264SPS& sps);
// Build the packed bitstream of H264PPS into |bitstream_builder|.
MEDIA_GPU_EXPORT void BuildPackedH264PPS(
H26xAnnexBBitstreamBuilder& bitstream_builder,
const H264SPS& sps,
const H264PPS& pps);
} // namespace media
#endif // MEDIA_GPU_H264_BUILDER_H_