Adaptive transfer functions for video encoding and decoding.

Adaptive transfer functions in video encoding and decoding systems dynamically adjust bit usage based on image characteristics, optimizing bit efficiency and facilitating the transition to HDR displays.

JP7549109B2Active Publication Date: 2024-09-10APPLE INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023177736
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2015-02-25
Filing Date
2023-10-13
Publication Date
2024-09-10
Estimated Expiration
2035-02-25

AI Technical Summary

Technical Problem

Existing video encoding and decoding systems struggle to efficiently adapt to high dynamic range (HDR) displays, requiring more bits than necessary for standard dynamic range (SDR) content, leading to inefficiencies in bit usage and implementation complexity.

Method used

Implement adaptive transfer functions within video encoding and decoding systems to dynamically determine the focus dynamic range based on image characteristics, cropping and mapping video data to the codec's bit depth, and embedding metadata for HDR device compatibility.

Benefits of technology

This approach allows for efficient representation of video data using fewer bits, enabling seamless transition to HDR devices while simplifying the adoption of HDR technology in consumer markets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000036_0000
    Figure 00000036_0000
  • Figure 00000036_0001
    Figure 00000036_0001
  • Figure 00000036_0002
    Figure 00000036_0002
Patent Text Reader

Abstract

To provide a video encoding and decoding system for internally executing an adaptive transfer function.SOLUTION: A codec determines a focus dynamic range representing an effective dynamic range of a human vision system dynamically for each scene, sequence, frame or region of input video data 102. Video data may be cropped and quantized into C bits, which is a bit depth of a codec according to an adaptive transfer function for encoding within the codec. The transfer function may be the same as the transfer function of the input video data, or may be a transfer function within the codec. The codec decodes and extends an encoded video stream 122 into a dynamic range of D bits of (one or more) displays 190. The adaptive transfer function approach may enable a codec to use fewer bits for the internal representation of the signal, while still representing the entire dynamic range of the signal in the output.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] (Technical field) This disclosure relates generally to digital video or image processing and display.

[0002] Description of Related Art A variety of devices, including but not limited to personal computer systems, desktop computer systems, laptop and notebook computers, tablet or pad devices, digital cameras, digital video recorders, and mobile phones or smartphones, can include software and / or hardware that can perform a video processing methodology or methods. For example, a device can include a device (e.g., an integrated circuit (IC) or a subsystem of an IC, such as a system on a chip (SOC)) that can receive and process digital video input from one or more sources and output processed video frames according to one or more video processing methods. As another example, a software program can be executed on a device that can receive and process digital video input from one or more sources and output processed video frames to one or more destinations according to one or more video processing methods.

[0003] As an example, the video encoder may be implemented as a device or alternatively a software program in which a digital video input is encoded or converted into another format according to a video coding methodology, e.g., a compressed video format such as H.264 / Advanced Video Coding (AVC) format or H.265 High Efficiency Video Coding (HEVC) format. As another example, the video decoder may be implemented as a device or alternatively a software program in which a video in a compressed video format such as AVC or HEVC is received and decoded or converted into another (decompressed) format according to a video decoding methodology, e.g., a display format used by a display device. The H.264 / AVC standard is published by the ITU-T in a document entitled "ITU-T Recommendation H.264: Advanced Video Coding Scheme for Audiovisual Services in General". The H.265 / HEVC standard is published by the ITU-T in a document entitled "ITU-T Recommendation H.265: High Efficiency Video Coding Scheme".

[0004] In many systems, a device or software program may implement both a video encoder and a video decoder component. Such a device or program is commonly referred to as a codec. A codec may encode / decode both visual / image data and audio / sound data in a video stream.

[0005] The usual definition of dynamic range is the ratio between the maximum and minimum possible values ​​of a quantity that can vary, such as in a signal, such as sound and light. In digital image and video processing, extended or high dynamic range (HDR) imaging refers to technologies and techniques that produce a wider range of brightness in an electronic image (e.g., as displayed on a display screen or device) than can be obtained using standard digital imaging technologies and techniques (called standard dynamic range (SDR) imaging).

[0006] An electro-optical transfer function (EOTF) may map digital code values ​​to light values, e.g., luminance values. The inverse process, commonly called the opto-electrical transfer function (OETF), maps light values ​​to electrical / digital values. EOTF and OETF may be collectively referred to as transfer functions. The SI unit of luminance is candela per square meter (cd / m 2 ) The non-SI term for the same unit is "NIT". In standard dynamic range (SDR) imaging systems, a fixed transfer function, e.g., a fixed power-law gamma transfer function, has typically been used for the internal representation of the video image content to simplify the encoding and decoding process in the encoding / decoding system or codec. The emergence of high dynamic range (HDR) imaging techniques, systems, and displays has created a need for more flexible transfer functions. Summary of the Invention

[0007] Embodiments of a video encoding and decoding system and method are described that internally implement an adaptive transfer function for the representation of video image content within a video encoding and decoding system or codec. The embodiments may dynamically determine a focus dynamic range for a current scene, sequence, frame, or region of a frame within an input video based on one or more characteristics of the image data (e.g., brightness, texture, etc.), crop the input video dynamic range to that focus range, and then appropriately map (e.g., quantize) values ​​within the cropped range from the bit depth of the input video to the bit depth of the codec according to a transfer function used to represent the video data within the codec.

[0008] In embodiments, different transfer functions may be used to represent the input video data and the focus range video data within the codec. In some embodiments, the transfer function used to represent the video data within the codec may be the same as the transfer function used to represent the input video data. In some embodiments, a transfer function (called an internal or quadratic transfer function) different from the transfer function used to represent the input video data (called a linear transfer function) may be used to represent the video data within the codec.

[0009] In an embodiment, the focus range, transfer function, quantization parameters, and other format information used by the encoder for a scene, sequence, frame, or region may be signaled, for example, by metadata embedded in the output bitstream, to a decoder component, where the encoded bitstream may be decoded and dynamically expanded to the full dynamic range of a target device, such as a high dynamic range (HDR)-capable display, according to the signaled focus range(s) for a scene, sequence, frame, or region of the video.

[0010] By dynamically adapting the transfer function to the input video data, embodiments may allow the video data to be represented within the codec using fewer bits than those used to represent the input video data, and may also allow the video data output to be expanded by the codec to fill the dynamic range of an HDR device, such as an HDR-enabled display. Embodiments of the adaptive transfer function method may, for example, allow a video encoding and decoding system to use 10 or fewer bits for internal representation and processing of video data within the codec, and to use, for example, 12 or more bits when outputting the video to an HDR device, such as an HDR-enabled display. Thus, embodiments of the adaptive transfer function method for video encoding and decoding systems may simplify the implementation, and therefore adoption, of HDR technology, especially in the consumer market. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 illustrates an exemplary codec or video encoding and decoding system implementing an embodiment of an adaptive transfer function.

[0012] [Diagram 2] FIG. 2 illustrates an exemplary encoder that applies an adaptive transfer function method to video input data to generate encoded video data in accordance with some embodiments.

[0013] [Diagram 3] FIG. 2 illustrates an exemplary decoder for decoding encoded video data and enhancing the decoded video data according to an adaptive transfer function method to generate video data in a display format in accordance with some embodiments.

[0014] [Figure 4] FIG. 2 illustrates an exemplary full range for input video data and an exemplary focus range for that video data, according to some embodiments.

[0015] [Diagram 5] FIG. 2 illustrates an example of mapping N-bit input video data within a focus range to generate C-bit video data according to some embodiments.

[0016] [Figure 6] FIG. 2 is a schematic diagram illustrating an example of extending C-bit decoded video to the full dynamic range of an HDR-enabled device to generate D-bit video data for the device, according to some embodiments.

[0017] [Figure 7A] 4A-4D are schematic diagrams illustrating the application of different focus ranges to different parts of a video sequence or video frames according to an embodiment of the adaptive transfer function method; [Figure 7B]4A-4D are schematic diagrams illustrating the application of different focus ranges to different parts of a video sequence or video frames according to an embodiment of the adaptive transfer function method; [Figure 7C] 4A-4D are schematic diagrams illustrating the application of different focus ranges to different parts of a video sequence or video frames according to an embodiment of the adaptive transfer function method;

[0018] [Figure 8] 4 is a flowchart of a video encoding method for applying an adaptive transfer function method to video input data to generate encoded video data according to some embodiments.

[0019] [Figure 9] 4 is a flowchart of a video decoding method for decoding encoded video data and enhancing the decoded video data according to an adaptive transfer function method to generate video data in a display format, according to some embodiments.

[0020] [Figure 10] FIG. 1 is a block diagram of one embodiment of a system-on-chip (SOC) that can be configured to carry out aspects of the systems and methods described herein.

[0021] [Figure 11] FIG. 1 is a block diagram of an embodiment of a system that may include one or more SOCs.

[0022] [Figure 12] FIG. 1 illustrates an example computer system that may be configured to execute aspects of the systems and methods described herein, according to some embodiments.

[0023] [Figure 13] FIG. 1 is a block diagram of a portable multifunction device in accordance with some embodiments.

[0024] [Figure 14]FIG. 1 illustrates a portable multifunction device in accordance with some embodiments.

[0025] While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof have been shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and detailed description are not intended to limit the invention to the particular forms disclosed, but on the contrary, are intended to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention. As used throughout this application, the word "may" is used in an permissive sense (i.e., including the possible) rather than an obligatory sense (i.e., meaning required). Similarly, the words "include," "including," and "includes" mean including, but not limited to.

[0026] Various units, circuits, or other components may be described as being "configured to" perform one or more tasks. In this context, "configured to" is a broad description of the structure broadly meaning "having circuitry" that performs one or more tasks during operation. Thus, a unit / circuit / component may be configured to perform a task even when the unit / circuit / component is not currently operating. In general, the circuitry that forms the structure corresponding to being "configured to" may include hardware circuitry. Similarly, various units / circuits / components may be described as performing one or more tasks for convenience of description. Such descriptions should be construed to include the phrase "configured to." It is expressly intended that the description of a unit / circuit / component as being configured to perform one or more tasks not invoke the construction of the unit / circuit / component under 35 U.S.C. 112, paragraph 6. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0027] Embodiments of a video encoding and decoding system and method are described that perform an adaptive transfer function for the representation of video image content internally within the video encoding and decoding system or codec. The embodiments may enable adaptation of the dynamic range of the input video data to the codec during the encoding and decoding process. In embodiments, the transfer function may be dynamically adapted to the codec on a scene, sequence, or frame basis of the input video. In some embodiments, the transfer function may be dynamically adapted within the domain of a frame. The embodiments may dynamically adapt the transfer function to the input video data, retaining only information within a dynamically determined effective dynamic range of the human visual system (referred to herein as a focus dynamic range or simply focus range), and map data within the focus range from the bit depth of the input video to the bit depth of the codec according to the transfer function for processing within the codec. The output of the codec may be expanded to fill the dynamic range of the output to a target device, including but not limited to an extended dynamic range or high dynamic range (HDR) device, such as an HDR-enabled display. Figures 1-3 show an exemplary video encoding and decoding system or codec in which embodiments of the adaptive transfer function method may be implemented.

[0028] The human visual system, as a whole, encompasses a very large dynamic range. However, the human visual system tends to adapt and limit the dynamic range based on the current scene or image being displayed, e.g., according to the lightness (luminance) and texture characteristics of the scene or image. Thus, while the overall dynamic range of the human visual system is relatively large, the effective dynamic range for a given scene, sequence, frame, or region of a video may be significantly smaller depending on the image characteristics, including but not limited to lightness and texture. Embodiments of the video encoding and decoding systems and methods as described herein may exploit this characteristic of human vision and utilize similar methods to dynamically limit the range within a codec according to the characteristics of the current scene, sequence, frame, or region. In embodiments, depending on one or more characteristics (e.g., lightness, texture, etc.) of the current scene, sequence, frame, or region being processed, an encoder component or process may dynamically limit the range (e.g., luminance) of a scene, sequence, frame, or region of the input video to within the effective dynamic range for the human visual system and within the requirements of the codec, e.g., bit depth. This may be done, for example, by dynamically determining an area within the current scene, sequence, frame, or region in the input video in terms of sample values, and focusing the bit depth of the codec (e.g., 10 bits) to that range. In some embodiments, this focusing may be performed in the encoder by cropping the dynamic range of the input video into that area, and then appropriately mapping (e.g., quantizing) values ​​within the cropped range (called the focus dynamic range or focus range) from the bit depth of the input video to the bit depth of the codec according to a transfer function used to represent the video data in the codec. Figures 4 and 5 diagrammatically show exemplary focus ranges determined for input video data, and the mapping of N-bit input video data to the bit depth of the codec according to a transfer function, according to some embodiments.As used herein, N bits refers to the bit depth of the input video, C bits refers to the bit depth used to represent the video data within the codec, and D bits refers to the bit depth of the destination device for the decoded video, such as a display device.

