Method and apparatus for alpha blending images from different color formats - Patents.com

By converting images to a blending color format using gamma space and primary color transformations, the method addresses the issue of preserving transparency intent during alpha blending of images in different color formats, ensuring accurate and undistorted results.

JP7565950B2Active Publication Date: 2024-10-11ATI TECHNOLOGIES ULC
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2021571831
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-06-28
Filing Date
2020-06-26
Publication Date
2024-10-11
Estimated Expiration
2040-06-26

AI Technical Summary

Technical Problem

Existing methods for alpha blending images in different color formats, such as high dynamic range (HDR) and standard dynamic range (SDR), fail to preserve the original transparency intent and often result in incorrect transparency levels due to differences in color formats, leading to distorted images.

Method used

The method employs alpha transparency optimization logic to convert images from their original color formats to a blending color format, using gamma space and primary color transformations, and multiple blending stages to maintain the intended transparency levels during alpha blending.

Benefits of technology

This approach ensures that the original transparency intent of the creator is preserved, resulting in accurate and undistorted alpha blended images by normalizing and converting images to a common blending color format before blending.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565950000001
    Figure 0007565950000001
  • Figure 0007565950000002
    Figure 0007565950000002
  • Figure 0007565950000003
    Figure 0007565950000003
Patent Text Reader

Abstract

In some examples, an apparatus acquires source layer pixels, such as pixels of a content image, and first destination layer pixels, such as pixels of a destination image. The first destination layer pixels have associated alpha values. The apparatus acquires information indicating a first blending color format of the alpha values. The first blending color format differs from a first destination layer color format for the first destination layer pixels and an output color format for the display. The apparatus converts the source layer pixels and / or the first destination layer pixels to the first blending color format. The apparatus generates a first alpha-blended pixel based on alpha-blending the source layer pixels and the first destination layer pixels with the associated alpha values. The apparatus provides the first alpha-blended pixel for display on the display.
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] Before displaying the image on a display, the image processor alpha-blends two or more layers or images to generate an alpha-blended image. For example, the image processor alpha-blends a source image with a destination image (e.g., an overlay image) using an alpha value associated with the destination image. The alpha value is typically a value between 0 and 1 and indicates the transparency level of the destination image and / or the source image when blended together to form a single image. However, the destination image and the source image may be in different color formats. For example, one image may be in a high dynamic range (HDR) color format and the other image may be in a standard dynamic range (SDR) color format. Due to differences in non-linearity between different color formats, applying the original alpha value may result in a transparency level between the images that is different from that intended by the creator or programmer of one image.

[0002] In some cases, to accommodate various color formats, the source and destination images are converted to a common linear light HDR format and alpha blending is performed in the common linear light HDR format. However, if the alpha values ​​are formatted for an SDR color format and extremely inaccurate transparency for the alpha values ​​is formatted for an HDR color format, this may result in incorrect transparency results. Other methods are known to compensate by applying corrections to the alpha values. However, this may also result in the original alpha blending intent for the source being altered. Furthermore, when blending HDR and SDR images, problems may arise in providing the correct relative brightness of the image in the color format of the output or display device. Known methods for correcting the relative brightness include a user-set adjustment slider and / or dynamic adjustment based on ambient light level detection in the viewing environment. However, this only solves part of the problem and does not address how to blend the images while preserving the original alpha blending intent of the source.

[0003] Further, each color format may include a gamma space (e.g., linear / nonlinear curves used for color coding) and specific primaries. Devices such as graphics processing units (GPUs) are known to convert layers (e.g., source and / or destination images) to a gamma space for the destination image and / or a gamma space for a display interface. After converting to these gamma spaces, the GPU can then alpha blend the converted layers (e.g., source and / or destination images converted to a gamma space for the destination image and / or a display interface) to generate an alpha blended image.

[0004] In many cases, an author or programmer may intend to perform alpha blending in a color format different from the gamma space for the destination image or display interface. However, currently, there is no method or apparatus available for converting the source layer pixels and / or the first destination layer pixels to a color format other than the color format of the destination image and / or the color format of the display interface prior to alpha blending. Furthermore, an author or programmer may intend to include multiple blending stages in the alpha blending (e.g., two pixel layers may be alpha blended and then the result may be blended with a third pixel layer) using different color formats between the multiple blending stages (first blending color format and second blending color format). Again, currently, there is no method or apparatus available to accommodate different color formats between the blending stages. Thus, one or more improved methods and / or apparatus are needed to address one or more of the above-mentioned shortcomings.

[0005] BRIEF DESCRIPTION OF THE DRAWINGS In the following drawings, like numerals represent like elements, and the implementations can be more readily understood in view of the following description in conjunction with the accompanying drawings, in which: FIG. [Brief description of the drawings]

[0006] [Figure 1] FIG. 1 is a schematic block diagram illustrating an apparatus for alpha blending images from different color formats according to variations described in the present disclosure. [Diagram 2] 4 is a flowchart illustrating a method for alpha blending images from different color formats according to variations described in this disclosure. [Diagram 3]FIG. 1 is a schematic block diagram illustrating an example of alpha transparency optimization logic for alpha-blended images from different color formats, according to variations described in this disclosure. [Figure 4] 1 is a schematic block diagram illustrating another apparatus for alpha blending images from different color formats according to variations presented in the present disclosure. [Diagram 5] FIG. 2 is a schematic block diagram illustrating a graphics processing unit for alpha blending images from different color formats according to variations described in this disclosure. [Figure 6] 1 is a schematic block diagram illustrating another apparatus for alpha-blending images from different color formats according to variations described in the present disclosure. [Figure 7] 4 is a flowchart illustrating another method for alpha blending images from different color formats according to variations described in this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] In some examples, the methods and apparatus employ alpha blending transparency optimization logic to preserve or maintain the original alpha blending intent of a creator, such as a programmer, of a content image (e.g., source image or source layer pixel) and a destination image (e.g., destination layer pixel) to be alpha blended. In some cases, the destination image is a user interface image, a logo image, or another type of destination image. For example, the alpha value indicated by the user interface image is intended to be used to alpha blend an image from a single color format, such as a destination color format (e.g., a first destination layer color format). Thus, by converting an image (such as a source / destination image) from its original color format to a blending color format (e.g., a color format used for alpha blending the images), the alpha blending transparency optimization logic either preserves the original alpha blending intent or minimizes distortion due to the destination image and the content image being in different color formats. This is described in more detail below.

