Lines Matching refs:surfaceDef
523 C2D_RGB_SURFACE_DEF surfaceDef; in set_image() local
527 surfaceDef.phys = (void*) gpuaddr; in set_image()
528 surfaceDef.buffer = (void*) (handle->base); in set_image()
530 surfaceDef.format = c2d_format | in set_image()
532 surfaceDef.width = rhs->w; in set_image()
533 surfaceDef.height = rhs->h; in set_image()
534 int aligned_width = ALIGN(surfaceDef.width,32); in set_image()
535 surfaceDef.stride = (aligned_width * c2diGetBpp(surfaceDef.format))>>3; in set_image()
538 &surfaceDef)) { in set_image()
544 C2D_YUV_SURFACE_DEF surfaceDef; in set_image() local
545 memset(&surfaceDef, 0, sizeof(surfaceDef)); in set_image()
547 surfaceDef.format = c2d_format; in set_image()
561 surfaceDef.width = rhs->w; in set_image()
562 surfaceDef.height = rhs->h; in set_image()
563 surfaceDef.plane0 = (void*) (handle->base); in set_image()
564 surfaceDef.phys0 = (void*) (gpuaddr); in set_image()
565 surfaceDef.stride0 = yuvInfo.yStride; in set_image()
567 surfaceDef.plane1 = (void*) (handle->base + yuvInfo.plane1_offset); in set_image()
568 surfaceDef.phys1 = (void*) (gpuaddr + yuvInfo.plane1_offset); in set_image()
569 surfaceDef.stride1 = yuvInfo.plane1_stride; in set_image()
571 surfaceDef.plane2 = (void*) (handle->base + yuvInfo.plane2_offset); in set_image()
572 surfaceDef.phys2 = (void*) (gpuaddr + yuvInfo.plane2_offset); in set_image()
573 surfaceDef.stride2 = yuvInfo.plane2_stride; in set_image()
577 &surfaceDef)) { in set_image()