[0029] In embodiments, various transfer functions may be used to represent the input video data and the focus range video data within the codec. Examples of transfer functions that may be used to represent the video data in embodiments may include, but are not limited to, power law gamma-based transfer functions, logarithmic-based transfer functions, and transfer functions based on human visual perception, such as the Perceptual Quantizer (PQ) transfer function proposed by Dolby Laboratories, Inc. In some embodiments, the transfer function used to represent the video data within the codec may be the same as the transfer function used to represent the input video data. However, in other embodiments, a transfer function (called an internal or quadratic transfer function) different from the transfer function used to represent the input video data (called a linear transfer function) may be used to represent the video data within the codec. This may allow, for example, the video data, which may be referred to as a video signal, to be represented within the codec with greater precision than could be done using a linear transfer function.

[0030] In an embodiment, the focus range, transfer function, quantization parameters, and other format information used by the encoder for a scene, sequence, frame, or region may be signaled to a decoder component, for example, by metadata embedded in the output bitstream. At the decoder, the encoded bitstream may be decoded and dynamically expanded to the full dynamic range of a target device, such as an HDR device (e.g., an HDR-capable display), according to the signaled focus range(s) for a scene, sequence, frame, or region of the video. Figure 6 diagrammatically illustrates expanding decoded video data to the full dynamic range of an HDR device, according to some embodiments.

[0031] By dynamically adapting the transfer function to the input video data, embodiments may allow the video data to be represented within the codec using fewer bits than those used to represent the input video data, and may also allow the video data output to be expanded by the codec to meet the dynamic range of an HDR device, such as an HDR-enabled display. Embodiments of the adaptive transfer function method may, for example, allow a video encoding and decoding system to use 10 or fewer bits for internal representation and processing of video data within the codec, and to represent an extended or high dynamic range of the video data using, for example, 12 or more bits when outputting the video to an HDR device, such as an HDR-enabled display. Thus, embodiments of the adaptive transfer function method for video encoding and decoding systems may simplify the implementation, and therefore the adoption, of HDR technology, especially in the consumer market.

[0032] The adaptive transfer function techniques described herein may be applied to all color components of a video signal, or alternatively may be applied separately to one or both of the luma and chrominance (chroma) components of a video signal.

[0033] 1 illustrates an exemplary video encoding and decoding system or codec 100 implementing one embodiment of an adaptive transfer function. In an embodiment, an adaptive transfer function 110 component or module of the codec 100 may convert N-bit (e.g., 12-bit, 14-bit, 16-bit, etc.) video input data 102 to C-bit (e.g., 10-bit or less) video input data 112 to an encoder 120 component or module of the codec 100 according to an adaptive transfer function method. In some embodiments, to convert the N-bit video input data 102 to the C-bit video input data 112, the adaptive transfer function 110 may dynamically determine an area within a current scene, sequence, frame, or region within the N-bit video input data 102 in terms of sample values ​​and focus the C bits to that area. In some embodiments, this focusing may be performed by cropping the N-bit video input data 102 to a determined focus range within an adaptive transfer function 110, and then appropriately mapping (e.g., quantizing) the N-bit values ​​within the focus range to the bit depth of the codec according to the transfer function used to represent the video data in the encoder 120 to generate C-bit video input data 112 for the encoder 120.

[0034] In some embodiments, the adaptive transfer function 110 may also generate format metadata 114 as output to the encoder 120. The format metadata 114 may describe the adaptive transfer function method as applied to the input video data 102. For example, the format metadata 114 may indicate parameters of the determined focus ranges used in mapping the video data to the bit depth of the encoder, and may also include information about the transfer function applied to the focus ranges.

[0035] In some embodiments, the encoder 120 may then encode the C-bit video input data 112 to generate an encoded stream 122 as an output. In some embodiments, the encoder 120 may encode the C-bit video input data 112 according to a compressed video format, such as the H.264 / Advanced Video Coding (AVC) format or the H.265 / High Efficiency Video Coding (HEVC) format, although other encoding formats may be used. In some embodiments, the encoder 120 may embed the format metadata 114 in the output stream 122, for example, so that the format metadata 114 can be provided to a decoder 130 component. The encoded output stream 122 may be stored in memory or, alternatively, transmitted directly to a decoder 130 component or module of the codec 100. FIG. 2 illustrates an exemplary encoder component of a video encoding and decoding system or codec 100 in more detail.

[0036] The decoder 130 may read or receive the encoded stream 122 and decode the stream 122 to generate a C-bit decoded stream 132 as output to an inverse adaptive transfer function 140 component or module of the codec 100. In some embodiments, format metadata 134 describing the adaptive transfer function method as applied to the input video data 102 by the adaptive transfer function 110 may be extracted from the input stream 122 and conveyed to the inverse adaptive transfer function 140. The inverse adaptive transfer function 140 may transform the C-bit decoded stream 132 according to the format metadata 134 and the display information 144 to generate a D-bit (e.g., 12-bit, 14-bit, 16-bit, etc.) HDR output 142 to one or more displays 190 or other devices. FIG. 3 illustrates an exemplary decoder component of the video encoding and decoding system or codec 100 in more detail.

[0037] An embodiment of a video encoding and decoding system or codec 100 that performs an adaptive transfer function method as described herein may be implemented, for example, in a device or system that includes one or more image capture devices and / or one or more display devices. An image capture device may be any device with an optical or photo sensor capable of capturing digital images or video. An image capture device may include, but is not limited to, video cameras and still image cameras, as well as image capture devices capable of capturing both video and single images. An image capture device may be a standalone device or may be a camera integrated into other devices, including, but not limited to, smartphones, mobile phones, PDAs, tablet or pad devices, multifunction devices, computing devices, laptop computers, notebook computers, netbook computers, desktop computers, and the like. An image capture device may include a small form factor camera suitable for use in small devices such as mobile phones, PDAs, and tablet devices. A display or display device may include a display screen or panel integrated into other devices, including, but not limited to, smartphones, mobile phones, PDAs, tablet or pad devices, multifunction devices, computing devices, laptop computers, notebook computers, netbook computers, desktop computers, and the like. A display device may include a video monitor, a projector, or generally any device capable of displaying or projecting digital images and / or digital video. A display or display device may use liquid crystal display (LCD), light emitting polymer display (LPD), or light emitting diode (LED) technology, although other display technologies may also be used.

[0038] 10-14 show non-limiting examples of devices in which embodiments may be implemented. A device or system including an image capture device and / or a display device may include hardware and / or software that performs at least a portion of the functionality for processing video data as described herein. In some embodiments, one portion of the functionality as described herein may be performed on one device and another portion may be performed on another device. For example, in some embodiments, a device including an image capture device may perform a sensor pipeline that processes and compresses (i.e., encodes) images or video captured via a photosensor, and another device including a display panel or screen may perform a display pipeline that receives and processes (i.e., decodes) the compressed images for display on the panel or screen. In some embodiments, at least a portion of the functionality as described herein may be performed by one or more components or modules of a system-on-chip (SOC) that may be used in devices including, but not limited to, multifunction devices, smartphones, pad or tablet devices, and other portable computing devices such as laptop, notebook, and netbook computers. FIG. 10 shows an example SOC, and FIG. 11 shows an example device implementing a SOC. Figure 12 illustrates an exemplary computer system that may implement the methods and apparatus described herein. Figures 13 and 14 illustrate an exemplary multifunction device that may implement the methods and apparatus described herein.

[0039] The embodiments are generally described herein as processing video, although the embodiments may be applied to process single images or still images instead of or in addition to video frames or sequences, and thus, when "video," "video frames," "frames," and the like are used herein, it should be understood that these terms generally refer to captured digital images.

[0040] 2 illustrates an exemplary encoder 200 that applies an adaptive transfer function method to video input data 202 and generates encoded video data 232 as an output, according to some embodiments. The encoder 200 may be, for example, a component or module of a codec 100 as shown in FIG. 1. In an embodiment, an adaptive transfer function component or module 210 of the encoder 200 may convert N-bit (e.g., 12-bit, 14-bit, 16-bit, etc.) video input data 202 to C-bit (e.g., 10-bit or less) data 212 according to the adaptive transfer function method and output the C-bit data 212 to a processing pipeline 220 component of the encoder 200. In some embodiments, to convert the N-bit video input data 202 to the C-bit video data 212, the adaptive transfer function module 210 may dynamically determine an area within a current scene, sequence, frame, or region within the N-bit video input data 202 in terms of sample values ​​and focus the C-bits to that area. In some embodiments, this focusing may be performed in the adaptive transfer function module 210 by cropping the dynamic range of the N-bit video input data 202 to the determined focus range, and then appropriately mapping (e.g., quantizing) the N-bit values ​​within the focus range to C-bits according to a transfer function used to represent the video data in the encoder 200. In some embodiments, the adaptive transfer function module 210 may also generate format metadata 214 as output to the encoder 220. The format metadata 214 may describe the adaptive transfer function method as applied to the input video data 202. For example, the format metadata 214 may indicate parameters of the determined focus range used in mapping the video data to the bit depth of the encoder, and may also include information regarding the transfer function applied to the focus range.

[0041] In some embodiments, the encoder 200 may then encode the C-bit video input data 212 generated by the adaptive transfer function module 210 to generate as output the encoded stream 232. In some embodiments, the encoder 120 may encode the C-bit video input data 112 according to a compressed video format, such as the H.264 / Advanced Video Coding (AVC) format or the H.265 / High Efficiency Video Coding (HEVC) format, although other encoding formats may be used.

[0042] In some embodiments, the input video frame is subdivided and processed in the encoder 200 according to blocks of picture elements (called pixels or pels). For example, in H.264 encoding, blocks of 16x16 pixels called macroblocks may be used. HEVC encoding uses blocks called coding tree units (CTUs) that may range from blocks of 16x16 pixels to blocks of 64x64 pixels. CTUs may be divided into coding units (CUs) and further subdivided into prediction units (PUs) that may range from blocks of 64x64 pixels to blocks of 4x4 pixels. In some embodiments, the video input data 212 may be divided into luma and chroma components, which may be processed separately in one or more components or stages of the encoder.

[0043] 2, the encoder 200 includes a processing pipeline 220 component and an entropy encoding 230 component. The processing pipeline 220 may include multiple components or stages at which the video input data 212 is processed. The processing pipeline 220 may perform, for example, intra-frame and inter-frame estimation 222, mode decision 224, and motion compensation and reconstruction 226 operations as one or more stages or components.

[0044] The following describes the operation of an exemplary processing pipeline 220 at a high level and is not intended to be limiting. In some embodiments, an intra-frame and inter-frame estimation 222 may determine previously encoded blocks of pixels to be used when encoding a block input to the pipeline. In some video encoding techniques, such as H.264 encoding, each input block may be encoded using blocks of pixels already encoded in the current frame. The process of determining these blocks may be referred to as intra-frame estimation or simply intra-estimation. In some video encoding techniques, such as H.264 and H.265 encoding, blocks may also be encoded using blocks of pixels from one or more previously reconstructed frames (called reference frames and shown in FIG. 2 as reference data 240). In some embodiments, the reconstructed and encoded frames output by the encoder pipeline may be decoded and stored into reference data 240 for use as reference frames. In some embodiments, the reference frames stored in reference data 240 used in reconstructing the current frame may include one or more reconstructed frames that occur temporally earlier than the current frame in the video being processed and / or one or more reconstructed frames that occur temporally later than the current frame in the video being processed. The process of finding matching pixel blocks in the reference frames may be referred to as inter-frame estimation, or more generally, motion estimation. In some embodiments, mode decision 224 may receive the output for a given block from intra-frame and inter-frame estimation 222 and determine the best prediction mode (e.g., inter-frame prediction or intra-frame prediction mode) and corresponding motion vector for that block. This information is communicated to motion compensation and reconstruction 226.

