Lines Matching refs:surfaceDef
533 C2D_RGB_SURFACE_DEF surfaceDef; in set_image() local
537 surfaceDef.phys = (void*) gpuaddr; in set_image()
538 surfaceDef.buffer = (void*) (handle->base); in set_image()
540 surfaceDef.format = c2d_format | in set_image()
542 surfaceDef.width = rhs->w; in set_image()
543 surfaceDef.height = rhs->h; in set_image()
544 int aligned_width = ALIGN((int)surfaceDef.width,32); in set_image()
545 surfaceDef.stride = (aligned_width * c2diGetBpp(surfaceDef.format))>>3; in set_image()
548 &surfaceDef)) { in set_image()
554 C2D_YUV_SURFACE_DEF surfaceDef; in set_image() local
555 memset(&surfaceDef, 0, sizeof(surfaceDef)); in set_image()
557 surfaceDef.format = c2d_format; in set_image()
571 surfaceDef.width = rhs->w; in set_image()
572 surfaceDef.height = rhs->h; in set_image()
573 surfaceDef.plane0 = (void*) (handle->base); in set_image()
574 surfaceDef.phys0 = (void*) (gpuaddr); in set_image()
575 surfaceDef.stride0 = yuvInfo.yStride; in set_image()
577 surfaceDef.plane1 = (void*) (handle->base + yuvInfo.plane1_offset); in set_image()
578 surfaceDef.phys1 = (void*) (gpuaddr + yuvInfo.plane1_offset); in set_image()
579 surfaceDef.stride1 = yuvInfo.plane1_stride; in set_image()
581 surfaceDef.plane2 = (void*) (handle->base + yuvInfo.plane2_offset); in set_image()
582 surfaceDef.phys2 = (void*) (gpuaddr + yuvInfo.plane2_offset); in set_image()
583 surfaceDef.stride2 = yuvInfo.plane2_stride; in set_image()
587 &surfaceDef)) { in set_image()