[0008] In some examples, an apparatus obtains a source layer pixel, such as a pixel of a source or content image, and a first destination layer pixel, such as a pixel of a destination image. The first destination layer pixel has a first alpha value associated with it. The apparatus obtains information indicating a first blending color format of the first alpha value. The first blending color format (e.g., a standard red, green, blue (sRGB) color format) is different from a color format of the first destination layer (e.g., a perceptual quantizer (PQ) color format), and the first destination layer pixel is different from an output color format for a display (e.g., a hybrid log-gamma (HLG) color format). The apparatus converts the source layer pixel and / or the first destination layer pixel to the first blending color format. The apparatus generates a first alpha-blended pixel based on alpha-blending the source layer pixel with the first destination layer pixel using a first alpha value in response to converting the source layer pixel and / or the first destination layer pixel to the first blending color format, and provides the first alpha-blended pixel for display on the display.

[0009] In some examples, various color format conversion techniques are employed prior to alpha blending. For example, in some variations, the first blending color format includes a first blending gamma space and a first blending set of color primaries. The gamma space represents data representative of the linearity / nonlinearity of the first blending color format. The device converts the source layer pixels and / or the first destination layer pixels to the first blending gamma space using data representative of a transfer function of the first blending gamma space. In some examples, the first blending gamma space is a linear gamma space and the transfer function is a gamma transfer function. The transfer function of the first blending gamma space is stored in a memory of the device. In other variations, the device converts the source layer pixels and / or the first destination layer pixels to the first blending set of color primaries using data representative of one or more gamma transfer functions and / or one or more linear-to-linear transfer functions. The one or more gamma transfer functions and / or the one or more linear-to-linear transfer functions are stored in a memory of the device. In yet another variation, the device transforms at least one of the source layer pixels and the first destination layer pixels to a first blending gamma space and a first blending set of primary colors.

[0010] In some examples, multiple alpha blending stages are employed. For example, in a second alpha blending stage, a third alpha blending stage, or another subsequent alpha blending stage, the device converts the previously generated alpha blended pixel and / or the new destination layer (e.g., the second destination layer pixel) to a second blending color format that is a different color format than the first blending color format. For example, the device obtains a second destination pixel associated with a second alpha value and information indicating a second blending color format (e.g., a PQ color format). The device then converts the first alpha blended pixel and / or the second destination layer pixel to the second blending color format. In response to converting the first alpha blended pixel and / or the second destination layer pixel, the device generates a second alpha blended pixel based on alpha blending the first alpha blended pixel with the second destination layer pixel using the second alpha value.

[0011] In some cases (e.g., when the device performs multiple stages of alpha blending), the first blending color format is the same color format as the first destination layer color format. In some variations, the second blending color format, like the first blending color format, includes a second blending gamma space and a second blending set of primary colors. The device employs a different color format conversion technique for the second or subsequent stages of alpha blending. For example, the device converts the first alpha-blended pixels and / or the second destination layer pixels to the second blending gamma space using data representing a gamma transfer function associated with the second blending gamma space. In some examples, the second blending gamma space is the same gamma space as the output color format. In some cases, the device converts the first alpha-blended pixels and the second destination layer pixels to the second blending set of primary colors using data representing one or more gamma transfer functions and one or more linear transfer functions.

[0012] In some examples, before displaying the first alpha-blended pixel on a display, the device converts and / or performs HDR tone mapping on the pixel. For example, the device converts the first alpha-blended pixel to an output color format. The device then prepares to display the first alpha-blended pixel on the display. In some cases, the device performs tone mapping (e.g., high dynamic range (HDR) tone mapping) on ​​the plurality of first alpha-blended pixels.

[0013] In some cases, the device performs tone mapping instead of or during the color format conversion process. For example, the device converts the source layer pixels and / or the first destination layer pixels by tone mapping the source layer pixels and / or the first destination layer pixels. In some variations, the device includes a graphics processing unit (GPU) including a display engine. The display engine includes alpha transparency optimization logic, the logic configured to convert the source pixels and / or the first destination layer pixels to a first blending color format before alpha blending the source pixels and the first destination layer pixels. In some cases, the device includes a memory, the memory having one or more frame buffers that store the source layer pixels, the first destination layer pixels, a set of alpha values, and / or the first blending color format.

[0014] 1 illustrates an example of an apparatus 100, such as an image processing device, for alpha blending images from different color formats. In some implementations, the apparatus 100 includes any type of computing device suitable for implementing aspects of the disclosed invention variations. Examples of computing devices include, but are not limited to, workstations, laptops, desktops, tablet computers, handheld devices, display devices, media players, set-top boxes, televisions, game consoles, printers, servers, cloud computing platforms, integrated circuits, and the like, all of which are contemplated as being within the scope of FIG. 1 with reference to various components of the apparatus 100.

[0015] In some variations, the device 100 includes alpha transparency optimization logic 108 and a display 112. The alpha transparency optimization logic 108 receives a source layer pixel 102 in a source color format, a first destination layer pixel 104 (e.g., an overlay image) in a first destination layer color format (e.g., an overlay color format), a set of first alpha values ​​114 in a first blending color format, information 106 indicative of the first blending color format, and / or information 116 indicative of the output color format. The first destination layer pixel 104 is associated with the set of first alpha values ​​114. In other words, a programmer and / or creator has programmed or intended that the first destination layer pixel 104 be alpha blended using the set of first alpha values ​​114. In some cases, the same frame buffer in memory stores the first destination layer pixel 104 and the set of alpha values ​​114. The logic 108 extracts information including the first destination layer pixel 104 and the set of alpha values ​​114 from the frame buffer and then splits the information into the first destination layer pixel 104 and the set of alpha values ​​114 .

[0016] In some examples, the device 100 is a video player (e.g., a DVD player and / or a Blu-ray player). The device 100 obtains source pixels 102 and / or a source color format from a content source, such as a DVD or Blu-ray disc. The device 100 obtains first destination pixels 104 and / or a first destination color format from a memory of the video player. The first destination pixels 104 represent a graphical user interface that is alpha blended with the source layer pixels 102. The first destination pixels 104, the first destination color format, the first alpha value 114, and the first blending color format are stored in the memory of the video player. The logic 108 receives the source layer pixels 102 in a source color format, the first destination layer pixels 104 (e.g., an overlay image) in a first destination layer color format (e.g., an overlay color format), a first set of alpha values ​​114 in a first blending color format, and information 106 indicative of the first blending color format from a memory of the game console and / or from a content source. The output color format is a color format for a display 112 (e.g., a display device and / or a display interface). In some cases, the logic 108 receives the information 116 for the output color format from the display 112. The first blending color format is a color format for the set of first alpha values ​​114 used to blend the source layer pixels 102 and the first destination layer pixels 104.

