Home | History | Annotate | Download | only in xcore
      1 /*
      2  * image_file_handle.h - Image file handle
      3  *
      4  *  Copyright (c) 2016 Intel Corporation
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *      http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  *
     18  * Author: Wind Yuan <feng.yuan (at) intel.com>
     19  */
     20 
     21 #ifndef XCAM_IMAGE_FILE_HANDLE_H
     22 #define XCAM_IMAGE_FILE_HANDLE_H
     23 
     24 #include <xcam_std.h>
     25 #include <file_handle.h>
     26 #include <video_buffer.h>
     27 
     28 namespace XCam {
     29 
     30 class ImageFileHandle
     31     : public FileHandle
     32 {
     33 public:
     34     ImageFileHandle ();
     35     explicit ImageFileHandle (const char *name, const char *option);
     36     virtual ~ImageFileHandle ();
     37 
     38     XCamReturn read_buf (const SmartPtr<VideoBuffer> &buf);
     39     XCamReturn write_buf (const SmartPtr<VideoBuffer> &buf);
     40 
     41 private:
     42     XCAM_DEAD_COPY (ImageFileHandle);
     43 };
     44 
     45 }
     46 
     47 #endif  //XCAM_IMAGE_FILE_HANDLE_H
     48