blob: e5b2f4f80ce2309e57c9354cb14798d49a730301 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use fidl_fuchsia_sysmem::*;
pub const IMAGE_FORMAT_CONSTRAINTS_DEFAULT: ImageFormatConstraints = ImageFormatConstraints {
pixel_format: PixelFormat {
type_: PixelFormatType::Nv12,
has_format_modifier: false,
format_modifier: FormatModifier { value: 0 },
},
color_spaces_count: 0,
color_space: [ColorSpace { type_: ColorSpaceType::Invalid }; 32],
min_coded_width: 0,
max_coded_width: 0,
min_coded_height: 0,
max_coded_height: 0,
min_bytes_per_row: 0,
max_bytes_per_row: 0,
max_coded_width_times_coded_height: 0,
layers: 0,
coded_width_divisor: 0,
coded_height_divisor: 0,
bytes_per_row_divisor: 0,
start_offset_divisor: 0,
display_width_divisor: 0,
display_height_divisor: 0,
required_min_coded_width: 0,
required_max_coded_width: 0,
required_min_coded_height: 0,
required_max_coded_height: 0,
required_min_bytes_per_row: 0,
required_max_bytes_per_row: 0,
};
pub const BUFFER_COLLECTION_CONSTRAINTS_DEFAULT: BufferCollectionConstraints =
BufferCollectionConstraints {
usage: BufferUsage { cpu: 1, vulkan: 0, display: 0, video: 1 },
min_buffer_count_for_camping: 0,
min_buffer_count_for_dedicated_slack: 0,
min_buffer_count_for_shared_slack: 0,
min_buffer_count: 0,
max_buffer_count: 0,
has_buffer_memory_constraints: false,
buffer_memory_constraints: BufferMemoryConstraints {
min_size_bytes: 0,
max_size_bytes: std::u32::MAX,
physically_contiguous_required: false,
secure_required: false,
secure_permitted: false,
ram_domain_supported: false,
cpu_domain_supported: true,
},
image_format_constraints_count: 0,
image_format_constraints: [IMAGE_FORMAT_CONSTRAINTS_DEFAULT; 32],
};