[0017] In some variations, the device 100 optionally includes a display 112. When present, the alpha transparency optimization logic 108 and the display 112 are in the same device. The display 112 includes one or more monitors, television screens, projection devices, and / or other display screens that display and / or show video or game frames, moving pictures, and / or images. The logic 108 provides the first alpha-blended pixel 110 to the display 112, which displays the first alpha-blended pixel 110. In some examples, the device 100 does not include a display. Thus, the alpha transparency optimization logic 108 provides (e.g., transmits or transmits) image data, such as the first alpha-blended pixel 110, over the Internet, wirelessly, via a wired bus, or by any suitable method to one or more additional devices that house the display(s) 112. The exemplary device 100 including the alpha transparency optimization logic 108 is not intended to suggest any limitation as to the scope of use or functionality of the variations of the present disclosure.

[0018] 1-3, an example method 200 for alpha blending images from different color formats and an example alpha transparency optimization logic are shown. The method 200 is described with reference to the apparatus 100 and logic 108. However, any suitable structure may be employed. The alpha transparency optimization logic 108 includes a first layer pixel converter unit 302 (e.g., a source image converter unit), a second layer pixel converter unit 304 (e.g., a destination image converter unit), an alpha blending unit 306, and / or an output transformation and / or tone mapping unit 308. Although these sub-units 302, 304, 306 and / or 308 are shown as dependent child units of the parent logic 108, each sub-unit may be operated as a separate unit from the logic 108, and it is contemplated that other suitable combinations of sub-units may be suitable for various applications.

[0019] In some cases, the output transformation unit and / or tone mapping unit 308 are optional. If present, unit 308 performs HDR tone mapping of first alpha-blended pixel 110. Additionally and / or alternatively, unit 308 converts pixel 110 to an output color format for display 112. If unit 308 is not present in logic 108, logic 108 does not perform HDR tone mapping and / or convert pixel 110 to an output color format (e.g., another entity converts and / or tone maps first alpha-blended pixel 110).

[0020] Logic 108 may be any suitable logic configuration, including, but not limited to, one or more state machines, one or more CPUs, GPUs, APUs, or one or more digital signal processors as part of a processor executing a kernel, and / or other suitable structures as desired. As used herein, the term "unit" may refer to, be part of, or include an application specific integrated circuit (ASIC), electronic circuitry, a processor or microprocessor (shared, dedicated, group) executing one or more software or firmware programs and / or a memory (shared, dedicated, group), combinatorial logic circuitry, and / or other suitable components that provide the described functionality.

[0021] During operation, in step 202, logic 108 obtains a source layer pixel 102 (e.g., a source image), a first destination layer pixel 104 (e.g., a destination image) associated with a first set of alpha values ​​114, and an indicator indicating a first blending color format 106 for the first set of alpha values ​​114. The first blending color format is different from the first destination layer color format (e.g., the color format of the first destination layer pixel 104) and the output color format (e.g., the color format output by or imaged by the display 112).

[0022] For example, unit 302 obtains source layer pixels 102. Unit 304 obtains first destination layer pixels 104. In some variations, apparatus 100 generates source layer pixels 102 and first destination layer pixels 104 that units 302 and / or 304 subsequently obtain. In other variations, apparatus 100 obtains source layer pixels 102 and first destination layer pixels 104 from another entity (e.g., a web server). Still, in other variations, apparatus 100 generates one of source layer pixels 102 or first destination layer pixels 104 and obtains the other of source layer pixels 102 or first destination layer pixels 104.

[0023] In some examples, device 100, such as a game console, is configured to execute instructions from a content source and / or from memory. The content source may be a device, such as a memory, a server, a video disc, a game disc (e.g., a legacy game disc), a DVD, other video or image formats including memory, and / or one or more processors, that provides instructions to device 100 to generate source layer pixels 102 or first destination layer pixels 104. Additionally, the memory of the content source includes instructions executable by device 100 (e.g., a game console and / or a computing device). Device 100 retrieves and / or executes instructions from the memory of the content source, and based on the execution of the instructions, device 100 retrieves and / or generates source layer pixels 102 and / or first destination layer pixels 104. Additionally and / or alternatively, based on execution of the instructions, the device 100 determines or identifies a color format (e.g., a source layer color format and a first destination layer color format) of the source layer pixel 102 and / or the first destination layer pixel 104. In other words, by executing the instructions, the device 100 extracts information indicative of a color format of the source layer pixel 102 / first destination layer pixel 104 from the content source.

[0024] In another example, device 100 obtains source layer pixels 102 and / or first destination layer pixels 104 from a content source, such as a web server for a streaming provider. In such a case, the content source is an entity, such as a web server. The web server (e.g., a video service, a gaming service, and / or a streaming service web server) provides information to device 100 indicating a game, movie, television program, and / or other video or image file. Additionally and / or alternatively, device 100 obtains information indicating a color format of source layer pixels 102 and / or first destination layer pixels 104 from the content source.

[0025] After generating and / or acquiring the pixels 102, 104, the device 100 stores the pixels 102 in a first frame buffer and stores the pixels 104 in a second frame buffer. In other words, the graphic engine or 3D engine generates the pixels 102 and / or 104 and stores these pixels 102, 104 in a frame buffer. In some examples, the frame buffer is in the memory of the device 100. In other examples, the frame buffer is inside a chip or processor memory, such as a graphics processing unit (GPU) and / or a central processing unit (CPU) data cache. The unit 302 acquires the source layer pixels 102 from a frame buffer that stores the source layer pixels 102. Furthermore, the unit 304 acquires the first destination layer pixels 104 from a different frame buffer that stores the first destination layer pixels 104.

[0026] In some examples, the source layer pixel 102 or the first destination layer pixel 104 are from two different images that were previously alpha blended together. For example, the device 100 generates the source layer pixel 102 by alpha blending a first set of pixels with a second set of pixels using a set of alpha values. The device 100 stores the source layer pixel 102 in a frame buffer and / or feeds it back into the logic 108. The unit 302 obtains the source layer pixel 102 as described above.

[0027] In addition to obtaining the source layer pixel 102, the unit 302 obtains a source color format 316 of the source layer pixel and information 106 indicating a first blending color format. In addition to obtaining the first destination layer pixel 104, the unit 304 also obtains information indicating a first destination layer color format and a first blending color format for the first destination layer pixel 318. For example, the source layer pixel 102 and / or the first destination layer pixel 104 each constitute an image. Each pixel of the image has a corresponding light intensity value. The light intensity value of a pixel is a set of physical values ​​that can be measured using a light meter. Using a luminance level normalization and a transfer function, the light intensity value of a pixel can be mapped to various color formats. The color format is also called a color space (e.g., a standard red, green, blue (sRGB) color space).