[0045] The operation of the motion compensation and reconstruction 226 may vary depending on the best mode received from the mode decision 224. If the best mode is inter-predicted, the motion compensation component obtains the reference frame blocks corresponding to the motion vectors and combines them to generate a predicted block. The motion compensation component then applies weighted prediction to the predicted block to generate a final block predictor that is communicated to the reconstruction component. In weighted prediction, values ​​from the reference data may be weighted according to one or more weighting parameters and shifted using an offset value to generate the predicted data used in encoding the current block. If the best mode is intra-predicted, intra prediction is performed using one or more neighboring blocks to generate a predicted block for the current block being processed at this stage of the pipeline.

[0046] The reconstruction component performs a block (e.g., macroblock) reconstruction operation on the current block according to the output of the motion compensation. The reconstruction operation may include, for example, a forward transform and quantization (FTQ) operation. The motion compensation and reconstruction 226 may output the transformed and quantized data to the entropy coding 230 component of the encoder 200.

[0047] The entropy encoding 230 component may, for example, apply an entropy encoding technique to compress the transformed and quantized data output by the pipeline 220 to generate an encoded output stream 232. Exemplary entropy encoding techniques that may be used may include, but are not limited to, Huffman coding techniques, context-adaptive variable-length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). In some embodiments, the encoder 200 may embed the format metadata 214 in the encoded output stream 232 so that the format metadata 214 can be provided to a decoder. The encoded output stream 232 may be stored in memory or, alternatively, may be transmitted directly to the decoder component.

[0048] Reference data 240 may also be output by pipeline 220 and stored in memory. Reference data 240 may include, for example, but is not limited to, one or more previously encoded frames (referred to as reference frames) that may be accessed in the motion estimation and motion compensation and reconstruction operations of pipeline 220.

[0049] In some embodiments, the encoder 200 may include a format modification 250 component that may be configured to modify the format of reference frame data obtained from the reference data 240 used by the pipeline 220 component when processing the current frame. Format modification 250 may involve, for example, converting the reference frame data from a focus range / transfer function used when encoding the reference frame to a focus range / transfer function used when encoding the current frame. As an example, a mapping of luminance focus range / transfer function for the reference frame may be 0.05 cd / m expressed in C (e.g., 10) bits. 2 ~1000cd / m 2For the current frame, the focus range may be extended due to brighter image content, e.g., the focus range may be 2000 cd / m 2 Thus, the luminance focus range / transfer function mapping for the current frame may be extended or increased to 0.05 cd / m 2 ~2000cd / m 2 In order to use the reference frame data within the pipeline 220, such as in a motion estimation operation, the format of the reference frame data may be changed according to the focus range / transfer function being used by the format change 250 component to encode the current frame.

[0050] In the given embodiment, the format change 250 component converts the reference frame data into the 0.05 cd / m 2 ~1000cd / m 2 From the range of 0.05cd / m2 used for the current frame, 2 ~2000cd / m 2 In this example, the reference frame is 0.05 cd / m 2 ~1000cd / m 2 Some codewords in the C-bit representation of the reformatted reference data (e.g., 1000 cd / m 2 (codewords that represent values ​​beyond ) cannot be used in the reformatted reference data, however values ​​are mapped into the current focus range for use in prediction or other operations.

[0051] As indicated by the arrow returning from reference data 240 to the adaptive transfer function module 210, in some embodiments, the adaptive transfer function module 210 may use adaptive transfer function information from one or more previously processed frames when determining the focus range / transfer function for the current frame being processed in pipeline 220.

[0052] FIG. 3 illustrates an exemplary decoder 300 for decoding encoded video data 302 and enhancing decoded video data 322 according to an adaptive transfer function method to generate display format video data 332, according to some embodiments. The decoder 300 may be, for example, a component or module of the codec 100 as shown in FIG. 1. In the exemplary decoder 300 illustrated in FIG. 3, the decoder 300 includes an entropy decoding 310 component, an inverse quantization and transform 320 component, and an inverse adaptive transfer function module 330. The entropy decoding 310 component may apply entropy decoding techniques to decompress an encoded stream 302 output by an encoder such as, for example, the encoder 200 illustrated in FIG. 2. The inverse quantization and transform 320 component performs inverse quantization and inverse transform operations on the data output by the entropy decoding 310 to generate a C-bit decoded stream 322 as output to the inverse adaptive transfer function module 330 of the decoder 300. In some embodiments, format metadata 324 describing the adaptive transfer function method as applied to the current scene, sequence, frame, or region may be extracted from the input stream 302 and communicated to the inverse adaptive transfer function module 330. The inverse adaptive transfer function module 330 may augment the C-bit decoded stream 322 according to the format metadata 324 and display information 392 to generate a D-bit (e.g., 12-bit, 14-bit, 16-bit, etc.) HDR output 332 to one or more displays 390 or other devices.

[0053] 4-6 diagrammatically illustrate, according to some embodiments, determining an exemplary focus range for N-bit input video data, which can be mapped to C-bits available in a codec according to a transfer function, and extending the decoded video to the full dynamic range of an HDR device to generate D-bit video data for the device.

[0054] 4 illustrates a full dynamic range for N bits of input video data, according to some embodiments, and illustrates an exemplary focus range determined for the input video data. In FIG. 4, the vertical axis represents the code values ​​of the N bits (e.g., 12 bits, 14 bits, 16 bits, etc.) in the input video data. The horizontal axis represents the code values ​​of the N bits (e.g., 12 bits, 14 bits, 16 bits, etc.) in the input video data, according to some embodiments, and the ... 2 is the dynamic range for luminance in the input video data, and is expressed in cd / m 2 (candela per square meter) is the SI unit of luminance. The non-SI term for the same unit is "NIT". The curves represent an example transfer function for input video data. The focus range (in this example, 2000-4000 cd / m 2 ) represents the effective dynamic range of the human visual system determined for a current scene, sequence, frame, or region according to one or more characteristics (e.g., brightness, texture, etc.) of the respective video data. As shown, in this embodiment, the focus range is represented by a fraction (approximately one-eighth) of the N-bit code value. It should be noted that different focus ranges may be determined for different scenes, sequences, frames, or regions in a video stream, as shown in FIGS. 7A-7C.

[0055] FIG. 5 illustrates an example of mapping N-bit input video data within a determined focus range to generate C-bit video data within a codec, according to some embodiments. In FIG. 5, the vertical axis represents the C-bit (e.g., 12-bit, 10-bit, 8-bit, etc.) code values ​​available within the codec. The horizontal axis represents the luminance values ​​(in this example, 2000-4000 cd / m) that are mapped to the C-bit code values. 2) The curves represent example transfer functions used to represent the focus range data in the codec. In some embodiments, the transfer function used to represent the video data in the codec may be the same as the transfer function used to represent the input video data. However, in other embodiments, a different transfer function (called an internal or quadratic transfer function) may be used to represent the video data in the codec than the transfer function used to represent the input video data (called a linear transfer function). This may, for example, allow the focus range of a video signal to be represented in the codec with greater precision than could be done using a linear transfer function.

[0056] 6 illustrates an example of extending C-bit decoded video to the full dynamic range of an HDR-enabled device to generate D-bit video data for the device, according to some embodiments. In FIG. 6, the vertical axis represents code values ​​of D bits (e.g., 12 bits, 14 bits, 16 bits, etc.) in the video data output from a decoder, such as decoder 300 as shown in FIG. 3. The horizontal axis represents the dynamic range of luminance supported by the display device to which the decoder outputs the D-bit video data. In this example, the dynamic range of luminance is 0 to 10000 cd / m 2A dynamic range of 100 kHz is shown. The curves represent an example transfer function for a display device. After the encoded video signal is decoded by the decoder, the focus range used for the internal representation of the signal in the codec is remapped from a C-bit representation to a D-bit representation of a wider dynamic range and display device. Note that different focus ranges may be encoded for different scenes, sequences, frames, or regions in the video stream, as shown in Figures 7A-7C. In some embodiments, format metadata may be provided to the decoder in or along with the encoded video stream indicating the focus range used when encoding each scene, sequence, frame, or region. In some embodiments, the metadata may also include one or more parameters used when mapping the video data to the bit depth of the coded entity. In some embodiments, the metadata may also include information regarding the internal transfer function used to represent the focus range data in the codec. The metadata may be used by the decoder when remapping the focus range data from a C-bit representation to a D-bit representation of a wider dynamic range and display device.

[0057] 7A-7C diagrammatically illustrate the application of different focus ranges to different parts of a video sequence or video frames according to an embodiment of the adaptive transfer function method.

[0058] 7A diagrammatically illustrates the application of different focus ranges to different scenes or sequences of an input video according to some embodiments of an adaptive transfer function method. In this example, focus range 710A is dynamically determined for frames 700A-700E and used when encoding those frames, and focus range 710B is dynamically determined for frames 700F-700G and used when encoding those frames. Frames 700A-700E and frames 700F-700H may, for example, represent different scenes in the video, or may represent different sequences of frames within or across scenes of the video.

[0059] 7B diagrammatically illustrates the application of different focus ranges to each frame of an input video according to some embodiments of the adaptive transfer function method, in which a focus range 710C is dynamically determined for encoding frame 700I and used when encoding this frame, a focus range 710D is dynamically determined for encoding frame 700J and used when encoding this frame, and a focus range 710E is dynamically determined for encoding frame 700K and used when encoding this frame.

[0060] FIG. 7C diagrammatically illustrates the application of different focus ranges to different regions of a video frame according to some embodiments of the adaptive transfer function method. As shown in FIGS. 7A and 7B, in some embodiments, the adaptive transfer function method may be applied to a frame, a scene, or a sequence. However, in some embodiments, the adaptive transfer function method may instead or additionally be applied to two or more regions 702 in a frame, as shown in FIG. 7C. In this example, a focus range 710F is dynamically determined for a region 702A of frame 700L and used when encoding this region, a focus range 710G is dynamically determined for a region 702B of frame 700L and used when encoding this region, and a focus range 710H is dynamically determined for a region 702C of frame 700L and used when encoding this region. In various embodiments, the regions 702 encoded according to the adaptive transfer function method may be rectangular or may be of other shapes, including but not limited to arbitrarily determined irregular shapes. In some embodiments, there may be a fixed number of regions 702 in each frame encoded according to the adaptive transfer function method. In some embodiments, the number of regions 702 and / or the shapes of the regions 702 to be coded according to the adaptive transfer function method may be determined for each frame, scene, or sequence. In some embodiments, format metadata generated by the encoder and communicated to the decoder may indicate the focus range, quantization parameters, and other information used to code each region 702 in the frame(s) 700. In embodiments where a quadratic or internal transfer function is used in the codec, the format metadata may include information for converting from a quadratic transfer function to a linear transfer function. In embodiments where the number of regions 702 varies, an indication of the actual number of regions 702 may be included in the metadata communicated to the decoder. In some embodiments, information regarding the coordinates and shapes of the regions 702 may also be included in the metadata communicated to the decoder.

[0061] In the video content from one region or frame to the next region or frame in the input video being processed, various parameters (e.g., focus range, quantization parameters, etc.) used in the adaptive transfer function method may be similar, especially within a scene. Thus, in some embodiments, the adaptive transfer function method may provide intra-frame (spatial) and / or inter-frame (temporal) prediction of one or more of these adaptive transfer function parameters in the encoder by utilizing a weighted prediction process in a codec, such as the AVC and HEVC codecs. In inter-frame (temporal) prediction, previously processed reference data from one or more temporally past or future frames may be used when predicting one or more of the parameters for the content of the current frame. In intra-frame (spatial) prediction, data from one or more neighboring blocks or regions in a frame may be used when predicting one or more of the parameters for the content in the current block or region.

