/hardware/qcom/display/msm8996/libgralloc1/ |
H A D | gr_buf_mgr.cpp | 377 uint32_t BufferManager::GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, argument 380 if (format == HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) { 397 int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage, argument 432 if (allocator_->IsUBwcEnabled(format, prod_usage, cons_usage)) { 473 int format = descriptor.GetFormat(); local 478 // Get implementation defined format 479 int gralloc_format = allocator_->GetImplDefinedFormat(prod_usage, cons_usage, format); 491 data.align = GetDataAlignment(format, prod_usage, cons_usage); 517 flags = GetHandleFlags(format, prod_usage, cons_usage); 528 format, 559 int format = va_arg(args, int); local 586 int format = va_arg(args, int); local 633 int format = va_arg(args, int); local 729 int format = va_arg(args, int); local 749 int format = va_arg(args, int); local [all...] |
/hardware/qcom/display/msm8998/libgralloc1/ |
H A D | gr_allocator.cpp | 180 // For same format type, find the descriptor with bigger size 201 int format = descriptor.GetFormat(); local 207 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { 208 return GetUBwcSize(width, height, format, alignedw, alignedh); 211 if (IsUncompressedRGBFormat(format)) { 212 uint32_t bpp = GetBppForUncompressedRGB(format); 217 if (IsCompressedRGBFormat(format)) { 223 switch (format) { 248 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { 249 ALOGE("w or h is odd for the YV12 format"); 298 GetBufferSizeAndDimensions(int width, int height, int format, unsigned int *size, unsigned int *alignedw, unsigned int *alignedh) argument 358 int format = hnd->format; local 448 GetImplDefinedFormat(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage, int format) argument 487 IsUBwcFormat(int format) argument 497 IsUBwcSupported(int format) argument 603 IsUBwcEnabled(int format, gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) argument 635 GetYuvUBwcWidthAndHeight(int width, int height, int format, unsigned int *aligned_w, unsigned int *aligned_h) argument 704 GetUBwcSize(int width, int height, int format, unsigned int alignedw, unsigned int alignedh) argument 772 int format = descriptor.GetFormat(); local [all...] |
H A D | gr_buf_mgr.cpp | 365 uint32_t BufferManager::GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, argument 368 if (format == HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) { 385 int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage, argument 420 if (allocator_->IsUBwcEnabled(format, prod_usage, cons_usage)) { 461 int format = descriptor.GetFormat(); local 466 // Get implementation defined format 467 int gralloc_format = allocator_->GetImplDefinedFormat(prod_usage, cons_usage, format); 479 data.align = GetDataAlignment(format, prod_usage, cons_usage); 505 flags = GetHandleFlags(format, prod_usage, cons_usage); 516 format, 547 int format = va_arg(args, int); local 574 int format = va_arg(args, int); local 621 int format = va_arg(args, int); local 717 int format = va_arg(args, int); local 737 int format = va_arg(args, int); local [all...] |
H A D | gr_device_impl.cpp | 262 int32_t format) { 268 &BufferDescriptor::SetColorFormat, format); 260 SetColorFormat(gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, int32_t format) argument
|
/hardware/qcom/display/msm8998/sdm/include/core/ |
H A D | layer_buffer.h | 53 /* All RGB formats, Any new format will be added towards end of this group to maintain backward 68 kFormatRGBA8888Ubwc, //!< UBWC aligned RGBA8888 format 69 kFormatRGBX8888Ubwc, //!< UBWC aligned RGBX8888 format 70 kFormatBGR565Ubwc, //!< UBWC aligned BGR565 format 79 kFormatRGBA1010102Ubwc, //!< UBWC aligned RGBA1010102 format 80 kFormatRGBX1010102Ubwc, //!< UBWC aligned RGBX1010102 format 83 /* All YUV-Planar formats, Any new format will be added towards end of this group to maintain 96 /* All YUV-Semiplanar formats, Any new format will be added towards end of this group to 129 kFormatYCbCr420SPVenusUbwc, //!< UBWC aligned YCbCr420SemiPlanarVenus format 142 kFormatYCbCr420TP10Ubwc, //!< UBWC aligned YCbCr420TP10 format 231 LayerBufferFormat format = kFormatRGBA8888; //!< Format of the buffer content. member in struct:sdm::LayerBuffer [all...] |
/hardware/qcom/display/msm8998/sdm/libs/hwc2/ |
H A D | hwc_layers.cpp | 229 LayerBufferFormat format = GetSDMFormat(handle->format, handle->flags); local 230 if ((format != layer_buffer->format) || (UINT32(aligned_width) != layer_buffer->width) || 236 layer_buffer->format = format; 328 layer_->input_buffer.format = kFormatARGB8888; 514 LayerBufferFormat format = kFormatInvalid; local 518 format = kFormatRGBA8888Ubwc; 521 format [all...] |
/hardware/qcom/media/msm8974/libc2dcolorconvert/ |
H A D | C2DColorConverter.cpp | 65 bool isYUVSurface(ColorConvertFormat format); 66 void *getDummySurfaceDef(ColorConvertFormat format, size_t width, size_t height, bool isSource); 69 uint32_t getC2DFormat(ColorConvertFormat format); 70 size_t calcStride(ColorConvertFormat format, size_t width); 71 size_t calcYSize(ColorConvertFormat format, size_t width, size_t height); 72 size_t calcSize(ColorConvertFormat format, size_t width, size_t height); 75 size_t calcLumaAlign(ColorConvertFormat format); 76 size_t calcSizeAlign(ColorConvertFormat format); 77 C2DBytesPerPixel calcBytesPerPixel(ColorConvertFormat format); 266 bool C2DColorConverter::isYUVSurface(ColorConvertFormat format) argument 283 getDummySurfaceDef(ColorConvertFormat format, size_t width, size_t height, bool isSource) argument 374 getC2DFormat(ColorConvertFormat format) argument 397 calcStride(ColorConvertFormat format, size_t width) argument 424 calcYSize(ColorConvertFormat format, size_t width, size_t height) argument 447 calcSize(ColorConvertFormat format, size_t width, size_t height) argument 561 calcLumaAlign(ColorConvertFormat format) argument 577 calcSizeAlign(ColorConvertFormat format) argument 592 calcBytesPerPixel(ColorConvertFormat format) argument [all...] |
/hardware/qcom/msm8998/kernel-headers/sound/ |
H A D | lsm_params.h | 140 __u8 format; member in struct:snd_lsm_output_format_cfg
|
/hardware/qcom/msm8998/original-kernel-headers/sound/ |
H A D | lsm_params.h | 167 * @format: The media format enum 173 __u8 format; member in struct:snd_lsm_output_format_cfg
|
/hardware/google/av/codec2/hidl/1.0/utils/ |
H A D | types.cpp | 1588 uint32_t format; local 1594 block.handle(), &width, &height, &format, &usage, 1601 width, height, format, 1665 "format %#x, usage %#llx, stride %u, generation %u.",
|
/hardware/google/av/media/codecs/avc/ |
H A D | C2SoftAvcDec.cpp | 751 uint32_t format = HAL_PIXEL_FORMAT_YV12; local 753 c2_status_t err = pool->fetchGraphicBlock(mStride, mHeight, format, usage, &mOutBlock); 766 // TODO: allow configuration of color format and usage for graphic buffers instead
|
/hardware/google/av/media/codecs/hevc/ |
H A D | C2SoftHevcDec.cpp | 713 uint32_t format = HAL_PIXEL_FORMAT_YV12; local 715 c2_status_t err = pool->fetchGraphicBlock(mStride, mHeight, format, usage, &mOutBlock); 728 // TODO: allow configuration of color format and usage for graphic buffers instead
|
/hardware/google/av/media/codecs/mpeg2/ |
H A D | C2SoftMpeg2Dec.cpp | 764 uint32_t format = HAL_PIXEL_FORMAT_YV12; local 766 c2_status_t err = pool->fetchGraphicBlock(mStride, mHeight, format, usage, &mOutBlock); 779 // TODO: allow configuration of color format and usage for graphic buffers instead
|
/hardware/google/av/media/sfplugin/ |
H A D | CCodec.cpp | 601 void CCodec::initiateConfigureComponent(const sp<AMessage> &format) { argument 611 msg->setMessage("format", format); 708 * Handle desired color format. 711 int32_t format = -1; 712 if (!msg->findInt32(KEY_COLOR_FORMAT, &format)) { 714 * Also handle default color format (encoders require color format, so this is only 718 format = (surface == nullptr) ? COLOR_FormatYUV420Planar : COLOR_FormatSurface; 722 if (format > 1306 sp<AMessage> format; local [all...] |
/hardware/intel/audio_media/hdmi/ |
H A D | tinyaudio_hw.c | 110 .format = PCM_FORMAT_S24_LE, 243 out->pcm_config.format); 337 static int out_set_format(struct audio_stream *stream, audio_format_t format) argument 340 UNUSED_PARAMETER(format); 595 if(Get_SinkSupported_format() == out->pcm_config.format){ 722 out->pcm_config.format = pcm_config_default.format; 742 config->format = out_get_format(&out->stream.common);
|
/hardware/intel/common/libmix/videodecoder/ |
H A D | VideoDecoderBase.cpp | 801 // if format has been changed in USE_NATIVE_GRAPHIC_BUFFER mode, 893 int32_t format = VA_RT_FORMAT_YUV420; local 896 format |= VA_RT_FORMAT_PROTECTED; 947 format, 958 format, 973 format, 1172 mSurfaceBuffers[i].mappedData->fourcc = image.format.fourcc; 1185 WTRACE("Unexpected VAImage format, w = %d, h = %d, offset = %d", image.width, image.height, image.offsets[0]); 1218 // size in NV12 format 1317 int32_t format local [all...] |
/hardware/intel/common/libva/test/videoprocess/ |
H A D | videoprocess.cpp | 27 * blending, scaling and several surface format conversion. 186 uint32_t fourCC, uint32_t format) 196 format, 274 if (surface_image.format.fourcc == VA_FOURCC_YV12 || 275 surface_image.format.fourcc == VA_FOURCC_I420 || 276 surface_image.format.fourcc == VA_FOURCC_NV12){ 290 if(surface_image.format.fourcc == VA_FOURCC_YV12){ 293 }else if(surface_image.format.fourcc == VA_FOURCC_I420){ 309 if (surface_image.format.fourcc == VA_FOURCC_YV12|| 310 surface_image.format 184 create_surface(VASurfaceID * p_surface_id, uint32_t width, uint32_t height, uint32_t fourCC, uint32_t format) argument 960 parse_fourcc_and_format(char *str, uint32_t *fourcc, uint32_t *format) argument [all...] |
/hardware/intel/common/libva/va/glx/ |
H A D | va_glx_impl.c | 35 static void va_glx_error_message(const char *format, ...) argument 38 va_start(args, format); 40 vfprintf(stderr, format, args); 714 // Check internal texture format is supported 715 static int is_supported_internal_format(GLenum format) argument 718 switch (format) {
|
/hardware/intel/img/hwcomposer/merrifield/ips/common/ |
H A D | OverlayPlaneBase.cpp | 389 uint32_t format = grallocMapper.getFormat(); local 392 format = OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar_Tiled; 395 switch (format) { 445 buf.setFormat(format); 581 uint32_t format; local 584 format = mapper.getFormat(); 585 if (format != OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar && 586 format != OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar_Tiled) 691 uint32_t format = mapper.getFormat(); local 700 // clear original format settin 821 uint32_t format = mapper.getFormat(); local 1156 uint32_t format = mapper.getFormat(); local 1201 uint32_t format; local [all...] |
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/ |
H A D | OverlayPlaneBase.cpp | 373 uint32_t format = grallocMapper.getFormat(); local 376 format = OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar_Tiled; 379 switch (format) { 425 buf.setFormat(format); 560 uint32_t format; local 563 format = mapper.getFormat(); 564 if (format != OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar && 565 format != OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar_Tiled) 665 uint32_t format = mapper.getFormat(); local 673 // clear original format settin 800 uint32_t format = mapper.getFormat(); local 1180 uint32_t format; local [all...] |
/hardware/intel/img/psb_video/src/ |
H A D | psb_output.c | 278 VAImageFormat *format, 293 img_fmt = psb__VAImageCheckFourCC(format, psb__CreateImageFormat, 307 obj_image->image.format = *img_fmt; 312 switch (format->fourcc) { 478 /* Can't derive image from reconstrued frame which is in tiled format */ 481 drv_debug_msg(VIDEO_DEBUG_GENERAL, "Ignore tiled memory format" \ 485 "which is tiled format\n"); 535 obj_image->image.format = psb__CreateImageFormat[fourcc_index]; 663 if (obj_image->image.format.fourcc != VA_FOURCC_AI44) { 731 * Convert the memroy format fro 276 psb_CreateImage( VADriverContextP ctx, VAImageFormat *format, int width, int height, VAImage *image ) argument [all...] |
H A D | vsp_VPP.c | 345 ctx->format = VSP_NV12; 348 ctx->format = VSP_NV16; 350 ctx->format = VSP_NV12; 413 enum vsp_format format; local 551 /* get the surface format info */ 554 format = VSP_YV12; 557 format = VSP_NV12; 561 drv_debug_msg(VIDEO_DEBUG_ERROR, "Only support NV12 and YV12 format!\n"); 583 cell_proc_picture_param->input_picture[0].format = format; [all...] |
/hardware/interfaces/audio/core/2.0/vts/functional/ |
H A D | AudioPrimaryHidlHalTest.cpp | 288 //////////////// Required and recommended audio format support /////////////// 337 for (auto format : formats) { 342 config.format = format; 402 "Input buffer size must be retrievable for a format with required " 420 "Input buffer size should be retrievable for a format with recommended " 673 TEST_IO_STREAM(GetFormat, "Check that the stream format == the one it was opened with", 674 ASSERT_EQ(audioConfig.format, extract(stream->getFormat()))) 735 TEST_IO_STREAM(SupportedFormat, "Check that the stream format is declared as supported", 772 AudioFormat format; local [all...] |
/hardware/interfaces/audio/core/4.0/vts/functional/ |
H A D | AudioPrimaryHidlHalTest.cpp | 321 //////////////// Required and recommended audio format support /////////////// 370 for (auto format : formats) { 375 config.format = format; 435 "Input buffer size must be retrievable for a format with required " 453 "Input buffer size should be retrievable for a format with recommended " 743 TEST_IO_STREAM(GetFormat, "Check that the stream format == the one it was opened with", 744 ASSERT_EQ(audioConfig.format, extract(stream->getFormat()))) 823 TEST_IO_STREAM(SupportedFormat, "Check that the stream format is declared as supported", 862 AudioFormat format; local [all...] |
/hardware/interfaces/audio/core/all-versions/default/include/core/all-versions/default/ |
H A D | StreamOut.impl.h | 194 Return<void> StreamOut::getSupportedChannelMasks(AudioFormat format, argument 196 return mStreamCommon->getSupportedChannelMasks(format, _hidl_cb); 198 Return<void> StreamOut::getSupportedSampleRates(AudioFormat format, argument 200 return mStreamCommon->getSupportedSampleRates(format, _hidl_cb); 223 Return<Result> StreamOut::setFormat(AudioFormat format) { argument 224 return mStreamCommon->setFormat(format);
|