[0028] Each color format (e.g., color space) uses different values ​​to represent light intensity values. Additionally, each color format includes a gamma space and a combination of specific primary colors. The gamma space is data that represents the linear and / or nonlinear curves used for color coding into the color format. These gamma spaces are often also referred to as transfer functions (e.g., electro-optical transfer function (EOTF) and / or optical-electrical transfer function (OETF)), which can be gamma transfer functions or linear-to-linear transfer functions. Gamma transfer functions (e.g., transfer functions with gamma values ​​and other more complex transfer functions) include linear-to-nonlinear transfer functions, nonlinear-to-linear transfer functions, and nonlinear-to-nonlinear transfer functions. As described in more detail below, logic 108 uses data representing these transfer functions, including gamma transfer functions and linear-to-linear transfer functions, to convert between different color formats. The data representing these transfer functions includes the actual transfer functions and / or matrices that represent the transfer functions. In some cases, the color format is linear and the transfer functions use a gamma of 1.0. In some examples, the primary colors are specific mappings or mathematical definitions of colors (eg, red, green, blue, white, etc.) for a color standard, such as the International Commission of Illumination (CIE) color standards.

[0029] Examples of different color formats include, but are not limited to, a standard Red, Green, Blue (sRGB) color format, an extended sRGB (EsRGB) color format (e.g., an sRGB color format extended to 10,000 nits), a BT.709 color format, a perceptual quantizer (PQ) color format (e.g., the PQ color format defined in the Society of Motion Picture and Television Engineers (SMPTE) ST2084 and / or the International Telecommunication Union (ITU) BT2100), a hybrid log-gamma (HLG) color format, a modified HLG color format, a PQ HLG color format, an EsRGB HLG color format, a standard dynamic range (SDR) color format, and / or a high dynamic range (HDR) color format.

[0030] The first blending color format relates to a set of first alpha values ​​114 used to alpha blend the source layer pixel 102 with the first destination layer pixel 104. For example, the source layer pixel 102 is a source image (e.g., an image from a content source). The first destination layer pixel 104 is a destination image (e.g., an image such as a graphical user interface image to be alpha blended with the source image). An author or programmer intends (e.g., is programmed or designed) that the first destination layer pixel 104 is alpha blended in the first blending color format and uses the first set of alpha values ​​114. The apparatus 100 obtains and / or determines the first blending color format for the first set of alpha values ​​114. The apparatus 100 then provides the first blending color format to the unit 302 and / or the unit 304. In some examples, the graphical user interface image is an image that includes user-selectable inputs, which is ultimately alpha blended with a content image (eg, a source image).

[0031] In some cases, the device 100 obtains and / or determines the first blending color format based on generating and / or obtaining the first destination layer pixels 104. In other words, the device 100 obtains and / or determines the first blending color format when executing instructions for generating the first destination layer pixels 104 and / or obtaining these pixels 104. In some variations, the device 100 stores the first blending color format in a frame buffer, such as a frame buffer that stores the first destination layer pixels 104 / graphical user interface. The source layer pixel converter unit 302 and the first destination layer pixel converter unit 304 obtain the first blending color format 106 from the frame buffer.

[0032] Units 302 and 304 obtain information 116 indicative of an output color format. As described above, the output color format is associated with display 112 (e.g., display 112 displays or outputs images / pixels in the output color format). In some examples, display 112 provides information 116 indicative of the output color format to logic 108 (e.g., extended display identification data (EDID) information). In other examples, device 100 obtains information 116 via an Internet connection (e.g., from a web server).

[0033] In step 204, logic 108 converts source layer pixel 102 and / or first destination layer pixel 104 to a first blending color format. For example, after obtaining source layer pixel 102, first blending color format, output color format, and source color format, unit 302 determines whether to convert source layer pixel 102 to the first blending color format. For example, unit 302 compares the source color format and the first blending color format. If the source color format is different from the first blending color format, unit 302 converts source layer pixel 102 from the source color format to the first blending color format.

[0034] Similarly, after obtaining the first destination layer pixel 104, the first blending color format, the output color format, and the first destination layer color format, the unit 304 determines whether to convert the first destination layer pixel 102 to the first blending color format. For example, the unit 304 compares the first destination layer color format with the first blending color format. If the first destination layer color format is different from the first blending color format, the unit 304 converts the first destination layer pixel 102 from the first destination layer color format to the first blending color format.

[0035] In other words, before alpha blending the source layer pixel 102 and the first destination layer pixel 104, the logic 108 determines whether the pixels 102, 104 are in the first blending color format, and if not, converts the pixels 102, 104 from their corresponding color format to the first blending color format. For example, a creator or programmer of a destination image (e.g., the first destination layer pixel 104) intends a particular transparency level for the first destination layer pixel 104 when it is alpha blended. Conventionally, if the source layer pixel 102 and / or the first destination layer pixel 104 are in different color formats, alpha blending these pixel layers 102, 104 using the first alpha value 114 distorts the creator's intention. Therefore, to preserve and / or maintain the original intent of the transparency levels during alpha blending, the alpha transparency optimization logic 108 converts the pixels 102, 104 from their corresponding color formats to a first blending color format before alpha blending the source layer pixels 102 and / or the first destination layer pixels 104.

[0036] In some examples, the source layer pixel 102 and / or the first destination layer pixel 104 are in the same color format as the first blending color format. For example, if the first destination layer color format is the same as the first blending color format, the unit 304 does not convert the pixel 104 to the first blending color format.

[0037] As described above, each color format has a gamma space and specific primaries. In some cases, unit 302 compares the gamma space of the first blending color format (e.g., the first blending gamma space) with the gamma space of the source color format (e.g., the source gamma space). If different, unit 302 converts the source layer pixels 102 from the source gamma space to the first blending gamma space using one or more transfer functions (e.g., the EOTF and / or OETF of the source color format and / or the first blending color format). Unit 304 similarly compares and / or converts the first destination layer pixels 104 from the first destination gamma space to the first blending gamma space. In some variations, the first blending gamma space is a linear gamma space with a linear transfer function. In other variations, the gamma space is a nonlinear gamma space with a nonlinear transfer function.

[0038] In another example, the primaries between the first blending color format and the source color format / first destination color format are different. For example, the unit 302 compares the primaries of the first blending color format with the primaries of the source color format. If different, the unit 302 converts the source layer pixel 102 from the source primaries to the first blending set of primaries using one or more matrices and / or one or more transfer functions (e.g., EOTF and / or OETF). For example, the unit 302 linearizes the source layer pixel 102 using the EOTF. Then, the unit 302 converts the source layer pixel 102 from the source primaries to the first blending set of primaries using one or more matrices. Similarly, the unit 304 compares and / or converts the first destination layer pixel 104 from the first destination primaries to the first blending set of primaries.