[0062] 8 is a high-level flowchart of a video encoding method for applying an adaptive transfer function method to video input data to generate encoded video data, according to some embodiments. As shown at 800 in FIG. 8, N bits (e.g., 12 bits, 14 bits, 16 bits, etc.) of video data may be received for encoding. In some embodiments, frames of a video stream are processed sequentially by the encoder. In some embodiments, the input video frames are subdivided and processed by the encoder according to blocks of pixels (e.g., macroblocks, CUs, PUs, or CTUs).

[0063] As shown at 802 in FIG. 8, a focus range may be determined for the input video data. In some embodiments, the focus range may be dynamically determined for each scene, sequence, or frame of the video input to the encoder. In some embodiments, the focus range may be dynamically determined for each of two or more regions within a frame. In some embodiments, the focus range may be determined according to one or more characteristics (e.g., brightness, texture, etc.) of the current scene, sequence, frame, or region being processed. The focus range represents the effective dynamic range (e.g., luminance) of the human visual system for the image data in the current scene, sequence, frame, or region. For example, if the dynamic range for luminance in the input video data is 0 to 10,000 cd / m 2 , an exemplary focus range based on the specific characteristics of various scenes, sequences, frames, or regions is 2000-4000 cd / m 2 , 0~1000cd / m 2 , 1000~2500cd / m 2 etc. Figure 4 diagrammatically illustrates an exemplary focus range determined for N bits of input video data, according to some embodiments.

[0064] As shown at 804 in FIG. 8, the N-bit video data within the focus range may be mapped to C-bit video data according to a transfer function. In some embodiments, the input video data may be cropped according to the determined focus range, and then the cropped data values ​​may be appropriately mapped (e.g., quantized) to C-bits available in the encoder according to a transfer function used to represent the video data in the encoder. FIG. 5 diagrammatically illustrates an example of mapping N-bit input video data within an exemplary focus range to C-bits available in the encoder according to a transfer function, according to some embodiments. In embodiments, various transfer functions may be used to represent the N-bit input video data and the C-bit video data in the encoder. Examples of transfer functions that may be used to represent the video data in embodiments may include, but are not limited to, transfer functions based on human visual perception, such as power-law gamma-based transfer functions, logarithmic-based transfer functions, and PQ transfer functions. In some embodiments, the transfer function used to represent the C-bit video data in the encoder may be the same as the transfer function used to represent the N-bit input video data. However, in other embodiments, the input video data may be represented according to a linear transfer function, and a different (quadratic) transfer function may be used to represent the video data within the encoder. A quadratic transfer function may, for example, represent the video signal within the encoder with greater accuracy than could be done using a linear transfer function.

[0065] As shown in element 806 of Figure 8, the adaptive transfer function processing performed by elements 800-804 is repeated as long as there are N-bits of input video data (e.g., a scene, sequence, frame, or region) to be processed. As shown in 810 of Figure 8, each unit of C-bit video data (e.g., a scene, sequence, frame, or region) output by the adaptive transfer function method in elements 800-804 is input to and processed by an encoder. As previously mentioned, in some embodiments, the N-bits of input video data may be subdivided and processed by an adaptive transfer function module or component according to blocks of pixels (e.g., macroblocks, CUs, PUs, or CTUs) and conveyed to the encoder as C-bits of video data.

[0066] As shown at 810 in FIG. 8, one or more components of the encoder may process the C-bit video data to generate an encoded (and compressed) video data output (e.g., a CAVLC or CABAC output). In some embodiments, the encoder may encode the C-bit video input data according to a compressed video format, such as the H.264 / AVC format or the H.265 / HEVC format. However, other encoding formats may be used. In some embodiments, focus ranges, transfer functions, quantization parameters, and other format information used when encoding each scene, sequence, frame, or region may be embedded as metadata in the encoded output stream or otherwise signaled to the decoder(s). An exemplary encoder for processing the C-bit video data to generate an encoded output stream is illustrated by the encoder 200 in FIG. 2. In some implementations, the encoded output stream including the metadata may be written to memory, for example, via direct memory access (DMA). In some implementations, instead of or in addition to writing the output stream and metadata to memory, the encoded output stream and metadata may be sent directly to at least one decoder. The decoder may be implemented on the same device or apparatus as the encoder, or on a different device or apparatus.

[0067] FIG. 9 is a high-level flow chart of a video decoding method for decoding encoded video data and enhancing the decoded video data according to an adaptive transfer function method to generate display-formatted video data, according to some embodiments. As shown at 900 in FIG. 9, a decoder may obtain encoded data (e.g., CAVLC or CABAC encoded and compressed data). The encoded data may be, for example, read from a memory, received from an encoder, or obtained in other ways. As shown at 902 in FIG. 9, the decoder may decode the encoded data to generate C-bit decoded video data and format metadata. In some embodiments, the decoder may decode the encoded data according to a compressed video format, such as the H.264 / AVC format or the H.265 / HEVC format, although other encoding / decoding formats may be used. The format metadata extracted from the encoded data may include, for example, focus ranges, transfer functions, quantization parameters, and other format information used when encoding each scene, sequence, frame, or region.

[0068] As shown in element 904 of Figure 9, the decoding performed at 900 and 902 may continue as long as encoded data exists. As shown in 910 of Figure 9, each unit of decoded data (e.g., each scene, sequence, frame, or region) decoded by the decoder may be output and processed according to the inverse adaptive transfer function method. At least a portion of the format metadata extracted from the encoded data may also be output to the inverse adaptive transfer function method.

[0069] As shown at 910 in Figure 9, the inverse adaptive transfer function method may dynamically expand the C-bit decoded video data from the focus range to generate full dynamic range D-bit video data to be output to a destination device, such as an HDR-enabled display device. The expansion may be performed dynamically for a given scene, sequence, frame, or region according to the respective format metadata extracted from the encoded data by the decoder. Figure 6 diagrammatically illustrates expanding the decoded video data to the full dynamic range of an HDR device, according to some embodiments. First and second order transfer functions

[0070] Examples of transfer functions that may be used to represent video data in embodiments of the adaptive transfer function method as described herein may include, but are not limited to, power-law gamma-based transfer functions, logarithmic (logarithm-based) transfer functions, and transfer functions based on human visual perception, such as the perceptual quantization (PQ) transfer function proposed by Dolby Laboratories, Inc.

[0071] In some embodiments, the transfer function used to represent the video data in the codec may be the same as the transfer function (called a linear transfer function) used to represent the input video data. In these embodiments, the input video data may be cropped according to a focus range determined for a scene, sequence, frame, or region, and then mapped (e.g., quantized) to the available bits of the codec according to the linear transfer function. The focus range, crop, and mapping (e.g., quantization) parameters may be signaled to a decoder, for example, as metadata in the encoded output stream, so that an inverse adaptive transfer function method may be performed at the decoder to generate full range video data for devices such as HDR-enabled displays.

[0072] However, in some embodiments, a transfer function different from the linear transfer function (called an internal or quadratic transfer function) may be used to represent the video data within the codec. In these embodiments, the input video data may be cropped according to a focus range determined for a scene, sequence, frame, or region, and then mapped, scaled, or quantized into the available bits of the codec according to the quadratic transfer function. The quadratic transfer function may, for example, allow the video signal to be represented within the codec with greater precision than could be done using a linear transfer function. In these embodiments, in addition to the focus range, cropping, and mapping (e.g., quantization) parameters, information on how to convert the video data from the quadratic transfer function to a linear transfer function may also be signaled to the decoder, for example as metadata in the output stream. This information may include, but is not limited to, the type of quadratic transfer function (e.g., power law gamma, logarithmic, PQ, etc.) and one or more control parameters for the transfer function. In some embodiments, information describing the linear transfer function may also be signaled.

[0073] In some embodiments of the adaptive transfer function method, the internal or quadratic transfer function used in the codec may be a discontinuous transfer function representation, where one or more parts of the original or linear transfer function are retained for the internal representation and a different transfer function may be used for the remaining internal representation. In these embodiments, the region or regions of the linear transfer function that are retained may be precisely described and signaled in the output stream, for example using a table representation. Information about the different transfer functions may also be signaled.

[0074] As shown in Figures 7A-7C, embodiments of the adaptive transfer function method may be performed at a frame level or at a region level within a frame. Thus, adjacent or nearby encoded and decoded video frames or regions within a frame may have significantly different transfer function representations, which may adversely affect, for example, encoding (e.g., motion estimation, motion compensation, and reconstruction). This is because the transfer function representation of the current frame or region being encoded may be significantly different from the transfer function representations of adjacent frames or regions that may be used in the encoding process. However, in some embodiments, weighted prediction, which may be provided within a codec using encoding formats such as the Advanced Video Coding (AVC) and High Efficiency Video Coding (HEVC) formats, may be utilized to substantially improve encoding. In these embodiments, weighting parameters may be provided to adjust for differences in transfer function representations for frames or regions that may be used in the weighted prediction process. The weighting parameters may be signaled, for example, by including the parameters within the metadata of the frame or block. For example, in an AVC or HEVC encoder, weighting parameters may be signaled in the slice header metadata and may be selected by modifying a reference index in a macroblock in AVC or a prediction unit (PU) in HEVC. In some embodiments, weighting information may be explicitly signaled on a block-by-block basis, with partial or no reliance on the slice header. For example, in some embodiments, primary or base weights may be signaled in the slice header, with a delta or difference at the block level that may be used to adjust the primary weight. In some embodiments, weighting parameters may also include color weighting information. In some embodiments, these weighting parameters may be used in intra-frame prediction as well as inter-frame prediction.For example, in intra-frame prediction, instead of or in addition to directly using previously processed adjacent or nearby data (e.g., pixels or blocks of pixels), additional weighting and offset parameters may be provided that can be used to adjust the predictor according to the possibly differing transfer function characteristics of the adjacent or nearby samples.

[0075] In some embodiments where an internal or quadratic transfer function is used to represent data within the codec, in addition to the weighting parameters, information about the quadratic transfer function may also be signaled within the codec for use in the prediction of the transfer function. In some embodiments, for example, the quadratic transfer function information may be signaled within the slice header using a transfer function table that associates every reference data index with one or more transfer function adjustment parameters. In some embodiments, the quadratic transfer function information may alternatively or additionally be signaled at the block level as well. In embodiments using a discontinuous transfer function representation, multiple weighting parameters (e.g., parameters that have different effects on different brightness values ​​or levels) may be signaled within the slice header and / or at the block level.

[0076] In some embodiments where internal or quadratic transfer functions are used and adjusted to represent data within a codec, the internal transfer function and adjustments used for a scene, sequence, frame, or region may be dynamically determined. In some embodiments, the internal transfer function may be determined based on one or more characteristics of the current video frame or region(s) of the frame. The characteristics may include, but are not limited to, minimum and peak brightness, motion, texture, color, histogram mode, percentage concentration, etc. In some embodiments, determining the internal transfer function for the current frame may also utilize frames that are temporally past and / or future as reference frames. In some embodiments, for example, the determination of the internal transfer function may utilize a window of one, two, or more reference frames that appear before and / or after the current frame in the video or video sequence. Using window-based information when determining the internal transfer function may account for changes in the characteristics of each frame, which may help avoid or smooth out large jumps or discontinuities in the adjustment of the internal transfer function that may otherwise adversely affect the encoding. A smooth, window-based adaptive transfer function method may provide a more appropriate transfer function selection for the purpose of encoding and for the final signal reconstruction in the range of the perfect / desired transfer function. In some embodiments, the window-based adaptive transfer function method may include evaluating the peak and minimum brightness of the frame within the window to determine the internal transfer function. In some embodiments, the brightness histogram, the mode of the histogram, the concentration of values ​​and how they are adjusted, as well as the segmentation of the area or region within the window may be evaluated in the window-based method for the determination of the internal transfer function. In some embodiments, information about the human visual system may be utilized in this selection to achieve improved performance.

