Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 618) sorted by relevance

12345678910>>...25

/device/generic/vulkan-cereal/stream-servers/tests/
DGLSnapshotRenderbuffers_unittest.cpp36 GlRenderbufferFormat format; member
76 m_state.format.name)); in changedStateCheck()
78 compareParameter(GL_RENDERBUFFER_RED_SIZE, m_state.format.red)); in changedStateCheck()
80 m_state.format.green)); in changedStateCheck()
82 m_state.format.blue)); in changedStateCheck()
84 m_state.format.alpha)); in changedStateCheck()
86 m_state.format.depth)); in changedStateCheck()
88 m_state.format.stencil)); in changedStateCheck()
147 gl->glRenderbufferStorage(GL_RENDERBUFFER, m_state.format.name, in TEST_P()
155 if (fieldSize != m_state.format.red) { in TEST_P()
[all …]
/device/generic/goldfish-opengl/android-emu/android/utils/
Ddebug.c36 void dprint(const char* format, ...) { in dprint() argument
38 va_start(args, format); in dprint()
39 fdprintfnv(stdout, 0, format, args); in dprint()
43 void fdprintf(FILE* fp, const char* format, ...) { in fdprintf() argument
45 va_start(args, format); in fdprintf()
46 fdprintfnv(fp, 0, format, args); in fdprintf()
50 void fdprintfnv(FILE* fp, const char* lvl, const char* format, va_list args) { in fdprintfnv() argument
63 vfprintf(fp, format, args); in fdprintfnv()
67 void dprintn(const char* format, ...) { in dprintn() argument
69 va_start(args, format); in dprintn()
[all …]
/device/generic/goldfish-opengl/system/vulkan_enc/
DAndroidHardwareBuffer.cpp92 switch(desc.format) { in getAndroidHardwareBufferPropertiesANDROID()
94 ahbFormatProps->format = VK_FORMAT_R8G8B8A8_UNORM; in getAndroidHardwareBufferPropertiesANDROID()
97 ahbFormatProps->format = VK_FORMAT_R8G8B8A8_UNORM; in getAndroidHardwareBufferPropertiesANDROID()
100 ahbFormatProps->format = VK_FORMAT_R8G8B8_UNORM; in getAndroidHardwareBufferPropertiesANDROID()
103 ahbFormatProps->format = VK_FORMAT_R5G6B5_UNORM_PACK16; in getAndroidHardwareBufferPropertiesANDROID()
106 ahbFormatProps->format = VK_FORMAT_R16G16B16A16_SFLOAT; in getAndroidHardwareBufferPropertiesANDROID()
109 ahbFormatProps->format = VK_FORMAT_A2B10G10R10_UNORM_PACK32; in getAndroidHardwareBufferPropertiesANDROID()
112 ahbFormatProps->format = VK_FORMAT_D16_UNORM; in getAndroidHardwareBufferPropertiesANDROID()
115 ahbFormatProps->format = VK_FORMAT_X8_D24_UNORM_PACK32; in getAndroidHardwareBufferPropertiesANDROID()
118 ahbFormatProps->format = VK_FORMAT_D24_UNORM_S8_UINT; in getAndroidHardwareBufferPropertiesANDROID()
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DGLESTextureUtils.cpp55 static int computePixelSize(GLenum format, GLenum type) { in computePixelSize() argument
57 #define FORMAT_ERROR(format, type) \ in computePixelSize() argument
58 ALOGE("%s:%d unknown format/type 0x%x 0x%x", __FUNCTION__, __LINE__, format, type) \ in computePixelSize()
62 switch(format) { in computePixelSize()
83 default: FORMAT_ERROR(format, type); in computePixelSize()
87 switch(format) { in computePixelSize()
114 default: FORMAT_ERROR(format, type); in computePixelSize()
118 switch(format) { in computePixelSize()
127 default: FORMAT_ERROR(format, type); in computePixelSize()
131 switch(format) { in computePixelSize()
[all …]
/device/generic/vulkan-cereal/stream-servers/gl/
DYUVConverter.cpp45 bool isInterleaved(FrameworkFormat format) { in isInterleaved() argument
46 switch (format) { in isInterleaved()
55 FATAL("Invalid for format:%d", format); in isInterleaved()
65 YUVInterleaveDirection getInterleaveDirection(FrameworkFormat format) { in getInterleaveDirection() argument
66 if (!isInterleaved(format)) { in getInterleaveDirection()
67 FATAL("Format:%d not interleaved", format); in getInterleaveDirection()
70 switch (format) { in getInterleaveDirection()
78 FATAL("Format:%d not interleaved", format); in getInterleaveDirection()
82 FATAL("Format:%d not interleaved", format); in getInterleaveDirection()
87 GLint getGlTextureFormat(FrameworkFormat format, YUVPlane plane) { in getGlTextureFormat() argument
[all …]
/device/generic/vulkan-cereal/stream-servers/vulkan/
DVkFormatUtils.h277 static inline int getLinearFormatPixelSize(VkFormat format) { in getLinearFormatPixelSize() argument
279 if (format == f) return size; in getLinearFormatPixelSize()
283 ERR("Unhandled format: %s", string_VkFormat(format)); in getLinearFormatPixelSize()
287 constexpr bool formatIsUNorm(VkFormat format) { in formatIsUNorm() argument
288 switch (format) { in formatIsUNorm()
388 constexpr bool formatIsSNorm(VkFormat format) { in formatIsSNorm() argument
389 switch (format) { in formatIsSNorm()
413 constexpr bool formatIsUScaled(VkFormat format) { in formatIsUScaled() argument
414 switch (format) { in formatIsUScaled()
434 constexpr bool formatIsSScaled(VkFormat format) { in formatIsSScaled() argument
[all …]
Dvk_format_info.h79 static inline VkImageAspectFlags vk_format_aspects(VkFormat format) { in vk_format_aspects() argument
80 switch (format) { in vk_format_aspects()
127 static inline bool vk_format_is_color(VkFormat format) { in vk_format_is_color() argument
128 return vk_format_aspects(format) == VK_IMAGE_ASPECT_COLOR_BIT; in vk_format_is_color()
131 static inline bool vk_format_is_depth_or_stencil(VkFormat format) { in vk_format_is_depth_or_stencil() argument
132 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_is_depth_or_stencil()
136 static inline bool vk_format_has_depth(VkFormat format) { in vk_format_has_depth() argument
137 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_has_depth()
/device/generic/vulkan-cereal/stream-servers/gl/glestranslator/GLcommon/
DTextureUtils.cpp415 GLint format = GL_RGB; in doCompressedTexImage2D() local
425 format = GL_RGBA; in doCompressedTexImage2D()
431 format = GL_RGBA; in doCompressedTexImage2D()
435 format = GL_RED; in doCompressedTexImage2D()
440 format = GL_RED; in doCompressedTexImage2D()
445 format = GL_RG; in doCompressedTexImage2D()
450 format = GL_RG; in doCompressedTexImage2D()
455 format = GL_RGBA; in doCompressedTexImage2D()
459 format = GL_RGBA; in doCompressedTexImage2D()
492 width, height, border, format, type, pOut.get()); in doCompressedTexImage2D()
[all …]
DSaveableTexture.cpp75 static int s_computePixelSize(GLenum format, GLenum type) { in s_computePixelSize() argument
76 #define FORMAT_ERROR(format, type) \ in s_computePixelSize() argument
78 __LINE__, format, type); in s_computePixelSize()
82 switch (format) { in s_computePixelSize()
112 FORMAT_ERROR(format, type); in s_computePixelSize()
116 switch (format) { in s_computePixelSize()
156 FORMAT_ERROR(format, type); in s_computePixelSize()
160 switch (format) { in s_computePixelSize()
174 FORMAT_ERROR(format, type); in s_computePixelSize()
178 switch (format) { in s_computePixelSize()
[all …]
Drgtc.cpp31 inline size_t rgtc_get_block_size(RGTCImageFormat format) { in rgtc_get_block_size() argument
32 switch (format) { in rgtc_get_block_size()
45 size_t rgtc_get_decoded_pixel_size(RGTCImageFormat format) { in rgtc_get_decoded_pixel_size() argument
46 switch (format) { in rgtc_get_decoded_pixel_size()
101 int rgtc_decode_image(const uint8_t* in, RGTCImageFormat format, uint8_t* out, uint32_t width, in rgtc_decode_image() argument
103 size_t data_block_size = rgtc_get_block_size(format); in rgtc_decode_image()
104 size_t texel_size = rgtc_get_decoded_pixel_size(format); in rgtc_decode_image()
118 switch (format) { in rgtc_decode_image()
145 size_t rgtc_get_encoded_image_size(RGTCImageFormat format, uint32_t width, uint32_t height) { in rgtc_get_encoded_image_size() argument
148 return w * h * rgtc_get_block_size(format); in rgtc_get_encoded_image_size()
/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DGoldfishVideoDecoderOMXComponent.cpp116 def.format.video.cMIMEType = const_cast<char *>(mimeType); in initPorts()
117 def.format.video.pNativeRender = NULL; in initPorts()
119 def.format.video.nBitrate = 0; in initPorts()
120 def.format.video.xFramerate = 0; in initPorts()
121 def.format.video.bFlagErrorConcealment = OMX_FALSE; in initPorts()
122 def.format.video.eCompressionFormat = mCodingType; in initPorts()
123 def.format.video.eColorFormat = OMX_COLOR_FormatUnused; in initPorts()
124 def.format.video.pNativeWindow = NULL; in initPorts()
138 def.format.video.cMIMEType = const_cast<char *>("video/raw"); in initPorts()
139 def.format.video.pNativeRender = NULL; in initPorts()
[all …]
/device/generic/goldfish-opengl/fuchsia/
Dport.cc27 static void linux_log_prefix(const char *prefix, const char *file, int line, const char *format, in linux_log_prefix() argument
37 vfprintf(stderr, format, ap); in linux_log_prefix()
48 int line, const char* format, ...) { in __android_log_print() argument
55 va_start(ap, format); in __android_log_print()
60 FX_LOGVF(DEBUG, local_tag, file, line, format, ap); in __android_log_print()
63 FX_LOGVF(WARNING, local_tag, file, line, format, ap); in __android_log_print()
66 FX_LOGVF(ERROR, local_tag, file, line, format, ap); in __android_log_print()
69 FX_LOGVF(FATAL, local_tag, file, line, format, ap); in __android_log_print()
73 FX_LOGVF(INFO, local_tag, file, line, format, ap); in __android_log_print()
77 linux_log_prefix(local_tag, file, line, format, ap); in __android_log_print()
[all …]
Dfuchsia_stdio.cc21 int printf(const char *format, ...) in printf() argument
24 va_start(args, format); in printf()
25 vfprintf(stdout, format, args); in printf()
30 int vprintf(const char *format, va_list ap) in vprintf() argument
32 return vfprintf(stdout, format, ap); in vprintf()
35 int fprintf(FILE *stream, const char *format, ...) in fprintf() argument
41 va_start(args, format); in fprintf()
42 vfprintf(stream, format, args); in fprintf()
63 int vfprintf(FILE *stream, const char *format, va_list ap) in vfprintf() argument
68 _FX_LOGVF(severity(stream), "goldfish", __FILE__, __LINE__,format, ap); in vfprintf()
/device/google/contexthub/util/nanotool/
Dlog.cpp43 #define LOG_EX_VARARGS(level, format) \ argument
46 va_start(arg_list, format); \
47 Log::LogEx(level, format, arg_list); \
51 void Log::Error(const char *format, ...) { in Error() argument
52 LOG_EX_VARARGS(LogLevel::Error, format); in Error()
55 void Log::Warn(const char *format, ...) { in Warn() argument
56 LOG_EX_VARARGS(LogLevel::Warn, format); in Warn()
59 void Log::Info(const char *format, ...) { in Info() argument
60 LOG_EX_VARARGS(LogLevel::Info, format); in Info()
63 void Log::Debug(const char *format, ...) { in Debug() argument
[all …]
/device/google/gs101/fingerprint/fpc1540/fp_tool/
Dfp_test.cpp8 #define LOGI(format,...) ALOGI(TAG format,##__VA_ARGS__) argument
9 #define LOGD(format,...) ALOGD(TAG format,##__VA_ARGS__) argument
10 #define LOGE(format,...) ALOGE(TAG format,##__VA_ARGS__) argument
11 #define CLOGI(format,...) printf(TAG format,##__VA_ARGS__) argument
12 #define CLOGD(format,...) printf(TAG format,##__VA_ARGS__) argument
13 #define CLOGE(format,...) printf(TAG format,##__VA_ARGS__) argument
15 #define LOGI_BOTH(format,...) { \ argument
16 ALOGI(TAG format,##__VA_ARGS__) \
17 prinft(TAG format, ##__VA_ARGS__) \
/device/google/gs201/fingerprint/fpc1540/fp_tool/
Dfp_test.cpp8 #define LOGI(format,...) ALOGI(TAG format,##__VA_ARGS__) argument
9 #define LOGD(format,...) ALOGD(TAG format,##__VA_ARGS__) argument
10 #define LOGE(format,...) ALOGE(TAG format,##__VA_ARGS__) argument
11 #define CLOGI(format,...) printf(TAG format,##__VA_ARGS__) argument
12 #define CLOGD(format,...) printf(TAG format,##__VA_ARGS__) argument
13 #define CLOGE(format,...) printf(TAG format,##__VA_ARGS__) argument
15 #define LOGI_BOTH(format,...) { \ argument
16 ALOGI(TAG format,##__VA_ARGS__) \
17 prinft(TAG format, ##__VA_ARGS__) \
/device/generic/vulkan-cereal/third-party/glm/include/glm/gtx/
Dstring_cast.inl10 GLM_FUNC_QUALIFIER std::string format(const char* msg, ...) function
137 return detail::format("bvec1(%s)",
147 return detail::format("bvec2(%s, %s)",
158 return detail::format("bvec3(%s, %s, %s)",
170 return detail::format("bvec4(%s, %s, %s, %s)",
185 std::string FormatStr(detail::format("%svec1(%s)",
189 return detail::format(FormatStr.c_str(), x[0]);
200 std::string FormatStr(detail::format("%svec2(%s, %s)",
204 return detail::format(FormatStr.c_str(), x[0], x[1]);
215 std::string FormatStr(detail::format("%svec3(%s, %s, %s)",
[all …]
/device/generic/vulkan-cereal/scripts/print_gfx_logs/
Dcommand_printer.py46 print("\n{}.{} - {}: ({} bytes)".format(self.stream_idx, self.cmd_idx, self.cmd_name(),
62 print("Error while processing {}: {}".format(self.cmd_name(), repr(ex)), file=self.out)
74 "Not all data was decoded. Decoded {} bytes but command had {}".format(
85 hex = ' '.join(["{:02x}".format(x) for x in self.data.getbuffer()])
141 self.write("{name}: ".format(name=field_name), indent)
144 values = ["0x{:x}".format(self.read_int(size, signed, big_endian)) for i in
146 self.write("[{}]\n".format(", ".join(values)), indent=0)
151 self.write(format_str.format(val=value), indent=0)
157 self.write("{}: [{}]\n".format(field_name, ", ".join(values)), indent)
159 self.write("{}: {}\n".format(field_name, self.read_float()), indent)
[all …]
/device/generic/goldfish-opengl/android-emu/aemu/base/
DStringFormat.cpp22 std::string StringFormatRaw(const char* format, ...) { in StringFormatRaw() argument
24 va_start(args, format); in StringFormatRaw()
25 auto result = StringFormatWithArgs(format, args); in StringFormatRaw()
30 std::string StringFormatWithArgs(const char* format, va_list args) { in StringFormatWithArgs() argument
32 StringAppendFormatWithArgs(&result, format, args); in StringFormatWithArgs()
36 void StringAppendFormatRaw(std::string* string, const char* format, ...) { in StringAppendFormatRaw() argument
38 va_start(args, format); in StringAppendFormatRaw()
39 StringAppendFormatWithArgs(string, format, args); in StringAppendFormatRaw()
44 const char* format, in StringAppendFormatWithArgs() argument
51 int ret = vsnprintf(&(*string)[cur_size], extra, format, args2); in StringAppendFormatWithArgs()
DStringFormat.h28 std::string StringFormatRaw(const char* format, ...);
32 std::string StringFormatWithArgs(const char* format, va_list args);
38 void StringAppendFormatRaw(std::string* string, const char* format, ...);
43 const char* format,
68 std::string StringFormat(const char* format, Args&&... args) { in StringFormat() argument
69 return StringFormatRaw(format, unpackFormatArg(std::forward<Args>(args))...); in StringFormat()
74 const char* format, in StringAppendFormat() argument
76 StringAppendFormatRaw(string, format, in StringAppendFormat()
/device/generic/vulkan-cereal/fake-android-guest/libvulkan/
Ddebug_report.h102 __attribute__((format(printf, (fmt) + 1, (args) + 1)))
107 inline void Info(ObjectType object, const char* format, ...) const in Info() argument
110 va_start(ap, format); in Info()
112 GetObjectUInt64(object), format, ap); in Info()
117 inline void Warn(ObjectType object, const char* format, ...) const in Warn() argument
120 va_start(ap, format); in Warn()
122 GetObjectUInt64(object), format, ap); in Warn()
127 inline void Err(ObjectType object, const char* format, ...) const in Err() argument
130 va_start(ap, format); in Err()
132 GetObjectUInt64(object), format, ap); in Err()
[all …]
/device/google/cuttlefish/guest/hals/keymint/rust/src/
Dkeymint_hal_main.rs58 return Err(HalServiceError(format!( in set_terminal_raw()
70 return Err(HalServiceError(format!( in set_terminal_raw()
107 return Err(HalServiceError(format!( in inner_main()
117 let service_name = format!("{}/{}", KM_SERVICE_NAME, SERVICE_INSTANCE); in inner_main()
119 HalServiceError(format!("Failed to register service {} because of {:?}.", service_name, e)) in inner_main()
123 let service_name = format!("{}/{}", RPC_SERVICE_NAME, SERVICE_INSTANCE); in inner_main()
125 HalServiceError(format!("Failed to register service {} because of {:?}.", service_name, e)) in inner_main()
129 let service_name = format!("{}/{}", CLOCK_SERVICE_NAME, SERVICE_INSTANCE); in inner_main()
131 HalServiceError(format!("Failed to register service {} because of {:?}.", service_name, e)) in inner_main()
135 let service_name = format!("{}/{}", SECRET_SERVICE_NAME, SERVICE_INSTANCE); in inner_main()
[all …]
/device/generic/goldfish-opengl/system/hals/
Dallocator3.cpp114 PixelFormat format; in allocateImpl() local
115 Error3 e = getBufferFormat(descriptor.format, usage, &format); in allocateImpl()
118 __func__, __LINE__, descriptor.format, usage); in allocateImpl()
122 switch (format) { in allocateImpl()
210 __func__, __LINE__, format, descriptor.format, usage); in allocateImpl()
241 format, emulatorFrameworkFormat, in allocateImpl()
250 const PixelFormat format, in allocateImpl2() argument
262 format, emulatorFrameworkFormat, in allocateImpl2()
284 d->format = static_cast<PixelFormat>(raw[3]); in decodeBufferDescriptorInfo()
295 PixelFormat* format) { in getBufferFormat() argument
[all …]
/device/generic/vulkan-cereal/stream-servers/gl/glestranslator/include/GLcommon/
DTextureUtils.h30 GLint border, GLenum format, GLenum type, const GLvoid * data)>
51 bool isCoreProfileEmulatedFormat(GLenum format);
52 GLenum getCoreProfileEmulatedFormat(GLenum format);
75 TextureSwizzle getSwizzleForEmulatedFormat(GLenum format);
76 TextureSwizzle getInverseSwizzleForEmulatedFormat(GLenum format);
87 …vel, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize…
89 void forEachEtc2Format(std::function<void(GLint format)>);
90 void forEachAstcFormat(std::function<void(GLint format)>);
91 void forEachBptcFormat(std::function<void(GLint format)>);
92 void forEachS3tcForamt(std::function<void(GLint format)>);
[all …]
/device/generic/vulkan-cereal/fake-android-guest/androidImpl/
DAHardwareBuffer.cpp48 if (!AHardwareBuffer_isValidPixelFormat(desc->format)) { in AHardwareBuffer_allocate()
49 ALOGE("Invalid AHardwareBuffer pixel format %u (%#x))", desc->format, desc->format); in AHardwareBuffer_allocate()
52 int format = AHardwareBuffer_convertToPixelFormat(desc->format); in AHardwareBuffer_allocate() local
57 if (desc->format == AHARDWAREBUFFER_FORMAT_BLOB && desc->height != 1) { in AHardwareBuffer_allocate()
69 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate()
100 outDesc->format = AHardwareBuffer_convertFromPixelFormat(uint32_t(gbuffer->getPixelFormat())); in AHardwareBuffer_describe()
264 if (desc->format == AHARDWAREBUFFER_FORMAT_BLOB && desc->height != 1) return BAD_VALUE; in AHardwareBuffer_createFromHandle()
265 const int format = AHardwareBuffer_convertToPixelFormat(desc->format); in AHardwareBuffer_createFromHandle() local
269 format, desc->layers, usage, desc->stride)); in AHardwareBuffer_createFromHandle()
289 bool AHardwareBuffer_isValidPixelFormat(uint32_t format) { in AHardwareBuffer_isValidPixelFormat() argument
[all …]

12345678910>>...25