2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main ではなく android-latest-release を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
  
         
       
     
  
  
  
    
  
  
  
    
    
      
    
    
      
      コレクションでコンテンツを整理
    
    
      
      必要に応じて、コンテンツの保存と分類を行います。
    
  
  
    
  
  
  
  
    
  
  
    
    
    
  
  gralloc_module_t 構造体リファレンス
 
  
   #include <
   
    gralloc.h
   
   >
  
 
 
  
   | 
    
    | 
  
  
   | 
    struct
    
     hw_module_t
    
     
    | 
   
    
     common
    
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     registerBuffer
    
    )(struct
    
     gralloc_module_t
    
    const *module, buffer_handle_t handle)
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     unregisterBuffer
    
    )(struct
    
     gralloc_module_t
    
    const *module, buffer_handle_t handle)
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     lock
    
    )(struct
    
     gralloc_module_t
    
    const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void **vaddr)
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     unlock
    
    )(struct
    
     gralloc_module_t
    
    const *module, buffer_handle_t handle)
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     perform
    
    )(struct
    
     gralloc_module_t
    
    const *module, int operation,...)
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     lock_ycbcr
    
    )(struct
    
     gralloc_module_t
    
    const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr)
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     lockAsync
    
    )(struct
    
     gralloc_module_t
    
    const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void **vaddr, int fenceFd)
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     unlockAsync
    
    )(struct
    
     gralloc_module_t
    
    const *module, buffer_handle_t handle, int *fenceFd)
    | 
  
  
   | 
     
    | 
  
  
   | 
    int(* 
    | 
   
    
     lockAsync_ycbcr
    
    )(struct
    
     gralloc_module_t
    
    const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr, int fenceFd)
    | 
  
  
   | 
     
    | 
  
  
   | 
    void * | 
   
    
     reserved_proc
    
    [3]
    | 
  
  
   | 
     
    | 
  
 
 
 
 
 
  
   すべてのハードウェア モジュールには HAL_MODULE_INFO_SYM という名前のデータ構造が必要です。このデータ構造のフィールドは 
    hw_module_t
    で始まり、その後にモジュール固有の情報が続く必要があります。
  
   ファイル 
    gralloc.h
    の行 
    155
    の定義。
  
 
 
 
 
 
 
 
  
   
    
     | 
      int(* lock)(struct
      
       gralloc_module_t
      
      const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void **vaddr)
      | 
    
   
   
  
  
 
 
 
  
   
    
     | 
      int(* lock_ycbcr)(struct
      
       gralloc_module_t
      
      const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr)
      | 
    
   
   
  
  
 
 
 
  
   
    
     | 
      int(* lockAsync)(struct
      
       gralloc_module_t
      
      const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void **vaddr, int fenceFd)
      | 
    
   
   
  
  
 
 
 
  
   
    
     | 
      int(* lockAsync_ycbcr)(struct
      
       gralloc_module_t
      
      const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr, int fenceFd)
      | 
    
   
   
  
  
 
 
 
 
 
 
  
   
    
     | 
      int(* registerBuffer)(struct
      
       gralloc_module_t
      
      const *module, buffer_handle_t handle)
      | 
    
   
   
  
  
 
 
 
 
 
 
 
 
 
  
   
    
     | 
      int(* unlockAsync)(struct
      
       gralloc_module_t
      
      const *module, buffer_handle_t handle, int *fenceFd)
      | 
    
   
   
  
  
 
 
 
  
   
    
     | 
      int(* unregisterBuffer)(struct
      
       gralloc_module_t
      
      const *module, buffer_handle_t handle)
      | 
    
   
   
  
  
 
 この構造体のドキュメントは、次のファイルから生成されました。
  - 
   hardware/libhardware/include/hardware/
   
    gralloc.h
   
  
 
 
 
 
  
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
  最終更新日 2025-07-27 UTC。
  
  
  
    
      [[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[]]