[0077] In some embodiments, the decision windows used in the window-based adaptive transfer function method may not overlap, and decisions for each frame or region may be made separately. In some embodiments, there may be overlap in the window boundaries, and boundary frames outside the current window may be considered in the evaluation but not adjusted themselves. In some embodiments, boundary frames may be influenced by multiple windows through an adaptive process, such as a weighted average of the information for the internal transfer function based on the distance of the windows, which may help to achieve a smooth transition between adjacent windows. In some embodiments, the window-based decision process for the internal transfer function may be based on a "running window" approach, where the internal transfer function for each frame is determined based on the frame's unique characteristics and the characteristics of one or more temporally past and / or future frames and / or windows. In some embodiments, the internal transfer functions of past and / or future frames and / or windows may also be utilized when determining the internal transfer function for the current frame. In some embodiments, a multi-pass approach may be performed in which subsequent internal transfer functions are optimized taking into account the behavior and performance of the internal transfer functions preselected in the previous passes, thereby achieving better coding efficiency and better rendering taking into account the final transfer function goal.

[0078] In some embodiments, the determination and adjustment of the internal transfer function (e.g., range, type, bit depth, etc.) may be based on characteristics of the video data being encoded. In some embodiments, the compression capabilities or characteristics of a particular transfer function for the signal in question may also be considered when selecting and / or adjusting the internal transfer function. In some embodiments, the determination and adjustment of the internal transfer function may instead or additionally be based on one or more target displays and their characteristics or limitations. For example, if a display with a limited dynamic range is known to be targeted compared to the dynamic range supported by the primary transfer function, it may not make sense to include values ​​outside the range of the target display in the compressed encoded signal. Instead, an internal transfer function representation that provides the best fit of the signal to the dynamic range of the display may be determined, which may allow for a more appropriate compressed representation of the signal that is tailored to the capabilities of that particular display. In some embodiments, if multiple displays are supported by the codec, dynamic ranges may be selected for those displays, and an internal transfer function representation that provides the best fit for the selected dynamic range may be determined. For example, the display with the best capabilities (e.g., with the highest dynamic range) may be selected, and that dynamic range may be used when adjusting the internal transfer function to generate video output for all displays. As another example, the selection of the dynamic range may be based on a pricing model in which one or more characteristics of the display (e.g., the dynamic range) are weighted (e.g., based on a ranking of the displays, determined or indicated based on importance or other factors) and the internal transfer function may be adjusted accordingly.

[0079] An embodiment of the adaptive transfer function method for a video encoding and decoding system or codec as described herein may provide the ability to signal (from the encoder) and support (from the encoder and decoder) an extended or high dynamic range while keeping the codec complexity (e.g., bit depth) within reasonable limits. This may be achieved by dynamically determining a focus range at a region, frame, scene, or sequence level, cropping the input data to the focus range, and mapping the cropped data from the bit depth of the input video to the bit depth of the codec while signaling appropriate parameters (e.g., focus range, quantization parameters, etc.) at a region, frame, scene, or sequence level from the encoder to the decoder, so that the dynamic range can be extended to fill the full range of an HDR-enabled display. Furthermore, in some embodiments, appropriate parameters (e.g., weights, etc.) for performing weighted prediction may be signaled when different frames are encoded using different transfer function representations. Exemplary Devices and Apparatus

[0080] Figures 10-14 show non-limiting examples of devices and apparatus within or using which various digital video or image processing and display method and apparatus embodiments or components as described herein may be implemented. Figure 10 shows an exemplary SOC, and Figure 11 shows an exemplary device implementing the SOC. Figure 12 shows an exemplary computer system that may implement the methods and apparatus described herein. Figures 13 and 14 show exemplary multifunction devices that may implement the methods and apparatus described herein. Exemplary System-on-Chip (SOC)

[0081] 10, a block diagram of one embodiment of a system on a chip (SOC) 8000 that may be used in the embodiments. The SOC 8000 is shown coupled to a memory 8800. As the name suggests, the components of the SOC 8000 may be integrated on a single semiconductor substrate as an integrated circuit "chip." In some embodiments, the components may be implemented on two or more separate chips of a system. However, the SOC 8000 is used herein as an example. In the illustrated embodiment, the components of the SOC 8000 include a central processing unit (CPU) complex 8020, on-chip peripheral components 8040A-8040C (or, for short, "peripherals"), a memory controller (MC) 8030, and a communications fabric 8010. The components 8020, 8030, and 8040A-8040C may all be coupled to the communications fabric 8010. The memory controller 8030 may be coupled to the memory 8800, when in use, and the peripherals 8040B may be coupled to the external interface 8900. In the illustrated embodiment, the CPU complex 8020 includes one or more processors (P) 8024 and a level 2 (L2) cache 8022.

[0082] Peripherals 8040A-8040B may be any collection of additional hardware functions included in SOC 8000. For example, peripherals 8040A-8040B may include video peripherals such as an image signal processor configured to process image capture data from a camera or other image sensor, a display controller configured to display video data on one or more display devices, a graphics processing unit (GPU), a video encoder / decoder or codec, a scaler, a rotator, a blender, etc. Peripherals may include audio peripherals such as microphones, speakers, interfaces to microphones and speakers, audio processors, digital signal processors, mixers, etc. Peripherals may include peripheral interface controllers (e.g., peripheral 8040B) for various interfaces 8900 external to SOC 8000, including interfaces such as Universal Serial Bus (USB), peripheral component interconnect (PCI) including PCI Express (PCIe), serial and parallel ports, etc. Peripherals may include networking peripherals such as media access controllers (MACs), etc. Peripherals may include any collection of hardware.

[0083] The CPU complex 8020 may include one or more CPU processors 8024 that act as the CPU of the SOC 8000. The CPU of the system includes a processor or processors that execute the system's main control software, such as an operating system. In general, the software executed by the CPU in use may control other components of the system to achieve the desired functionality of the system. The processor 8024 may also execute other software, such as application programs. The application programs may provide user functionality and may rely on the operating system for lower level device control. Thus, the processor 8024 may also be referred to as an application processor. The CPU complex 8020 may further include other hardware, such as an L2 cache 8022, and / or interfaces with other components of the system (e.g., interfaces with the communications fabric 8010). In general, a processor may include any circuitry and / or microcode configured to execute instructions defined within an instruction set architecture executed by that processor. Instructions and data performed by the processor in response to executing instructions may generally be stored in memory 8800, although specific instructions may be defined for direct processor access to peripheral devices as well. A processor may include a processor core implemented with other components on an integrated circuit as a system on a chip (SOC 8000) or other level of integration. A processor may also include separate microprocessors, processor cores and / or microprocessors integrated in a multi-chip module implementation, processors implemented as multiple integrated circuits, etc.

[0084] The memory controller 8030 may typically include circuitry to receive memory operations from other components of the SOC 8000 and access the memory 8800 to complete the memory operations. The memory controller 8030 may be configured to access any type of memory 8800. For example, the memory 8800 may be a static random access memory (SRAM), a dynamic RAM (DRAM), such as synchronous DRAM (SDRAM), including double data rate (DDR, DDR2, DDR3, etc.) DRAM. Low power / mobile versions of DDR DRAM may be supported (e.g., LPDDR, mDDR, etc.). The memory controller 8030 may include queues for memory operations to order (and possibly reorder) the operations and present the operations to the memory 8800. The memory controller 8030 may further include data buffers to store write data waiting to be written to memory and read data waiting to be sent back to the sender of the memory operation. In some embodiments, the memory controller 8030 may include a memory cache to store recently accessed memory data. In an SOC implementation, for example, a memory cache may reduce power consumption within the SOC by avoiding re-accessing data from memory 8800 if the data is expected to be accessed again soon. A memory cache may also be referred to as a system cache, as opposed to a dedicated cache, such as the L2 cache 8022 or a cache of the processor 8024, that serves only a particular component. Furthermore, in some embodiments, the system cache need not be located within the memory controller 8030.

[0085] In one embodiment, memory 8800 may be packaged with SOC 8000 in a chip-on-chip or package-on-package configuration. Similarly, a multi-chip module configuration of SOC 8000 and memory 8800 may be used. Such a configuration may be relatively secure (in terms of data observability) than transmission to other components in the system (e.g., to endpoints 16A-16B). Thus, protected data may reside unencrypted in memory 8800, but may be encrypted for exchange between SOC 8000 and external endpoints.

[0086] The communications fabric 8010 can be any communications interconnect and protocol for communicating between components of the SOC 8000. The communications fabric 8010 can be bus-based, including shared bus configurations, crossbar configurations, and hierarchical buses with bridges. The communications fabric 8010 can also be packet-based and hierarchical with bridges, crossbar, point-to-point, or other interconnects.

[0087] It should be noted that the number of components of SOC 8000 (and the number of subcomponents relative to those shown in FIG. 10, such as in CPU complex 8020) may vary depending on the embodiment. There may be more or less of each component / subcomponent than shown in FIG.

[0088] 11 is a block diagram of one embodiment of a system 9000 including at least one instance of SOC 8000 coupled to one or more external peripherals 9020 and an external memory 8800. A power management unit 9010 is provided that provides a supply voltage to the SOC 8000 and provides one or more supply voltages to the memory 8800 and / or the peripherals 9020. In some embodiments, more than one instance of SOC 8000 may be included (and more than one memory 8800 may also be included).

[0089] The peripheral device 9020 may include any desired circuitry depending on the type of system 9000. For example, in one embodiment, the system 9000 may be a mobile device (e.g., a personal digital assistant (PDA), a smartphone, etc.) and the peripheral device 9020 may include devices for various types of wireless communication, such as WiFi, Bluetooth, cellular, global positioning system, etc. The peripheral device 9020 may also include additional storage, including RAM storage, solid state storage, or disk storage. The peripheral device 9020 may include user interface devices, such as a display screen, including a touch display screen or a multi-touch display screen, a keyboard or other input device, a microphone, a speaker, etc. In other embodiments, the system 9000 may be any type of computing system (e.g., a desktop personal computer, a laptop, a workstation, a nettop, etc.).

[0090] The external memory 8800 may include any type of memory. For example, the external memory 8800 may be a dynamic RAM (DRAM), such as SRAM, synchronous DRAM (SDRAM), double data rate (DDR, DDR2, DDR3, etc.) SDRAM, RAMBUS DRAM, low power versions of DDR DRAM (e.g., LPDDR, mDDR, etc.). The external memory 8800 may include one or more memory modules, such as single in-line memory modules (SIMMs), dual in-line memory modules (DIMMs), etc., on which memory devices are mounted. Alternatively, the external memory 8800 may include one or more memory devices mounted on the SOC 8000 in a chip-on-chip or package-on-package implementation. Example of a multi-function device

[0091] FIG. 13 is a block diagram of a portable multifunction device according to some embodiments. In some embodiments, the device is a portable communication device, such as a mobile phone, that also includes other functions, such as a PDA, a camera, video capture, and / or music playback capabilities. Exemplary embodiments of portable multifunction devices include, without limitation, iPhone®, iPod Touch®, and iPad® devices from Apple Inc. of Cupertino, California. Other portable electronic devices, such as laptops, mobile phones, smartphones, pads, or tablet computers with a touch-sensitive surface (e.g., a touchscreen display and / or touchpad), may also be used. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., a touchscreen display and / or touchpad). In some embodiments, the device is a gaming computer with an orientation sensor (e.g., an orientation sensor in a game controller). In other embodiments, the device is not a portable communication device, but a camera and / or video camera.

[0092] In the following discussion, an electronic device is described that includes a display and a touch-sensitive surface, however, it should be understood that the electronic device may include one or more other physical user-interface devices, such as a physical keyboard, a mouse, and / or a joystick.

[0093] The device typically supports a variety of applications, such as one or more of drawing applications, presentation applications, word processing applications, website creation applications, disc authoring applications, spreadsheet applications, gaming applications, telephony applications, video conferencing applications, email applications, instant messaging applications, training support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music playback applications, and / or digital video playback applications.

[0094] Various applications that can be executed on the device can use at least one common physical user-interface device, such as a touch-sensitive surface. One or more features of the touch-sensitive surface and corresponding information displayed on the device can be adjusted and / or changed for each application and / or within each application. In this manner, the common physical architecture of the device (such as the touch-sensitive surface) can support a variety of applications with user interfaces that are intuitive and transparent to the user.

[0095] The device 2100 may include memory 2102 (which may include one or more computer-readable storage media), a memory controller 2122, one or more processing units (CPUs) 2120, a peripherals interface 2118, RF circuitry 2108, audio circuitry 2110, a speaker 2111, a touch-sensitive display system 2112, a microphone 2113, an input / output (I / O) subsystem 2106, other input control devices 2116, and an external port 2124. The device 2100 may also include one or more light sensors or cameras 2164. These components may communicate over one or more communication buses or signal lines 2103.

