blob: 9a2c546ba48f7ddfc7e1d0b4db32ce3e23338f56 [file]
// 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_JPEG_TESTING_JUMBF_CREATOR_H_
#define THIRD_PARTY_CREDENTIO_FORMATS_JPEG_TESTING_JUMBF_CREATOR_H_
#include <cstdint>
#include <string>
namespace credentio {
struct JumbfCreatorParams {
uint32_t super_box_identifier = 'jumb';
uint32_t description_box_identifier = 'jumd';
uint64_t uuid_high = 0x6332706100110010;
uint64_t uuid_low = 0x800000AA00389B71;
std::string label = "c2pa";
std::string payload;
uint8_t toggles = 0b00000011;
uint8_t label_terminator = 0x00;
bool force_xlbox = false;
};
// Creates a Jpeg JUMBF box, see ISO/IEC 19566-5:2023
std::string CreateJumbf(const JumbfCreatorParams& params);
} // namespace credentio
#endif // THIRD_PARTY_CREDENTIO_FORMATS_JPEG_TESTING_JUMBF_CREATOR_H_