1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27

media / gpu / h264_builder.h [blame]

// 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_