[0096] It should be understood that device 2100 is but one example of a portable multifunction device, and that device 2100 may include more or fewer components than shown, may combine two or more components, and may have a different configuration or arrangement of components. The various components shown in Figure 13 may be implemented as hardware, software, or a combination of hardware and software, including one or more signal processing circuits and / or application specific integrated circuits.

[0097] Memory 2102 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state memory devices. Access to memory 2102 by other components of device 2100, such as CPU 2120 and peripherals interface 2118, may be controlled by memory controller 2122.

[0098] A peripherals interface 2118 can be used to couple input and output peripherals of the device to the CPU 2120 and memory 2102. The one or more processors 2120 run or execute various software programs and / or instruction sets stored in the memory 2102 that perform various functions for the device 2100 as well as process data.

[0099] In some embodiments, the peripherals interface 2118, the CPU 2120, and the memory controller 2122 may be implemented on a single chip, such as the chip 2104. In some other embodiments, they may be implemented on separate chips.

[0100] The RF (radio frequency) circuitry 2108 transmits and receives RF signals, also referred to as electromagnetic signals. The RF circuitry 2108 converts electrical signals to electromagnetic signals and electromagnetic signals to electrical signals and communicates with communication networks and other communication devices via electromagnetic signals. To perform these functions, the RF circuitry 2108 may include well-known circuitry, including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, an encoder / decoder (codec) chipset, a subscriber identity module (SIM) card, memory, and the like. The RF circuitry 2108 may communicate via wireless communication with networks such as the Internet, also referred to as the World Wide Web (WWW), wireless networks such as intranets and / or cellular telephone networks, wireless local area networks (LANs) and / or metropolitan area networks (MANs), and other devices.Wireless communication may include any of a variety of technologies, including Global System for Mobile Communications (GSM), Enhanced Data GSM Environment (EDGE), High Speed ​​Downlink Packet Access (HSDPA), High Speed ​​Uplink Packet Access (HSUPA), Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Bluetooth, Wireless Fidelity (Wi-Fi) (e.g., IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, and / or IEEE 802.11n), Voice over Internet Protocol (VoIP), Wi-MAX, protocols for electronic mail (e.g., Internet Message Access Protocol (EMAP) and / or Post Office Protocol (POP)), instant messaging (e.g., Extensible Messaging and Presence Protocol (XMPP), Session Initiation Protocol for Instant Messaging and Presence Leveraging Extensions (SIMPLE), Instant Messaging and Presence Protocol (SMP), and the like). Any of a number of communications standards, protocols, and technologies may be used, including, but not limited to, Intermediate Message Service (IMPS), and / or Short Message Service (SMS), or any other suitable communications protocols, including communications protocols not yet developed as of the filing date of this document.

[0101] The audio circuitry 2110, speaker 2111, and microphone 2113 provide an audio interface between a user and the device 2100. The audio circuitry 2110 receives audio data from the peripherals interface 2118, converts the audio data to an electrical signal, and transmits the electrical signal to the speaker 2111. The speaker 2111 converts the electrical signal to sound waves audible to humans. The audio circuitry 2110 also receives electrical signals converted from sound waves by the microphone 2113. The audio circuitry 2110 converts the electrical signal to audio data and transmits the audio data to the peripherals interface 2118 for processing. The audio data may be retrieved from and / or transmitted to the memory 2102 and / or RF circuitry 2108 by the peripherals interface 2118. In some embodiments, the audio circuitry 2110 also includes a headset jack. The headset jack provides an interface between the audio circuitry 2110 and a removable audio input / output peripheral device, such as an output-only headphone or a headset with both an output (e.g., one- or binaural headphones) and an input (e.g., a microphone).

[0102] The I / O subsystem 2106 couples input / output peripherals of the device 2100, such as the touch screen 2112 and other input control devices 2116, to the peripherals interface 2118. The I / O subsystem 2106 can include a display controller 2156 as well as one or more input controllers 2160 for the other input control devices 2116. The one or more input controllers 2160 receive / send electrical signals from / to the other input control devices 2116. The other input control devices 2116 may include physical buttons (e.g., push buttons, rocker buttons, etc.), dials, slider switches, joysticks, click wheels, etc. In some alternative embodiments, the input controller(s) 2160 may be coupled to any (or none) of a keyboard, an infrared port, a USB port, and a pointer device such as a mouse. The one or more buttons may include up / down buttons for adjusting the volume of the speaker 2111 and / or microphone 2113. The one or more buttons may include push buttons.

[0103] The touch-sensitive display 2112 provides an input and output interface between the device and a user. The display controller 2156 receives and / or sends electrical signals to / from the touchscreen 2112. The touchscreen 2112 displays visual output to the user. This visual output may include graphics, text, icons, video, and any combination thereof (collectively referred to as "graphics"). In some embodiments, some or all of these visual outputs may correspond to user interface objects.

[0104] The touchscreen 2112 has a touch-sensitive surface, sensor, or set of sensors that accepts input from a user based on haptic and / or tactile contact. The touchscreen 2112 and display controller 2156 (along with any associated modules and / or instruction sets in memory 2102) detects contacts (and any action or interruption of contact) on the touchscreen 2112 and translates the detected contacts into interactions with user interface objects (e.g., one or more soft keys, icons, web pages, or images) displayed on the touchscreen 2112. In an example embodiment, the point of contact between the touchscreen 2112 and the user corresponds to the user's finger.

[0105] The touchscreen 2112 may use liquid crystal display (LCD), light emitting polymer display (LPD), or light emitting diode (LED) technology, although in other embodiments other display technologies may be used. The touchscreen 2112 and display controller 2156 may detect contact and any movement or interruption thereof using any of a variety of touch sensing technologies now known or later developed, including, but not limited to, capacitive, resistive, infrared, and surface ultrasonic technologies, as well as other proximity sensor arrays or other elements to determine one or more points of contact with the touchscreen 2112. In one exemplary embodiment, projected mutual capacitance sensing technology is used, such as that found in the iPhone®, iPod Touch®, and iPad® from Apple Inc. of Cupertino, California.

[0106] The touchscreen 2112 may have a video resolution of over 100 dpi. In some embodiments, the touchscreen has a video resolution of approximately 160 dpi. A user may contact the touchscreen 2112 using any suitable object or appendage, such as a stylus, a finger, etc. In some embodiments, the user interface is designed to function primarily with finger-based contacts and gestures, which may be less precise than stylus-based input due to the large contact area of ​​a finger on the touchscreen. In some embodiments, the device translates the coarse finger-based input into a precise pointer / cursor position or a command to perform the user's desired action.

[0107] In some embodiments, in addition to touchscreen 2112, device 2100 may include a touchpad (not shown) for activating or deactivating certain functions. In some embodiments, a touchpad is a touch-sensitive area of ​​a device that, unlike a touchscreen, does not display visual output. The touchpad may be a touch-sensitive surface separate from touchscreen 2112 or an extension of the touch-sensitive surface formed by the touchscreen.

[0108] The device 2100 also includes a power system 2162 for providing power to the various components. The power system 2162 may include a power management system, one or more power sources (e.g., batteries, alternating current (AC)), a recharging system, power failure detection circuitry, power converters or inverters, power status indicators (e.g., light emitting diodes (LEDs)), and any other components associated with the generation, management, and distribution of power in a portable device.

[0109] The device 2100 may also include one or more light sensors or cameras 2164. FIG. 13 shows a light sensor coupled to a light sensor controller 2158 in the I / O subsystem 2106. The light sensor 2164 may include, for example, a charge-coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS) phototransistor or photo sensor. The light sensor 2164 receives light from the environment, projected through one or more lenses, and converts the light into data representing an image. In conjunction with an imaging module 2143 (also called a camera module), the light sensor 2164 may capture still images and / or video sequences. In some embodiments, at least one light sensor may be located on the back of the device 2100, opposite the touchscreen display 2112 on the front of the device. In some embodiments, the touchscreen display may be used as a viewfinder for the acquisition of still and / or video images. In some embodiments, at least one light sensor may instead or in addition be located on the front of the device.

[0110] The device 2100 may include one or more proximity sensors 2166. FIG. 13 shows the proximity sensor 2166 coupled to the peripherals interface 2118. Alternatively, the proximity sensor 2166 may be coupled to an input controller 2160 in the I / O subsystem 2106. In some embodiments, when the multifunction device is placed near the user's ear (e.g., when the user is making a phone call), the proximity sensor is turned off and the touch screen 2112 is disabled.

[0111] The device 2100 may also include one or more orientation sensors 2168. In some embodiments, the one or more orientation sensors include one or more accelerometers (e.g., one or more linear accelerometers and / or one or more rotational accelerometers). In some embodiments, the one or more orientation sensors include one or more gyroscopes. In some embodiments, the one or more orientation sensors include one or more magnetometers. In some embodiments, the one or more orientation sensors include one or more of a Global Positioning System (GPS), a Global Navigation Satellite System (GLONASS), and / or other global navigation system receivers. The GPS, GLONASS, and / or other global navigation system receivers may be used to obtain information regarding the location and orientation (e.g., portrait or landscape) of the device 2100. In some embodiments, the one or more orientation sensors include any combination of orientation / rotation sensors. FIG. 13 illustrates one or more orientation sensors 2168 coupled to the peripheral interface 2118. Alternatively, one or more orientation sensors 2168 may be coupled to an input controller 2160 in the I / O subsystem 2106. In some embodiments, information is displayed on a touchscreen display in portrait or landscape view based on an analysis of data received from the one or more orientation sensors.

[0112] In some embodiments, device 2100 may also include one or more other sensors (not shown), including but not limited to an ambient light sensor and a motion detector. These sensors may be coupled to peripherals interface 2118 or, alternatively, to an input controller 2160 in I / O subsystem 2106. For example, in some embodiments, device 2100 may include at least one forward-facing (away from the user) light sensor and at least one rear-facing (towards the user) light sensor that may be used to gather ambient light metrics from the device's 2100 environment for use in video and image capture, processing, and display applications.

[0113] In some embodiments, the software components stored in memory 2102 include an operating system 2126, a communications module 2128, a touch / motion module (or set of instructions) 2130, a graphics module 2132, a text input module 2134, a global positioning system (GPS) module 2135, and applications 2136. Additionally, in some embodiments, memory 2102 stores device / global internal state 2157. Device / global internal state 2157 includes one or more of the following: active application state, indicating which applications, if any, are currently active; display state, indicating which applications, views, or other information are occupying various regions of the touchscreen display 2112; sensor state, including information obtained from the device's various sensors and input control devices 2116; and location information regarding the location and / or orientation of the device.

[0114] Operating system 2126 (e.g., an embedded operating system such as Darwin®, RTXC®, LINUX®, UNIX®, OS X®, WINDOWS®, or VxWorks®) includes various software components and / or drivers for controlling and managing common system tasks (e.g., memory management, storage device control, power management, etc.) and facilitating communication between various hardware and software components.

[0115] The communications module 2128 facilitates communication with other devices via one or more external ports 2124 and includes various software components for processing data received by the RF circuitry 2108 and / or the external port 2124. The external port 2124 (e.g., Universal Serial Bus (USB), FIREWIRE®, etc.) is adapted to couple to other devices directly or indirectly via a network (e.g., the Internet, wireless LAN, etc.). In some embodiments, the external port is a multi-pin (e.g., 30-pin) connector identical to or similar and / or compatible with the 30-pin connector used on the iPod (trademark of Apple Inc.) device.

[0116] The contact / motion module 2130 (in conjunction with the display controller 2156) can detect contact with the touch screen 2112 and other touch-sensing devices (e.g., a touchpad or a physical click wheel). The contact / motion module 2130 includes various software components for performing various operations related to detecting contact, such as determining if a contact has occurred (e.g., detecting a finger down event), determining if there is movement of the contact and tracking the movement across the touch-sensitive surface (e.g., detecting one or more finger dragging events), and determining if the contact has ended (e.g., detecting a finger up event or an interruption of the contact). The contact / motion module 2130 receives contact data from the touch-sensitive surface. Determining the movement of a contact point represented by a set of contact data may include determining the speed (magnitude), velocity (magnitude and direction), and / or acceleration (change in magnitude and / or direction) of the contact point. These operations can be applied to a single contact (e.g., one finger contact) or multiple simultaneous contacts (e.g., "multi-touch" / multiple finger contacts). In some embodiments, the contact / movement module 2130 and the display controller 2156 detect contact on a touchpad.

