Searched refs:format (Results 26 - 50 of 484) sorted by relevance

1234567891011>>

/hardware/intel/img/hwcomposer/ips/anniedale/
H A DPlaneCapabilities.cpp36 uint32_t format = hwcLayer->getFormat(); local
40 switch (format) {
48 VLOGTRACE("unsupported format %#x", format);
52 switch (format) {
68 VLOGTRACE("unsupported format %#x", format);
79 uint32_t format = hwcLayer->getFormat(); local
88 switch (format) {
101 VLOGTRACE("unsupported format
[all...]
/hardware/samsung_slsi/exynos5/include/
H A Dgralloc_priv.h89 int format; member in struct:private_handle_t
112 int h, int format, int stride, int vstride) :
114 offset(0), format(format), width(w), height(h), stride(stride),
124 int h, int format, int stride, int vstride) :
126 offset(0), format(format), width(w), height(h), stride(stride),
136 int h, int format, int stride, int vstride) :
138 offset(0), format(format), widt
111 private_handle_t(int fd, int size, int flags, int w, int h, int format, int stride, int vstride) argument
123 private_handle_t(int fd, int fd1, int size, int flags, int w, int h, int format, int stride, int vstride) argument
135 private_handle_t(int fd, int fd1, int fd2, int size, int flags, int w, int h, int format, int stride, int vstride) argument
[all...]
/hardware/libhardware_legacy/audio/
H A DAudioHardwareInterface.cpp113 size_t AudioHardwareBase::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) argument
119 if (format != AudioSystem::PCM_16_BIT) {
120 ALOGW("getInputBufferSize bad format: %d", format);
154 int *format,
159 return openOutputStream(devices, format, channels, sampleRate, status);
152 openOutputStreamWithFlags(uint32_t devices, audio_output_flags_t flags, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument
H A DAudioDumpInterface.cpp60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status)
68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status);
70 lFormat = outFinal->format();
74 if (format != 0) {
75 if (*format != 0) {
76 lFormat = *format;
78 *format = lFormat;
126 AudioStreamIn* AudioDumpInterface::openInputStream(uint32_t devices, int *format, uint32_t *channels, argument
134 inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustics);
136 lFormat = inFinal->format();
59 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument
251 getInputBufferSize(uint32_t sampleRate, int format, int channelCount) argument
258 AudioStreamOutDump(AudioDumpInterface *interface, int id, AudioStreamOut* finalStream, uint32_t devices, int format, uint32_t channels, uint32_t sampleRate) argument
329 int AudioStreamOutDump::format() const function in class:android::AudioStreamOutDump
419 AudioStreamInDump(AudioDumpInterface *interface, int id, AudioStreamIn* finalStream, uint32_t devices, int format, uint32_t channels, uint32_t sampleRate) argument
533 int AudioStreamInDump::format() const function in class:android::AudioStreamInDump
[all...]
/hardware/qcom/display/msm8084/libgralloc/
H A Dalloc_controller.cpp129 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, argument
135 if (format <= HAL_PIXEL_FORMAT_sRGB_X_8888) {
148 switch(format)
182 switch (format)
251 width, height, format, 0,raster_mode, padding_threshold,
364 bool isMacroTileEnabled(int format, int usage) argument
372 // check the format
373 switch(format)
397 size_t getSize(int format, int width, int height, const int alignedw, argument
401 switch (format) {
507 getBufferSizeAndDimensions(int width, int height, int format, int& alignedw, int &alignedh) argument
525 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument
544 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tileEnabled, size_t& size) argument
627 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument
[all...]
/hardware/qcom/display/msm8226/libgralloc/
H A Dalloc_controller.cpp129 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, argument
135 if (format <= HAL_PIXEL_FORMAT_sRGB_X_8888) {
148 switch(format)
182 switch (format)
246 width, height, format, 0,raster_mode, padding_threshold,
364 bool isMacroTileEnabled(int format, int usage) argument
372 // check the format
373 switch(format)
397 unsigned int getSize(int format, int width, int height, const int alignedw, argument
401 switch (format) {
504 getBufferSizeAndDimensions(int width, int height, int format, int& alignedw, int &alignedh) argument
522 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument
541 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tileEnabled, unsigned int& size) argument
623 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument
[all...]
/hardware/ti/omap4xxx/security/tf_daemon/
H A Ddelegation_client.c93 It is up to you to define the format of this configuration file and the
148 static MD_INLINE void LogError(const char* format, ...) argument
151 va_start(ap, format);
154 vsyslog(LOG_ERR, format, ap);
159 vfprintf(stderr, format, ap);
165 static MD_INLINE void LogWarning(const char* format, ...) argument
168 va_start(ap, format);
171 vsyslog(LOG_WARNING, format, ap);
176 vfprintf(stderr, format, ap);
181 static MD_INLINE void LogInfo(const char* format, argument
197 TRACE_ERROR(const char* format, ...) argument
218 TRACE_WARNING(const char* format, ...) argument
239 TRACE_INFO(const char* format, ...) argument
263 LogError(const char* format, ...) argument
267 LogWarning(const char* format, ...) argument
271 LogInfo(const char* format, ...) argument
276 TRACE_ERROR(const char* format, ...) argument
281 TRACE_WARNING(const char* format, ...) argument
286 TRACE_INFO(const char* format, ...) argument
294 LogError(const char* format, ...) argument
303 LogWarning(const char* format, ...) argument
312 LogInfo(const char* format, ...) argument
321 TRACE_ERROR(const char* format, ...) argument
335 TRACE_WARNING(const char* format, ...) argument
349 TRACE_INFO(const char* format, ...) argument
[all...]
/hardware/libhardware/tests/camera2/
H A DCameraStreamFixture.h39 // Format specifier for picking the best format for CPU reading the given device
117 int format = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED; local
119 getResolutionList(format,
141 int64_t getMinFrameDurationFor(int32_t format, int32_t width, int32_t height) { argument
148 if (format == availableMinDurations.data.i64[i] &&
168 int32_t format = availableStrmConfigs.data.i32[i]; local
173 int index = mOutputResolutions.indexOfKey(format);
175 index = mOutputResolutions.add(format, new Vector<int32_t>());
186 void getResolutionList(int32_t format, argument
190 ALOGV("Getting resolutions for format
255 int format = MapAutoFormat(p.mFormat); local
273 MapAutoFormat(int format) argument
[all...]
/hardware/samsung_slsi/exynos5/gralloc/
H A Dgralloc.cpp129 static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage, argument
136 if (format == HAL_PIXEL_FORMAT_RGBA_8888) {
143 format = HAL_PIXEL_FORMAT_BGRA_8888;
147 format = HAL_PIXEL_FORMAT_BGRA_8888;
151 switch (format) {
175 if (format != HAL_PIXEL_FORMAT_BLOB) {
193 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride,
199 static int gralloc_alloc_framework_yuv(int ionfd, int w, int h, int format, argument
207 switch (format) {
217 ALOGE("invalid yuv format
229 gralloc_alloc_yuv(int ionfd, int w, int h, int format, int usage, unsigned int ion_flags, private_handle_t **hnd, int *stride) argument
332 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument
[all...]
/hardware/intel/common/libmix/videoencoder/
H A DIntelMetadataBuffer.h30 #define STRING_TO_FOURCC(format) ((uint32_t)(((format)[0])|((format)[1]<<8)|((format)[2]<<16)|((format)[3]<<24)))
62 uint32_t format; //color format member in struct:__anon245
63 uint32_t s3dformat; //S3D format
/hardware/libhardware/modules/usbaudio/
H A Dalsa_device_proxy.c41 proxy->alsa_config.format =
42 config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format)
43 ? config->format : profile->default_config.format;
112 return proxy->alsa_config.format;
/hardware/qcom/display/msm8960/libgralloc/
H A Dalloc_controller.cpp103 int AdrenoMemInfo::getStride(int width, int format) argument
107 if (format <= HAL_PIXEL_FORMAT_sRGB_X_8888) {
109 switch(format)
130 switch (format)
254 size_t getBufferSizeAndDimensions(int width, int height, int format, argument
259 alignedw = AdrenoMemInfo::getInstance().getStride(width, format);
261 switch (format) {
299 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
300 ALOGE("w or h is odd for the YV12 format");
304 if (HAL_PIXEL_FORMAT_NV12_ENCODEABLE == format) {
353 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument
[all...]
/hardware/qcom/audio/legacy/alsa_sound/
H A DAudioUtil.h64 static int printFormatFromEDID(unsigned char format);
67 unsigned char format);
H A DALSAStreamOps.cpp94 status_t ALSAStreamOps::set(int *format, argument
141 snd_pcm_format_t iformat = mHandle->format;
143 if (format) {
144 switch(*format) {
158 iformat = *format;
166 ALOGE("Unknown PCM format %i. Forcing default", *format);
170 if (mHandle->format != iformat)
175 *format = AudioSystem::PCM_16_BIT;
178 *format
309 int ALSAStreamOps::format() const function in class:android_audio_legacy::ALSAStreamOps
[all...]
/hardware/ti/omap4-aah/camera/
H A DCameraHalCommon.cpp123 unsigned int CameraHal::getBPP(const char* format) { argument
126 // Calculate bytes per pixel based on the pixel format
127 if (strcmp(format, android::CameraParameters::PIXEL_FORMAT_YUV422I) == 0) {
129 } else if (strcmp(format, android::CameraParameters::PIXEL_FORMAT_RGB565) == 0 ||
130 strcmp(format, android::CameraParameters::PIXEL_FORMAT_BAYER_RGGB) == 0) {
132 } else if (strcmp(format, android::CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) {
143 const char* format)
145 CAMHAL_ASSERT( x && y && format && (0U < stride) );
147 *x = (offset % stride) / getBPP(format);
157 CAMHAL_LOGVA("CbYCrY format selecte
141 getXYFromOffset(unsigned int *x, unsigned int *y, unsigned int offset, unsigned int stride, const char* format) argument
[all...]
/hardware/intel/common/wrs_omxil_core/base/src/
H A Dportbase.cpp65 portdefinition.format.audio.cMIMEType = &definition_format_mimetype[0];
66 portdefinition.format.video.cMIMEType = &definition_format_mimetype[0];
67 portdefinition.format.image.cMIMEType = &definition_format_mimetype[0];
172 LOGV("unsupport color format !");
227 OMX_AUDIO_PORTDEFINITIONTYPE *format = &temp.format.audio; local
228 const OMX_AUDIO_PORTDEFINITIONTYPE *pformat = &p->format.audio;
234 strncpy(format->cMIMEType, pformat->cMIMEType,
236 format->cMIMEType[mimetype_len+1] = '\0';
237 format
244 OMX_VIDEO_PORTDEFINITIONTYPE *format = &temp.format.video; local
277 OMX_IMAGE_PORTDEFINITIONTYPE *format = &temp.format.image; local
301 OMX_OTHER_PORTDEFINITIONTYPE *format = &temp.format.other; local
[all...]
/hardware/intel/common/omx-components/videocodec/
H A DOMXVideoDecoderVP9Hybrid.cpp63 paramPortDefinitionInput->format.video.cMIMEType = (OMX_STRING)VP9_MIME_TYPE;
64 paramPortDefinitionInput->format.video.eCompressionFormat = OMX_VIDEO_CodingVP9;
317 int32_t stride = paramPortDefinitionOutput->format.video.nStride;
318 int32_t height = paramPortDefinitionOutput->format.video.nFrameHeight;
319 int32_t width = paramPortDefinitionOutput->format.video.nFrameWidth;
405 ALOGI("handle format change from %dx%d to %dx%d",
430 if (widthCropped == paramPortDefinitionOutput.format.video.nFrameWidth &&
431 heightCropped == paramPortDefinitionOutput.format.video.nFrameHeight) {
438 paramPortDefinitionInput.format.video.nFrameWidth = width;
439 paramPortDefinitionInput.format
[all...]
H A DOMXVideoDecoderVP9HWR.cpp206 paramPortDefinitionInput->format.video.cMIMEType = (OMX_STRING)VP9_MIME_TYPE;
207 paramPortDefinitionInput->format.video.eCompressionFormat = OMX_VIDEO_CodingVP9;
278 int32_t format = VA_RT_FORMAT_YUV420; local
310 format,
506 if (widthCropped == paramPortDefinitionOutput.format.video.nFrameWidth &&
507 heightCropped == paramPortDefinitionOutput.format.video.nFrameHeight) {
514 paramPortDefinitionInput.format.video.nFrameWidth = width;
515 paramPortDefinitionInput.format.video.nFrameHeight = height;
516 paramPortDefinitionInput.format.video.nStride = stride;
517 paramPortDefinitionInput.format
[all...]
/hardware/intel/img/psb_video/src/
H A Dpsb_surface_attrib.h106 int format,
123 int format,
139 int format,
119 psb_CreateSurfacesFromGralloc( VADriverContextP ctx, int width, int height, int format, int num_surfaces, VASurfaceID *surface_list, PsbSurfaceAttributeTPI *attribute_tpi ) argument
/hardware/qcom/display/msm8974/libgralloc/
H A Dalloc_controller.cpp103 int AdrenoMemInfo::getStride(int width, int format) argument
107 if (format <= HAL_PIXEL_FORMAT_sRGB_X_8888) {
118 switch(format)
139 switch (format)
273 size_t getBufferSizeAndDimensions(int width, int height, int format, argument
278 alignedw = AdrenoMemInfo::getInstance().getStride(width, format);
280 switch (format) {
310 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
311 ALOGE("w or h is odd for the YV12 format");
327 ALOGE("width is odd for the YUV422_SP format");
363 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument
[all...]
/hardware/intel/img/psb_video/src/android/
H A Dpsb_surface_gralloc.c96 int format,
105 int protected = (VA_RT_FORMAT_PROTECTED & format);
114 format = format & (~VA_RT_FORMAT_PROTECTED);
122 ALOGD("format is 0x%x, width is %d, height is %d, num_surfaces is %d.\n", format, width, height, num_surfaces);
123 /* We only support one format */
124 if ((VA_RT_FORMAT_YUV420 != format)
125 && (VA_RT_FORMAT_YUV422 != format)) {
179 switch (format) {
92 psb_CreateSurfacesFromGralloc( VADriverContextP ctx, int width, int height, int format, int num_surfaces, VASurfaceID *surface_list, PsbSurfaceAttributeTPI *attribute_tpi ) argument
247 psb_CreateSurfacesFromGralloc( VADriverContextP ctx, int width, int height, int format, int num_surfaces, VASurfaceID *surface_list, PsbSurfaceAttributeTPI *attribute_tpi ) argument
[all...]
/hardware/qcom/media/libc2dcolorconvert/
H A DC2DColorConverter.cpp62 bool isYUVSurface(ColorConvertFormat format);
63 void *getDummySurfaceDef(ColorConvertFormat format, size_t width, size_t height, bool isSource);
66 uint32_t getC2DFormat(ColorConvertFormat format);
67 size_t calcStride(ColorConvertFormat format, size_t width);
68 size_t calcYSize(ColorConvertFormat format, size_t width, size_t height);
69 size_t calcSize(ColorConvertFormat format, size_t width, size_t height);
72 size_t calcLumaAlign(ColorConvertFormat format);
73 size_t calcSizeAlign(ColorConvertFormat format);
74 C2DBytesPerPixel calcBytesPerPixel(ColorConvertFormat format);
256 bool C2DColorConverter::isYUVSurface(ColorConvertFormat format) argument
273 getDummySurfaceDef(ColorConvertFormat format, size_t width, size_t height, bool isSource) argument
364 getC2DFormat(ColorConvertFormat format) argument
387 calcStride(ColorConvertFormat format, size_t width) argument
414 calcYSize(ColorConvertFormat format, size_t width, size_t height) argument
437 calcSize(ColorConvertFormat format, size_t width, size_t height) argument
551 calcLumaAlign(ColorConvertFormat format) argument
567 calcSizeAlign(ColorConvertFormat format) argument
582 calcBytesPerPixel(ColorConvertFormat format) argument
[all...]
/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_dec/tests/
H A DJPEGTest.c330 imageinfo->format = GetYUVformat(Data);
331 switch (imageinfo->format) {
333 printf("APP:: Image chroma format is OMX_COLOR_FormatYUV420PackedPlanar\n");
336 printf("APP:: Image chroma format is OMX_COLOR_FormatYUV411Planar\n");
339 printf("APP:: Image chroma format is OMX_COLOR_FormatYUV422Interleaved\n");
342 printf("APP:: Image chroma format is OMX_COLOR_FormatYUV444Interleaved\n");
345 printf("APP:: Image chroma format is OMX_COLOR_FormatL8 \n");
348 printf("APP:: Cannot find Image chroma format \n");
349 imageinfo->format = OMX_COLOR_FormatUnused;
358 imageinfo->format
[all...]
/hardware/libhardware/include/hardware/
H A Daudio.h125 #define AUDIO_PARAMETER_STREAM_FORMAT "format" /* audio_format_t */
192 * Return the audio format - e.g. AUDIO_FORMAT_PCM_16_BIT
199 int (*set_format)(struct audio_stream *stream, audio_format_t format);
443 audio_format_t format = s->get_format(s); local
445 if (audio_is_linear_pcm(format)) {
446 chan_samp_sz = audio_bytes_per_sample(format);
459 audio_format_t format = s->common.get_format(&s->common); local
461 if (audio_is_linear_pcm(format)) {
462 chan_samp_sz = audio_bytes_per_sample(format);
475 audio_format_t format local
[all...]
/hardware/qcom/display/msm8084/liboverlay/
H A DoverlayUtils.h125 * The compound format passed to the overlay is
126 * ABCCC where A is the input 3D format
127 * B is the output 3D format
128 * CCC is the color format e.g YCbCr420SP YCrCb420SP etc */
197 Whf() : w(0), h(0), format(0), size(0) {}
199 w(wi), h(he), format(f), size(0) {}
201 w(wi), h(he), format(f), size(s) {}
205 whf.format == format;
213 uint32_t format; member in struct:overlay::utils::Whf
482 isYuv(uint32_t format) argument
503 isRgb(uint32_t format) argument
516 getFormatString(int format) argument
[all...]

Completed in 1139 milliseconds

1234567891011>>