[0039] In yet another example, both the gamma space and the primaries are different between the input color format and the first blending color format. Units 302 and / or 304 convert the source layer pixels 102 and / or the first destination layer pixels 104 from the gamma space / primaries of the source and / or first destination to the gamma space and primaries of the first blending color format.

[0040] In some variations, the first destination layer color format (for the first destination layer pixel 104) is an SDR color format. The first blending color format is a linear HDR color format. Thus, the unit 304 converts the first destination layer pixel 104 from the first destination layer color format to a linear HDR color format. The source layer pixel 102 is converted to a linear HDR color format as necessary (e.g., if the source layer pixel 102 is not already in a linear HDR color format, the unit 302 converts the source layer pixel 102). The unit 306 alpha blends the source pixel 102 with the converted first destination layer pixel 104 and the source layer pixel 102 to generate a first alpha-blended pixel 110 in a linear HDR color format. The unit 308 then converts the first alpha-blended pixel 110 to an output color format, such as a non-linear HDR color format (e.g., a PQ HDR color format). Logic 108 then provides first alpha-blended pixel 110, in a non-linear HDR color format, to display 112. Display 112 then displays first alpha-blended pixel 110.

[0041] In some examples, a memory, such as a memory and / or cache memory, of device 100 stores the transfer functions and / or matrices. Units 302 and / or 304 retrieve data representing the transfer functions and / or matrices from the memory and then use this data to convert between color formats.

[0042] Additionally and / or alternatively, in some variations, during the conversion process, the units 302, 304 normalize the values ​​of the source layer pixels 102 and / or the first destination layer pixels 104. For example, before alpha blending the pixels 102, 104, the units 302, 304 normalize the pixels 102 and / or 104 such that the luminance range of the pixels 102 and / or 104 is standardized to the luminance range of the first blending color format. For example, the unit 302 determines a normalization ratio based on the source color format and the first blending color format. In other words, the unit 302 determines the luminance of a particular luminance value (e.g., 100 nits) of the source color format. The unit 302 then determines the luminance of a particular luminance value (e.g., 100 nits) for the first blending color format. The unit 302 determines a normalization ratio based on the luminance associated with the source color format and the particular luminance value of the first blending color format. Similarly, unit 304 determines a normalization ratio based on the first blending color format and the first destination color format, and units 302 and / or 304 apply the normalization ratio during a conversion process to convert their corresponding color formats (e.g., the source color format and / or the first destination color format) to the first blending color format.

[0043] In response to converting the source layer pixel 102 or the first destination layer pixel 104 to the first blending color format in step 206, the logic 108 generates a first alpha-blended pixel 110 based on alpha-blending the source layer pixel 102 with the first destination layer pixel 104 using a first set of alpha values ​​114. For example, the alpha blending unit 306 obtains information 310, 312 from the converter units 302 and / or 304. The information 310 includes the source layer pixel 102 or the converted source layer pixel 102. Similarly, the information 312 includes the first destination layer pixel 104 or the converted first destination layer pixel 104. The alpha blending unit 306 further obtains a first alpha value 114 in the first blending color format 106. In some cases, the first alpha value 114 is a global alpha value (e.g., for the entire image). In another example, the first alpha value 114 is a per-pixel alpha value. For example, the alpha blending unit 306 obtains the first alpha value 114 from a frame buffer, such as a frame buffer that stores the first destination layer pixel 104. In some cases, the apparatus 100 obtains and / or determines the first alpha value 114 based on generating and / or obtaining the first destination layer pixel 104 and / or determining the first blending color format. Based on generating and / or obtaining the first destination layer pixel 104, the apparatus 100 determines and / or obtains the first alpha value 114 and stores the first alpha value 114 in a frame buffer, such as a frame buffer for the first destination layer pixel 104.

[0044] The alpha blending unit 306 performs alpha blending of the source layer pixel 102 (e.g., transformed / untransformed source layer pixel) and the first destination layer pixel 104 (e.g., transformed / untransformed first destination layer pixel) using the first alpha value 114 to generate the first alpha-blended pixel 110. In other words, by the converter units 302 and / or 304, the source layer pixel 102, the first destination layer pixel 104, and the first alpha value 114 are in a first blending color format. By performing alpha blending in the first blending color format, the logic 108 (e.g., the alpha blending unit 306) preserves and / or maintains the original intent of the creator or programmer of the destination pixel (e.g., a user or graphical user interface image) when setting the first alpha value 114.

[0045] Unit 308 obtains information indicative of the first alpha-blended pixel 110 and performs HDR tone mapping of the first alpha-blended pixel 110. Unit 308 then provides the first alpha-blended pixel 110 to the display 112. Additionally and / or alternatively, unit 308 converts the first alpha-blended pixel 110 to an output color format for the display 112. For example, unit 308 converts from the first blending color format to the output color format using one or more transfer functions and / or matrices. Unit 308 then provides the first alpha-blended pixel 110 to the display 112.

[0046] In some examples, unit 308 is not present in logic 108. For example, in some cases, first alpha-blended pixel 110 does not need to be HDR tone mapped (e.g., if display 112 is an SDR display or if pixel 110 is already in an HDR color format). In other examples, first alpha-blended pixel 110 is tone mapped and / or converted to an output color format by another entity (e.g., a display engine).

[0047] In other examples, units 302 and / or 304 perform tone mapping (e.g., HDR tone mapping) of source layer pixels 102 and / or first destination layer pixels 104. For example, before alpha blending pixels 102 and / or 104, units 302 and / or 304 perform HDR tone mapping of source layer pixels 102 and / or first destination layer pixels 104. In some cases, units 302 and / or 304 perform HDR tone mapping of source layer pixels 102 and / or first destination layer pixels 104 during a conversion process between the source color format and / or the first destination color format to the first blending color format. In other examples, units 302 and / or 304 do not perform a conversion between the source color format and / or the first destination color format to the first blending color format (e.g., the source color format and / or the first destination color format are in the first blending color format), and units 302 and / or 304 only perform HDR tone mapping of the source layer pixels 102 and / or the first destination layer pixels 104.

[0048] In step 208, logic 108 provides the first alpha-blended pixel 110 for display on display 112. For example, after alpha-blending source pixel 102 with first destination layer pixel 104 and converting first alpha-blended pixel 110 to an output color format and / or HDR tone mapping the pixel, device 100 provides the first alpha-blended pixel 110 for display on display 112. Display 112 outputs first alpha-blended pixel 110 for display.

