Nikshep Patil
|
gf_context_set_surface(): Problem with color format GF_FORMAT_PACK_YUV_UYVY
|
Nikshep Patil
05/16/2011 1:37 PM
post85722
|
gf_context_set_surface(): Problem with color format GF_FORMAT_PACK_YUV_UYVY
Hi All,
I am having problems with the gf_context_set_surface() call.
I create a surface on the main layer of my display with color format GF_FORMAT_PACK_YUV_UYVY -
_uint32 flag = GF_SURFACE_CREATE_CPU_LINEAR_ACCESSIBLE | GF_SURFACE_CREATE_CPU_FAST_ACCESS;
gf_surface_create(&surface_exp, gf_dev, width, height, GF_FORMAT_PACK_YUV_UYVY, NULL, flag)
The surface is created successfully.
But the subsequent call to gf_context_set_surface() fails with return value 7.
Also, if I create the surface with other color formats (GF_FORMAT_PACK_RGB565, GF_FORMAT_PACK_ARGB1555, GF_FORMAT_BGR888
, GF_FORMAT_BGRA8888), the call to gf_context_set_surface() works without any problem.
Could you please help me with this...?
|
|
|