[0117] The contact / motion module 2130 can detect gesture input by a user. Different gestures on a touch-sensitive surface have different contact patterns. Thus, gestures can be detected by detecting a particular contact pattern. For example, detecting a finger tap gesture includes detecting a finger down event followed by a finger up (lift off) event at the same location (or substantially the same location) as the finger down event (e.g., at the location of an icon). As another example, detecting a finger swipe gesture on a touch-sensitive surface includes detecting a finger down event followed by one or more finger drag events followed by a finger up (lift off) event.

[0118] Graphics module 2132 includes various software components for rendering and displaying graphics on touch screen 2112 or other display, including components for changing the brightness of the displayed graphics. As used herein, the term "graphics" includes any object that can be displayed to a user, including, but not limited to, text, web pages, icons (such as user interface objects including soft keys), digital images, video, animation, and the like.

[0119] In some embodiments, the graphics module 2132 stores data representing the graphics to be used. Each graphic may be assigned a corresponding code. The graphics module 2132 receives one or more codes specifying the graphics to be displayed, including, as appropriate, coordinate data and other graphic property data from an application or the like, and generates screen image data for output to the display controller 2156.

[0120] The text input module 2134, which may be a component of the graphics module 2132, provides a soft keyboard for entering text within various applications that require text input.

[0121] The GPS module 2135 determines the location of the device and provides this information for use within various applications (e.g., to the telephone module 2138 for use in location-based dialing, to the camera module 2143 as photo / video metadata, and to applications that provide location-based services, such as map / navigation applications).

[0122] Applications 2136 may include, but are not limited to, one or more of the following modules (or sets of instructions), or a subset or superset thereof: ●Telephone module 2138, ●Video conferencing module 2139, A camera module 2143 for still and / or video image processing; ● Image management module 2144, ● Browser module 2147, ● Search module 2151, a video and music playback module 2152, which may consist of a video playback module and a music playback module; and / or ●Online video module 2155.

[0123] Examples of other applications 2136 that may be stored in memory 2102 include other word processing applications, other image editing applications, drawing applications, presentation applications, communication / social media applications, map applications, JAVA® enabled applications, encryption, digital rights management, voice recognition, and voice duplication.

[0124] The telephone module 2138, along with the RF circuitry 2108, audio circuitry 2110, speaker 2111, microphone 2113, touch screen 2112, display controller 2156, contact module 2130, graphics module 2132, and text input module 2134, may be used to enter a series of characters corresponding to a telephone number, access one or more telephone numbers in an address book, modify an entered telephone number, dial each telephone number, conduct a conversation, and disconnect or hang up when the conversation is completed. As mentioned above, wireless communication may use any of a variety of communication standards, protocols, and technologies.

[0125] Along with RF circuitry 2108, audio circuitry 2110, speaker 2111, microphone 2113, touch screen 2112, display controller 2156, light sensor 2164, light sensor controller 2158, contact / motion module 2130, graphics module 2132, text input module 2134, and telephone module 2138, video conferencing module 2139 contains executable instructions for initiating, conducting, and terminating a video conference between a user and one or more other participants in accordance with the user's instructions.

[0126] The camera module 2143, along with the touch screen 2112, display controller 2156, light sensor(s) 2164, light sensor controller 2158, contact / motion module 2130, graphics module 2132, and image management module 2144, contain executable instructions to capture still images or video (including video streams) and store them in memory 2102, change characteristics of a still image or video, or delete a still image or video from memory 2102.

[0127] The image management module 2144, along with the touch screen 2112, display controller 2156, contact / motion module 2130, graphics module 2132, text input module 2134, and camera module 2143, contain executable instructions for arranging, modifying (e.g., editing) and otherwise manipulating, labeling, deleting, presenting (e.g., in a digital slide show or album), and storing still images and / or videos.

[0128] The browser module 2147, along with the RF circuitry 2108, touch screen 2112, display system controller 2156, contact / motion module 2130, graphics module 2132, and text input module 2134, contains executable instructions for browsing the Internet according to a user's instructions, including retrieving, linking to, receiving, and displaying web pages or portions thereof, as well as attachments and other files linked to web pages.

[0129] The search module 2151, along with the touch screen 2112, display system controller 2156, contact / motion module 2130, graphics module 2132, and text input module 2134, contains executable instructions to search for text, music, sound, images, video, and / or other files in memory 2102 that match one or more search criteria (e.g., one or more user-specified search terms) in accordance with a user's instructions.

[0130] In conjunction with the touchscreen 2112, display system controller 2156, contact / motion module 2130, graphics module 2132, audio circuitry 2110, speaker 2111, RF circuitry 2108, and browser module 2147, video and music playback module 2152 includes executable instructions that enable a user to download and play pre-recorded music or other sound files stored in one or more file formats, such as MP3 or AAC files, as well as executable instructions to display, present, or otherwise play videos (on the touchscreen 2112 or on an external display connected via external port 2124). In some embodiments, device 2100 may include the functionality of an MP3 player, such as an iPod (a trademark of Apple Inc.).

[0131] The online video module 2155, along with the touchscreen 2112, display system controller 2156, contact / motion module 2130, graphics module 2132, audio circuitry 2110, speaker 2111, RF circuitry 2108, text input module 2134, and browser module 2147, contains instructions that enable a user to access, browse, receive (e.g., by streaming and / or downloading), play (e.g., on the touchscreen or on an external display connected via external port 2124), and otherwise manage online videos in one or more video formats, such as H.264 / AVC format or H.265 / HEVC format.

[0132] Each of the above-identified modules and applications corresponds to a set of executable instructions that perform one or more of the above-identified functions and methods described in the present application (e.g., computer-implemented methods and other information processing methods described herein). These modules (i.e., sets of instructions) need not be implemented as separate software programs, procedures, or modules, and thus, in various embodiments, various subsets of these modules may be combined or otherwise rearranged. In some embodiments, memory 2102 may store a subset of the modules and data structures identified above. Additionally, memory 2102 may store additional modules and data structures not described above.

[0133] In some embodiments, device 2100 is a device in which operation of a predefined set of functions on the device is performed exclusively via a touchscreen and / or touchpad. By using the touchscreen and / or touchpad as the primary input control device for operation of device 2100, the number of physical input control devices (such as push buttons, dials, and the like) on device 2100 can be reduced.

[0134] A predefined set of functions that can be performed exclusively via the touchscreen and / or touchpad includes navigation between user interfaces. In some embodiments, the touchpad, when touched by a user, navigates the device 2100 to a main, home, or root menu from any user interface that may be displayed on the device 2100. In such embodiments, the touchpad may be referred to as a "menu button." In some other embodiments, the menu button may be a physical push button or other physical input control device instead of a touchpad.

[0135] 14 illustrates a portable multifunction device 2100 having a touch screen 2112, according to some embodiments. The touch screen can display one or more graphics in a user interface (UI) 2200. In some embodiments of the device 2100, a user may select one or more of the graphics, for example, by making a gesture on the graphic using one or more fingers 2202 (not necessarily drawn to scale) or one or more styluses 2203 (not necessarily drawn to scale).

[0136] The device 2100 may also include one or more physical buttons, such as a “home” or menu button 2204. As previously mentioned, the menu button 2204 may be used for navigation to any application 2136 in a set of applications that may be executed on the device 2100. Alternatively, in some embodiments, the menu button may be implemented as a soft key in a GUI displayed on the touch screen 2112.

[0137] In some embodiments, the device 2100 includes a touch screen 2112, a home or menu button 2204, a push button 2206 for turning power to the device on / off and locking the device, a volume control button(s) 2208, a Subscriber Identity Module (SIM) card slot 2210, a headset jack 2212, and an external port 2124 for docking / charging. The push button 2206 may be used to turn power on / off on the device by pressing the button and holding the button pressed for a predefined time interval, and to lock the device and / or unlock the device or initiate an unlocking process by pressing the button and releasing the button before the predefined time interval has elapsed. In an alternative embodiment, the device 2100 may also accept verbal input through a microphone 2113 to activate or deactivate some functions.

[0138] The device 2100 may also include one or more cameras 2164. The cameras 2164 may include, for example, a charge-coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor or photosensor. The cameras 2164 receive light from the environment, projected through one or more lenses, and convert the light into data representing an image or video frame. In some embodiments, at least one camera 2164 may be located on the back of the device 2100, opposite the touchscreen display 2112 on the front of the device. In some embodiments, instead or in addition, at least one camera 2164 may be located on the front of the device having the touchscreen display 2112, such that an image of the user may be captured for a video conference, for example, at the same time that the user views other video conference participants on the touchscreen display 2112. In some embodiments, at least one camera 2164 may be located on the front of the device 2100, and at least one camera 2164 may be located on the back of the device 2100. In some embodiments, the touchscreen display 2112 may be used as a viewfinder and / or user interface for still image and / or video sequence capture applications.

[0139] Device 2100 may include video and image processing hardware and / or software, including but not limited to video encoding and / or decoding components, codecs, modules, or pipelines, that may be used to capture, process, convert, compress, decompress, store, modify, transmit, display, and otherwise manage and manipulate still images and / or video frames or video sequences captured via camera 2164 or otherwise obtained (e.g., via a network interface). In some embodiments, device 2100 may also include one or more light sensors or other sensors that may be used to gather ambient light or other metrics from the environment of device 2100 for use in the capture, processing, and display of video and images. Example of a Computer System

[0140] 12 illustrates an exemplary computer system 2900 that may be configured to perform any or all of the above-described embodiments. In different embodiments, the computer system 2900 may be any of a variety of types of devices, including, but not limited to, a personal computer system, a desktop computer, a laptop, notebook, tablet, slate, pad, or netbook computer, a mainframe computer system, a handheld computer, a workstation, a network computer, a camera, a set-top box, a mobile device, a consumer device, an application server, a storage device, a video recording device, a peripheral device such as a switch, modem, router, or generally any type of computing or electronic device.

[0141] Various embodiments as described herein may be implemented within one or more computer systems 2900 that may interact with various other devices. It should be noted that, according to various embodiments, any of the components, operations, or functions described above in connection with FIGS. 1-11 may be implemented on one or more computers configured as computer system 2900 of FIG. 12. In the illustrated embodiment, computer system 2900 includes one or more processors 2910 coupled to system memory 2920 via an input / output (I / O) interface 2930. Computer system 2900 further includes a network interface 2940 coupled to I / O interface 2930, one or more input / output devices or components 2950, ​​such as a cursor control device 2960, a keyboard 2970, a display(s) 2980, a camera(s) 2990, and a sensor(s) 2992, including, but not limited to, a light sensor and a motion detector. It is contemplated that in some cases an embodiment may be implemented using a single instance of computer system 2900, while in other embodiments, multiple such systems, or multiple nodes that make up computer system 2900, may be configured to host different portions or instances of the embodiments. For example, in one embodiment, some elements may be implemented via one or more nodes of computer system 2900 that are separate from the nodes that implement other elements.

[0142] In various embodiments, computer system 2900 may be a uniprocessor system including one processor 2910, or a multiprocessor system including several processors 2910 (e.g., two, four, eight, or another suitable number). Processor 2910 may be any suitable processor capable of executing instructions. For example, in various embodiments, processor 2910 may be a general-purpose or embedded processor implementing any of a variety of instruction set architectures (ISAs), such as the x829, PowerPC, SPARC, or MIPS ISAs, or any other suitable ISA. In a multiprocessor system, each of processors 2910 may, but need not, commonly implement the same ISA.