[0049] In some variations, multiple stages of alpha blending occur before displaying the final image on the display 112. In other words, after the first alpha blending process (e.g., generating the first alpha-blended pixel 110 described in the method 200 above), the logic 108 performs one or more additional alpha blending processes (e.g., repeating the method 200 one or more additional times). FIG. 4 illustrates an apparatus 400 including two alpha transparency optimization logic blocks 412, 414. Each of the logic blocks 412, 414 includes a unit 302, a unit 304, and an alpha blending unit 306. The units 302, 304, 306 are described in FIG. 3. Furthermore, the first logic 412 is configured to function similarly to the logic 108 described in FIG. 3, converting the source layer pixel 102 and / or the first destination layer pixel 104 to a first blending color format. The first logic 412 then alpha blends the source layer pixel 102 and / or the first destination layer pixel 104 using the first set of alpha values ​​114 for the first destination layer pixel 104. The first logic 412 provides the first alpha-blended pixel 110 to the second logic 414.

[0050] The second logic 414 performs another alpha blending step. For example, the second logic 414 obtains a second destination layer pixel 402 (e.g., another destination image), another set of alpha values ​​406 (e.g., a second alpha value), and an indicator 408 indicating another blending color format (e.g., a second blending color format). The second alpha value and the second blending color format are associated with the second destination layer pixel 402. In other words, the creator or programmer intends the second destination layer pixel 402 to be alpha blended in the second blending color format using the second alpha value. The second blending color format is different from the first blending color format. In other words, the gamma space and / or the primaries for the second blending color format are different from the gamma space and / or the primaries for the first blending color format.

[0051] The second logic 414 converts the first alpha-blended pixel 110 and / or the second destination layer pixel 402 to a second blending color format. For example, the second logic 414 determines whether the pixels 110 and / or 402 are in the second blending color format (e.g., whether the gamma space and / or primaries for the color format are different). If they are different, the second logic 414 converts these pixels to the second blending color format using data representing one or more transfer functions and / or one or more matrices. In response to converting the pixels 110 and / or 402, the second logic 414 alpha-blends the pixels 110 and / or 402 using the second alpha value 406 to generate a second alpha-blended pixel.

[0052] In some examples, the second logic 414 includes unit 308. As described above, unit 308 converts the second alpha-blended pixels 410 to an output color format and / or HDR tone maps the second alpha-blended pixels 410. The second logic 414 then provides these pixels 410 to the display 112 for display. In other examples, the apparatus 400 includes additional alpha transparency optimization logic (e.g., a third logic, a fourth logic, etc.). Each of the additional logics is used to perform a different stage of the alpha blending process.

[0053] Although device 400 shows separate logic 412, 414, in some variations, a single logic, such as logic 108, performs multiple different alpha blending stages. For example, with reference to FIG. 3, after generating first alpha-blended pixel 110, logic 108 performs another alpha blending stage. For example, logic 108 returns pixel 110 to unit 302. Unit 304 obtains another layer of pixels (e.g., second destination layer pixels 402 shown in FIG. 4). The process then repeats as above until the desired alpha-blended image is generated. Logic 108 then provides the resulting pixels to unit 308 and / or display 112.

[0054] Referring to the above-mentioned examples of multiple alpha blending stages, the first blending color format (the color format used to blend the source layer pixel 102 with the first destination layer pixel 104) is different from the second blending color format (the color format used to blend the alpha-blended source layer pixel 102 and first destination layer pixel 104 with the second destination layer pixel 402), but in some variations, the first blending color format or the second blending color format is the same color format as the output color format for the display 112. Additionally and / or alternatively, the first blending color format or the second blending color format is the same color format as one or more input color formats (e.g., the source color format of the source layer pixel 102, the first destination layer color format of the first destination layer pixel 104, and / or the second destination layer color format of the second destination layer pixel 402).

[0055] The illustration of the example apparatus 100 and / or 400 including alpha transparency optimization logic 108 in Figures 1, 3, and 4 is not intended to suggest any limitations on the scope of use or functionality of the variations of the present disclosure. Neither the example apparatus 100, 400 nor the logic 108 should be interpreted as having a dependency or requirement regarding any single component or combination of components shown. Furthermore, the various components illustrated in Figures 1, 3, and 4 may be combined in variations with various of the other components shown (and / or components not shown), all of which are considered to be within the scope of the present disclosure.

[0056] FIG. 5 is a schematic block diagram illustrating an example of a GPU 500 for alpha blending images from different color formats. Variations of the present disclosure, including FIG. 5, are described below by way of example only with reference to the accompanying drawings. Moreover, the following description is merely exemplary in nature and is not intended to limit the present disclosure, its application, or uses. Thus, while the present disclosure includes specific examples and configurations of units, the scope of the present system should not be so limited, as other modifications will be apparent to those skilled in the art.

[0057] Graphics processing unit 500 includes a bus 504 that directly and / or indirectly couples the hardware components: a video encoder 506, a display engine, a pipeline, a controller 508, a memory 510 (e.g., a data cache), and / or a 3D engine 518. Any number of additional components, different components, and / or combinations of components may also be included in graphics processing unit 500. Bus 504 may represent one or more buses (e.g., an address bus, a data bus, or a combination thereof, etc.).

[0058] In some implementations, a display engine, pipeline, and / or controller (e.g., display engine) 508 includes alpha transparency optimization logic 108 and / or unit 308. The display engine 508 is an engine, pipeline, and / or controller that converts frames or images, such as source images and / or destination images, into displayable frames for display, such as the display 112. For example, the display engine 508 obtains the source layer pixels 102 and the first destination layer pixels 104 from the video encoder 506 and / or the 3D engine 518. Furthermore, the display engine 508 obtains the first alpha value 114 and / or the first blending color format. The display engine 508 uses the alpha transparency optimization logic 108 to normalize, transform, and / or alpha blend the pixels 102, 104 as described above. Furthermore, the display engine 508 optionally includes unit 308. Unit 308 performs HDR tone mapping operations on the first alpha-blended pixel 110 and / or converts the pixel 110 to an output color format. A display engine 508 provides the first alpha-blended pixel 110 to a display 112.

[0059] In some variations, the video encoder 506 encodes and / or decodes images and / or frames of an image file, such as a video file and / or a video stream. For example, as described above, in some examples, the content source is a web server. The video stream is encoded so that it can be transmitted over the Internet (e.g., due to a large file size). The video encoder 506 obtains information 502 indicating frames, such as source images and / or destination images, from a server and / or a CPU via the Internet. The video encoder 506 decodes the frames to generate source layer pixels 102 and first destination layer pixels 104. After decoding the frames, the video encoder 506 stores the decoded frames in a frame buffer 512. Additionally and / or alternatively, the video encoder 506 provides the decoded frames to a display engine, pipeline, and / or controller 508.

