Home | History | Annotate | Download | only in libcopybit

Lines Matching refs:format

176     int format;
254 /* convert COPYBIT_FORMAT to C2D format */
255 static int get_format(int format) {
256 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
386 static int is_supported_rgb_format(int format)
388 switch(format) {
402 static int get_num_planes(int format)
404 switch(format) {
419 static int is_supported_yuv_format(int format)
421 switch(format) {
433 static int is_valid_destination_format(int format)
435 if (format == HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) {
436 // C2D does not support NV12Tile as a destination format.
447 int format = info.format;
452 switch (format) {
471 if (HAL_PIXEL_FORMAT_NV12_ENCODEABLE == format) {
499 c2d_format = get_c2d_format_for_yuv_destination(rhs->format);
501 c2d_format = get_format(rhs->format);
505 ALOGE("%s: invalid format", __FUNCTION__);
525 if(is_supported_rgb_format(rhs->format) == COPYBIT_SUCCESS) {
534 surfaceDef.format = c2d_format |
539 surfaceDef.stride = (aligned_width * c2diGetBpp(surfaceDef.format))>>3;
547 } else if (is_supported_yuv_format(rhs->format) == COPYBIT_SUCCESS) {
551 surfaceDef.format = c2d_format;
556 info.format = rhs->format;
574 if (3 == get_num_planes(rhs->format)) {
587 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 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);
1100 if (is_valid_destination_format(dst->format) == COPYBIT_FAILURE) {
1101 ALOGE("%s: Invalid destination format format = 0x%x", __FUNCTION__,
1102 dst->format);
1107 if (is_supported_rgb_format(dst->format) == COPYBIT_SUCCESS) {
1110 } else if (is_supported_yuv_format(dst->format) == COPYBIT_SUCCESS) {
1111 int num_planes = get_num_planes(dst->format);
1118 ALOGE("%s: dst number of YUV planes is invalid dst format = 0x%x",
1119 __FUNCTION__, dst->format);
1123 ALOGE("%s: Invalid dst surface format 0x%x", __FUNCTION__,
1124 dst->format);
1146 dst_image.format = dst->format;
1154 private_handle_t* dst_hnd = new private_handle_t(-1, 0, 0, 0, dst_info.format,
1190 if(is_supported_rgb_format(src->format) == COPYBIT_SUCCESS) {
1193 } else if (is_supported_yuv_format(src->format) == COPYBIT_SUCCESS) {
1194 int num_planes = get_num_planes(src->format);
1202 ALOGE("%s: src number of YUV planes is invalid src format = 0x%x",
1203 __FUNCTION__, src->format);
1209 ALOGE("%s: Invalid source surface format 0x%x", __FUNCTION__,
1210 src->format);
1219 src_image.format = src->format;
1225 private_handle_t* src_hnd = new private_handle_t(-1, 0, 0, 0, src_info.format,
1541 surfDefinition.format = C2D_COLOR_FORMAT_8888_ARGB;
1582 yuvSurfaceDef.format = C2D_COLOR_FORMAT_420_NV12;
1632 yuvSurfaceDef.format = C2D_COLOR_FORMAT_420_YV12;