Lines Matching refs:format

175     int format;
255 /* convert COPYBIT_FORMAT to C2D format */
256 static int get_format(int format) {
257 switch (format) {
272 default: ALOGE("%s: invalid format (0x%x",
273 __FUNCTION__, format);
297 * \brief Get the bpp for a particular color format
298 * \param color format
398 static int is_supported_rgb_format(int format)
400 switch(format) {
413 static int get_num_planes(int format)
415 switch(format) {
430 static int is_supported_yuv_format(int format)
432 switch(format) {
444 static int is_valid_destination_format(int format)
446 if (format == HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) {
447 // C2D does not support NV12Tile as a destination format.
458 int format = info.format;
463 switch (format) {
482 if (HAL_PIXEL_FORMAT_NV12_ENCODEABLE == format) {
510 c2d_format = get_c2d_format_for_yuv_destination(rhs->format);
512 c2d_format = get_format(rhs->format);
516 ALOGE("%s: invalid format", __FUNCTION__);
536 if(is_supported_rgb_format(rhs->format) == COPYBIT_SUCCESS) {
545 surfaceDef.format = c2d_format |
550 surfaceDef.stride = (aligned_width * c2diGetBpp(surfaceDef.format))>>3;
558 } else if (is_supported_yuv_format(rhs->format) == COPYBIT_SUCCESS) {
562 surfaceDef.format = c2d_format;
567 info.format = rhs->format;
585 if (3 == get_num_planes(rhs->format)) {
598 ALOGE("%s: invalid format 0x%x", __FUNCTION__, rhs->format);
915 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format))
937 info.format = img->format;
940 /* Function to get the required size for a particular format, inorder for C2D to perform
949 switch(info.format) {
952 // Chroma for this format is aligned to 2K.
1014 * C2D compatible format to the Android compatible format
1027 switch(rhs->format) {
1040 ALOGE("%s: invalid format 0x%x", __FUNCTION__, rhs->format);
1099 if (is_valid_destination_format(dst->format) == COPYBIT_FAILURE) {
1100 ALOGE("%s: Invalid destination format format = 0x%x", __FUNCTION__,
1101 dst->format);
1106 if (is_supported_rgb_format(dst->format) == COPYBIT_SUCCESS) {
1109 } else if (is_supported_yuv_format(dst->format) == COPYBIT_SUCCESS) {
1110 int num_planes = get_num_planes(dst->format);
1117 ALOGE("%s: dst number of YUV planes is invalid dst format = 0x%x",
1118 __FUNCTION__, dst->format);
1122 ALOGE("%s: Invalid dst surface format 0x%x", __FUNCTION__,
1123 dst->format);
1145 dst_image.format = dst->format;
1153 private_handle_t* dst_hnd = new private_handle_t(-1, 0, 0, 0, dst_info.format,
1198 if(is_supported_rgb_format(src->format) == COPYBIT_SUCCESS) {
1201 } else if (is_supported_yuv_format(src->format) == COPYBIT_SUCCESS) {
1202 int num_planes = get_num_planes(src->format);
1210 ALOGE("%s: src number of YUV planes is invalid src format = 0x%x",
1211 __FUNCTION__, src->format);
1217 ALOGE("%s: Invalid source surface format 0x%x", __FUNCTION__,
1218 src->format);
1227 src_image.format = src->format;
1233 private_handle_t* src_hnd = new private_handle_t(-1, 0, 0, 0, src_info.format,
1575 surfDefinition.format = C2D_COLOR_FORMAT_8888_ARGB;
1616 yuvSurfaceDef.format = C2D_COLOR_FORMAT_420_NV12;
1666 yuvSurfaceDef.format = C2D_COLOR_FORMAT_420_YV12;