Lines Matching refs:surfaceDef
542 C2D_RGB_SURFACE_DEF surfaceDef; in set_image() local
546 surfaceDef.phys = (void*) gpuaddr; in set_image()
547 surfaceDef.buffer = (void*) (handle->base); in set_image()
549 surfaceDef.format = c2d_format | in set_image()
551 surfaceDef.width = rhs->w; in set_image()
552 surfaceDef.height = rhs->h; in set_image()
553 int aligned_width = ALIGN((int)surfaceDef.width,32); in set_image()
554 surfaceDef.stride = (aligned_width * c2diGetBpp(surfaceDef.format))>>3; in set_image()
557 &surfaceDef)) { in set_image()
563 C2D_YUV_SURFACE_DEF surfaceDef; in set_image() local
564 memset(&surfaceDef, 0, sizeof(surfaceDef)); in set_image()
566 surfaceDef.format = c2d_format; in set_image()
580 surfaceDef.width = rhs->w; in set_image()
581 surfaceDef.height = rhs->h; in set_image()
582 surfaceDef.plane0 = (void*) (handle->base); in set_image()
583 surfaceDef.phys0 = (void*) (gpuaddr); in set_image()
584 surfaceDef.stride0 = yuvInfo.yStride; in set_image()
586 surfaceDef.plane1 = (void*) (handle->base + yuvInfo.plane1_offset); in set_image()
587 surfaceDef.phys1 = (void*) (gpuaddr + yuvInfo.plane1_offset); in set_image()
588 surfaceDef.stride1 = yuvInfo.plane1_stride; in set_image()
590 surfaceDef.plane2 = (void*) (handle->base + yuvInfo.plane2_offset); in set_image()
591 surfaceDef.phys2 = (void*) (gpuaddr + yuvInfo.plane2_offset); in set_image()
592 surfaceDef.stride2 = yuvInfo.plane2_stride; in set_image()
596 &surfaceDef)) { in set_image()