1. 27 Jan, 2017 1 commit
  2. 14 Jul, 2015 1 commit
  3. 26 May, 2015 1 commit
    • Eino-Ville Talvala's avatar
      Graphics depth formats: Add confidence values · 20651b5c
      Eino-Ville Talvala authored
      Supplement the dense and sparse depth image formats with
      confidence values.
      
      For {HAL_PIXEL_FORMAT_Y_16, HAL_DATASPACE_DEPTH}, use the 3 MSBs
      for confidence.
      
      For {HAL_PIXEL_FORMAT_BLOB, HAL_DATASPACE_DEPTH}, add a 4th float
      value for confidence.
      
      Bug: 20123879
      Change-Id: Idc27081efec682a712ce77ccfec59328f298b944
      20651b5c
  4. 24 Apr, 2015 1 commit
  5. 06 Apr, 2015 2 commits
    • Eino-Ville Talvala's avatar
      DO NOT MERGE Add ANativeWindow dataSpace; update graphics formats, color spaces · 772b9003
      Eino-Ville Talvala authored
      First stage of adding a new dataSpace field for ANativeWindow,
      for communicating format- (and endpoint-) dependent information
      about graphics buffers. For most formats, dataSpace describes the
      color space of the buffer, while format describes the memory layout.
      
      For some formats, the dataSpace may also specify that the buffer
      contains depth measurements, encoded images, or other kinds of
      information that is not necessarily a simple 2D image.
      Rename the existing colorspace enumeration to dataspace, with an added
      dataspace for depth, and sRGB gamma-corrected and linear colorspaces.
      
      Add in a definition for Android depth point clouds as a
      variable-length list of float-triplet coordinates, as the underlying
      layout of buffers with format HAL_PIXEL_FORMAT_BLOB and dataSpace of
      HAL_DATASPACE_DEPTH.
      
      Also remove now-unnecessary sRGB HAL graphics formats, and remove the
      alias RAW_SENSOR that was left in to ease transition to RAW16.
      
      Cherry pick of I8797f67fb9c2b18da5975f2145303ca0bf98e62d with the
      following diff to maintain source compatibility:
      
      @@ -58,6 +58,11 @@ enum {
           HAL_PIXEL_FORMAT_RGB_565            = 4,
           HAL_PIXEL_FORMAT_BGRA_8888          = 5,
      
      +    // Deprecated sRGB formats for source code compatibility
      +    // Not for use in new code
      +    HAL_PIXEL_FORMAT_sRGB_A_8888        = 0xC,
      +    HAL_PIXEL_FORMAT_sRGB_X_8888        = 0xD,
      +
           /*
            * 0x100 - 0x1FF
            *
      @@ -189,6 +194,9 @@ enum {
            */
           HAL_PIXEL_FORMAT_RAW16 = 0x20,
      
      +    // Temporary alias for source code compatibility; do not use in new code
      +    HAL_PIXEL_FORMAT_RAW_SENSOR = HAL_PIXEL_FORMAT_RAW16,
      +
           /*
            * Android RAW10 format:
            *
      
      Change-Id: I5c5ba98b297436f950e06a181eb0ff955747680f
      (cherry picked from commit b93343d1)
      (cherry picked from commit b2edfa51)
      772b9003
    • Eino-Ville Talvala's avatar
      DO NOT MERGE Add ANativeWindow dataSpace; update graphics formats, color spaces · b2edfa51
      Eino-Ville Talvala authored
      First stage of adding a new dataSpace field for ANativeWindow,
      for communicating format- (and endpoint-) dependent information
      about graphics buffers. For most formats, dataSpace describes the
      color space of the buffer, while format describes the memory layout.
      
      For some formats, the dataSpace may also specify that the buffer
      contains depth measurements, encoded images, or other kinds of
      information that is not necessarily a simple 2D image.
      Rename the existing colorspace enumeration to dataspace, with an added
      dataspace for depth, and sRGB gamma-corrected and linear colorspaces.
      
      Add in a definition for Android depth point clouds as a
      variable-length list of float-triplet coordinates, as the underlying
      layout of buffers with format HAL_PIXEL_FORMAT_BLOB and dataSpace of
      HAL_DATASPACE_DEPTH.
      
      Also remove now-unnecessary sRGB HAL graphics formats, and remove the
      alias RAW_SENSOR that was left in to ease transition to RAW16.
      
      Cherry pick of I8797f67fb9c2b18da5975f2145303ca0bf98e62d with the
      following diff to maintain source compatibility:
      
      @@ -58,6 +58,11 @@ enum {
           HAL_PIXEL_FORMAT_RGB_565            = 4,
           HAL_PIXEL_FORMAT_BGRA_8888          = 5,
      
      +    // Deprecated sRGB formats for source code compatibility
      +    // Not for use in new code
      +    HAL_PIXEL_FORMAT_sRGB_A_8888        = 0xC,
      +    HAL_PIXEL_FORMAT_sRGB_X_8888        = 0xD,
      +
           /*
            * 0x100 - 0x1FF
            *
      @@ -189,6 +194,9 @@ enum {
            */
           HAL_PIXEL_FORMAT_RAW16 = 0x20,
      
      +    // Temporary alias for source code compatibility; do not use in new code
      +    HAL_PIXEL_FORMAT_RAW_SENSOR = HAL_PIXEL_FORMAT_RAW16,
      +
           /*
            * Android RAW10 format:
            *
      
      Change-Id: I5c5ba98b297436f950e06a181eb0ff955747680f
      (cherry picked from commit b93343d1)
      b2edfa51
  6. 30 Mar, 2015 1 commit
  7. 24 Mar, 2015 1 commit
    • Eino-Ville Talvala's avatar
      Add ANativeWindow dataSpace; update graphics formats, color spaces · a8cb3cd1
      Eino-Ville Talvala authored
      First stage of adding a new dataSpace field for ANativeWindow,
      for communicating format- (and endpoint-) dependent information
      about graphics buffers. For most formats, dataSpace describes the
      color space of the buffer, while format describes the memory layout.
      
      For some formats, the dataSpace may also specify that the buffer
      contains depth measurements, encoded images, or other kinds of
      information that is not necessarily a simple 2D image.
      Rename the existing colorspace enumeration to dataspace, with an added
      dataspace for depth, and sRGB gamma-corrected and linear colorspaces.
      
      Add in a definition for Android depth point clouds as a
      variable-length list of float-triplet coordinates, as the underlying
      layout of buffers with format HAL_PIXEL_FORMAT_BLOB and dataSpace of
      HAL_DATASPACE_DEPTH.
      
      Also remove now-unnecessary sRGB HAL graphics formats, and remove the
      alias RAW_SENSOR that was left in to ease transition to RAW16.
      
      Change-Id: I8797f67fb9c2b18da5975f2145303ca0bf98e62d
      a8cb3cd1
  8. 19 Mar, 2015 1 commit
    • Eino-Ville Talvala's avatar
      DO NOT MERGE Add ANativeWindow dataSpace; update graphics formats, color spaces · b93343d1
      Eino-Ville Talvala authored
      First stage of adding a new dataSpace field for ANativeWindow,
      for communicating format- (and endpoint-) dependent information
      about graphics buffers. For most formats, dataSpace describes the
      color space of the buffer, while format describes the memory layout.
      
      For some formats, the dataSpace may also specify that the buffer
      contains depth measurements, encoded images, or other kinds of
      information that is not necessarily a simple 2D image.
      Rename the existing colorspace enumeration to dataspace, with an added
      dataspace for depth, and sRGB gamma-corrected and linear colorspaces.
      
      Add in a definition for Android depth point clouds as a
      variable-length list of float-triplet coordinates, as the underlying
      layout of buffers with format HAL_PIXEL_FORMAT_BLOB and dataSpace of
      HAL_DATASPACE_DEPTH.
      
      Also remove now-unnecessary sRGB HAL graphics formats, and remove the
      alias RAW_SENSOR that was left in to ease transition to RAW16.
      
      Cherry pick of I8797f67fb9c2b18da5975f2145303ca0bf98e62d with the
      following diff to maintain source compatibility:
      
      @@ -58,6 +58,11 @@ enum {
           HAL_PIXEL_FORMAT_RGB_565            = 4,
           HAL_PIXEL_FORMAT_BGRA_8888          = 5,
      
      +    // Deprecated sRGB formats for source code compatibility
      +    // Not for use in new code
      +    HAL_PIXEL_FORMAT_sRGB_A_8888        = 0xC,
      +    HAL_PIXEL_FORMAT_sRGB_X_8888        = 0xD,
      +
           /*
            * 0x100 - 0x1FF
            *
      @@ -189,6 +194,9 @@ enum {
            */
           HAL_PIXEL_FORMAT_RAW16 = 0x20,
      
      +    // Temporary alias for source code compatibility; do not use in new code
      +    HAL_PIXEL_FORMAT_RAW_SENSOR = HAL_PIXEL_FORMAT_RAW16,
      +
           /*
            * Android RAW10 format:
            *
      
      Change-Id: I5c5ba98b297436f950e06a181eb0ff955747680f
      b93343d1
  9. 04 Mar, 2015 1 commit
    • Eino-Ville Talvala's avatar
      Add ANativeWindow dataSpace; update graphics formats, color spaces · 03743414
      Eino-Ville Talvala authored
      First stage of adding a new dataSpace field for ANativeWindow,
      for communicating format- (and endpoint-) dependent information
      about graphics buffers. For most formats, dataSpace describes the
      color space of the buffer, while format describes the memory layout.
      
      For some formats, the dataSpace may also specify that the buffer
      contains depth measurements, encoded images, or other kinds of
      information that is not necessarily a simple 2D image.
      Rename the existing colorspace enumeration to dataspace, with an added
      dataspace for depth, and sRGB gamma-corrected and linear colorspaces.
      
      Add in a definition for Android depth point clouds as a
      variable-length list of float-triplet coordinates, as the underlying
      layout of buffers with format HAL_PIXEL_FORMAT_BLOB and dataSpace of
      HAL_DATASPACE_DEPTH.
      
      Also remove now-unnecessary sRGB HAL graphics formats, and remove the
      alias RAW_SENSOR that was left in to ease transition to RAW16.
      
      Change-Id: I8797f67fb9c2b18da5975f2145303ca0bf98e62d
      03743414
  10. 25 Jul, 2014 1 commit
  11. 25 Jun, 2014 1 commit
  12. 19 Feb, 2014 1 commit
  13. 06 Feb, 2014 1 commit
  14. 18 Sep, 2013 1 commit
  15. 16 Aug, 2013 1 commit
  16. 26 Jul, 2013 2 commits
  17. 09 Apr, 2013 1 commit
  18. 11 Feb, 2013 1 commit
  19. 08 Feb, 2013 1 commit
  20. 22 Aug, 2012 1 commit
    • Jamie Gennis's avatar
      Add an IMPL_DEFINED pixel format. · febe9d90
      Jamie Gennis authored
      This change adds a new HAL pixel format that indicates that the specific format
      is to be chosen by the gralloc implementation.
      
      Change-Id: I326b5ec7347a20863b42119431ef1e4d22480fec
      febe9d90
  21. 13 Jun, 2012 1 commit
    • Eino-Ville Talvala's avatar
      Add HAL_PIXEL_FORMAT_BLOB · 0a052487
      Eino-Ville Talvala authored
      This format describes buffers that are not structured like normal
      image data, and can only be meaningfully understood by the endpoints.
      
      As an example, this format is used for transporting JPEG-compressed
      image buffers from the Camera HAL to the framework/apps.
      
      Buffers of this format must have a height of 1 and a width equal to
      their size in bytes. Otherwise their interpretation is up to the two
      endpoints.
      
      Bug: 6243944
      Change-Id: Ia81015694cbf3a89e29bfbf3624c3ea2ef4f66fd
      0a052487
  22. 30 Apr, 2012 1 commit
    • Jamie Gennis's avatar
      graphics.h: clarify docs about stride for YV12 · 185b300d
      Jamie Gennis authored
      This change makes it clearer how to derive the stride of the Cr and Cb plane
      from the stride of the Y plane for the YV12 pixel format.
      
      Change-Id: I54a9a20f35224bd583e25c615014cc8d830a1dd0
      185b300d
  23. 24 Apr, 2012 1 commit
  24. 13 Apr, 2012 1 commit
    • Eino-Ville Talvala's avatar
      Add new raw image sensor HAL pixel format. · 0a85154c
      Eino-Ville Talvala authored
      This format is exposed outside of the HAL to applications.
      
      RAW_SENSOR is a single-channel 16-bit format, typically representing raw
      Bayer-pattern images from an image sensor, with minimal processing.
      
      The exact pixel layout of the data in the buffer is sensor-dependent, and
      needs to be queried from the camera device.
      
      Generally, not all 16 bits are used; more common values are 10 or 12
      bits. All parameters to interpret the raw data (black and white points,
      color space, etc) must be queried from the camera device.
      
      This format assumes
      - an even width
      - an even height
      - a horizontal stride multiple of 16 pixels (32 bytes).
      
      Change-Id: I67fc72d1c2c899e258fcd53b3ab91b459e9210f0
      0a85154c
  25. 12 Aug, 2011 3 commits
  26. 10 Aug, 2011 1 commit
    • Mathias Agopian's avatar
      Add a priority constant in to the graphics HAL header · 5c9be402
      Mathias Agopian authored
      this is needed if a display/gpu driver needs to create
      service threads that can block the main ui thread.
      to avoid priority inversions, these must run at
      HAL_PRIORITY_URGENT_DISPLAY
      
      Change-Id: I3af592e05a6d1b6f39a2b7885a7c842e54abfce2
      5c9be402
  27. 18 May, 2011 1 commit
  28. 03 May, 2011 1 commit
    • Iliyan Malchev's avatar
      move non-HAL definitions to syste/core/include · 66ea3574
      Iliyan Malchev authored
      
      This patch moves camera- and graphics-related definitions out of the hardware
      HAL layer and into system/core.  These definitions are used both by the HAL and
      by higher-level code as well.  More functionality (e.g., audio definitions)
      will be moved here as well.
      
      Change-Id: I225f12374ce54fa393640dce53738267d0d703e9
      Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
      66ea3574