Lines Matching refs:format

176     int format;
256 /* convert COPYBIT_FORMAT to C2D format */
257 static int get_format(int format) {
258 switch (format) {
271 default: ALOGE("%s: invalid format (0x%x",
272 __FUNCTION__, format);
296 * \brief Get the bpp for a particular color format
297 * \param color format
394 static int is_supported_rgb_format(int format)
396 switch(format) {
408 static int get_num_planes(int format)
410 switch(format) {
425 static int is_supported_yuv_format(int format)
427 switch(format) {
439 static int is_valid_destination_format(int format)
441 if (format == HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) {
442 // C2D does not support NV12Tile as a destination format.
453 int format = info.format;
458 switch (format) {
477 if (HAL_PIXEL_FORMAT_NV12_ENCODEABLE == format) {
505 c2d_format = get_c2d_format_for_yuv_destination(rhs->format);
507 c2d_format = get_format(rhs->format);
511 ALOGE("%s: invalid format", __FUNCTION__);
531 if(is_supported_rgb_format(rhs->format) == COPYBIT_SUCCESS) {
540 surfaceDef.format = c2d_format |
545 surfaceDef.stride = (aligned_width * c2diGetBpp(surfaceDef.format))>>3;
553 } else if (is_supported_yuv_format(rhs->format) == COPYBIT_SUCCESS) {
557 surfaceDef.format = c2d_format;
562 info.format = rhs->format;
580 if (3 == get_num_planes(rhs->format)) {
593 ALOGE("%s: invalid format 0x%x", __FUNCTION__, rhs->format);
931 if (COPYBIT_SUCCESS == is_supported_rgb_format(img->format))
953 info.format = img->format;
956 /* Function to get the required size for a particular format, inorder for C2D to perform
965 switch(info.format) {
968 // Chroma for this format is aligned to 2K.
1030 * C2D compatible format to the Android compatible format
1043 switch(rhs->format) {
1056 ALOGE("%s: invalid format 0x%x", __FUNCTION__, rhs->format);
1115 if (is_valid_destination_format(dst->format) == COPYBIT_FAILURE) {
1116 ALOGE("%s: Invalid destination format format = 0x%x", __FUNCTION__,
1117 dst->format);
1122 if (is_supported_rgb_format(dst->format) == COPYBIT_SUCCESS) {
1125 } else if (is_supported_yuv_format(dst->format) == COPYBIT_SUCCESS) {
1126 int num_planes = get_num_planes(dst->format);
1133 ALOGE("%s: dst number of YUV planes is invalid dst format = 0x%x",
1134 __FUNCTION__, dst->format);
1138 ALOGE("%s: Invalid dst surface format 0x%x", __FUNCTION__,
1139 dst->format);
1161 dst_image.format = dst->format;
1169 private_handle_t* dst_hnd = new private_handle_t(-1, 0, 0, 0, dst_info.format,
1214 if(is_supported_rgb_format(src->format) == COPYBIT_SUCCESS) {
1217 } else if (is_supported_yuv_format(src->format) == COPYBIT_SUCCESS) {
1218 int num_planes = get_num_planes(src->format);
1226 ALOGE("%s: src number of YUV planes is invalid src format = 0x%x",
1227 __FUNCTION__, src->format);
1233 ALOGE("%s: Invalid source surface format 0x%x", __FUNCTION__,
1234 src->format);
1243 src_image.format = src->format;
1249 private_handle_t* src_hnd = new private_handle_t(-1, 0, 0, 0, src_info.format,
1591 surfDefinition.format = C2D_COLOR_FORMAT_8888_ARGB;
1632 yuvSurfaceDef.format = C2D_COLOR_FORMAT_420_NV12;
1682 yuvSurfaceDef.format = C2D_COLOR_FORMAT_420_YV12;