Home
last modified time | relevance | path

Searched refs:custom_format (Results 1 – 7 of 7) sorted by relevance

/aosp12/system/logging/rust/
H A Dlogger.rs31 custom_format: Option<FormatFn>, field
67 self.custom_format = Some(Box::new(format)); in format()
91 if let Some(custom_format) = config.custom_format { in init()
95 let formatted = custom_format(r); in init()
121 if let Some(custom_format) = config.custom_format { in init()
123 let formatted = custom_format(r); in init()
174 assert!(config.custom_format.is_some()); in test_format()
/aosp12/hardware/qcom/sm7250/display/gralloc/
H A DQtiMapperExtensions.cpp125 int32_t custom_format = format; in getCustomFormatFlags() local
126 if (gralloc::GetCustomFormatFlags(format, usage, &custom_format, &priv_flags) != 0) { in getCustomFormatFlags()
129 hidl_cb(err, custom_format, priv_flags); in getCustomFormatFlags()
353 int custom_format = gralloc::GetImplDefinedFormat(usage, format); in getFormatLayout() local
354 BufferInfo info(width, height, custom_format, usage); in getFormatLayout()
363 alignedw, alignedh, custom_format); in getFormatLayout()
364 if (gralloc::IsYuvFormat(custom_format)) { in getFormatLayout()
365 gralloc::GetYUVPlaneInfo(info, custom_format, alignedw, alignedh, flags, &plane_count, in getFormatLayout()
367 } else if (gralloc::IsUncompressedRGBFormat(custom_format) || in getFormatLayout()
368 gralloc::IsCompressedRGBFormat(custom_format)) { in getFormatLayout()
[all …]
H A Dgr_utils.h224 int GetCustomFormatFlags(int format, uint64_t usage, int *custom_format, uint64_t *priv_flags);
H A Dgr_utils.cpp1417 int *custom_format, uint64_t *priv_flags) { in GetCustomFormatFlags() argument
1418 *custom_format = GetImplDefinedFormat(usage, format); in GetCustomFormatFlags()
1419 *priv_flags = GetHandleFlags(*custom_format, usage); in GetCustomFormatFlags()
/aosp12/hardware/qcom/sm8150/display/gralloc/
H A DQtiMapperExtensions.cpp125 int32_t custom_format = format; in getCustomFormatFlags() local
126 if (gralloc::GetCustomFormatFlags(format, usage, &custom_format, &priv_flags) != 0) { in getCustomFormatFlags()
129 hidl_cb(err, custom_format, priv_flags); in getCustomFormatFlags()
352 int custom_format = gralloc::GetImplDefinedFormat(usage, format); in getFormatLayout() local
353 BufferInfo info(width, height, custom_format, usage); in getFormatLayout()
358 alignedw, alignedh, custom_format); in getFormatLayout()
359 if (gralloc::IsYuvFormat(custom_format)) { in getFormatLayout()
360 gralloc::GetYUVPlaneInfo(info, custom_format, alignedw, alignedh, flags, &plane_count, in getFormatLayout()
362 } else if (gralloc::IsUncompressedRGBFormat(custom_format) || in getFormatLayout()
363 gralloc::IsCompressedRGBFormat(custom_format)) { in getFormatLayout()
[all …]
H A Dgr_utils.h209 int GetCustomFormatFlags(int format, uint64_t usage, int *custom_format, uint64_t *priv_flags);
H A Dgr_utils.cpp1364 int *custom_format, uint64_t *priv_flags) { in GetCustomFormatFlags() argument
1365 *custom_format = GetImplDefinedFormat(usage, format); in GetCustomFormatFlags()
1366 *priv_flags = GetHandleFlags(*custom_format, usage); in GetCustomFormatFlags()