WO2023160295A1 - 视频处理方法和装置 - Google Patents
视频处理方法和装置 Download PDFInfo
- Publication number
- WO2023160295A1 WO2023160295A1 PCT/CN2023/071669 CN2023071669W WO2023160295A1 WO 2023160295 A1 WO2023160295 A1 WO 2023160295A1 CN 2023071669 W CN2023071669 W CN 2023071669W WO 2023160295 A1 WO2023160295 A1 WO 2023160295A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- hdr video
- video
- brightness
- image sequence
- hdr
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/741—Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
- H04N23/632—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
- H04N23/661—Transmitting camera control signals through networks, e.g. control via the Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/82—Camera processing pipelines; Components thereof for controlling camera response irrespective of the scene brightness, e.g. gamma correction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2621—Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20208—High dynamic range [HDR] image processing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/841—Camera processing pipelines; Components thereof for processing colour signals to modify gamut
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N25/00—Circuitry of solid-state image sensors [SSIS]; Control thereof
- H04N25/40—Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled
- H04N25/46—Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled by combining or binning pixels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N25/00—Circuitry of solid-state image sensors [SSIS]; Control thereof
- H04N25/50—Control of the SSIS exposure
- H04N25/57—Control of the dynamic range
- H04N25/59—Control of the dynamic range by controlling the amount of charge storable in the pixel, e.g. modification of the charge conversion ratio of the floating node capacitance
Definitions
- the present application relates to the technical field of terminals, and in particular to a video processing method and device.
- the terminal device can obtain HDR video by processing multiple frames of images obtained by the camera.
- the HDR video can be configured according to static metadata, such as the HDR conversion curve-perceptual quantization (PQ)
- PQ HDR conversion curve-perceptual quantization
- the curve is fixedly mapped according to the absolute brightness.
- the absolute brightness may be a reference display brightness of a display of a terminal device, such as 1000 nits (nit).
- Embodiments of the present application provide a video processing method and device, so that the first device can match different dynamic metadata for scenes of different brightness corresponding to multi-frame images acquired based on the camera, and use different dynamic metadata to match the multi-frame
- the images are adjusted respectively to obtain HDR video, and the HDR video is sent to the second device, so that the second device can perform brightness mapping on the HDR video based on the preset brightness of the HDR video, and display video content with appropriate brightness.
- the embodiment of the present application provides a video processing method, which is applied to a video processing system.
- the video processing system includes: a first device and a second device, and the method includes: the first device receives an operation of starting shooting in movie mode ; Movie mode is a mode for recording high dynamic range HDR video; in response to the operation of starting shooting, the first device acquires the first image sequence based on the camera; the first image sequence corresponds to the first brightness scene; the first device obtains the first image sequence based on the first The image sequence and the first dynamic metadata corresponding to the first brightness scene are encoded to obtain the first HDR video; the first dynamic metadata includes preset brightness; the second device acquires the first HDR video from the first device; the second The device adjusts the brightness of the first HDR video based on the preset brightness to obtain the second HDR video; the second device plays the second HDR video.
- the first device can match different dynamic metadata for scenes of different brightness corresponding to multiple frames of images acquired based on the camera, use different dynamic metadata to adjust the multiple frames of images respectively, obtain HDR video, and convert the HDR
- the video is sent to the second device, so that the second device can perform brightness mapping on the HDR video based on the preset brightness of the HDR video, and display video content with appropriate brightness.
- the second device adjusts the brightness of the first HDR video based on the preset brightness to obtain the second HDR video, including: the second device determines a brightness ratio; the brightness ratio is the peak brightness of the second device and A ratio between brightnesses is preset; the second device adjusts the brightness of the first HDR video based on the brightness ratio to obtain a second HDR video.
- the second device can also adjust the brightness of the first HDR video according to the peak brightness supported by the hardware of the second device, so that the adjusted second HDR video has a better playback effect.
- the method further includes: the first device continues to acquire a second image sequence based on the camera; wherein, the second image sequence corresponds to a second brightness scene; the first brightness scene is different from the second brightness scene; the first The device encodes the first HDR video based on the first image sequence and the first dynamic metadata corresponding to the first brightness scene, including: the first device based on the first image sequence, the second image sequence, and the first dynamic metadata corresponding to the first brightness scene The dynamic metadata and the second dynamic metadata corresponding to the second brightness scene are encoded to obtain the first HDR video. In this way, the first device can match corresponding dynamic metadata for different brightness scenes, and obtain an HDR video based on encoding of different dynamic metadata.
- the method further includes: the first device encodes the first image sequence Perform image preprocessing to obtain a first image sequence after image preprocessing; the first device performs gamma correction processing on the first image sequence after image preprocessing to obtain a first image sequence after gamma correction processing; the first device Performing 3D lookup table processing on the first image sequence after gamma correction processing to obtain the first image sequence after 3D lookup table processing; wherein, the first image sequence after 3D lookup table processing includes the first image sequence corresponding to First static metadata: the first device encodes the first HDR video based on the first image sequence and the first dynamic metadata corresponding to the first brightness scene, including: the first image sequence processed by the first device based on the 3D lookup table , and the first dynamic metadata corresponding to the first brightness scene are encoded to obtain the first HDR video. In this way, the first device can obtain an HDR video
- the first HDR video includes: first static metadata and first dynamic metadata.
- the method further includes: when the second device determines that it supports processing the first static metadata, the second device decodes the second HDR video into the first image sequence, and the first static metadata ; The second device encodes a third HDR video based on the first image sequence and the first static metadata; the second HDR video is different from the third HDR video.
- the second device can be compatible with dynamic metadata and static metadata, and the second device that does not support dynamic metadata processing can generate HDR video based on static metadata.
- the type of the first HDR video is HDR10+ video
- the type of the second HDR video is HDR10+ video
- the type of the third HDR video is HDR10 video.
- the first device receiving the operation of starting shooting in the movie mode includes: the first device receives the operation for turning on the movie mode; in response to the operation of turning on the movie mode, the first device displays the first interface; the first interface includes: a control for recording HDR video and a control for enabling shooting; when the state of the control for recording HDR video is off, the first device receives the control for enabling Record the operation of the control to obtain the HDR video; in response to the operation of the control used to record the HDR video, the first device displays the second interface; the second interface includes: a prompt message indicating that the 4K HDR10+ mode has been turned on; When the state of the control for recording the HDR video is on, the first device receives an operation on the control for starting shooting. In this way, the first device can determine whether to capture a 4K HDR video based on the user's flexible operation of the controls used to record the HDR video.
- the method further includes: when the state of the control for recording the HDR video is on, the first device receives an operation for turning off the control for recording the HDR video; Due to the operation of the controls for recording the HDR video, the first device displays a third interface; the third interface includes: a prompt message indicating that the 4K HDR10+ mode is turned off. In this way, the first device can determine whether the 4K HDR10+ mode is currently enabled according to the prompt information, thereby improving the user experience of the video recording function.
- the method further includes: the first device receives an operation of turning on the movie mode for the first time; in response to the first operation of turning on the movie mode, the first device displays a fourth interface; in the fourth interface Including: controls for recording HDR video, and a prompt message indicating that 4K HDR10+ video will be recorded after turning on the control for recording HDR video.
- the user when the user first turns on the movie mode, the user can determine how to turn on the 4K HDR10+ mode based on the guidance of the prompt information, thereby improving the user's experience with the video recording function.
- the first device receiving the operation of starting shooting in the movie mode includes: the first device receives the operation for turning on the movie mode; in response to the operation of turning on the movie mode, the first device displays the fifth interface; the fifth interface includes: a control for viewing the setting items corresponding to the first application, and a control for starting shooting; the first device receives an operation on the control for viewing the setting items corresponding to the first application; the response For the operation of checking the control of the setting item corresponding to the first application, the first device displays the sixth interface; the sixth interface includes: the first control for recording video with 10-bit HDR in movie mode and switching the video to 4K ; When the state of the first control is on, the first device receives an operation on the control for enabling shooting. In this way, the user can flexibly control the movie HDR function control in the setting function according to the shooting needs, and then realize the recording of HDR10+ video.
- the first application may be a camera application.
- the method further includes: the first device receives an operation on the control for viewing the function details in the first application; in response to the operation on the control for viewing the function details in the first application, the first The device displays a seventh interface; wherein, the seventh interface includes: the function details corresponding to the movie mode, and the function details of the movie mode are used to indicate that the movie mode can record 4K HDR10+ video.
- the seventh interface includes: the function details corresponding to the movie mode, and the function details of the movie mode are used to indicate that the movie mode can record 4K HDR10+ video.
- the method further includes: the first device receives an operation for opening the second application; in response to the operation of opening the second application, the first device displays an eighth interface; wherein, the eighth interface includes : the first HDR video, and the identification corresponding to the first HDR video; the identification is used to indicate the type of the first HDR video; the first device receives the operation for the first HDR video; in response to the operation for the first HDR video, the first The device displays a ninth interface; the ninth interface includes: an identification. In this way, the user can accurately find the HDR10+ video in the gallery application according to the logo, increasing the convenience for the user to view the HDR10+ video.
- the second application may be a gallery application program.
- the method further includes: the second device displays a tenth interface; wherein, the tenth interface includes: The HDR video is the prompt information of the HDR10+ video containing dynamic metadata, the control for allowing to receive the first HDR video, and the control for refusing to receive the first HDR video; the second device receives the control for allowing to receive the first HDR video operation of the control; in response to the operation of the control allowing to receive the first HDR video, the second device displays an eleventh interface; wherein, the eleventh interface includes an indication for playing the first HDR video based on dynamic metadata Prompt information. In this way, the second device can decode and play the HDR10+ video sent by the first device.
- the embodiment of the present application provides a video processing method, which is applied to the first device, and the method includes: the first device receives the operation of starting shooting in the movie mode; the movie mode is used to record and obtain high dynamic range HDR video mode; in response to the operation of starting shooting, the first device acquires the first image sequence based on the camera; the first image sequence corresponds to the first brightness scene; the first device obtains the first dynamic element based on the first image sequence and the first brightness scene
- the data is encoded to obtain the first HDR video; the first dynamic metadata includes preset brightness; the first device sends the first HDR video to the second device.
- the first device can match different dynamic metadata for scenes of different brightness corresponding to multiple frames of images acquired based on the camera, and use different dynamic metadata to adjust the multiple frames of images respectively to obtain HDR videos.
- the method further includes: the first device continues to acquire a second image sequence based on the camera; wherein, the second image sequence corresponds to a second brightness scene; the first brightness scene is different from the second brightness scene; the first The device encodes the first HDR video based on the first image sequence and the first dynamic metadata corresponding to the first brightness scene, including: the first device based on the first image sequence, the second image sequence, and the first dynamic metadata corresponding to the first brightness scene The dynamic metadata and the second dynamic metadata corresponding to the second brightness scene are encoded to obtain the first HDR video. In this way, the first device can match corresponding dynamic metadata for different brightness scenes, and obtain an HDR video based on encoding of different dynamic metadata.
- the method further includes: the first device encodes the first image sequence Perform image preprocessing to obtain a first image sequence after image preprocessing; the first device performs gamma correction processing on the first image sequence after image preprocessing to obtain a first image sequence after gamma correction processing; the first device Performing 3D lookup table processing on the first image sequence after gamma correction processing to obtain the first image sequence after 3D lookup table processing; wherein, the first image sequence after 3D lookup table processing includes the first image sequence corresponding to First static metadata: the first device encodes the first HDR video based on the first image sequence and the first dynamic metadata corresponding to the first brightness scene, including: the first image sequence processed by the first device based on the 3D lookup table , and the first dynamic metadata corresponding to the first brightness scene are encoded to obtain the first HDR video. In this way, the first device can obtain an HDR video
- the first HDR video includes first static metadata and first dynamic metadata.
- the embodiment of the present application provides a video processing method applied to the second device, the method includes: the second device obtains the first HDR video from the first device; wherein, the first HDR video includes the first dynamic metadata and a first image sequence; the first dynamic metadata includes preset brightness; the second device adjusts the brightness of the first HDR video based on the preset brightness to obtain a second HDR video; the second device plays the second HDR video.
- the second device can receive the HDR video from the first device, and perform brightness mapping on the HDR video based on the preset brightness of the HDR video, and then display video content with appropriate brightness.
- the second device adjusts the brightness of the first HDR video based on the preset brightness to obtain the second HDR video, including: the second device determines a brightness ratio; the brightness ratio is the peak brightness of the second device and A ratio between brightnesses is preset; the second device adjusts the brightness of the first HDR video based on the brightness ratio to obtain a second HDR video.
- the second device can also adjust the brightness of the first HDR video according to the peak brightness supported by the hardware of the second device, so that the adjusted second HDR video has a better playback effect.
- the first HDR video includes first static metadata and first dynamic metadata.
- the method further includes: when the second device determines that it supports processing the first static metadata, the second device decodes the second HDR video into the first image sequence, and the first static metadata ; The second device encodes a third HDR video based on the first image sequence and the first static metadata; the second HDR video is different from the third HDR video.
- the second device can also adjust the brightness of the first HDR video according to the peak brightness supported by the hardware of the second device, so that the adjusted second HDR video has a better playback effect.
- the type of the first HDR video is HDR10+ video
- the type of the second HDR video is HDR10+ video
- the type of the third HDR video is HDR10 video.
- the embodiment of the present application provides a video processing device, the method includes: the processing unit of the first device is configured to receive an operation to start shooting in movie mode; the movie mode is used to record and obtain high dynamic range HDR video mode; in response to the operation of starting the shooting, the processing unit of the first device is used to acquire the first image sequence based on the camera; the first image sequence corresponds to the first brightness scene; the processing unit of the first device is used to obtain the first image sequence based on the first image sequence , and the first dynamic metadata corresponding to the first brightness scene are encoded to obtain the first HDR video; the first dynamic metadata includes preset brightness; the communication unit of the second device is used to obtain the first HDR video from the first device Video: the processing unit of the first device is configured to adjust the brightness of the first HDR video based on preset brightness to obtain a second HDR video; the processing unit of the second device is configured to play the second HDR video.
- the processing unit of the second device is specifically configured to determine a brightness ratio; the brightness ratio is the ratio between the peak brightness of the second device and a preset brightness; the processing unit of the second device is specifically configured to use
- the second HDR video is obtained by adjusting the brightness of the first HDR video based on the brightness ratio.
- the processing unit of the first device is further configured to continuously acquire a second image sequence based on the camera; wherein, the second image sequence corresponds to a second brightness scene; the first brightness scene is different from the second brightness scene ;
- the processing unit of the first device is further configured to encode and obtain the first dynamic metadata corresponding to the first image sequence, the second image sequence, the first brightness scene, and the second dynamic metadata corresponding to the second brightness scene One HDR video.
- the processing unit of the first device is further configured to: perform image pre-processing on the first image sequence to obtain the first image sequence after image pre-processing; Perform gamma correction processing on the sequence to obtain the first image sequence after gamma correction processing; perform 3D lookup table processing on the first image sequence after gamma correction processing to obtain the first image sequence after 3D lookup table processing; wherein , the first image sequence processed by the 3D lookup table includes the first static metadata corresponding to the first image sequence; the first image sequence processed based on the 3D lookup table and the first dynamic metadata encoding corresponding to the first brightness scene Get the first HDR video.
- the first HDR video includes: first static metadata and first dynamic metadata.
- the processing unit of the second device when the second device determines that the processing of the first static metadata is supported, the processing unit of the second device is further configured to decode the second HDR video into the first image sequence, and the first Static metadata: the processing unit of the second device is further configured to encode a third HDR video based on the first image sequence and the first static metadata; the second HDR video is different from the third HDR video.
- the type of the first HDR video is HDR10+ video
- the type of the second HDR video is HDR10+ video
- the type of the third HDR video is HDR10 video.
- the processing unit of the first device is specifically configured to receive an operation for turning on the movie mode; in response to the operation of turning on the movie mode, the display unit of the first device is specifically configured to display the first interface ;
- the first interface includes: a control for recording HDR video and a control for starting shooting; when the state of the control for recording HDR video is off, the processing unit of the first device also specifically uses In response to receiving an operation for enabling the control for recording HDR video; in response to the operation of the control for recording HDR video, the display unit of the first device is also specifically used to display the second interface; the second interface includes : A prompt message indicating that the 4K HDR10+ mode has been turned on; when the state of the control used to record the HDR video is turned on, the processing unit of the first device is specifically used to receive an operation on the control used to start shooting.
- the processing unit of the first device when the state of the control for recording the HDR video is on, is further configured to receive an operation for turning off the control for recording the HDR video; In response to the operation of the control for recording the HDR video, the display unit of the first device is further configured to display a third interface; the third interface includes: a prompt message indicating that the 4K HDR10+ mode has been turned off.
- the processing unit of the first device is further configured to receive an operation of turning on the movie mode for the first time; in response to the operation of turning on the movie mode for the first time, the display unit of the first device is also configured to The fourth interface is displayed; the fourth interface includes: a control for recording HDR video, and a prompt message for indicating that 4K HDR10+ video will be recorded after the control for recording HDR video is turned on.
- the processing unit of the first device is specifically configured to receive an operation for turning on the movie mode; in response to the operation of turning on the movie mode, the display unit of the first device is specifically configured to display the fifth interface ;
- the fifth interface includes: a control for viewing the setting items corresponding to the first application, and a control for starting shooting; The operation of the control of the item; in response to the operation of viewing the control of the setting item corresponding to the first application, the display unit of the first device is also specifically used to display the sixth interface; the sixth interface includes: used in the movie mode.
- the processing unit of the first device is further configured to receive an operation on a control for viewing function details in the first application; responding to the operation of the control for viewing function details in the first application , the display unit of the first device is also used to display a seventh interface; wherein, the seventh interface includes: the function details corresponding to the movie mode, and the function details of the movie mode are used to indicate that the movie mode can record 4K HDR10+ video.
- the processing unit of the first device is further configured to receive an operation for opening the second application; in response to the operation of opening the second application, the display unit of the first device is further configured to display the operation of the second application.
- Eight interfaces wherein, the eighth interface includes: the first HDR video and the identification corresponding to the first HDR video; the identification is used to indicate the type of the first HDR video; the processing unit of the first device is also used to receive the first HDR video Operation of the HDR video; in response to the operation on the first HDR video, the display unit of the first device is further configured to display a ninth interface; the ninth interface includes: an identification.
- the display unit of the second device is further configured to display a tenth interface; wherein, the tenth interface includes: prompt information for indicating that the first HDR video is an HDR10+ video containing dynamic metadata , a control for allowing reception of the first HDR video, and a control for refusing to receive the first HDR video; the processing unit of the second device is also used for receiving an operation on the control for allowing reception of the first HDR video; a response For the operation of the control allowing to receive the first HDR video, the processing unit of the second device is further configured to display an eleventh interface; wherein, the eleventh interface includes instructions for playing the first HDR video based on dynamic metadata. prompt information.
- the embodiment of the present application provides a video processing device, a processing unit, which is used to receive an operation to start shooting in movie mode; movie mode is a mode for recording high dynamic range HDR video; responding to the start of shooting The operation, the processing unit, is also used to acquire the first image sequence based on the camera; the first image sequence corresponds to the first brightness scene; the processing unit is also used to obtain the first dynamic metadata based on the first image sequence and the first brightness scene
- the first HDR video is obtained by encoding; the first dynamic metadata includes preset brightness; the communication unit is also used to send the first HDR video to the second device.
- the processing unit is further configured to continue to acquire a second image sequence based on the camera; wherein, the second image sequence corresponds to a second brightness scene; the first brightness scene is different from the second brightness scene; the processing unit, It is also used to encode and obtain the first HDR video based on the first image sequence, the second image sequence, the first dynamic metadata corresponding to the first brightness scene, and the second dynamic metadata corresponding to the second brightness scene.
- the processing unit is further configured to: perform image pre-processing on the first image sequence to obtain the first image sequence after image pre-processing; perform image pre-processing on the first image sequence Perform gamma correction processing to obtain the first image sequence after gamma correction processing; perform 3D lookup table processing on the first image sequence after gamma correction processing to obtain the first image sequence after 3D lookup table processing; wherein,
- the first image sequence processed by the 3D lookup table includes the first static metadata corresponding to the first image sequence; the first image sequence processed by the 3D lookup table and the first dynamic metadata corresponding to the first brightness scene are encoded to obtain First HDR video.
- the first HDR video includes first static metadata and first dynamic metadata.
- the embodiment of the present application provides a video processing apparatus, a communication unit, configured to acquire a first HDR video from a first device; wherein, the first HDR video includes first dynamic metadata and a first image sequence
- the first dynamic metadata includes a preset brightness; the processing unit is used to adjust the brightness of the first HDR video based on the preset brightness to obtain a second HDR video; the processing unit is also used to play the second HDR video.
- the processing unit is specifically configured to determine the brightness ratio of the second device; the brightness ratio is the ratio between the peak brightness of the second device and a preset brightness; the processing unit is further specifically configured to determine the brightness ratio based on the brightness ratio The brightness of the first HDR video is adjusted to obtain the second HDR video.
- the first HDR video includes first static metadata and first dynamic metadata.
- the processing unit when the second device determines that it supports processing the first static metadata, the processing unit is further configured to decode the second HDR video into the first image sequence and the first static metadata; The processing unit is further configured to encode a third HDR video based on the first image sequence and the first static metadata; the second HDR video is different from the third HDR video.
- the type of the first HDR video is HDR10+ video
- the type of the second HDR video is HDR10+ video
- the type of the third HDR video is HDR10 video.
- the embodiment of the present application provides a video processing device, including a processor and a memory, the memory is used to store code instructions; the processor is used to run the code instructions, so that the terminal device can perform any of the first aspect or the first aspect
- the video processing method described in an implementation manner, or execute the video processing method as described in the second aspect or any implementation manner of the second aspect, or execute the video processing method as described in the third aspect or any implementation manner of the third aspect The video processing method described in .
- the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the computer according to the first aspect or any implementation manner of the first aspect.
- the described video processing method or execute the video processing method described in the second aspect or any implementation manner of the second aspect, or execute the video processing method described in the third aspect or any implementation manner of the third aspect method.
- a computer program product includes a computer program, and when the computer program is run, the computer executes the video processing method described in the first aspect or any implementation manner of the first aspect, or executes the video processing method described in the second aspect The video processing method described in any implementation manner of the third aspect or the second aspect, or execute the video processing method described in the third aspect or any implementation manner of the third aspect.
- FIG. 1 is a schematic diagram of a merge and DCG principle provided by the embodiment of the present application.
- FIG. 2 is a schematic diagram of a scene provided by an embodiment of the present application.
- FIG. 3 is a schematic structural diagram of a first device (or a second device) provided by an embodiment of the present application;
- FIG. 4 is a software structural block diagram of a first device provided in an embodiment of the present application.
- FIG. 5 is a schematic diagram of an interface for starting shooting in movie mode provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of another interface for starting shooting in movie mode provided by the embodiment of the present application.
- FIG. 7 is a schematic diagram of an interface for viewing function details provided by an embodiment of the present application.
- FIG. 8 is a schematic flowchart of a video processing method provided in an embodiment of the present application.
- FIG. 9 is a schematic diagram of an image sequence and brightness scene provided by an embodiment of the present application.
- FIG. 10 is a schematic diagram of an interface for viewing HDR10+ video provided by the embodiment of the present application.
- FIG. 11 is a schematic diagram of a device sharing interface provided by an embodiment of the present application.
- FIG. 12 is a schematic diagram of an interface for displaying prompt information provided by an embodiment of the present application.
- Fig. 13 is a schematic flow chart of playing HDR10+ video provided by the embodiment of the present application.
- FIG. 14 is a schematic flowchart of another video processing method provided by the embodiment of the present application.
- FIG. 15 is a schematic structural diagram of a video processing device provided by an embodiment of the present application.
- FIG. 16 is a schematic diagram of a hardware structure of another terminal device provided in an embodiment of the present application.
- FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
- This application relates to the field of photography. In order to facilitate the understanding of the method provided in this application, some terms in the field of photography are introduced below.
- Binning is an image readout mode in which the charges induced in adjacent pixels are added together and read out in a pixel mode. For example, when an electronic device captures an image, light reflected by a target object is collected by a camera, so that the reflected light is transmitted to an image sensor.
- the image sensor includes a plurality of photosensitive elements, and the charge collected by each photosensitive element is a pixel, and a binning operation is performed on the pixel information.
- binning can combine n ⁇ n pixels into one pixel.
- binning can combine adjacent 2 ⁇ 2 pixels into one pixel, that is, the colors of adjacent 2 ⁇ 2 pixels are presented in the form of one pixel.
- FIG. 1 is a schematic diagram of a merge and DCG principle provided by the embodiment of the present application.
- binning can realize the synthesis of adjacent 2 ⁇ 2 pixels into one pixel, so that the image sensor can combine the 4 ⁇ 4 image into a 2 ⁇ 2 image, and output the 2 ⁇ 2 image as an image sensor based on binning.
- An image sensor with dual conversion gain DCG capability one pixel has two potential wells, the two potential wells correspond to different full well capacities and different conversion gains CG, and the large full well capacity corresponds to low conversion gain (LCG) , Low sensitivity, small full well capacity corresponds to high conversion gain (high conversion gain, HCG), high sensitivity.
- the sensor can use two potential wells (two sensitivities) and two conversion gains in the same scene, and acquire two images with one exposure: an image in high-sensitivity mode and an image in low-sensitivity mode. Then the electronic equipment combines the two acquired images into one image, which is HDR technology.
- the image sensor can further use two kinds of conversion gains, for example, based on HCG and LCG respectively, the output values under the two conversion gains can be obtained.
- image data, the HCG-based image output data and the LCG-based image output data are fused to obtain a fused image, and the fused image is output as an image sensor based on DCG.
- 3D LUT technology is a color correction tool to restore log video color. Traditional filters adjust parameters such as exposure and color temperature. 3D LUT can realize the mapping and transformation of RGB colors in the original material, so that based on 3D LUT technology, more Rich shade.
- HDR10 video is configured according to static metadata, for example, the HDR10 conversion curve PQ curve is fixedly mapped according to the benchmark display brightness of the display.
- the bit depth of the HDR10 video is 10 bits; the static metadata can meet the definition in SMPTE ST 2086 or other standards.
- HDR10+ continues to improve on the basis of HDR10.
- HDR10+ supports dynamic metadata, that is, HDR10+ can adjust or enhance image brightness, contrast, and color saturation according to different scenes in the video, so that each frame of the HDR10+ video has an independent adjustment. HDR effect.
- the bit depth of the HDR10+ video is 12 bits; the dynamic metadata can meet the definition in SMPTE ST 2094 or other standards.
- the brightness scene may be used to distinguish brightness corresponding to different image frames.
- the brightness scene may include: a high brightness scene, a medium brightness scene, a dark light scene, and the like.
- the brightness scenes may correspond to different brightness ranges, for example, the first device may distinguish different brightness scenes based on light intensity (or illuminance) and the like.
- the brightness range corresponding to a bright scene may be greater than 50000 lux (lux)
- the brightness range corresponding to a medium brightness scene may be 50000 lux-10 lux
- the brightness range corresponding to a dark scene may be 10 lux-0 lux.
- the brightness scenarios described in the embodiments of the present application may not be limited to the above three types; and, the brightness ranges corresponding to the three brightness scenarios are only used as an example, and the brightness ranges corresponding to different brightness scenarios are selected as follows: The value may also be other values, which are not limited in this embodiment of the present application.
- words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
- the first value and the second value are only used to distinguish different values, and their sequence is not limited.
- words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit the difference.
- At least one means one or more, and “multiple” means two or more.
- “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
- the character “/” generally indicates that the contextual objects are an “or” relationship.
- “At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items.
- At least one item (piece) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b, c can be single or multiple.
- FIG. 2 is a schematic diagram of a scenario provided by an embodiment of the present application.
- the scene may include a first device 201 and a second device 202 .
- the first device 201 is a mobile phone and the second device 202 is a tablet as an example for illustration, and this example does not constitute a limitation to the embodiment of the present application.
- the first device 201 can be used to record video with a camera, and send the video content to the second device 202, so that the second device 202 can be used to play the video using a display screen.
- the first device 201 can use the magic-log technology to maximize the retention of the dynamic range information of the picture captured by the camera sensor, and convert the dynamic range information through the 3D LUT technology For HDR video with different color styles.
- the video may be an HDR10 video supporting BT.2020 wide color gamut.
- the first device 201 may send the HDR10 video to the second device 202 .
- the HDR10 conversion curve PQ curve is fixedly mapped according to the absolute brightness, such as the absolute brightness can be the first
- the reference display brightness of the display of the second device 202 is, for example, 1000 nit. Therefore, when the HDR10 video is displayed on a second device with a peak brightness of 1000 nit, the PQ curve can well present a normal brightness mapping within 1000 nit. Wherein, the peak brightness may be understood as the highest brightness supported by the hardware of the second device.
- the peak brightness that the hardware of the second device 202 can support does not reach 1000 nit, for example, when the peak brightness that the hardware of the second device 202 can support is 500 nit, then the HDR10 video with a benchmark display brightness of 1000 nit is at the peak brightness that the hardware can support.
- the second device 202 cannot implement brightness mapping for highlighted scenes with a brightness of more than 500 nit and less than 1000 nit, resulting in the loss of highlight information in the highlighted scene.
- the peak brightness supported by the hardware of the second device 202 can be It affects the display of HDR10 video based on the PQ curve.
- an embodiment of the present application provides a video processing method, so that the first device can match different dynamic metadata for scenes of different brightness corresponding to multiple frames of images acquired based on the camera, and use different dynamic metadata to match the
- the multi-frame images are adjusted separately to obtain the HDR video, and the HDR video is sent to the second device, so that the second device can perform brightness mapping on the HDR video based on the HDR video and the peak brightness that the hardware of the second device can support, and Display video content with appropriate brightness.
- first device may also be called a terminal, a user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT) )wait.
- the first device (or the second device) can be a mobile phone (mobile phone), a smart TV, a wearable device, a tablet computer (Pad), a computer with a wireless transceiver function, or a virtual reality that supports a video recording function (or a video playback function).
- VR virtual reality
- AR augmented reality
- Wireless terminals in industrial control industrial control
- wireless terminals in self-driving self-driving
- remote surgery remote surgery
- Wireless terminals in smart grid wireless terminals in transportation safety
- wireless terminals in smart city wireless terminals in smart home, etc.
- the embodiments of the present application do not limit the specific technology and specific device form adopted by the first device (or the second device).
- FIG. 3 is a schematic structural diagram of a first device (or a second device) provided in an embodiment of the present application.
- the first device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, and an antenna 1 , antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, indicator 192, camera 193, and display screen 194, etc.
- a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, and an antenna 1 , antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, indicator 192, camera 193, and display screen 194, etc.
- USB universal serial bus
- the structure shown in the embodiment of the present application does not constitute a specific limitation on the first device (or the second device).
- the first device (or the second device) may include more or fewer components than those shown in the illustrations, or combine some components, or separate some components, or arrange different components.
- the illustrated components can be implemented in hardware, software or a combination of software and hardware.
- Processor 110 may include one or more processing units. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the first device (or the second device), and can also be used to transmit data between the first device (or the second device) and peripheral devices. It can also be used to connect headphones and play audio through them.
- the interface can also be used to connect other first devices (or second devices), such as AR devices.
- the charging management module 140 is configured to receive a charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the power management module 141 is used for connecting the charging management module 140 and the processor 110 .
- the wireless communication function of the first device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Antennas in the first device (or second device) may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G applied on the first device (or the second device).
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the wireless communication module 160 can provide wireless local area network (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT) applied on the first device (or second device). ), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM) and other wireless communication solutions.
- WLAN wireless local area networks
- WLAN wireless local area networks
- Wi-Fi wireless fidelity
- BT Bluetooth
- BT Bluetooth
- BT Bluetooth
- BT Bluetooth
- BT Bluetooth
- global navigation satellite system global navigation satellite system
- FM frequency modulation
- the first device realizes the display function through the GPU, the display screen 194, and the application processor.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the first device (or the second device) may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the first device (or the second device) can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
- the ISP is used for processing the data fed back by the camera 193 .
- the light is transmitted to the photosensitive element of the camera through the lens, and the optical signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin color.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be located in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the first device (or the second device) selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the first device may support one or more video codecs.
- the first device or the second device
- Camera 193 is used to capture still images or video.
- the first device (or the second device) may include 1 or N cameras 193, where N is a positive integer greater than 1.
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first device (or the second device).
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the first device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- Speaker 170A also referred to as a "horn” is used to convert audio electrical signals into sound signals.
- the first device (or the second device) may listen to music through speaker 170A, or listen to a hands-free call.
- Receiver 170B also called “earpiece”, is used to convert audio electrical signals into sound signals. When the first device (or the second device) answers a phone call or voice message, it can listen to the voice by placing the receiver 170B close to the human ear.
- the earphone interface 170D is used for connecting wired earphones.
- the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
- the sensor module 180 may include one or more of the following sensors, for example: pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensors, or bone conduction sensors, etc. (not shown in Figure 3).
- sensors for example: pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensors, or bone conduction sensors, etc. (not shown in Figure 3).
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the first device (or the second device) can receive key input, and generate key signal input related to user settings and function control of the first device (or second device).
- the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
- the software system of the first device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture, etc., which will not be repeated here.
- FIG. 4 is a software structural block diagram of a first device provided in an embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the Android system is divided into four layers, which are respectively an application program layer, an application program framework layer, a hardware abstraction layer (hardware abstraction layer, HAL) layer, and a kernel layer from top to bottom.
- layers which are respectively an application program layer, an application program framework layer, a hardware abstraction layer (hardware abstraction layer, HAL) layer, and a kernel layer from top to bottom.
- HAL hardware abstraction layer
- the application layer can consist of a series of application packages. As shown in FIG. 4 , the application package may include one or more of the following, for example: application programs such as camera, setting, map, or music.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include: a media framework module, a window manager, and the like.
- the media frame module is used to encode the multi-frame images obtained based on the camera driver to obtain video; or, the media frame module can also be used to decode the received video to obtain multi-frame images and metadata corresponding to the multi-frame images, Such as dynamic metadata or static metadata.
- a window manager is used to manage window programs.
- the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc.
- the application framework layer may further include: a notification manager, a content provider, a resource manager, and a view system.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, making a sound, vibrating the device, and flashing the indicator light, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the purpose of the hardware abstraction layer is to abstract the hardware, which can provide a unified interface for querying hardware devices for upper-layer applications, such as interfaces that follow the hardware abstraction layer interface description language (HAL interface definition language, HIDL) protocol.
- HAL interface definition language HAL interface definition language
- the hardware abstraction layer may include: a frame-by-frame statistics module, a codec, and so on.
- the frame-by-frame statistics module is used to perform frame-by-frame statistics on the multi-frame images driven by the camera, determine the brightness scenes corresponding to the multi-frame images, and match the corresponding tone mapping curves to obtain the dynamic metadata corresponding to the multi-frame images .
- the codec is used to store the result of encoding or decoding via the media framework module. For example, when the codec receives video sent via the media framework module, the codec can save the video as required.
- the hardware abstraction layer may also include: an audio interface, a video interface, a call interface, and a global positioning system (GPS) interface (not shown in FIG. 4 ), which is not limited in the embodiments of the present application. .
- GPS global positioning system
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
- the touch sensor receives the user's touch operation for the movie mode in the camera application
- the corresponding hardware interrupt is sent to the kernel layer
- the kernel layer processes the touch operation into an original input event (including touch coordinates, the timestamp of the touch operation etc.), raw input events are stored in the kernel layer.
- the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event.
- the camera application calls the interface of the application framework layer to start the camera application.
- the camera application sends the instruction for encoding the image sequence to the camera driver in the kernel layer through the media framework module in the application framework layer and the frame-by-frame statistics module in the hardware abstraction layer, and the camera driver passes the camera Capture a sequence of images.
- the camera driver sends the acquired image sequence to the frame-by-frame statistics module, so that the frame-by-frame statistics module can perform statistics on the acquired image sequence, and determine the respective brightness scenes corresponding to the multi-frame images, and match the corresponding tone mapping curve , to obtain dynamic metadata corresponding to the multi-frame images respectively.
- the frame-by-frame statistics module may send multiple frames of images and dynamic metadata corresponding to the multiple frames of images to the media framework module.
- the media framework module performs encoding based on the multi-frame images and the dynamic metadata corresponding to the multi-frame images respectively, to obtain the HDR video.
- the media framework module may send the HDR video to the codec in the hardware abstraction layer for storage, so that the first device may implement processing and recording of the HDR video.
- the first device may acquire HDR10+ video in two user triggering manners.
- the first device can enable the user to enable the 4K HDR function in the movie mode of the camera application, and then when the first device receives the user's operation to enable recording, the first device can record an HDR10+ video based on the 4K HDR function (as shown in the figure 5 corresponding embodiment); or, the first device can enable the user to enable the movie HDR in the setting interface of the camera application, and then when the first device receives the user's operation of enabling recording, the first device can record based on the 4K HDR function Get HDR10+ video (as shown in the corresponding embodiment in Figure 6).
- the first device can enable the user to enable the 4K HDR function in the movie mode of the camera application, and then when the first device receives the user's operation to enable recording, the first device can record HDR10+ video based on the 4K HDR function .
- FIG. 5 is a schematic diagram of an interface for starting shooting in movie mode according to an embodiment of the present application.
- the first device when the first device receives the user's operation to start the camera application, the first device can display the interface shown in a in Figure 5, which can be the main interface of the camera application (or understood as the camera mode corresponding interface).
- the interface may include one or more of the following, for example: a camera control corresponding to the camera function, a preview image, a control for enabling an artificial intelligence (artificial intelligence, AI) camera function, Controls for turning the flash on or off, settings controls for configuring the camera app, controls for adjusting the zoom factor, controls for flipping the camera, controls for opening the gallery, and more.
- the interface shown in a in Figure 5 may also include multiple functional controls in the first-level menu of the camera application, for example: a control for turning on the night scene mode, a control for turning on the portrait mode, and a control for turning on the photo mode , the control for enabling video recording mode, and the control 501 for enabling movie mode, etc.
- the control for opening the gallery can be used to open the gallery application.
- the gallery application program is an application program for picture management on electronic devices such as smart phones and tablet computers, and may also be called "album".
- the name of the application program is not limited in this embodiment.
- the gallery application program can support the user to perform various operations on the videos stored on the first device, such as browsing, editing, deleting, selecting and other operations.
- the camera application can be an application supported by the system of the first device, or the camera application can also be an application with a video recording function, etc.;
- the movie mode can be a shooting mode for obtaining HDR video;
- the operation of starting shooting It may be a voice operation, or may be a tap operation or a slide operation on a control for starting shooting in movie mode, or the like.
- the first device when the first device receives an operation of the user triggering the control 501 for starting the movie mode, the first device may display the interface shown in b in FIG. 5 .
- the interface shown in b in Figure 5 can be the interface corresponding to the movie mode, and the interface can include one or more of the following, for example: slow motion function control, 4K HDR function control 502, for turning on or off the flashlight controls, LUT function controls, setting controls for setting the camera application, and controls 503 for enabling shooting in movie mode, etc.
- 5 may also include multiple function controls in the first-level menu of the camera application, for example: controls for enabling professional mode, controls for enabling more functions, etc., the interface
- controls for enabling professional mode controls for enabling more functions, etc.
- the interface shown in a in FIG. 5 please refer to the interface shown in a in FIG. 5 , which will not be repeated here.
- the interface shown in b in FIG. 5 may include: 4K HDR function control 502 ( The prompt information 504 corresponding to the control within the range of the dotted line box), the prompt information 504 is used to indicate that when the user turns on the 4K HDR function control 502, the first device will record 4K HDR10+ video.
- the 4K HDR function control 502 may be in a default off state, and when the first device receives an operation triggered by the user to trigger the 4K HDR function control 502, the first device may display as shown in FIG. 5
- the interface shown in c the interface may include prompt information 505, and the prompt information 505 is used to indicate that the 4K HDR10+ mode has been turned on.
- the prompt message 505 may disappear after being displayed for 2 seconds or other time.
- the 4K HDR function control 502 may be in an on state
- the first device receives the user's operation of triggering the control 503 for starting shooting in the interface shown in c in FIG. 5
- the first device The image sequence may be acquired based on the camera, and the first HDR10+ video may be obtained based on processing the image sequence.
- other content displayed in the interface shown in c in FIG. 5 is similar to the interface shown in b in FIG. 5 , and will not be repeated here.
- an interface shown in d in FIG. 5 may be displayed.
- the interface may include prompt information 506, and the prompt information 506 is used to indicate that the 4K HDR10+ mode is closed.
- the prompt message 506 may disappear after being displayed for 2 seconds or other time.
- 4K refers to the resolution of the screen, and the resolution of 4K is 4096 ⁇ 2160.
- HDR refers to the rendering technology of the screen. Compared with ordinary images, the 4K HDR function can provide more dynamic range and image details, and can better reflect the visual effects in the real environment. This mode can make the video recorded by the electronic device 100 have a resolution of 4K, 30fps Rate.
- the 4K HDR function is initially turned off. At this time, the 4K HDR function control 502 in the interface shown as b in FIG. 5 is provided with a slash indicating that the switch is turned off.
- the first device When the first device detects the user's trigger operation on the 4K HDR function control 502, the first device turns on the 4K HDR function, and the 4K HDR function control 502 in the interface shown in c in Figure 5 is set to indicate the switch The closed slash disappears; further, when the first device detects that the user triggers the 4K HDR function control 502 in the interface shown as c in FIG. 5 , the first device closes the 4K HDR function, as shown in In the interface shown in d in FIG. 5 , the slash display for indicating that the switch is turned off is set by the 4K HDR function control 503 .
- the resolution of the preview screen is lower than that of the preview screen when the 4K HDR function is enabled.
- HDR10 video can be displayed in the preview screen.
- users can flexibly control the 4K HDR controls in movie mode according to shooting needs, and then realize the recording of HDR10+ videos.
- the first device can enable the user to enable movie HDR in the setting interface of the camera application, and then when the first device receives the user's operation of enabling recording, the first device can record HDR10+ video based on the 4K HDR function .
- FIG. 6 is another schematic diagram of an interface for starting shooting in a movie mode provided by an embodiment of the present application.
- the first device may display the interface shown in a in FIG. 6 , which may include: a setting control 601 and a control 602 for starting shooting in the movie mode wait.
- a setting control 601 and a control 602 for starting shooting in the movie mode wait.
- other content displayed in the interface is similar to the interface shown in b in FIG. 5 , and will not be repeated here.
- the first device may display the interface shown in b in FIG. 6, which may be a setting interface of the camera application.
- the interface shown in b in Figure 6 can include functional controls corresponding to taking photos, for example: photo-taking ratio function controls (such as supporting a 4:3 photo-taking ratio), voice-activated photo-taking function controls, gesture photo-taking function controls, smiling faces Capture function controls, etc.
- the gesture camera function can only support the front, and the gesture is triggered by facing the mobile phone.
- the smile capture function can automatically shoot when a smile is detected; the interface can also include function controls corresponding to the video function, for example: video resolution Rate function control, video frame rate function control, high-efficiency video format function control, movie HDR function control 603, and AI movie tone function control, wherein the high-efficiency video format function can save 35% of space, and users may not be able to play it on other devices
- This format video the movie HDR function can use 10bit HDR to record video, the video will automatically switch to 4K
- the AI movie tone function can intelligently identify the shooting content to match the LUT tone, and it is only supported in non-4K HDR.
- the first device when the first device receives the user’s operation to enable the movie HDR function control 603, the first device may display the interface shown in c in FIG. Movie HDR function control 603 is on.
- other content displayed in the interface shown in c in FIG. 6 is similar to the interface shown in b in FIG. 6 , and will not be repeated again.
- the first device when the movie HDR function control 603 in the interface shown as c in FIG. 6 is turned on, when the first device receives that the user exits the setting interface and receives the When the operation of the control 602 for enabling shooting is triggered in the shown interface, the first device may acquire an image sequence based on the camera, and obtain a first HDR10+ video based on processing the image sequence. It can be understood that when the movie HDR function control is turned on, the HDR10 video can be displayed in the preview screen.
- the user can flexibly control the movie HDR function control in the setting function according to the shooting needs, and then realize the recording of HDR10+ video.
- the first device may display the movie mode corresponding model introduction.
- FIG. 7 is a schematic diagram of an interface for viewing function details provided by an embodiment of the present application.
- the interface shown in a in FIG. 7 may include: a control 701 for opening more functions, and other content displayed in the interface is similar to the interface shown in b in FIG. 5 , which is not repeated here. repeat.
- the first device when the first device receives the user's operation on the control 701 for enabling more functions, the first device may display the interface shown in b in FIG. 7 .
- the interface shown in b in Figure 7 can include: HDR function control, slow motion function control, micro movie function control, time-lapse photography function control, dynamic photo function control, download for downloading more functions control, an editing control for adjusting the position of each function in more controls, and a detail control 702 for viewing detailed information of each function in the camera application, and the like.
- the first device when the first device receives the user's operation on the detail control 702 , the first device may display the interface shown in c in FIG. 7 .
- the interface shown in c in Figure 7 can display detailed descriptions corresponding to each function in the camera application.
- the interface can include: detailed descriptions corresponding to the HDR function.
- the corresponding details of the slow motion function such as slow motion
- super slow motion supports automatic or Manually shoot ultra-high-speed small videos, and the shooting effect is better in bright environments
- detailed descriptions for the time-lapse photography function such as synthesizing long-term recorded images into short videos, and reproducing the process of scene changes in a short time
- movies The details corresponding to the mode are described 703, such as recording 4K HDR10+ video, providing professional video solutions, etc.
- the user can understand the function of each function in the camera application through the details page as shown in c in FIG. 7 , thereby improving the user's experience of using the camera application.
- the first device may process the image sequence acquired based on the camera to obtain a preview image sequence corresponding to the preview stream.
- the first device may also process the image sequence acquired based on the camera to obtain the HDR10+ video corresponding to the video stream.
- the processing process may include image pre-processing and image post-processing.
- FIG. 8 is a schematic flowchart of a video processing method provided by an embodiment of the present application.
- the camera of the first device may include an image sensor for supporting the HDR function, for example, the image sensor may implement image output based on DCG mode and image output based on binning mode.
- the output data supported by the DCG mode may include: a frame rate of 30fps, support for 12-bit data storage, and an output format of RAW12;
- the output data supported by the binning mode may include: a frame rate of 30fps, Support 12bit data storage, and the output format is RAW12. It is understandable that binning only has data in the upper 10 bits, so binning needs to do supplementary processing on the lower two bits to ensure 12-bit data storage.
- the image sensor may output image data based on binning, or may also output image data based on DCG.
- binning can output an image sequence based on combining n (for example, n can be 4) pixels into one pixel;
- DCG after combining n pixels into one pixel, can output image data based on HCG and based on LCG Image fusion of the output data, output image sequence.
- the first device may perform image pre-processing 801 on the image sequence to obtain an image sequence after the image pre-processing 801 .
- the image pre-processing 801 (or referred to as image signal processor front-end processing) is used to process the image in RAW format acquired based on the camera into an image in YUV (or understood as brightness and chrominance) format.
- the image pre-processing 801 process may include one or more of the following: dead pixel correction processing, RAW domain noise reduction processing, black level correction processing, optical shadow correction processing, automatic white balance processing, color Interpolation processing, color correction processing, tone mapping processing, or image conversion processing, etc., are not limited to the image pre-processing 801 process in this embodiment of the present application.
- the first device may use the image sequence after image pre-processing as a preview stream and a video stream.
- the first device may perform gamma (Gamma) correction processing 802 and 3D LUT processing 803 on the pre-processed image sequence corresponding to the preview stream to obtain a preview image sequence; in the video recording stream, the first device may Perform Gamma correction processing 802 and 3D LUT processing 803 on the pre-processed image sequence corresponding to the preview stream to obtain a video image sequence.
- the recorded image sequence may include the first image sequence and the second image sequence described in the embodiments of the present application.
- the Gamma correction process 802 is used to adjust the brightness of the image, so that it can retain more details of bright and dark parts, compress contrast, and retain more color information.
- the first device can apply the log curve to perform Gamma correction processing on the image sequence corresponding to the preview stream after image preprocessing and the image sequence after image preprocessing corresponding to the video stream, and then obtain the image sequence corresponding to the preview stream.
- the 3D LUT processing 803 is used to map the color space in the image, so that the data through the 3D LUT can produce different color styles.
- the first device respectively performs 3D LUT color mapping on the gamma-corrected image sequence corresponding to the preview stream and the gamma-corrected image sequence corresponding to the video stream, to obtain a preview image sequence corresponding to the preview stream, And the video image sequence corresponding to the video stream.
- the images in the preview image sequence and the recorded image sequence may all be images satisfying the PQ curve of the BT.2020 color gamut.
- the reference brightness that can be supported in the PQ curve is 1000 nit
- the PQ curve can be stored in the first device as static metadata; the format of the static metadata can meet SMPTE ST 2086 or other custom formats, etc., this
- the specific format of the static metadata is not specifically limited in the embodiments of the application.
- the Gamma correction processing 802 and the 3D LUT processing 803 may be part of image post-processing (or called image processor back-end processing).
- the image post-processing may further include: other processing steps such as anti-shake processing, noise processing, and image scaling processing, which are not limited in this embodiment of the present application.
- the first device performs frame-by-frame statistical processing 804 on the images in the preview image sequence, determines the tone mapping curves corresponding to the multi-frame images in the video image sequence, and generates dynamic metadata, so that the first device can use the video Image sequences, along with dynamic metadata, are encoded as HDR10+ video.
- the first device may encode an HDR10+ video based on the recorded image sequence and dynamic metadata when receiving the user's operation of ending video recording in movie mode.
- FIG. 9 is a schematic diagram of an image sequence and brightness scene provided by an embodiment of the present application.
- the brightness scene of multiple frames of images generated within 1 second (s) is schematically described by taking a frame rate of 30 fps as an example.
- the first device can acquire an image 901 at about 33 milliseconds (ms), an image 902 at about 66 ms, an image 903 at about 99 ms, an image 904 at about 132 ms, ..., and an image at about 233 ms 905.
- Acquire an image 906 at about 266ms acquire an image 907 at about 299ms, acquire an image 908 at about 332ms, and so on.
- the user can obtain the image 901, image 902, image 903, image 904, ..., and image 905 outdoors; when the user moves from outdoor to indoor, the user can obtain image 906, image 907 and Image 908 et al.
- the brightness scene of the image 901 and the image 902 may be the same, for example, the image 901 and the image 902 may both belong to the highlight scene;
- the brightness scenes at can also be different, for example, the image 901 can belong to a high-brightness scene, and the image 902 can belong to a medium-brightness scene, etc.
- the first image sequence described in the embodiment of the present application may be an image frame at a certain moment, for example, the first image sequence may be image 901, or the first image sequence may also be an image frame of a certain time period Collectively, for example, the first image sequence may include: image 901 , image 902 , image 903 , image 904 , . .
- the second image sequence described in the embodiment of the present application may also be an image frame at a certain moment, for example, the second image sequence may be image 906, or the second image sequence may also be an image of a certain time period
- a general term for frames, for example, the second image sequence may include: image 906 , image 907 , and image 908 .
- the brightness scene corresponding to the first image sequence is different from the brightness scene corresponding to the second image sequence.
- the tone mapping curve can adjust the brightness of the area in the image based on the reference brightness, so that it can protect the highlight area and the dark area in the image, for example, to enhance the dark area in the image and to adjust the brightness of the image. Suppress highlighted areas in .
- the reference brightness of the tone mapping curve may be preset, for example, the preset reference brightness may be set to 400nit or other values.
- the process for the first device to determine the tone mapping curves corresponding to the multi-frame images in the video image sequence may be: the first device may determine the brightness scenes corresponding to the multi-frame images in the video image sequence , and then based on the corresponding relationship between the brightness scene and the tone mapping curve, the tone mapping curve corresponding to the brightness scene is determined.
- the brightness scene may include: a bright scene, a medium brightness scene, and a dark light scene, etc.
- the brightness scene is not limited to the above three types, and may also be four types, five types, or six types, etc., the present invention
- the names and numbers of the scenes included in the above-mentioned brightness scenes in the embodiments of the application are not limited.
- the first device may determine, based on the grayscale histogram of the preview image, the average brightness value of the preview image, etc., the brightness scenes corresponding to the multiple frames of images in the recorded image sequence.
- the first device may store grayscale histograms corresponding to typical brightness scenes, so the first device may separately count the grayscale histograms corresponding to multiple frames of images in the recorded image sequence, if the preview image
- the first device may determine the brightness scene corresponding to the preview image.
- the grayscale histogram is used to represent the brightness distribution of pixels in the preview image, and the brightness can be understood as the value corresponding to the Y channel (or Y component) when the image is in YUV format.
- the first device can separately count the average brightness value of the pixels in the multi-frame images in the recorded image sequence, and if the average brightness value is greater than the brightness threshold corresponding to the brightness scene, the first device can determine that The brightness scene corresponding to the preview image.
- the method for the first device to determine brightness scenes corresponding to multiple frames of images in the recorded image sequence may not be limited to the above two methods, which are not limited in this embodiment of the present application.
- the first device may determine based on the corresponding relationship between the luminance scene and the tone mapping curve. Tone mapping curves corresponding to luminance scenes, generating dynamic metadata.
- the first device may store the corresponding relationship between the brightness scene and the tone mapping curve, so the first device may match the corresponding relationship to obtain the tone mapping curve corresponding to the current brightness scene, and obtain dynamic metadata.
- the first device may determine a corresponding tone mapping curve in real time according to a brightness scene, and generate dynamic metadata.
- the dynamic metadata may include: a reference brightness value of the tone mapping curve, for example, 400 nit.
- the tone mapping curve can be stored in the first device in the form of dynamic metadata, and the format of the dynamic metadata can be different according to the protocol.
- the format of the dynamic metadata can meet SMPTE ST 2094 ( It supports application1, application2, application3, or application4), or other self-defined formats, etc., and the specific format of the dynamic metadata is not specifically limited in this embodiment of the application.
- the dynamic metadata specified in SMPTE ST 2094-application4 may include one or more of the following: information about windows in an image (a window may be a rectangular area set in an image), size and position of a window, window The RGB value of the brightest pixel in the window, the largest average of R, G, and B pixels in the window, the percentage level of bright brightness in the window, the level of bright brightness in the window (percentile), the maximum brightness value in the scene
- the preset brightness in the dynamic metadata is the same.
- the preset brightness in the first dynamic metadata is the same.
- the preset brightness in the first dynamic metadata includes the first dynamic
- the first device uses the preview image sequence to display the HDR10 video, and uses the recorded image sequence and dynamic metadata to encode the first HDR10+ video.
- the HDR10 video can be used for preview display of the first device, for example, the HDR10 video can be displayed on the display screen of the first device; the first HDR10+ video can be used for video recording of the first device, for example, the first The device can send the recorded image sequence and dynamic metadata to the video encoder according to the timestamp (or according to the identifier used to indicate that the recorded image sequence and dynamic metadata belong to a pair of data), and encode to obtain the first HDR10+ video, the first HDR10+ The video can be saved in the first device, and then the first HDR10+ video can also be displayed in the first device (or the second device) based on the user's playback operation.
- the first device can match different dynamic metadata for scenes of different brightness corresponding to the multi-frame images acquired by the camera, and use the different dynamic metadata to adjust the multi-frame images respectively to obtain HDR10+ video.
- the first device can save the HDR10+ video in the gallery application.
- FIG. 10 is a schematic diagram of an interface for viewing an HDR10+ video provided in an embodiment of the present application.
- the first device When the first device receives the user's operation of opening the gallery application, the first device may display the interface shown in a in FIG. and picture 1003. Wherein, a logo 1004 for indicating that the video 1001 is an HDR10+ video may be displayed around the video 1001, and the logo 1004 may be displayed as HDR.
- the first device when the first device receives the user's operation to trigger the video 1001 , the first device may display the interface shown in b in FIG. 10 .
- the interface shown in b in FIG. 10 may include: an identifier 1005 for indicating that the video 1001 is an HDR10+ video, a control for viewing more information about the video, a control for sharing the video, and a favorite Controls for videos, controls for editing videos, controls for deleting videos, controls for viewing more features, and more.
- the first device when the first device receives the user's operation of sharing the HDR10+ video, the first device can share the HDR10+ video to the second device.
- the user's operation to share the HDR10+ video can be: the user's sharing operation of the HDR10+ video through Bluetooth, or the user's sharing operation of the HDR10+ video through a network such as WLAN, or the user can also share the HDR10+ video through the device.
- the HDR10+ video is shared to other devices, and this sharing operation is not specifically limited in this embodiment of the application.
- the sharing operation may be "glory sharing", that is, a sharing method in which device scanning is performed via Bluetooth and data transmission is performed using WLAN.
- FIG. 11 is a schematic diagram of a device sharing interface provided by an embodiment of the present application.
- the first device When the first device receives the user's operation to share the HDR10+ video, for example, when receiving the user's operation on the control for sharing the video in the interface shown in b in Figure 10, the first device may display the In the interface shown in a, the interface may include prompt information 1101, and the prompt information 1101 may include a control 1102 for sharing the HDR10+ video to the second device. It can be understood that the prompt information 1101 may also include content such as controls for sharing the HDR10+ video to other applications.
- a logo 1104 for indicating the HDR10+ video may be displayed around the HDR10+ video, for example, the logo may be HDR.
- the first device when the first device receives the user's operation on the control 1102, the first device can share the HDR10+ video to the second device, and the second device can display The interface shown in b in Figure 11.
- prompt information 1103 may be displayed on the interface of the second device, and the prompt information 1103 is used to indicate that the received HDR10+ video is generated based on dynamic metadata.
- the prompt information 1103 may be Displayed as: The first device wants to share with you an HDR10+ video (1.65GB) containing dynamic metadata, whether to accept it, the prompt information may include: rejection control, and acceptance control, etc.
- the interface shown in b in FIG. 11 may also include file management application controls, email application controls, music application controls, and computer application controls.
- a logo 1105 for indicating the HDR10+ video may be displayed around the HDR10+ video, for example, the logo may be HDR.
- the second device when the second device receives the user's operation on the receiving control, the second device can save the HDR10+ video.
- the first device can share the HDR10+ video to the second device through device sharing, so that the second device can play the HDR10+ video on this device.
- the second device when the second device receives the user's operation to play the HDR10+ video, the second device may display prompt information, and the prompt information is used to indicate that the second device will Video playback of HDR10+ videos based on dynamic metadata.
- FIG. 12 is a schematic diagram of an interface for displaying prompt information provided by an embodiment of the present application.
- the second device may display an interface as shown in Figure 12, which may include: prompt information 1201, a confirmation control 1202, and a control for ending playing the HDR10+ video , a control to open the gallery app, a control to see more features, and so on.
- the prompt information 1201 is used to indicate the playing form of the current video, for example, the prompt information 1201 may display that the current device will perform HDR video playback based on dynamic metadata.
- a logo 1203 for indicating the HDR10+ video may be displayed around the HDR10+ video in the interface shown in FIG. 12 , for example, the logo may be HDR.
- the second device may also perform video playback based on static metadata, and at this time, the prompt information 1201 may not be displayed on the second device.
- the second device when the second device receives the user's operation on the confirmation control 1202, the second device can analyze the HDR10+ video and play it.
- the second device may analyze and play the HDR10+ video based on the video processing flow in the embodiment corresponding to FIG. 13 .
- FIG. 13 is a schematic flowchart of playing an HDR10+ video provided by an embodiment of the present application.
- the process of playing the HDR10+ video may include: video decoding processing 1301 .
- the second device may decode the HDR10+ video into dynamic metadata and a third image sequence based on the video standard of SMPTE ST 2094-application4.
- the second device when the second device receives the first HDR10+ video sent by the first device, the second device can determine the video standard of the first HDR10+ video, for example, the first HDR10+ video supports SMPTE ST2094-application4, or SMPTE ST 2086, etc.; further, when the second device supports the video standard of SMPTE ST2094-application4, the second device can obtain dynamic metadata and a third image sequence by decoding the first HDR10+ video (the third image sequence can be is an HDR still image); or, when the second device supports the SMPTE ST 2086 video standard, the second device can obtain the static metadata and the third image sequence by decoding the first HDR10+ video.
- the process of playing the HDR video may include: tone mapping processing 1302 based on dynamic metadata, user interface (user interface, UI) tone mapping processing 1303, dynamic The HDR image and the HDR UI are superimposed processing 1304, and display screen-based tone mapping processing 1305 and other steps.
- tone mapping processing 1302 based on dynamic metadata
- user interface user interface
- UI user interface
- the HDR image and the HDR UI are superimposed processing 1304, and display screen-based tone mapping processing 1305 and other steps.
- the second device may perform tone mapping on each frame of image in the third image sequence according to its corresponding dynamic metadata based on SMPTE ST2094-application4, to obtain a tone-mapped image sequence ; Further, the second device may also adjust the image brightness in the tone-mapped image sequence based on the peak brightness that the hardware of the second device can support, for example, it may be based on the benchmark brightness (for example, 400nit) of the dynamic metadata and the The hardware of the second device can support a proportional relationship between the peak luminances (for example, 500 nit), and adjust the brightness of the images in the image sequence after the tone mapping to obtain a dynamic HDR image sequence.
- the peak luminances for example, 500 nit
- the second device may adjust the tone of a standard dynamic range (standard dynamic range, SDR) UI icon based on a preset tone mapping rule to obtain an HDR UI.
- SDR standard dynamic range
- the second device may respectively superimpose each frame of the dynamic HDR image sequence with the HDR UI to obtain a mixed HDR image sequence.
- the second device may process the images in the mixed HDR image sequence into an image sequence in a display color space based on display screen tone mapping, thereby obtaining an HDR10+ video.
- the second device may use the third image sequence and the static metadata to generate an HDR10 video. It can be understood that the second device may also obtain the HDR10 video based on the static metadata and the third image sequence based on the embodiment corresponding to FIG. 13 , which will not be repeated here.
- the second device can decode and play the HDR10+ video sent by the first device.
- FIG. 14 is a schematic flowchart of another video processing method provided in the embodiments of the present application.
- the video processing method may include the following steps:
- the first device receives an operation of starting shooting in a movie mode.
- the movie mode is a mode for recording high dynamic range HDR video;
- the operation of starting shooting may be the operation of the control 503 for starting shooting in the embodiment corresponding to FIG. 5 , or the starting shooting The operation of can be the operation of the control 602 for starting shooting in the embodiment corresponding to FIG. 6 .
- the first device acquires a first image sequence based on the camera.
- the first image sequence corresponds to the first brightness scene
- the method for determining the first brightness scene may refer to the description in the embodiment corresponding to FIG. 8 , which will not be repeated here.
- the first device encodes the first HDR video based on the first image sequence and the first dynamic metadata corresponding to the first brightness scene.
- the first HDR video may be the first HDR10+ video described in the embodiment of the present application; the first dynamic metadata includes preset brightness.
- the second device acquires the first HDR video from the first device.
- the second device may acquire the first HDR video from the first device based on the embodiment corresponding to FIG. 11 .
- the first HDR video can be compatible with dynamic metadata and static metadata, so that the second device that supports dynamic metadata can use dynamic metadata to play the content in the first HDR video, or support static metadata.
- the second device for metadata may also use the static metadata to play the content in the first HDR video.
- the second device adjusts the brightness of the first HDR video based on the preset brightness to obtain the second HDR video.
- the second HDR video may be the second HDR10+ video described in the embodiment of this application.
- the second device may adjust the image in the first HDR video based on the 400 nit, so that the first HDR video The brightness of images in an HDR video is maintained at a maximum of 400nit.
- the second device when the dynamic metadata corresponding to the first HDR video indicates that the preset brightness of the first HDR video is 400nit, and the peak brightness of the second device is 700nit, the second device can The proportional relationship between 700nit and 700nit, the brightness of the image in the first HDR video is adaptively increased according to this proportional relationship, so that all 400nit images in the first HDR video can be displayed on the display screen of the 700nit second device.
- the second device plays the second HDR video.
- the second device may play the second HDR video based on the embodiment corresponding to FIG. 12 .
- the first device can match the dynamic metadata for the first image sequence acquired based on the camera and the brightness scene corresponding to the first image sequence, and use the dynamic metadata to adjust the first image sequence to obtain the first HDR video , and send the first HDR video to the second device, so that the second device can perform brightness mapping on the first HDR video based on the preset brightness indicated in the dynamic metadata, and display video content with appropriate brightness.
- the second device adjusts the brightness of the first HDR video based on the preset brightness to obtain the second HDR video.
- S1406 includes: the second device determines a brightness ratio; the brightness ratio is the peak brightness of the second device The ratio between the brightness and the preset brightness; the second device adjusts the brightness of the first HDR video based on the brightness ratio to obtain the second HDR video.
- the first device continues to acquire a second image sequence based on the camera; wherein, the second image sequence corresponds to a second brightness scene; the first brightness scene is different from the second brightness scene; the first device Based on the first image sequence and the first dynamic metadata corresponding to the first brightness scene, the first HDR video is encoded, including: the first device based on the first image sequence, the second image sequence, and the first dynamic corresponding to the first brightness scene The metadata and the second dynamic metadata corresponding to the second brightness scene are encoded to obtain the first HDR video.
- the method further includes: the first device performs image pre-processing on the first image sequence to obtain the first image sequence after image pre-processing; the first device performs image pre-processing on the first image sequence An image sequence is subjected to gamma correction processing to obtain a first image sequence after gamma correction processing; the first device performs 3D lookup table processing on the first image sequence after gamma correction processing to obtain a first image sequence after 3D lookup table processing An image sequence; wherein, the first image sequence processed by the 3D lookup table includes first static metadata corresponding to the first image sequence; the first device based on the first image sequence and the first dynamic metadata corresponding to the first brightness scene Data encoding to obtain the first HDR video includes: the first device encodes the first image sequence processed based on the 3D lookup table and the first dynamic metadata corresponding to the first brightness scene to obtain the first HDR video.
- the first HDR video includes first static metadata and first dynamic metadata.
- the method further includes: when the second device determines that it supports processing the first static metadata, the second device decodes the second HDR video into the first image sequence, and the first static metadata ; The second device encodes a third HDR video based on the first image sequence and the first static metadata; the second HDR video is different from the third HDR video.
- the type of the first HDR video is HDR10+ video
- the type of the second HDR video is HDR10+ video
- the type of the third HDR video is HDR10 video.
- S1401 includes: the first device receives an operation for turning on the movie mode; in response to the operation for turning on the movie mode, the first device displays a first interface; the first interface includes: A control for HDR video, and a control for enabling shooting; when the state of the control for recording the HDR video is off, the first device receives an operation for enabling the control for recording the HDR video; in response to the user For the operation of the control to record the HDR video, the first device displays the second interface; the second interface includes: a prompt message indicating that the 4K HDR10+ mode has been turned on; the state of the control used to record the HDR video is turned on , the first device receives an operation on a control for starting shooting.
- the operation for opening the movie mode may be the operation of the interface shown in a in 5 for the control 501 for opening the movie mode;
- the first interface may be the interface shown in b in FIG. 5 for recording
- the control for obtaining the HDR video can be the 4K HDR function control 502 shown in b in Figure 5, and the control for starting shooting can be the control 503 for starting shooting shown in b in Figure 5;
- the second interface can be as shown in Figure 5
- the prompt information used to indicate that the 4K HDR10+ mode has been turned on may be the prompt information 505 shown in c in FIG. 5 .
- the method further includes: when the state of the control for recording the HDR video is on, the first device receives an operation for turning off the control for recording the HDR video; Due to the operation of the controls for recording the HDR video, the first device displays a third interface; the third interface includes: a prompt message indicating that the 4K HDR10+ mode is turned off.
- the third interface may be the interface shown in d in FIG. 5
- the prompt information for indicating that the 4K HDR10+ mode is closed may be the prompt information 506 shown in d in FIG. 5 .
- the method further includes: the first device receives an operation of turning on the movie mode for the first time; in response to the first operation of turning on the movie mode, the first device displays a fourth interface; in the fourth interface Including: controls for recording HDR video, and a prompt message indicating that 4K HDR10+ video will be recorded after turning on the control for recording HDR video.
- the fourth interface may be the interface shown in b in FIG. 5
- the control for recording the HDR video may be the prompt information 504 shown in b in FIG. 5 .
- the first device receiving the operation of starting shooting in the movie mode includes: the first device receives the operation for turning on the movie mode; in response to the operation of turning on the movie mode, the first device displays the fifth interface; the fifth interface includes: a control for viewing the setting items corresponding to the first application, and a control for starting shooting; the first device receives an operation on the control for viewing the setting items corresponding to the first application; the response For the operation of checking the control of the setting item corresponding to the first application, the first device displays the sixth interface; the sixth interface includes: the first control for recording video with 10-bit HDR in movie mode and switching the video to 4K ; When the state of the first control is on, the first device receives an operation on the control for enabling shooting.
- the fifth interface may be the interface shown in a in FIG. 6, and the control for viewing the setting items corresponding to the first application may be the setting control 601 shown in a in FIG.
- the control can be the control 602 for starting shooting shown in a in FIG. 6;
- the sixth interface can be the interface shown in b in FIG. 6, and the first control can be the movie HDR function control 603 shown in b in FIG. 6 .
- the method further includes: the first device receives an operation on the control for viewing the function details in the first application; in response to the operation on the control for viewing the function details in the first application, the first The device displays a seventh interface; wherein, the seventh interface includes: the function details corresponding to the movie mode, and the function details of the movie mode are used to indicate that the movie mode can record 4K HDR10+ video.
- the seventh interface may be the interface shown in c in FIG. 7
- the function details corresponding to the movie mode may be the detailed description 703 corresponding to the movie mode shown in c in FIG. 7 .
- the method further includes: the first device receives an operation for opening the second application; in response to the operation of opening the second application, the first device displays an eighth interface; wherein, the eighth interface includes : the first HDR video, and the identification corresponding to the first HDR video; the identification is used to indicate the type of the first HDR video; the first device receives the operation for the first HDR video; in response to the operation for the first HDR video, the first The device displays a ninth interface; the ninth interface includes: an identification.
- the second application may be the gallery application in the embodiment of the present application
- the eighth interface may be the interface shown in a in FIG. 10
- the identifier may be the identifier 1004 shown in a in FIG. 10
- the ninth interface It may be the interface shown in b in FIG. 10
- the logo may be the logo 1005 shown in b in FIG. 10 .
- the method further includes: the second device displays a tenth interface; wherein, the tenth interface includes: The HDR video is the prompt information of the HDR10+ video containing dynamic metadata, the control for allowing to receive the first HDR video, and the control for refusing to receive the first HDR video; the second device receives the control for allowing to receive the first HDR video operation of the control; in response to the operation of the control allowing to receive the first HDR video, the second device displays an eleventh interface; wherein, the eleventh interface includes an indication for playing the first HDR video based on dynamic metadata Prompt information.
- the tenth interface may be the interface shown in b in FIG. 11
- the prompt information indicating that the first HDR video is an HDR10+ video containing dynamic metadata may be the prompt information 1103 shown in b in FIG. 11
- the eleventh interface may be the interface shown in FIG. 12
- the prompt information for instructing to play the first HDR video based on the dynamic metadata may be the prompt information 1201 in FIG. 12 .
- Figure 15 is a schematic structural diagram of a video processing device provided by the embodiment of the present application.
- the video processing device may be the terminal device in the embodiment of the present application, or it may be a chip or a chip system in the terminal device .
- the video processing device may be a device in the first device, or may also be a device in the second device.
- a video processing apparatus 150 may be used in a communication device, a circuit, a hardware component or a chip, and the video processing apparatus includes: a display unit 1501 , a processing unit 1502 , a communication unit 1503 and the like.
- the display unit 1501 is used to support the steps of display performed by the video processing method;
- the processing unit 1502 is used to support the steps of information processing performed by the video processing device.
- the processing unit 1502 and the display unit 1501 may be integrated, and the processing unit 1502 and the display unit 1501 may communicate.
- the video processing apparatus may further include: a storage unit 1504 .
- the storage unit 1504 may include one or more memories, and the memories may be devices used to store programs or data in one or more devices and circuits.
- the storage unit 1504 may exist independently, and is connected to the processing unit 1502 through a communication bus.
- the storage unit 1504 can also be integrated with the processing unit 1502 .
- the storage unit 1504 can store the computer-executed instructions of the method of the terminal device, so that the processing unit 1502 executes the method of the terminal device in the above embodiment .
- the storage unit 1504 may be a register, a cache, or a random access memory (random access memory, RAM), etc., and the storage unit 1504 may be integrated with the processing unit 1502.
- the storage unit 1504 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1504 may be independent from the processing unit 1502.
- the video processing apparatus may further include: a communication unit 1503 .
- the communication unit 1503 is used to support the video processing apparatus to interact with other devices.
- the communication unit 1503 may be a communication interface or an interface circuit.
- the communication unit 1503 may be a communication interface.
- the communication interface may be an input/output interface, a pin, or a circuit.
- the device in this embodiment can be correspondingly used to perform the steps performed in the above method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
- FIG. 16 is a schematic diagram of the hardware structure of another terminal device provided in the embodiment of the present application. As shown in FIG. interface 1603 as an example for illustration).
- the processor 1601 can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the execution of the application program program integrated circuit.
- CPU central processing unit
- ASIC application-specific integrated circuit
- Communication lines 1604 may include circuitry that communicates information between the components described above.
- the communication interface 1603 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
- a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
- the terminal device may also include a memory 1602.
- the memory 1602 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to.
- the memory may exist independently and be connected to the processor through the communication line 1604 . Memory can also be integrated with the processor.
- the memory 1602 is used to store computer-executed instructions for implementing the solution of the present application, and the execution is controlled by the processor 1601 .
- the processor 1601 is configured to execute computer-executed instructions stored in the memory 1602, so as to implement the method provided in the embodiment of the present application.
- the computer-executed instructions in the embodiments of the present application may also be referred to as application program codes, which is not specifically limited in the embodiments of the present application.
- the processor 1601 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 16 .
- a terminal device may include multiple processors, for example, processor 1601 and processor 1605 in FIG. 16 .
- processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
- a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
- FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
- the chip 170 includes one or more than two (including two) processors 1720 and a communication interface 1730 .
- memory 1740 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
- the memory 1740 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1720 .
- a part of the memory 1740 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
- the memory 1740 , the communication interface 1730 and the processor 1720 are coupled together through the bus system 1710 .
- the bus system 1710 may include not only a data bus, but also a power bus, a control bus, and a status signal bus.
- the various buses are labeled bus system 1710 in FIG. 17 .
- the methods described in the foregoing embodiments of the present application may be applied to the processor 1720 or implemented by the processor 1720 .
- the processor 1720 may be an integrated circuit chip with signal processing capability.
- each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1720 or instructions in the form of software.
- the above-mentioned processor 1720 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate Array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the processor 1720 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present invention .
- DSP digital signal processing
- ASIC application specific integrated circuit
- FPGA field-programmable gate array
- the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
- the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM).
- the storage medium is located in the memory 1740, and the processor 1720 reads the information in the memory 1740, and completes the steps of the above method in combination with its hardware.
- the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products.
- the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
- a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
- the computer can be a general purpose computer, special purpose computer, computer network, or other programmable apparatus.
- Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
- Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media.
- available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
- magnetic media e.g., floppy disks, hard disks, or tapes
- optical media e.g., A digital versatile disc (digital versatile disc, DVD)
- a semiconductor medium for example, a solid state disk (solid state disk, SSD)
- Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another.
- a storage media may be any target media that can be accessed by a computer.
- the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices.
- any connected cord is properly termed a computer-readable medium.
- Disk and disc includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Studio Devices (AREA)
Abstract
Description
Claims (26)
- 一种视频处理方法,其特征在于,应用于视频处理系统,所述视频处理系统中包括:第一设备以及第二设备,所述方法包括:所述第一设备接收在电影模式中开启拍摄的操作;所述电影模式为用于录制得到高动态范围HDR视频的模式;响应于所述开启拍摄的操作,所述第一设备基于摄像头获取第一图像序列;所述第一图像序列对应第一亮度场景;所述第一设备基于所述第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到第一HDR视频;所述第一动态元数据中包括预设亮度;所述第二设备获取来自于所述第一设备的所述第一HDR视频;所述第二设备基于所述预设亮度对所述第一HDR视频进行亮度调节,得到第二HDR视频;所述第二设备播放所述第二HDR视频。
- 根据权利要求1所述的方法,其特征在于,所述第二设备基于所述预设亮度对所述第一HDR视频进行亮度调节,得到第二HDR视频,包括:所述第二设备确定亮度比例;所述亮度比例为所述第二设备的峰值亮度与所述预设亮度之间的比例;所述第二设备基于所述亮度比例对所述第一HDR视频进行亮度调节,得到所述第二HDR视频。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:所述第一设备基于摄像头继续获取第二图像序列;其中,所述第二图像序列对应第二亮度场景;所述第一亮度场景与所述第二亮度场景不同;所述第一设备基于所述第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到第一HDR视频,包括:所述第一设备基于所述第一图像序列、所述第二图像序列、所述第一亮度场景对应的第一动态元数据、以及所述第二亮度场景对应的第二动态元数据,编码得到所述第一HDR视频。
- 根据权利要求1所述的方法,其特征在于,所述第一设备基于所述第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到第一HDR视频之前,所述方法还包括:所述第一设备对所述第一图像序列进行图像前处理,得到图像前处理后的第一图像序列;所述第一设备对所述图像前处理后的第一图像序列进行伽马校正处理,得到伽马校正处理后的第一图像序列;所述第一设备对所述伽马校正处理后的第一图像序列以进行3D查找表处理,得到3D查找表处理后的第一图像序列;其中,所述3D查找表处理后的第一图像序列中包括所述第一图像序列对应的第一静态元数据;所述第一设备基于所述第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到第一HDR视频,包括:所述第一设备基于所述3D查找表处理后的第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到所述第一HDR视频。
- 根据权利要求4所述的方法,其特征在于,所述第一HDR视频中包括:所述第一静态元数据以及所述第一动态元数据。
- 根据权利要求5所述的方法,其特征在于,所述方法还包括:当所述第二设备确定支持对所述第一静态元数据进行处理时,所述第二设备将所述第二HDR视频解码为所述第一图像序列、以及所述第一静态元数据;所述第二设备基于所述第一图像序列、以及所述第一静态元数据编码得到第三HDR视频;所述第二HDR视频与所述第三HDR视频不同。
- 根据权利要求6所述的方法,其特征在于,所述第一HDR视频的类型为HDR10+视频,所述第二HDR视频的类型为所述HDR10+视频,所述第三HDR视频的类型为HDR10视频。
- 根据权利要求1所述的方法,其特征在于,所述第一设备接收在电影模式中开启拍摄的操作,包括:所述第一设备接收用于打开所述电影模式的操作;响应于所述打开所述电影模式的操作,所述第一设备显示第一界面;所述第一界面中包括:用于录制得到所述HDR视频的控件、以及用于开启拍摄的控件;在所述用于录制得到所述HDR视频的控件的状态为关闭状态时,所述第一设备接收用于开启所述用于录制得到所述HDR视频的控件的操作;响应于所述用于录制得到所述HDR视频的控件的操作,所述第一设备显示第二界面;所述第二界面中包括:用于指示4K HDR10+模式已开启的提示信息;在所述用于录制得到所述HDR视频的控件的状态为开启状态时,所述第一设备接收针对所述用于开启拍摄的控件的操作。
- 根据权利要求8所述的方法,其特征在于,所述方法还包括:在所述用于录制得到所述HDR视频的控件的状态为开启状态时,所述第一设备接收用于关闭所述用于录制得到所述HDR视频的控件的操作;响应于所述用于录制得到所述HDR视频的控件的操作,所述第一设备显示第三界面;所述第三界面中包括:用于指示4K HDR10+模式已关闭的提示信息。
- 根据权利要求8所述的方法,其特征在于,所述方法还包括:所述第一设备接收到第一次打开所述电影模式的操作;响应于所述第一次打开所述电影模式的操作,所述第一设备显示第四界面;所述第四界面中包括:所述用于录制得到所述HDR视频的控件、以及用于指示开启所述用于录制得到所述HDR视频的控件后将录制4K HDR10+视频的提示信息。
- 根据权利要求8-10任一项所述的方法,其特征在于,所述第一设备接收在电影模式中开启拍摄的操作,包括:所述第一设备接收用于打开所述电影模式的操作;响应于所述打开所述电影模式的操作,所述第一设备显示第五界面;所述第五界面中包括:用于查看第一应用对应的设置项的控件、以及用于开启拍摄的控件;所述第一设备接收针对所述用于查看第一应用对应的设置项的控件的操作;响应于所述查看第一应用对应的设置项的控件的操作,所述第一设备显示第六界面;所述第六界面中包括:用于在所述电影模式中采用10比特HDR记录视频并将视 频切换至4K的第一控件;在所述第一控件的状态为开启状态下,所述第一设备接收针对所述用于开启拍摄的控件的操作。
- 根据权利要求8-11任一项所述的方法,其特征在于,所述方法还包括:所述第一设备接收针对用于查看第一应用中的功能详情的控件的操作;响应于所述查看第一应用中的功能详情的控件的操作,所述第一设备显示第七界面;其中,所述第七界面中包括:所述电影模式对应的功能详情,所述电影模式的功能详情用于指示所述电影模式可录制4K HDR10+视频。
- 根据权利要求8-12任一项所述的方法,其特征在于,所述方法还包括:所述第一设备接收用于打开第二应用的操作;响应于所述打开第二应用的操作,所述第一设备显示第八界面;其中,所述第八界面中包括:所述第一HDR视频、以及所述第一HDR视频对应的标识;所述标识用于指示所述第一HDR视频的类型;所述第一设备接收针对所述第一HDR视频的操作;响应于所述针对所述第一HDR视频的操作,所述第一设备显示第九界面;所述第九界面中包括:所述标识。
- 根据权利要求1所述的方法,其特征在于,所述第二设备获取来自于所述第一设备的所述第一HDR视频之后,所述方法还包括:所述第二设备显示第十界面;其中,所述第十界面中包括:用于指示所述第一HDR视频为包含动态元数据的HDR10+视频的提示信息、用于允许接收所述第一HDR视频的控件、以及用于拒绝接收所述第一HDR视频的控件;所述第二设备接收针对所述用于允许接收所述第一HDR视频的控件的操作;响应于所述允许接收所述第一HDR视频的控件的操作,所述第二设备显示第十一界面;其中,所述第十一界面中包括用于指示基于动态元数据对所述第一HDR视频进行播放的提示信息。
- 一种视频处理方法,其特征在于,应用于第一设备,所述方法包括:所述第一设备接收在电影模式中开启拍摄的操作;所述电影模式为用于录制得到高动态范围HDR视频的模式;响应于所述开启拍摄的操作,所述第一设备基于摄像头获取第一图像序列;所述第一图像序列对应第一亮度场景;所述第一设备基于所述第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到第一HDR视频;所述第一动态元数据中包括预设亮度;所述第一设备将所述第一HDR视频发送至第二设备。
- 根据权利要求15所述的方法,其特征在于,所述方法还包括:所述第一设备基于摄像头继续获取第二图像序列;其中,所述第二图像序列对应第二亮度场景;所述第一亮度场景与所述第二亮度场景不同;所述第一设备基于所述第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到第一HDR视频,包括:所述第一设备基于所述第一图像序列、所述第二图像序列、所述第一亮度场景对应的第一动态元数据、以及所述第二亮度场景对应的 第二动态元数据,编码得到所述第一HDR视频。
- 根据权利要求15所述的方法,其特征在于,所述第一设备基于所述第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到第一HDR视频之前,所述方法还包括:所述第一设备对所述第一图像序列进行图像前处理,得到图像前处理后的第一图像序列;所述第一设备对所述图像前处理后的第一图像序列进行伽马校正处理,得到伽马校正处理后的第一图像序列;所述第一设备对所述伽马校正处理后的第一图像序列以进行3D查找表处理,得到3D查找表处理后的第一图像序列;其中,所述3D查找表处理后的第一图像序列中包括所述第一图像序列对应的第一静态元数据;所述第一设备基于所述第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到第一HDR视频,包括:所述第一设备基于所述3D查找表处理后的第一图像序列、以及所述第一亮度场景对应的第一动态元数据编码得到所述第一HDR视频。
- 根据权利要求17所述的方法,其特征在于,所述第一HDR视频中包括所述第一静态元数据以及所述第一动态元数据。
- 一种视频处理方法,其特征在于,应用于第二设备,所述方法包括:所述第二设备获取来自于第一设备的第一HDR视频;其中,所述第一HDR视频中包括第一动态元数据以及第一图像序列;所述第一动态元数据中包括预设亮度;所述第二设备基于所述预设亮度对所述第一HDR视频进行亮度调节,得到第二HDR视频;所述第二设备播放所述第二HDR视频。
- 根据权利要求19所述的方法,其特征在于,所述第二设备基于所述预设亮度对所述第一HDR视频进行亮度调节,得到第二HDR视频,包括:所述第二设备确定亮度比例;所述亮度比例为所述第二设备的峰值亮度与所述预设亮度之间的比例;所述第二设备基于所述亮度比例对所述第一HDR视频进行亮度调节,得到所述第二HDR视频。
- 根据权利要求20所述的方法,其特征在于,所述第一HDR视频中包括第一静态元数据以及所述第一动态元数据。
- 根据权利要求21所述的方法,其特征在于,所述方法还包括:当所述第二设备确定支持对所述第一静态元数据进行处理时,所述第二设备将所述第二HDR视频解码为所述第一图像序列、以及所述第一静态元数据;所述第二设备基于所述第一图像序列、以及所述第一静态元数据编码得到第三HDR视频;所述第二HDR视频与所述第三HDR视频不同。
- 根据权利要求22所述的方法,其特征在于,所述第一HDR视频的类型为HDR10+视频,所述第二HDR视频的类型为所述HDR10+视频,所述第三HDR视频的类型为HDR10视频。
- 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处 理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,使得所述终端设备执行如权利要求1至14任一项所述的方法,或者,执行如权利要求15至18任一项所述的方法,或者,执行如权利要求19至23任一项所述的方法。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,使得计算机执行如权利要求1至14任一项所述的方法,或者,执行如权利要求15至18任一项所述的方法,或者,执行如权利要求19至23任一项所述的方法。
- 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,使得计算机执行如权利要求1至14任一项所述的方法,或者,执行如权利要求15至18任一项所述的方法,或者,执行如权利要求19至23任一项所述的方法。
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/558,829 US12363447B2 (en) | 2022-02-28 | 2023-01-10 | Video processing method and apparatus |
| CN202380022239.6A CN118696333A (zh) | 2022-02-28 | 2023-01-10 | 视频处理方法和装置 |
| EP23758920.5A EP4318383B1 (en) | 2022-02-28 | 2023-01-10 | Video processing method and system |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210193750.XA CN115564659B (zh) | 2022-02-28 | 2022-02-28 | 视频处理方法和装置 |
| CN202210193750.X | 2022-02-28 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| WO2023160295A1 true WO2023160295A1 (zh) | 2023-08-31 |
| WO2023160295A9 WO2023160295A9 (zh) | 2024-04-11 |
Family
ID=84736610
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/071669 Ceased WO2023160295A1 (zh) | 2022-02-28 | 2023-01-10 | 视频处理方法和装置 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US12363447B2 (zh) |
| EP (1) | EP4318383B1 (zh) |
| CN (2) | CN115564659B (zh) |
| WO (1) | WO2023160295A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025251827A1 (zh) * | 2024-06-07 | 2025-12-11 | 华为技术有限公司 | 数据生成方法、图像处理方法、数据及电子设备 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115564659B (zh) * | 2022-02-28 | 2024-04-05 | 荣耀终端有限公司 | 视频处理方法和装置 |
| EP4369728B1 (en) * | 2022-11-10 | 2026-01-14 | Beijing Xiaomi Mobile Software Co., Ltd. | Photographing method and device |
| CN117119291B (zh) * | 2023-02-06 | 2024-06-21 | 荣耀终端有限公司 | 一种出图模式切换方法和电子设备 |
| CN121012900A (zh) * | 2024-05-16 | 2025-11-25 | 荣耀终端股份有限公司 | 一种视频录制方法和设备 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190156468A1 (en) * | 2017-11-22 | 2019-05-23 | Thomson Licensing | Method and device for reconstructing a display adapted HDR image |
| CN112400324A (zh) * | 2018-07-20 | 2021-02-23 | 交互数字Vc控股公司 | 用于处理视频信号的方法和装置 |
| US20210183028A1 (en) * | 2017-11-30 | 2021-06-17 | Interdigital Vc Holdings, Inc. | Saturation control for high-dynamic range reconstruction |
| CN115564659A (zh) * | 2022-02-28 | 2023-01-03 | 荣耀终端有限公司 | 视频处理方法和装置 |
Family Cites Families (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5528209B2 (ja) | 2010-05-20 | 2014-06-25 | キヤノン株式会社 | 画像処理装置および画像処理方法 |
| US10880557B2 (en) * | 2015-06-05 | 2020-12-29 | Fastvdo Llc | High dynamic range image/video coding |
| US11183147B2 (en) * | 2016-10-07 | 2021-11-23 | Sony Semiconductor Solutions Corporation | Device and method for processing video content for display control |
| JP7086587B2 (ja) * | 2017-02-24 | 2022-06-20 | インターデジタル ヴイシー ホールディングス, インコーポレイテッド | 復号された画像データから画像データを再構成する方法および装置 |
| CN111095918B (zh) * | 2017-09-21 | 2023-03-21 | 索尼公司 | 再现装置、再现方法、程序和记录介质 |
| JP7133772B2 (ja) * | 2017-10-06 | 2022-09-09 | パナソニックIpマネジメント株式会社 | 映像表示システム及び映像表示方法 |
| CA2986520C (en) * | 2017-11-22 | 2026-03-17 | Interdigital Vc Holdings, Inc. | Method and device for reconstructing a display adapted hdr image |
| EP3525463A1 (en) * | 2018-02-13 | 2019-08-14 | Koninklijke Philips N.V. | System for handling multiple hdr video formats |
| CN108495053B (zh) | 2018-03-30 | 2020-08-11 | 海信视像科技股份有限公司 | 高动态范围信号的元数据处理方法和装置 |
| US10241283B1 (en) * | 2018-04-30 | 2019-03-26 | Sure-Fire Electrical Corporation | Signal transmission cable with HDMI connectors |
| US10477141B1 (en) * | 2018-05-17 | 2019-11-12 | Futurewei Technologies, Inc. | Frame synchronous packet switching for high-definition multimedia interface (HDMI) video transitions |
| JP7184544B2 (ja) * | 2018-06-08 | 2022-12-06 | シャープ株式会社 | 表示制御装置、表示装置、テレビジョン、及び表示制御方法 |
| CN112075083B (zh) * | 2018-06-25 | 2023-04-04 | 华为技术有限公司 | 一种包含字幕的高动态范围视频处理的方法及装置 |
| CN108900823B (zh) * | 2018-07-05 | 2019-07-12 | 华为技术有限公司 | 一种视频信号处理的方法及装置 |
| US10957024B2 (en) * | 2018-10-30 | 2021-03-23 | Microsoft Technology Licensing, Llc | Real time tone mapping of high dynamic range image data at time of playback on a lower dynamic range display |
| JP7246894B2 (ja) * | 2018-11-07 | 2023-03-28 | キヤノン株式会社 | 撮像装置およびその制御方法 |
| CN112532857B (zh) * | 2019-09-18 | 2022-04-12 | 华为技术有限公司 | 一种延时摄影的拍摄方法及设备 |
| CN115361510B (zh) * | 2020-05-08 | 2025-05-06 | 华为技术有限公司 | 一种高动态范围hdr视频的处理方法、编码设备和解码设备 |
| CN113810596B (zh) * | 2021-07-27 | 2023-01-31 | 荣耀终端有限公司 | 延时摄影方法和装置 |
| CN113810602B (zh) * | 2021-08-12 | 2023-07-11 | 荣耀终端有限公司 | 一种拍摄方法及电子设备 |
| CN113824914B (zh) * | 2021-08-12 | 2022-06-28 | 荣耀终端有限公司 | 视频处理方法、装置、电子设备和存储介质 |
-
2022
- 2022-02-28 CN CN202210193750.XA patent/CN115564659B/zh active Active
-
2023
- 2023-01-10 CN CN202380022239.6A patent/CN118696333A/zh active Pending
- 2023-01-10 WO PCT/CN2023/071669 patent/WO2023160295A1/zh not_active Ceased
- 2023-01-10 US US18/558,829 patent/US12363447B2/en active Active
- 2023-01-10 EP EP23758920.5A patent/EP4318383B1/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190156468A1 (en) * | 2017-11-22 | 2019-05-23 | Thomson Licensing | Method and device for reconstructing a display adapted HDR image |
| US20210183028A1 (en) * | 2017-11-30 | 2021-06-17 | Interdigital Vc Holdings, Inc. | Saturation control for high-dynamic range reconstruction |
| CN112400324A (zh) * | 2018-07-20 | 2021-02-23 | 交互数字Vc控股公司 | 用于处理视频信号的方法和装置 |
| CN115564659A (zh) * | 2022-02-28 | 2023-01-03 | 荣耀终端有限公司 | 视频处理方法和装置 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4318383A4 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025251827A1 (zh) * | 2024-06-07 | 2025-12-11 | 华为技术有限公司 | 数据生成方法、图像处理方法、数据及电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20240223911A1 (en) | 2024-07-04 |
| EP4318383A4 (en) | 2024-10-02 |
| US12363447B2 (en) | 2025-07-15 |
| CN115564659B (zh) | 2024-04-05 |
| EP4318383A1 (en) | 2024-02-07 |
| CN115564659A (zh) | 2023-01-03 |
| WO2023160295A9 (zh) | 2024-04-11 |
| CN118696333A (zh) | 2024-09-24 |
| EP4318383B1 (en) | 2025-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN115564659B (zh) | 视频处理方法和装置 | |
| KR102768317B1 (ko) | 프로젝션 데이터 프로세싱 방법 및 장치 | |
| CN115526787B (zh) | 视频处理方法和装置 | |
| CN115242992B (zh) | 视频处理方法、装置、电子设备和存储介质 | |
| CN115705663B (zh) | 图像处理方法与电子设备 | |
| CN116724560A (zh) | 跨设备的协同拍摄方法、相关装置及系统 | |
| CN115460343B (zh) | 图像处理方法、设备及存储介质 | |
| WO2023226612A1 (zh) | 一种曝光参数确定方法和装置 | |
| US12334114B2 (en) | Video editing method and electronic device | |
| WO2023005298A1 (zh) | 基于多摄像头的图像内容屏蔽方法和装置 | |
| CN116048323B (zh) | 图像处理方法及电子设备 | |
| WO2026082126A1 (zh) | 照片编辑方法及电子设备 | |
| CN115550556A (zh) | 一种曝光强度调节方法及相关装置 | |
| CN116347217B (zh) | 图像处理方法、设备及存储介质 | |
| CN119277215A (zh) | 图像处理方法、电子设备、计算机程序产品及存储介质 | |
| CN113891008A (zh) | 一种曝光强度调节方法及相关设备 | |
| CN119767076B (zh) | 视频编辑方法和电子设备 | |
| CN119273780B (zh) | 一种图像处理方法、电子设备及计算机可读存储介质 | |
| CN118264889B (zh) | 图像处理的方法和电子设备 | |
| CN117692714B (zh) | 视频显示方法、电子设备、计算机程序产品和存储介质 | |
| WO2025200862A1 (zh) | 摄像头颜色校准的方法、装置和电子设备 | |
| WO2026077473A1 (zh) | 一种视频渲染方法及电子设备 | |
| CN116095517A (zh) | 虚化方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23758920 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2023758920 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2023758920 Country of ref document: EP Effective date: 20231026 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18558829 Country of ref document: US |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202380022239.6 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 18558829 Country of ref document: US |
|
| WWG | Wipo information: grant in national office |
Ref document number: 2023758920 Country of ref document: EP |