Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
         
       
     
  
  
  
  
  
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
  
  preview_stream_ops Struct Reference
 
  
   #include <
   
    camera.h
   
   >
  
 
 
  
   |  | 
  
   | int(* | dequeue_buffer
    
    )(struct
    
     preview_stream_ops
    
    *w, buffer_handle_t **buffer, int *stride) | 
  
   |  | 
  
   | int(* | enqueue_buffer
    
    )(struct
    
     preview_stream_ops
    
    *w, buffer_handle_t *buffer) | 
  
   |  | 
  
   | int(* | cancel_buffer
    
    )(struct
    
     preview_stream_ops
    
    *w, buffer_handle_t *buffer) | 
  
   |  | 
  
   | int(* | set_buffer_count
    
    )(struct
    
     preview_stream_ops
    
    *w, int count) | 
  
   |  | 
  
   | int(* | set_buffers_geometry
    
    )(struct
    
     preview_stream_ops
    
    *pw, int w, int h, int format) | 
  
   |  | 
  
   | int(* | set_crop
    
    )(struct
    
     preview_stream_ops
    
    *w, int left, int top, int right, int bottom) | 
  
   |  | 
  
   | int(* | set_usage
    
    )(struct
    
     preview_stream_ops
    
    *w, int usage) | 
  
   |  | 
  
   | int(* | set_swap_interval
    
    )(struct
    
     preview_stream_ops
    
    *w, int interval) | 
  
   |  | 
  
   | int(* | get_min_undequeued_buffer_count
    
    )(const struct
    
     preview_stream_ops
    
    *w, int *count) | 
  
   |  | 
  
   | int(* | lock_buffer
    
    )(struct
    
     preview_stream_ops
    
    *w, buffer_handle_t *buffer) | 
  
   |  | 
  
   | int(* | set_timestamp
    
    )(struct
    
     preview_stream_ops
    
    *w, int64_t timestamp) | 
  
   |  | 
 
 
 
 
 
  
   Definition at line
   
    73
   
   of file
   
    camera.h
   
   .
  
  
 
 
 
 
 
 
 
  
   
    
     | int(* dequeue_buffer)(struct
      
       preview_stream_ops
      
      *w, buffer_handle_t **buffer, int *stride) | 
   
   
  
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 The documentation for this struct was generated from the following file:
 
  - 
   hardware/libhardware/include/hardware/
   
    camera.h
   
  
 
 
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2019-10-02 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."],[],[]]