[0060] In some examples, the content source is a device with a memory. The memory stores encoded movies, television programs, videos, and / or other encoded frames. The video encoder 506 decodes the encoded frames to generate the source layer pixels 102 and the first destination layer pixels 104. In some variations, a 3D engine 518 is used to generate the source layer pixels 102 and the first destination layer pixels 104. For example, the device 100 includes a CPU, which executes instructions stored in the content source. Based on the instructions, the CPU provides the information 502 to the 3D engine 518 to generate the pixels 102, 104. The 3D engine 518 then stores the pixels 102 and 104 in the frame buffer 512. Additionally and / or alternatively, the 3D engine 518 provides the pixels 102, 104 to a display engine, pipeline, and / or controller 508.

[0061] In some examples, the data cache 510 includes one or more frame buffers 512. For example, the data cache 510 (e.g., a GPU data cache or processor memory) includes a frame buffer 514 for source layer pixels. Additionally and / or alternatively, the data cache 510 includes a frame buffer for first destination layer pixels 516. As mentioned above, in some examples, the first blending color format 106 and / or the first alpha value 114 are stored in the frame buffer 516 for the first destination layer pixels.

[0062] Figure 6 is a schematic block diagram illustrating another example of an apparatus 600 for alpha blending images from different color formats. As mentioned above, method 200 may be performed by apparatus 100 and / or 400 as described in Figures 1 and 4. Apparatus 600, such as an image processing device, illustrates another exemplary apparatus for performing method 200.

[0063] The apparatus 600 includes a bus 610 that directly and / or indirectly couples the devices (the processor 620 (e.g., a CPU), the coprocessor 500 (e.g., a GPU), the memory 640, one or more Ethernet ports 650, the I / O component(s) 660, and the wireless adapter chip(s) 670). Any number of additional components, different components, and / or combinations of components may also be included in the apparatus 600. In some implementations, the I / O components 660 include presentation components configured to present information to a user, such as a touch screen, a display 112, a speaker, a printing device, etc., and / or input components or devices 662 (e.g., a microphone, a joystick, a satellite dish, a scanner, a printer, a wireless device, a keyboard, a pen, a voice input device, a touch input device, a touch screen device, an interactive display, a mouse, etc.).

[0064] Bus 610 represents one or more buses (e.g., an address bus, a data bus, or a combination thereof, etc.). Similarly, in some implementations, apparatus 600 includes a number of processors 620 and coprocessors 500, a number of memory components 640, a number of Ethernet ports 650, a number of I / O components 660, and / or a number of wireless adapter chips 670. Furthermore, any number of these components or combinations thereof may be distributed and / or replicated across a number of computing devices.

[0065] In some examples, the processor 620 (e.g., a CPU) executes a graphics driver 622 (stored in memory) causing the processor to direct, manipulate, and / or control the alpha transparency optimization logic 108. In some variations, the co-processor 500 (e.g., a GPU) includes the alpha transparency optimization logic 108 implemented to execute shader code or as discrete logic if desired.

[0066] In some cases, memory 640 includes one or more frame buffers that store source layer pixels 102 and / or first destination layer pixels 104. In some examples, memory 640 includes computer-executable instructions 642 that, when executed, cause processor 620 and coprocessor 500 to implement aspects of variations of the apparatus components described herein and / or perform aspects of variations of the methods and procedures described herein. Memory 640 may be RAM, ROM, or any suitable memory.

[0067] The example device 600 illustrated in Figure 6 is not intended to suggest any limitation as to the scope or functionality of various uses of the present disclosure, nor should the example device 600 be interpreted as having any dependency or requirement relating to any single component or combination of components illustrated.

[0068] Figure 7 illustrates an example of a method 700 for alpha blending images from different color formats. In particular, Figure 7 illustrates an example of normalizing, converting between different color formats, and alpha blending the resulting pixels using the apparatus 100 shown in Figure 1 and / or the logic 108 shown in Figure 3.

[0069] During operation, in step 702, logic 108 (e.g., converter units 302 and / or 304) receives source layer pixel 102, first destination layer pixel 104, source color format, first destination layer color format, and / or first blending color format 106. In the example illustrated in Figure 7, the source color format is PQ color format, the first destination layer color format is sRGB color format, and the first blending color format 106 is sRGB color format. However, the illustrated color formats are merely examples and logic 108 may be used to convert between any number of different color formats, including between different linear and / or non-linear color formats.

[0070] In step 704, based on comparing the first blending color format to the first destination layer color format (e.g., comparing the sRGB color format to the sRGB color format), unit 304 determines that the color formats are identical. Thus, unit 304 does not convert the first destination layer pixel to a different color format. In step 706, based on comparing the first blending color format to the source color format (e.g., comparing the sRGB color format to the PQ color format), unit 302 determines that the source color format 106 and the first blending color format 316 are not identical. Thus, steps 708-714 below describe normalizing and / or converting the source layer pixel 102 from the source color format (e.g., PQ color format) to the first blending color format (e.g., sRGB color format).

[0071] In step 708, the converter unit 302 converts the source layer pixel 102 from a source color format (e.g., a non-linear PQ color format) to a linear light color format. The converter unit 302 converts the non-linear color format (e.g., the source color format 316) to a linear light color format using a transfer function such as a PQ transfer function (e.g., an "st2084" transfer function). In step 710, the unit 302 converts the primary colors of the source layer pixel 102 using a matrix or look-up table (LUT), such as a 3D LUT.

[0072] In step 712, the converter unit 302 normalizes the source layer pixel 102 in the linear light color format to match the first blending color format (e.g., sRGB color format). For example, the luminance range of the PQ color format (e.g., 0 to 10,000 nits) is different from the luminance range of the sRGB color format (e.g., 0 to 250 nits). Therefore, the converter unit 302 normalizes the source layer pixel 102 based on the luminance range for the PQ color format and the sRGB color format. In other words, the converter unit 302 uses the peak white value of both ranges to determine a normalization ratio (e.g., 10,000 / 250). Then, the unit 302 multiplies the source layer pixel 102 by the normalization ratio (e.g., multiplying the source layer pixel 102 by 10,000 nits, which is the peak white value of the PQ color format, and dividing by 250 nits, which is the peak white value for the sRGB color format).

[0073] In step 714, the converter unit 302 converts the normalized source layer pixels 102 in the linear light color format to a first blending color format (e.g., a non-linear sRGB color format). For example, the converter unit 302 converts the pixels 102 to the sRGB color format using a transfer function for the sRGB color format. The converter unit 302 then provides the converted source layer pixels 102 in the non-linear sRGB color format to the alpha blending unit 306.

[0074] In step 716, the alpha blending unit 306 alpha blends the transformed and normalized source layer pixel 102 and the first destination layer pixel 104 using the first alpha value 114 to generate the first alpha-blended pixel 110. The process 700 then ends, with the logic 108 ultimately providing the first alpha-blended pixel 110 for display on the display 112, as described above.