[0143] The system memory 2920 may be configured to store program instructions 2922 and / or data accessible by the processor 2910. In various embodiments, the system memory 2920 may be implemented using any suitable memory technology, such as static random access memory (SRAM), synchronous dynamic RAM (SDRAM), non-volatile / flash type memory, or any other type of memory. In the illustrated embodiment, the program instructions 2922 may be configured to perform any of the functions described herein. Furthermore, the memory 2920 may include any of the information or data structures described herein. In some embodiments, the program instructions and / or data may be received, transmitted, or stored on different types of computer-accessible media or on similar media separate from the system memory 2920 or the computer system 2900. Although the computer system 2900 is described as performing the functions of the functional blocks of the previous figures, any of the functions described herein may be performed via such a computer system.

[0144] In one embodiment, I / O interface 2930 may be configured to coordinate I / O traffic between processor 2910, system memory 2920, and any peripheral devices within the device, including network interface 2940 or other peripheral interfaces such as input / output devices 2950. In some embodiments, I / O interface 2930 may perform any necessary protocol, timing, or other data conversions to convert data signals from one component (e.g., system memory 2920) into a format suitable for use by another component (e.g., processor 2910). In some embodiments, I / O interface 2930 may include support for devices attached through various types of peripheral buses, such as, for example, variants of the Peripheral Component Interconnect (PCI) bus standard or the Universal Serial Bus (USB) standard. In some embodiments, the functionality of I / O interface 2930 may be split into two or more separate components, such as, for example, a northbridge and a southbridge. Additionally, in some embodiments, some or all of the functionality of I / O interface 2930, such as the interface to system memory 2920, may be incorporated directly within processor 2910.

[0145] Network interface 2940 may be configured to allow data to be exchanged between computer system 2900 and other devices (e.g., carrier devices or agent devices) attached to network 2985 or between nodes of computer system 2900. In various embodiments, network 2985 may include one or more networks, including, but not limited to, a local area network (LAN) (e.g., an Ethernet or internal company network), a wide area network (WAN) (e.g., the Internet), a wireless data network, any other electronic data network, or any combination thereof. In various embodiments, network interface 2940 may support communication over a general wired or wireless data network, such as any suitable type of Ethernet network, communication / telephone networks, such as, for example, an analog voice network or a digital fiber communication network, communication over a storage area network, such as a Fibre Channel SAN, or communication over any other suitable type of network and / or protocol.

[0146] In some embodiments, input / output devices 2950 may include one or more display terminals, keyboards, keypads, touch pads, scanning devices, voice or optical recognition devices, or any other devices suitable for inputting or accessing data by one or more computer systems 2900. Multiple input / output devices 2950 may be present within computer system 2900 or may be distributed on various nodes of computer system 2900. In some embodiments, similar input / output devices may be separate from computer system 2900 and may interact with one or more nodes of computer system 2900 through wired or wireless connections, such as through network interface 2940.

[0147] 12, memory 2920 may include program instructions 2922 that may be executable by the processor to perform any of the elements or operations described above. In one embodiment, the program instructions may perform the method described above. In other embodiments, different elements and / or data may be included. It should be noted that the data may include any of the data or information described above.

[0148] Those skilled in the art will appreciate that computer system 2900 is merely exemplary and is not intended to limit the scope of the embodiments. In particular, computer systems and devices may include any combination of hardware or software capable of performing the depicted functions, including computers, network devices, Internet appliances, PDAs, wireless telephones, pagers, and the like. Computer system 2900 may also be connected to other devices not shown, or may instead operate as a stand-alone system. In addition, functionality provided by the depicted components may be combined into fewer components or distributed among additional components in some embodiments. Similarly, in some embodiments, functionality of some of the depicted components may not be provided and / or other additional functionality may be available.

[0149] Those skilled in the art will also appreciate that while various items are shown as being stored in memory or on a storage device during use, these items or portions thereof may be transferred between memory and other storage devices for purposes of memory management and data integrity. Alternatively, in other embodiments, some or all of the software components may execute in memory on another device and communicate with the illustrated computer system via computer-to-computer communications. Some or all of the system components or data structures may also be stored (e.g., instructions or structured data) on a computer-accessible medium or portable article to be read by an appropriate drive, various examples of which are described above. In some embodiments, instructions stored on a computer-accessible medium separate from the computer system 2900 may be transmitted to the computer system 2900 via a signal, such as an electrical, electromagnetic, or digital signal, conveyed over a transmission medium or a communications medium, such as a network and / or a wireless link. Various embodiments may further include receiving, sending, or storing instructions and / or data executed on a computer-accessible medium in accordance with the above description. Generally speaking, a computer-accessible medium may include non-transitory computer-readable storage media or memory media, such as magnetic or optical media, e.g., volatile or non-volatile media, such as disks or DVD / CD-ROMs, RAM (e.g., SDRAM, DDR, RDRAM, SRAM, etc.), ROM, etc. In some embodiments, the computer-accessible medium may include a transmission medium or signal, such as an electrical, electromagnetic, or digital signal, conveyed over a communication medium, such as a network and / or a wireless link.

[0150] In different embodiments, the methods described herein may be implemented in the form of software, hardware, or a combination thereof. Additionally, the order of blocks of the methods may be changed, and various elements may be added, reordered, combined, omitted, modified, etc. Various modifications and changes may be made as would be apparent to a person skilled in the art having the benefit of this disclosure. The various embodiments described herein are illustrative and not limiting. Many variations, modifications, additions, and improvements are possible. Thus, multiple instances may be provided for components described herein as a single instance. Boundaries between various components, operations, and data stores are arbitrary, and stated operations are illustrated in the context of specific example configurations. Other allocations of functionality are contemplated and are within the scope of the following claims. Finally, structures and functions presented as separate components in the example configurations may be implemented as combined structures or components. These variations, modifications, additions, and improvements, as well as other variations, modifications, additions, and improvements, may be included within the scope of the embodiments, as defined in the following claims.

Claims

1. 1. A system comprising: a video decoder configured to perform operations comprising: receiving a bitstream including: (i) encoded video data corresponding to a plurality of frames of source video data encoded by an encoder, the encoded video data representing a focus range of luminance values ​​of the source video data; and (ii) format metadata providing information regarding the focus range of luminance values ​​and a plurality of transfer functions used to map a full dynamic range of the source video data to the focus range of luminance values, wherein different ones of the plurality of transfer functions are used corresponding to the plurality of frames; obtaining the encoded video data and the format metadata from the bitstream; decoding a particular frame of the plurality of frames from the encoded video data, the decoding comprising: selecting a particular transfer function from the plurality of transfer functions that corresponds to the particular frame using the information provided by the format metadata; and determining a luminance value for the particular frame using the focus range of luminance values ​​indicated by the format metadata and the particular transfer function; and Including, the system.

2. 2. The system of claim 1, wherein the plurality of transfer functions include: (i) a first transfer function configured to crop source video data corresponding to a frame of the plurality of frames according to a focus range of the source video data corresponding to the frame; and (ii) a second transfer function configured to map the cropped source video data corresponding to the frame to an available number of bits used to represent the encoded video data. system.

3. 3. The system of claim 2, wherein the source video data and the encoded video data are represented using different numbers of bits; a first number of bits used to represent the source video data is greater than a second number of bits used to represent the encoded video data; system.

4. 4. The system of claim 3, wherein the decoder is configured to decode the encoded video data obtained from the bitstream using a third number of bits different than the first number of bits or the second number of bits. system.

5. 3. The system of claim 2, wherein a first number of the plurality of frames are encoded using one or more portions of the first transfer function, and a second number of the plurality of frames are encoded using the second transfer function. system.

6. 6. The system of claim 5, wherein the format metadata includes information indicative of the one or more portions of the first transfer function. system.

7. 2. The system of claim 1, wherein a first transfer function and a different second transfer function of the plurality of transfer functions are used to map a first frame and a second frame of the plurality of frames, respectively. system.

8. 8. The system of claim 7, wherein the first frame and the second frame are adjacent frames of the source video data. system.

9. 13. A method performed by a video decoder, the method comprising: receiving a bitstream including: (i) encoded video data corresponding to a plurality of frames of source video data encoded by an encoder, the encoded video data representing a focus range of luminance values ​​of the source video data; and (ii) format metadata providing information regarding the focus range of luminance values ​​and a plurality of transfer functions used to map a full dynamic range of the source video data to the focus range of luminance values, wherein different ones of the plurality of transfer functions are used corresponding to the plurality of frames; obtaining the encoded video data and the format metadata from the bitstream; decoding a particular frame of the plurality of frames from the encoded video data, the decoding comprising: selecting a particular transfer function from the plurality of transfer functions that corresponds to the particular frame using the information provided by the format metadata; and determining a luminance value for the particular frame using the focus range of luminance values ​​indicated by the format metadata and the particular transfer function; and A method comprising:

10. 10. The method of claim 9, wherein the plurality of transfer functions comprises: (i) a first transfer function configured to crop source video data corresponding to a frame of the plurality of frames according to a focus range of the source video data corresponding to the frame; and (ii) a second transfer function configured to map the cropped source video data corresponding to the frame to an available number of bits used to represent the encoded video data. method.

11. 11. The method of claim 10, wherein the source video data and the encoded video data are represented using different numbers of bits; a first number of bits used to represent the source video data is greater than a second number of bits used to represent the encoded video data; method.

12. 12. The method of claim 11, wherein the decoder is configured to decode the encoded video data obtained from the bitstream using a third number of bits different from the first number of bits or the second number of bits. method.

13. 11. The method of claim 10, wherein a first number of the plurality of frames are encoded using one or more portions of the first transfer function, and a second number of the plurality of frames are encoded using the second transfer function. method.

14. 14. The method of claim 13, wherein the format metadata includes information indicative of the one or more portions of the first transfer function. method.

15. 10. The method of claim 9, wherein a first transfer function and a different second transfer function of the plurality of transfer functions are used to map a first frame and a second frame of the plurality of frames, respectively. method.

16. 16. The method of claim 15, wherein the first frame and the second frame are adjacent frames of the source video data. method.

17. A non-transitory computer-readable medium having instructions stored thereon that, when executed by one or more processors, cause a video decoder to perform operations, the operations including: receiving a bitstream including: (i) encoded video data corresponding to a plurality of frames of source video data encoded by an encoder, the encoded video data representing a focus range of luminance values ​​of the source video data; and (ii) format metadata providing information regarding the focus range of luminance values ​​and a plurality of transfer functions used to map a full dynamic range of the source video data to the focus range of luminance values, wherein different ones of the plurality of transfer functions are used corresponding to the plurality of frames; obtaining the encoded video data and the format metadata from the bitstream; decoding a particular frame of the plurality of frames from the encoded video data, the decoding comprising: selecting a particular transfer function from the plurality of transfer functions that corresponds to the particular frame using the information provided by the format metadata; and determining a luminance value for the particular frame using the focus range of luminance values ​​indicated by the format metadata and the particular transfer function; and A non-transitory computer readable medium comprising:

18. 20. The non-transitory computer-readable medium of claim 17, wherein the plurality of transfer functions includes: (i) a first transfer function configured to crop source video data corresponding to a frame of the plurality of frames according to a focus range of the source video data corresponding to the frame; and (ii) a second transfer function configured to map the cropped source video data corresponding to the frame to an available number of bits used to represent the encoded video data. Non-transitory computer-readable medium.

19. 20. The non-transitory computer-readable medium of claim 18, wherein the source video data and the encoded video data are represented using different numbers of bits; a first number of bits used to represent the source video data is greater than a second number of bits used to represent the encoded video data; the decoder is configured to decode the encoded video data obtained from the bitstream using a third number of bits different from the first number of bits or the second number of bits. Non-transitory computer-readable medium.

20. 20. The non-transitory computer readable medium of claim 18, wherein a first number of the plurality of frames are encoded using one or more portions of the first transfer function and a second number of the plurality of frames are encoded using the second transfer function; the format metadata includes information indicative of the one or more portions of the first transfer function; Non-transitory computer-readable medium.

21. 20. The non-transitory computer readable medium of claim 17, wherein a first transfer function and a different second transfer function of the plurality of transfer functions are used to map a first frame and a second frame of the plurality of frames, respectively; the first frame and the second frame are adjacent frames of the source video data; Non-transitory computer-readable medium.

Citation Information

Patent Citations

  • Video coding using temporal coherence dynamic range mapping

    JP2013545371A

  • Image processing device and method

    WO2014002901A1