Lines Matching refs:format

176     int format;
256 /* convert COPYBIT_FORMAT to C2D format */
257 static int get_format(int format) {
258 switch (format) {
273 default: ALOGE("%s: invalid format (0x%x",
274 __FUNCTION__, format);
298 * \brief Get the bpp for a particular color format
299 * \param color format
399 static int is_supported_rgb_format(int format)
401 switch(format) {
414 static int get_num_planes(int format)
416 switch(format) {
431 static int is_supported_yuv_format(int format)
433 switch(format) {
445 static int is_valid_destination_format(int format)
447 if (format == HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) {
448 // C2D does not support NV12Tile as a destination format.
459 int format = info.format;
464 switch (format) {
483 if (HAL_PIXEL_FORMAT_NV12_ENCODEABLE == format) {
511 c2d_format = get_c2d_format_for_yuv_destination(rhs->format);
513 c2d_format = get_format(rhs->format);
517 ALOGE("%s: invalid format", __FUNCTION__);
537 if(is_supported_rgb_format(rhs->format) == COPYBIT_SUCCESS) {
546 surfaceDef.format = c2d_format |
551 surfaceDef.stride = (aligned_width * c2diGetBpp(surfaceDef.format))>>3;
559 } else if (is_supported_yuv_format(rhs->format) == COPYBIT_SUCCESS) {
563 surfaceDef.format = c2d_format;
568 info.format = rhs->format;
586 if (3 == get_num_planes(rhs->format)) {
599 ALOGE("%s: invalid format 0x%x", __FUNCTION__, rhs->format);
937 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format))
959 info.format = img->format;
962 /* Function to get the required size for a particular format, inorder for C2D to perform
971 switch(info.format) {
974 // Chroma for this format is aligned to 2K.
1036 * C2D compatible format to the Android compatible format
1049 switch(rhs->format) {
1062 ALOGE("%s: invalid format 0x%x", __FUNCTION__, rhs->format);
1121 if (is_valid_destination_format(dst->format) == COPYBIT_FAILURE) {
1122 ALOGE("%s: Invalid destination format format = 0x%x", __FUNCTION__,
1123 dst->format);
1128 if (is_supported_rgb_format(dst->format) == COPYBIT_SUCCESS) {
1131 } else if (is_supported_yuv_format(dst->format) == COPYBIT_SUCCESS) {
1132 int num_planes = get_num_planes(dst->format);
1139 ALOGE("%s: dst number of YUV planes is invalid dst format = 0x%x",
1140 __FUNCTION__, dst->format);
1144 ALOGE("%s: Invalid dst surface format 0x%x", __FUNCTION__,
1145 dst->format);
1167 dst_image.format = dst->format;
1175 private_handle_t* dst_hnd = new private_handle_t(-1, 0, 0, 0, dst_info.format,
1220 if(is_supported_rgb_format(src->format) == COPYBIT_SUCCESS) {
1223 } else if (is_supported_yuv_format(src->format) == COPYBIT_SUCCESS) {
1224 int num_planes = get_num_planes(src->format);
1232 ALOGE("%s: src number of YUV planes is invalid src format = 0x%x",
1233 __FUNCTION__, src->format);
1239 ALOGE("%s: Invalid source surface format 0x%x", __FUNCTION__,
1240 src->format);
1249 src_image.format = src->format;
1255 private_handle_t* src_hnd = new private_handle_t(-1, 0, 0, 0, src_info.format,
1597 surfDefinition.format = C2D_COLOR_FORMAT_8888_ARGB;
1638 yuvSurfaceDef.format = C2D_COLOR_FORMAT_420_NV12;
1688 yuvSurfaceDef.format = C2D_COLOR_FORMAT_420_YV12;