Results 1 to 3 of 3

Thread: data type FILE in kernel

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    10

    data type FILE in kernel

    hi i am having a structure that contains data type FILE i have declared in kernel file but its showing FILE undeclared please can any one tell me the alternative
    my structure looks like this

    typedef struct target_view
    {
    struct viewpoint_set viewpoint;
    FILE* color_fd;
    FILE* prj_color_fd;
    FILE* depth_fd;
    FILE* boundary_fd;
    ui8_t* color_frame[3];
    ui8_t* depth_frame[1];

    pixel_t** fg_boundary_list;
    pixel_t** bg_boundary_list;
    pixel_t** x_boundary_list;
    camera_calibration_t* camera;
    target_source_view_t* sources;
    ui32_t number_of_std_source_views;
    ui32_t number_of_extra_source_views;
    char color_fn[FILE_NAME_SIZE];
    char depth_fn[FILE_NAME_SIZE];
    } target_view_t;

    please can any one say me how to create a buffer for this and send it to the GPU


    regards
    megharaj

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: data type FILE in kernel

    Kernels cannot do operations with files. In addition, you cannot have pointers inside structs. See section 6.8.p.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    10

    Re: data type FILE in kernel

    thank you david

Similar Threads

  1. header file in kernel file
    By agmegharaj in forum OpenCL
    Replies: 1
    Last Post: 08-30-2011, 02:11 AM
  2. GLfixed data type
    By evening in forum OpenGL ES general technical discussions
    Replies: 9
    Last Post: 10-05-2004, 11:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •