blob: 8ad9b7fd3005e6227762d93c76b988b39ee5ccbe [file] [edit]
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#ifndef THIRD_PARTY_CREDENTIO_FORMATS_BMFF_CONSTANTS_H_
#define THIRD_PARTY_CREDENTIO_FORMATS_BMFF_CONSTANTS_H_
#include "absl/strings/string_view.h"
namespace credentio {
inline constexpr absl::string_view kBmffC2paBoxPurposeManifest = "manifest";
inline constexpr absl::string_view kBmffC2paBoxPurposeOriginal = "original";
inline constexpr absl::string_view kBmffC2paBoxPurposeMerkle = "merkle";
inline constexpr absl::string_view kBmffC2paBoxPurposeUpdate = "update";
// The minimum size of a BMFF box header is 8 bytes, consisting of a 4-byte
// size and a 4-byte type.
constexpr int kBmffMinSizeofBoxHeader = 8;
// The size of the user type in a UUID box.
constexpr int kBmffUserTypeSize = 16;
inline constexpr absl::string_view kBmffComponentSubtypeVideo = "vide";
inline constexpr absl::string_view kBmffComponentSubtypeSound = "soun";
} // namespace credentio
#endif // THIRD_PARTY_CREDENTIO_FORMATS_BMFF_CONSTANTS_H_