[0075] Among other technical advantages, some examples allow the original transparency level intended by the user interface creator or programmer to be maintained. Moreover, in some cases, allowing the original transparency level to be maintained improves the image displayed on the display. For example, by transforming the source layer pixels 102 and / or the first destination layer pixels 104 prior to alpha blending, the alpha transparency optimization logic 108 preserves and / or maintains the transparency level of the image during alpha blending.

[0076] The above detailed description of the present disclosure and embodiments has been presented for purposes of illustration and description only, and not limitation. As such, the present disclosure is intended to cover any and all modifications, variations, or equivalents that fall within the spirit and scope of the basic underlying principles disclosed and asserted herein.

Claims

1. 1. A method for alpha blending images from different color formats, comprising: the logic obtaining a plurality of source layer pixels, a plurality of first destination layer pixels associated with a plurality of first alpha values, and information indicating a first blending color format for the plurality of first alpha values, the first blending color format being different from both a first destination layer color format associated with the plurality of first destination layer pixels and an output color format associated with a display; logic converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels to a first blending color format for the plurality of first alpha values; and generating a plurality of first alpha-blended pixels based on alpha-blending the plurality of source layer pixels and the plurality of first destination layer pixels using the plurality of first alpha values ​​in response to transforming at least one of the plurality of source layer pixels and the plurality of first destination layer pixels. method.

2. the first blending color format includes a first blending gamma space and a first blending set of primary colors; converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels to the first blending color format includes converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels to the first blending gamma space using data representative of a transfer function associated with the first blending gamma space.

2. The method of claim 1.

3. the first blending color format includes a first blending gamma space and a first blending set of primary colors; converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels includes converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels to a first blending set of primary colors using data representative of one or more gamma transfer functions and one or more linear-to-linear transfer functions.

2. The method of claim 1.

4. the first blending color format includes a first blending gamma space and a first blending set of primary colors; converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels to a first blending color format includes converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels to the first blending gamma space and the first blending set of primary colors.

2. The method of claim 1.

5. The apparatus obtains a plurality of second destination layer pixels associated with a plurality of second alpha values ​​and information indicative of a second blending color format, the first blending color format being different from the second blending color format; and converting at least one of the first plurality of alpha-blended pixels and the second plurality of destination layer pixels to the second blending color format; and generating a plurality of second alpha-blended pixels based on alpha blending the plurality of first alpha-blended pixels and the plurality of second destination layer pixels using the plurality of second alpha values ​​in response to transforming at least one of the plurality of first alpha-blended pixels and the plurality of second destination layer pixels.

2. The method of claim 1.

6. the second blending color format includes a second blending gamma space and a second blending set of primary colors; converting at least one of the plurality of second alpha-blended pixels and the plurality of second destination layer pixels to a second blending color format includes converting at least one of the plurality of first alpha-blended pixels and the plurality of second destination layer pixels to the second blending gamma space using data representative of a gamma transfer function associated with the second blending gamma space. The method of claim 5.

7. 1. An apparatus for alpha blending images from different color formats, comprising: Equipped with alpha transparency optimization logic, The alpha transparency optimization logic includes: obtaining a plurality of source layer pixels, a plurality of first destination layer pixels associated with a plurality of first alpha values, and information indicating a first blending color format for the plurality of first alpha values, the first blending color format being different from both a first destination layer color format associated with the plurality of first destination layer pixels and an output color format associated with a display; converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels into a first blending color format for the plurality of first alpha values; generating a plurality of first alpha-blended pixels based on alpha-blending the plurality of source layer pixels and the plurality of first destination layer pixels using the plurality of first alpha values ​​in response to transforming at least one of the plurality of source layer pixels and the plurality of first destination layer pixels; 4. The method of claim 3, Device.

8. the first blending color format includes a first blending gamma space and a first blending set of primary colors; the alpha transparency optimization logic is configured to convert at least one of the source layer pixels and the first destination layer pixels to the first blending color format by converting at least one of the source layer pixels and the first destination layer pixels to the first blending gamma space using data representative of a transfer function associated with the first blending gamma space.

8. The apparatus of claim 7.

9. the first blending color format includes a first blending gamma space and a first blending set of primary colors; the alpha transparency optimization logic is configured to convert at least one of the plurality of source layer pixels and the plurality of first destination layer pixels to the first blending color format by converting at least one of the plurality of source layer pixels and the plurality of first destination layer pixels to the first blending set of primary colors using data representing one or more gamma transfer functions and one or more linear-to-linear transfer functions.

8. The apparatus of claim 7.

10. the first blending color format includes a first blending gamma space and a first blending set of primary colors; the alpha transparency optimization logic is configured to convert at least one of the source layer pixels and the first destination layer pixels to the first blending color format by converting at least one of the source layer pixels and the first destination layer pixels to a first blending gamma space of the primary colors and a first blending set of the primary colors; 8. The apparatus of claim 7.

11. The alpha transparency optimization logic includes: obtaining a plurality of second destination layer pixels associated with a plurality of second alpha values ​​and information indicative of a second blending color format, the first blending color format being different from the second blending color format; converting at least one of the first plurality of alpha-blended pixels and the second plurality of destination layer pixels to the second blending color format; generating a plurality of second alpha-blended pixels based on alpha blending the plurality of first alpha-blended pixels and the plurality of second destination layer pixels using the plurality of second alpha values ​​in response to transforming at least one of the plurality of first alpha-blended pixels and the plurality of second destination layer pixels; 4. The method of claim 3, 8. The apparatus of claim 7.

12. the second blending color format includes a second blending gamma space and a second blending set of primary colors; the alpha transparency optimization logic is configured to convert at least one of the plurality of second alpha-blended pixels and the plurality of second destination layer pixels to the second blending color format by converting at least one of the plurality of first alpha-blended pixels and the plurality of second destination layer pixels to the second blending gamma space using data representative of a gamma transfer function associated with the second blending gamma space.

12. The apparatus of claim 11.

13. The apparatus comprises: a graphics processing unit (GPU) including a display engine, the display engine including the alpha transparency optimization logic; a memory including a first frame buffer and a second frame buffer, the first frame buffer storing the plurality of source layer pixels, and the second frame buffer storing the plurality of first destination layer pixels, the plurality of first alpha values, and information representing the first blending color format; 8. The apparatus of claim 7.

Citation Information

Patent Citations

  • gamma corrected alpha blending

    DE10037661A1

  • Image composition apparatus and image composition method thereof

    JP2007226444A

  • Image synthesis device, information processing device, and image synthesis method

    JP2018025996A

  • System and method for DMA controlled image processing

    US20080198170A1

  • User interface and graphics composition with high dynamic range video

    US20150245004A1