WO2023125467A1 - Image processing method and apparatus, electronic device and readable storage medium - Google Patents
Image processing method and apparatus, electronic device and readable storage medium Download PDFInfo
- Publication number
- WO2023125467A1 WO2023125467A1 PCT/CN2022/142142 CN2022142142W WO2023125467A1 WO 2023125467 A1 WO2023125467 A1 WO 2023125467A1 CN 2022142142 W CN2022142142 W CN 2022142142W WO 2023125467 A1 WO2023125467 A1 WO 2023125467A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- color display
- display standard
- target color
- multimedia
- standard
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 239000000463 material Substances 0.000 claims abstract description 256
- 238000000034 method Methods 0.000 claims abstract description 49
- 238000009877 rendering Methods 0.000 claims abstract description 44
- 230000003287 optical effect Effects 0.000 claims description 33
- 238000006243 chemical reaction Methods 0.000 claims description 31
- 230000006870 function Effects 0.000 claims description 26
- 238000012545 processing Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 19
- 238000013507 mapping Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 description 15
- 230000000694 effects Effects 0.000 description 10
- 238000012546 transfer Methods 0.000 description 6
- 230000003044 adaptive effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000008014 freezing Effects 0.000 description 1
- 238000007710 freezing Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440254—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering signal-to-noise parameters, e.g. requantization
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/67—Circuits for processing colour signals for matrixing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/44—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/02—Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
- G11B27/031—Electronic editing of digitised analogue information signals, e.g. audio or video signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
Definitions
- the present disclosure relates to the technical field of image processing, and in particular to an image processing method, device, electronic equipment, and readable storage medium.
- the disclosure provides an image processing method, device, electronic equipment and readable storage medium.
- the present disclosure provides an image processing method, including:
- the target color display standard determine the non-target color display standard multimedia materials included in the plurality of multimedia materials
- the multiple multimedia materials are exported as video files in a specific format.
- the method before determining the non-target color display standard multimedia materials included in the plurality of multimedia materials according to the target color display standard, the method further includes:
- the target color display standard is determined.
- said determining the target color display standard includes:
- the target color display standard is determined according to the color display standards respectively corresponding to the plurality of multimedia materials.
- the determining the target color display standard according to the color display standards respectively corresponding to the plurality of multimedia materials includes:
- the target color display standard is determined according to the color display standard with the widest color space among the color display standards respectively corresponding to the plurality of multimedia materials.
- the determining the target color display standard includes: determining the target color display standard according to a pre-specified color display standard.
- the converting the multimedia material of the non-target color display standard into the multimedia material of the target color display standard includes:
- the non-target color display standard is generated according to the video frame image of another multimedia material of the non-target color display standard in the plurality of multimedia materials at the freeze frame position, then the non-target color display converting the standard multimedia material to display the standard multimedia material in said target color; or
- the non-target color display standard is generated according to the video frame image of the multimedia material of the target color display standard in the plurality of multimedia materials at the fixed position, then the non-target color display standard is not displayed. multimedia material for conversion.
- the target color display standard is a perceptual quantization PQ color display standard
- the non-target color display standard includes a standard dynamic range SDR color display standard and/or a mixed logarithmic gamma curve HLG color display standard; or,
- the target color display standard is the SDR color display standard, and the non-target color display standard includes the HLG color display standard and/or the PQ color display standard; or,
- the target color display standard is the HLG color display standard
- the non-target color display standard includes the SDR color display standard and/or the PQ color display standard.
- the method before performing image rendering on the plurality of multimedia materials according to the target color display standard, the method further includes:
- the plurality of multimedia materials are processed according to clipping operation modes respectively corresponding to one or more clip types.
- an image processing device including:
- An identification module configured to determine non-target color display standard multimedia materials included in the plurality of multimedia materials according to the target color display standard
- a conversion module configured to convert the multimedia material of the non-target color display standard into the multimedia material of the target color display standard
- a rendering module configured to perform image rendering on the plurality of multimedia materials
- a control module configured to control displaying the multiple multimedia materials on the display screen of the electronic device according to the image rendering result, or control exporting the multiple multimedia materials into a video file in a specific format according to the image rendering result .
- the present disclosure provides an electronic device, including: a memory and a processor;
- the memory is configured to store computer program instructions
- the processor is configured to execute the computer program instructions, so that the electronic device implements the image processing method as described in the first aspect.
- the present disclosure provides a readable storage medium, including: computer program instructions;
- At least one processor of the electronic device executes the computer program instructions to implement the image processing method as described in the first aspect.
- the present disclosure provides a computer program product, which, when executed by a computer, causes the computer to implement the image processing method as described in the first aspect.
- the present disclosure provides a computer program, including instructions, which, when executed by a processor, cause the processor to implement the image processing method as described in the first aspect.
- the present disclosure provides an image processing method, device, electronic equipment, and readable storage medium, wherein the method includes: traversing multiple multimedia materials, and determining non-target color display standards included in the multiple multimedia materials according to the target color display standard Multimedia materials; convert non-target color display standard multimedia materials into target color display standard multimedia materials; and perform image rendering on multiple multimedia materials according to the target color display standard, and display or export to a specific format according to the image rendering results video file.
- FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure
- FIGS. 2A-2B are schematic flowcharts of an image processing method provided by another embodiment of the present disclosure.
- FIG. 3 is a schematic flowchart of an image processing method provided by another embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure.
- Fig. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- the edited video can meet the expected display effect.
- different color display standards have different parameters such as color space, brightness range, etc.
- the synthesized video obtained after editing and the preview during the editing process will be different if the color display standards are different.
- the expected display effect cannot be achieved.
- the first multimedia material is a standard dynamic range (Standard Dynamic Range, SDR) color display standard multimedia material
- the second multimedia material is a high dynamic range (High Dynamic Range, HDR) color display standard multimedia material.
- the standard color space of color display is bt.709, and the brightness range is 0-100nit, while the standard color space of HDR color display is bt.2020, and the brightness range is 0-10000nit.
- the present disclosure provides an image processing method, device, electronic equipment, readable storage medium, and computer program product, wherein the method converts non-target color display standard multimedia materials among a plurality of multimedia materials into target color display Standard multimedia materials make the color display standards of multiple multimedia materials consistent.
- the composite video obtained based on this each multimedia material is displayed according to the target color display standard, and the visual effect is consistent, so that the display effect of multimedia materials can be achieved. expected.
- the image processing method provided in the present disclosure may be executed by the image processing device provided in the present disclosure, and the image processing device may be implemented by any software and/or hardware.
- the image processing device may include but not limited to: tablet computer, mobile phone (such as folding screen mobile phone, large-screen mobile phone, etc.), notebook computer, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital Assistant (personal digital assistant, PDA), smart TV, smart screen, high-definition TV, 4K TV, smart projector and other Internet of things (the internet of things, IOT) equipment, server, server cluster, cloud server, etc.
- IOT internet of things
- server cluster server cluster
- cloud server etc.
- the specific type of electronic device is not limited in any way.
- the embodiment of the present disclosure will take an electronic device as an example, and a video editing application (referred to as application 1) is installed in the electronic device, and multiple multimedia materials can be edited through the application 1 as an example.
- application 1 a video editing application
- this disclosure provides The image processing method is described in detail.
- the image processing method provided by the present disclosure can be applied to the following scenarios.
- Scenario 1 Start application 1, when importing multimedia materials for the first time.
- Scenario 2 In the process of editing multiple multimedia materials, when adding a new multimedia material.
- Scenario 3 Using the freeze function provided by application 1, when inserting a specified multimedia material at the freeze position.
- the "freezing function” refers to saving the video frame image at the specified position as an image, and then inserting a corresponding number of the image at the specified position according to the playback rate.
- FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure. Referring to Figure 1, the method provided in this embodiment includes:
- S101 Determine, according to the target color display standard, multimedia materials that are not included in the target color display standard included in the plurality of multimedia materials.
- the present disclosure does not limit the types of multimedia materials.
- the multimedia material may be any type of material such as a photo, a picture, or a video.
- the present disclosure does not limit the number of multimedia materials.
- the color display standards corresponding to the multiple multimedia materials may not be completely the same, or may also be the same, which is not limited in the present disclosure.
- the target color display standard is the PQ color display standard
- the non-target color display standard includes the SDR color display standard and/or the HLG color display standard
- the target color display standard is the SDR color display standard
- the non-target color display standard includes The HLG color display standard and/or the PQ color display standard
- the target color display standard is the HLG color display standard
- the non-target color display standard includes the SDR color display standard and/or the PQ color display standard.
- the target color display standard and the non-target color display standard are not limited to the above situations.
- the target color display standard may also be a color display standard with a wider color space and a higher brightness range.
- the electronic device can start the application 1, and obtain a plurality of multimedia materials from the local storage space of the electronic device through related entries provided by the application 1.
- the electronic device acquires the multimedia material, it simultaneously acquires the relevant attribute information of each multimedia material, and determines the target color display standard corresponding to the multimedia material based on the relevant attribute information of the multimedia material.
- the relevant attribute information of the multimedia material may include color space information, color description information (color transfer information), etc.
- the electronic device may determine the color display standard corresponding to the multimedia material based on the color description information corresponding to the multimedia material.
- application 1 can determine the color display standard corresponding to each multimedia material in the multiple multimedia materials by traversing the relevant information of multiple multimedia materials, and compare the color display standard corresponding to each multimedia material with the target color display standard , so as to determine the non-target color display standard multimedia materials included in the multiple multimedia materials.
- the non-target color display standard multimedia material can be one or more.
- multimedia materials there are 5 multimedia materials, 3 of which are PQ color display standard multimedia materials, 1 is HLG color display standard multimedia material, and the other is SDR color display standard multimedia material;
- the target color display standard is PQ color display standard
- the non-target color display standard multimedia material includes HLG color display standard multimedia material and SDR color display standard multimedia material.
- the corresponding image when the corresponding image is inserted at the specified position through the freeze function provided by application 1, if the color display standard of the original multimedia material of the acquired image is different from the color display standard of the saved image, the inserted image will Chromatic aberration occurs.
- the original multimedia material corresponding to the specified location is an HDR color display standard, but the electronic device only supports saving the image at the specified location as an image in jpeg format, and the image in jpeg format is an image in SDR color display standard, which will result in an inserted There is a color difference between the image and the original multimedia material.
- a description file can be generated for the image, and relevant attribute information of the image can be stored in the description file, for example, the color display corresponding to the image source (that is, the original multimedia material) standard information.
- the image if it is determined based on the description file that the image comes from a multimedia material with a target color display standard, although the image is saved as a non-target color display standard, it is not necessary to convert the image; if the source of the image is determined based on the description file If the image is a non-target color display standard multimedia material, it is determined that the image is a non-target color display standard multimedia material that needs to be converted.
- a multimedia material among the multiple multimedia materials is generated based on another multimedia material among the multiple multimedia materials, it is determined whether the multimedia material needs to be converted based on the color display standard of the source multimedia material.
- step S102 may include the following steps:
- Step a Decode the multimedia material of the non-target color display standard, and obtain the color value of each pixel of the multimedia material under the non-target color display standard, that is, obtain the first set of color values.
- Step b Based on the electro-optical transfer function (EOTF) corresponding to the non-target color display standard, each color value in the first color value set is converted into an optical signal under the non-target color display standard to obtain the first optical signal set.
- EOTF electro-optical transfer function
- the electro-optical conversion function is a function used to describe the relationship between the nonlinear color value input to the display (digitally encoded pixel value, electrical signal) and the linear color value (optical signal) displayed by the display.
- the equipment Since the equipment stores and transmits electrical signals (i.e. color values), and the electro-optical conversion functions corresponding to different color display standards are different, therefore, the color value of each pixel of the multimedia material in the non-target color display standard is converted into the target color
- it is first necessary to convert the color values of each pixel of the multimedia material in the non-target color display standard into light signals, so as to realize the conversion of color values in different color color spaces in linear space.
- Step c Based on an optical-to-optical transfer function (OOTF), each optical signal in the first optical signal set is converted to obtain a second optical signal set under the target color display standard.
- OOTF optical-to-optical transfer function
- Step d Based on the optoelectronic transfer function (OETF) corresponding to the target color display standard, each optical signal in the second optical signal set is converted into a color value to obtain a second color value set of the multimedia material under the target color display standard.
- OETF optoelectronic transfer function
- the optical signal under the target color display standard By converting the optical signal under the target color display standard into the electrical signal (color value) under the target color display standard, the color value of each pixel of the multimedia material under the target color display standard is obtained.
- the multimedia material may be converted in units of frames.
- the target color display standard is the PQ color display standard
- the non-target color display standard is the HLG color display standard as an example, with reference to FIG. 2A , for illustration.
- the multimedia material of the HLG color display standard is referred to as the HLG material for short
- the multimedia material of the PQ color display standard is referred to as the PQ material for short.
- the HLG material will be decoded to obtain the RGB value of each pixel of the HLG material under the HLG color display standard; according to the EOTF of the HLG color display standard, each RGB value under the HLG color display standard will be converted to the HLG color display standard under the optical signal; based on the optical-to-optical conversion function between the HLG color display standard and the PQ color display standard, each optical signal under the HLG color display standard is converted into an optical signal under the PQ color display standard; and then according to the PQ color display standard The photoelectric conversion function converts each optical signal under the PQ color display standard into the RGB value under the PQ color display standard, so as to realize the conversion of HLG material into SDR material.
- gamut mapping can also be performed to align different color display standards.
- the color value in the standard does not limit the specific implementation manner of the color gamut mapping process.
- the target color display standard is the SDR color display standard and the non-target color display standard is the PQ color display standard
- the same RGB value represents different colors in the PQ color display standard and in the SDR color display standard. Therefore, the PQ color can be
- the color gamut mapping process is performed on each optical signal, so as to align the color values in different color display standards.
- each optical signal under the SDR color display standard is converted into a PQ by an optical-to-optical conversion function.
- color gamut mapping processing can be performed on each optical signal, and then the optical signals obtained after the color gamut mapping processing under the PQ color display standard are converted into electrical signals under the PQ color display standard.
- the color gamut mapping process can also be performed when converting the multimedia material of the PQ color display standard to the SDR color display standard multimedia material, and converting the HLG color display standard multimedia material to the SDR color display standard multimedia material. Its implementation is similar to that shown in FIG. 2B , and for the sake of brevity, details are not repeated here.
- the application 1 can implement step S102 by calling an application programming interface (Application Programming Interface, API) provided by the function module that realizes the conversion between the above-mentioned different color display standards.
- API Application Programming Interface
- the functional module that realizes the conversion of HLG color display standard multimedia materials into PQ color display standard multimedia materials provides an API.
- the API name is "TECoreHLG2PQCore”. Convert the multimedia material of HLG color display standard to the multimedia material of PQ color display standard.
- the function module used to realize the conversion of multimedia material of SDR color display standard into multimedia material of PQ color display standard provides an API.
- the API name is "TECoreSDR2PQCore”.
- Multimedia material with color display standard is converted into multimedia material with PQ color display standard.
- the conversion method through the API is similar to this example, and will not be repeated here for the sake of brevity.
- the image rendering of the multimedia material can be realized by using the currently existing rendering technology, and the present disclosure does not limit the specific implementation manner of image rendering.
- the electronic device can convert the RGB color value of each pixel of the multimedia image material into an optical signal according to the electro-optic conversion function corresponding to the target color display standard and the image rendering result, so as to perform exhibit.
- the electronic device can convert the RGB color value of each pixel of the multimedia image material into an optical signal according to the electro-optic conversion function corresponding to the target color display standard and the image rendering result, so as to perform exhibit.
- part or all of the multiple multimedia materials can be displayed.
- the multimedia material corresponding to the specific position may be displayed according to the target color display standard.
- the multiple multimedia materials are played sequentially according to the target color display standard.
- the image rendering result can be based on the RGB color value information corresponding to the multimedia material of the target color display standard to encode and save For video files of a specific format, for example, mp4 format.
- the method provided in this embodiment by traversing a plurality of multimedia materials, according to the target color display standard, determine the non-target color display standard multimedia materials included in the multiple multimedia materials; convert the non-target color display standard multimedia materials into target color display Standard multimedia materials; perform image rendering on multiple multimedia materials according to the target color display standard, so as to display multiple multimedia materials on the display screen of the electronic device according to the image rendering results, or, according to the image rendering results, render multiple multimedia materials
- the footage is exported as a video file in a specific format. Therefore, it can be realized that the display effect of the multimedia material meets expectations.
- the multimedia materials before performing image rendering on the multiple multimedia materials according to the target color display standard, the multimedia materials can also be clipped, for example, according to one or more
- the editing operation mode corresponding to the editing type is used to edit the multimedia material.
- the editing type includes, for example: filters, special effects, stickers and the like.
- the editing operation mode is a specific editing mode provided by the above editing types, for example, the filter may include: a landscape filter, a food filter, and the like.
- Fig. 3 is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure. Referring to Figure 3, the method provided in this embodiment includes:
- the target color display standard may be determined based on an adaptive strategy, that is, the adaptive strategy is a strategy representing the change of the target color display standard along with the target color display standard corresponding to multiple multimedia materials.
- the target color display standard may be the color display standard with the widest color space among the color display standards respectively corresponding to the plurality of multimedia materials.
- the color display standards corresponding to the 3 multimedia materials are the same, assuming that the 3 multimedia materials are all multimedia materials with SDR color display standards; in the process of video editing, the newly imported A multimedia material, the newly imported multimedia material is a multimedia material of the PQ color display standard, based on the adaptive strategy, it can be determined that the target color display standard is the PQ color display standard, that is, it is necessary to convert the previously imported 3 multimedia materials into PQ Color display standard.
- the target color display standard may be a pre-designated color display standard.
- the target color display standard may be the color display standard specified by application 1 .
- the electronic device supports the target color display standard for on-screen display. For example, when determining whether an electronic device using the android system supports the HDR color display standard on the screen, the display parameters supported by the screen of the electronic device and the graphics API can be verified. When both verifications pass, the electronic device is determined to be Support HDR color display standard on the screen.
- the specific implementation is not limited to the implementation of checking the display parameters supported by the screen of the electronic device and checking the graphics API.
- Steps S302 to S304 in this embodiment are similar to S101 to S103 in the embodiment shown in FIG. 1 , and reference may be made to the detailed description of the embodiment shown in FIG. 1 . For the sake of brevity, details are not repeated here.
- the method provided in this embodiment by traversing a plurality of multimedia materials, according to the target color display standard, determine the non-target color display standard multimedia materials included in the multiple multimedia materials; convert the non-target color display standard multimedia materials into target color display Standard multimedia materials; according to the target color display standard, image rendering is performed on multiple multimedia materials, and based on the image rendering results, it can be displayed on the screen or exported as a video file in a specific video format. Therefore, the problem of abnormal display effect of the synthesized video obtained by editing multimedia materials with different color display standards is solved.
- the flexibility of image processing can be improved by determining the target color display standard through an adaptive strategy or a specified method.
- the present disclosure also provides an image processing device.
- FIG. 4 is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure.
- the image processing device 400 provided in this embodiment includes:
- the identification module 401 is configured to determine, according to the target color display standard, the multimedia materials included in the plurality of multimedia materials that are not of the target color display standard.
- the conversion module 402 is configured to convert the multimedia material of the non-target color display standard into the multimedia material of the target color display standard.
- the rendering module 403 is configured to perform image rendering on the plurality of multimedia materials according to the target color display standard, and obtain an image rendering result.
- the image processing apparatus 400 may further include: a control module 404, configured to control the display screen of the electronic device to display a plurality of multimedia materials according to the image rendering result, or, according to the image rendering result, control to export the plurality of multimedia materials as A video file of a specific format.
- a control module 404 configured to control the display screen of the electronic device to display a plurality of multimedia materials according to the image rendering result, or, according to the image rendering result, control to export the plurality of multimedia materials as A video file of a specific format.
- the identification module 401 is further configured to determine the target color display standard before determining the non-target color display standard multimedia materials included in the plurality of multimedia materials according to the target color display standard.
- the identification module 401 is specifically configured to determine the target color display standard according to the color display standards respectively corresponding to the plurality of multimedia materials.
- the identification module 401 is specifically configured to determine the target color display standard according to the color display standard with the widest color space among the color display standards respectively corresponding to the plurality of multimedia materials.
- the identifying module 401 is specifically configured to determine the target color display standard according to a pre-specified color display standard.
- the conversion module 402 is specifically configured to if the multimedia material of the non-target color display standard is a video at a freeze frame position according to another multimedia material of the non-target color display standard among the multiple multimedia materials If the frame image is generated, the multimedia material of the non-target color display standard is converted into the multimedia material of the target color display standard; or, if the multimedia material of the non-target color display standard is based on the multiple multimedia materials If the target color display standard multimedia material is generated from the video frame image at the freeze position, the non-target color display standard multimedia material will not be converted.
- the target color display standard is the PQ color display standard
- the non-target color display standard includes the SDR color display standard and/or the HLG color display standard
- the target color display standard is the SDR color display standard Standard
- the non-target color display standard includes HLG color display standard and/or PQ color display standard
- the target color display standard is HLG color display standard
- the non-target color display standard includes SDR color display standard and/or or PQ color display standard.
- the image processing apparatus 400 may further include: a clipping processing module, configured to process the multiple multimedia materials according to clipping operation modes respectively corresponding to one or more clipping types.
- the rendering module 403 can render the image in real time according to the processing result of the clipping operation mode, and preview the clipping effect on the display screen of the electronic device.
- the image processing device provided in this embodiment can be used to execute any of the above method embodiments, and its implementation principles and technical effects are similar, and reference can be made to the detailed description of the foregoing method embodiments. For the sake of brevity, details are not repeated here.
- the present disclosure also provides an electronic device.
- FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- an electronic device 500 provided in this embodiment includes: a memory 501 and a processor 502 .
- the memory 501 may be an independent physical unit, and may be connected with the processor 502 through the bus 503 .
- the memory 501 and the processor 502 may also be integrated together, implemented by hardware, and the like.
- the memory 501 is used to store program instructions, and the processor 502 invokes the program instructions to execute the technical solution of any one of the above method embodiments.
- the foregoing electronic device 500 may also include only the processor 502 .
- the memory 501 for storing programs is located outside the electronic device 500, and the processor 502 is connected to the memory through circuits/wires, and is used to read and execute the programs stored in the memory.
- the processor 502 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP.
- CPU central processing unit
- NP network processor
- the processor 502 may further include a hardware chip.
- the aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof.
- the aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
- the memory 501 may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory) ), a hard disk (hard disk drive, HDD) or a solid-state drive (solid-state drive, SSD); the memory can also include a combination of the above-mentioned types of memory.
- volatile memory such as a random-access memory (random-access memory, RAM
- non-volatile memory such as a flash memory (flash memory)
- HDD hard disk drive
- solid-state drive solid-state drive
- the present disclosure also provides a readable storage medium, including: computer program instructions;
- the present disclosure also provides a computer program product.
- the computer program product When the computer program product is executed by a computer, the computer implements the image processing method shown in any one of the above method embodiments.
- the present disclosure also provides a computer program, including instructions, which, when executed by a processor, enable the processor to implement the image processing method shown in any one of the above method embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Image Processing (AREA)
- Controls And Circuits For Display Device (AREA)
- Processing Or Creating Images (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The present disclosure relates to an image processing method and apparatus, an electronic device and a readable storage medium. The method comprises: traversing a plurality of multimedia materials, and according to a target color display standard, determining a multimedia material of a non-target color display standard included in the plurality of multimedia materials; converting the multimedia material of the non-target color display standard into a multimedia material of the target color display standard; and performing image rendering on the plurality of multimedia materials according to the target color display standard, so as to display the plurality of multimedia materials according to the image rendering result or export the plurality of multimedia materials as a video file in a specific format according to the image rendering result.
Description
相关申请的交叉引用Cross References to Related Applications
本申请是以申请号为202111658426.2,申请日为2021年12月30日的中国申请为基础,并主张其优先权,该中国申请的公开内容在此作为整体引入本申请中。This application is based on the Chinese application with the application number 202111658426.2 and the filing date is December 30, 2021, and claims its priority. The disclosure content of the Chinese application is hereby incorporated into this application as a whole.
本公开涉及图像处理技术领域,尤其涉及一种图像处理方法、装置、电子设备及可读存储介质。The present disclosure relates to the technical field of image processing, and in particular to an image processing method, device, electronic equipment, and readable storage medium.
在进行视频编辑时,常常会对多个多媒体素材进行编辑,以生成符合预期显示效果的视频。When performing video editing, multiple multimedia materials are often edited to generate a video that meets expected display effects.
发明内容Contents of the invention
本公开提供了一种图像处理方法、装置、电子设备及可读存储介质。The disclosure provides an image processing method, device, electronic equipment and readable storage medium.
第一方面,本公开提供了一种图像处理方法,包括:In a first aspect, the present disclosure provides an image processing method, including:
根据目标色彩显示标准,确定所述多个多媒体素材包括的非目标色彩显示标准的多媒体素材;According to the target color display standard, determine the non-target color display standard multimedia materials included in the plurality of multimedia materials;
将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材;以及converting the multimedia material of the non-target color display standard into the multimedia material of the target color display standard; and
根据所述目标色彩显示标准,对所述多个多媒体素材进行图像渲染,以根据图像渲染结果,在电子设备的显示屏幕上展示所述多个多媒体素材,或者,根据所述图像渲染结果,将所述多个多媒体素材导出为特定格式的视频文件。Perform image rendering on the multiple multimedia materials according to the target color display standard, so as to display the multiple multimedia materials on the display screen of the electronic device according to the image rendering result, or, according to the image rendering result, render the The multiple multimedia materials are exported as video files in a specific format.
在一些实施例中,所述根据目标色彩显示标准,确定所述多个多媒体素材包括的非目标色彩显示标准的多媒体素材之前,所述方法还包括:In some embodiments, before determining the non-target color display standard multimedia materials included in the plurality of multimedia materials according to the target color display standard, the method further includes:
确定所述目标色彩显示标准。The target color display standard is determined.
在一些实施例中,所述确定目标色彩显示标准,包括:In some embodiments, said determining the target color display standard includes:
根据所述多个多媒体素材分别对应的色彩显示标准,确定所述目标色彩显示标准。The target color display standard is determined according to the color display standards respectively corresponding to the plurality of multimedia materials.
在一些实施例中,所述根据所述多个多媒体素材分别对应的色彩显示标准,确定所述目标色彩显示标准,包括:In some embodiments, the determining the target color display standard according to the color display standards respectively corresponding to the plurality of multimedia materials includes:
根据所述多个多媒体素材分别对应的色彩显示标准中颜色空间最广的色彩显示标准,确定所述目标色彩显示标准。The target color display standard is determined according to the color display standard with the widest color space among the color display standards respectively corresponding to the plurality of multimedia materials.
在一些实施例中,所述确定所述目标色彩显示标准,包括:根据预先指定的色彩显示标准,确定所述目标色彩显示标准。In some embodiments, the determining the target color display standard includes: determining the target color display standard according to a pre-specified color display standard.
在一些实施例中,所述将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材,包括:In some embodiments, the converting the multimedia material of the non-target color display standard into the multimedia material of the target color display standard includes:
若所述非目标色彩显示标准的多媒体素材是根据所述多个多媒体素材中另一所述非目标色彩显示标准的多媒体素材在定格位置的视频帧图像生成的,则将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材;或者If the multimedia material of the non-target color display standard is generated according to the video frame image of another multimedia material of the non-target color display standard in the plurality of multimedia materials at the freeze frame position, then the non-target color display converting the standard multimedia material to display the standard multimedia material in said target color; or
若所述非目标色彩显示标准的多媒体素材是根据所述多个多媒体素材中所述目标色彩显示标准的多媒体素材在所述定格位置的视频帧图像生成的,则不对所述非目标色彩显示标准的多媒体素材进行转换。If the multimedia material of the non-target color display standard is generated according to the video frame image of the multimedia material of the target color display standard in the plurality of multimedia materials at the fixed position, then the non-target color display standard is not displayed. multimedia material for conversion.
在一些实施例中,所述目标色彩显示标准为感知量化PQ色彩显示标准,所述非目标色彩显示标准包括标准动态范围SDR色彩显示标准和/或混合对数型伽玛曲线HLG色彩显示标准;或者,In some embodiments, the target color display standard is a perceptual quantization PQ color display standard, and the non-target color display standard includes a standard dynamic range SDR color display standard and/or a mixed logarithmic gamma curve HLG color display standard; or,
所述目标色彩显示标准为SDR色彩显示标准,所述非目标色彩显示标准包括HLG色彩显示标准和/或PQ色彩显示标准;或者,The target color display standard is the SDR color display standard, and the non-target color display standard includes the HLG color display standard and/or the PQ color display standard; or,
所述目标色彩显示标准为HLG色彩显示标准,所述非目标色彩显示标准包括SDR色彩显示标准和/或PQ色彩显示标准。The target color display standard is the HLG color display standard, and the non-target color display standard includes the SDR color display standard and/or the PQ color display standard.
在一些实施例中,所述根据所述目标色彩显示标准,对所述多个多媒体素材进行图像渲染之前,所述方法还包括:In some embodiments, before performing image rendering on the plurality of multimedia materials according to the target color display standard, the method further includes:
根据一个或者多个剪辑类型分别对应的剪辑操作方式,对所述多个多媒体素材进行处理。The plurality of multimedia materials are processed according to clipping operation modes respectively corresponding to one or more clip types.
第二方面,本公开提供了一种图像处理装置,包括:In a second aspect, the present disclosure provides an image processing device, including:
识别模块,用于根据目标色彩显示标准,确定所述多个多媒体素材包括的非目标色彩显示标准的多媒体素材;An identification module, configured to determine non-target color display standard multimedia materials included in the plurality of multimedia materials according to the target color display standard;
转换模块,用于将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材;A conversion module, configured to convert the multimedia material of the non-target color display standard into the multimedia material of the target color display standard;
渲染模块,用于对所述多个多媒体素材进行图像渲染;以及a rendering module, configured to perform image rendering on the plurality of multimedia materials; and
控制模块,用于根据图像渲染结果,控制在电子设备的显示屏幕上展示所述多个多媒体素材,或者,根据所述图像渲染结果,控制将所述多个多媒体素材导出为特定格式的视频文件。A control module, configured to control displaying the multiple multimedia materials on the display screen of the electronic device according to the image rendering result, or control exporting the multiple multimedia materials into a video file in a specific format according to the image rendering result .
第三方面,本公开提供了一种电子设备,包括:存储器和处理器;In a third aspect, the present disclosure provides an electronic device, including: a memory and a processor;
所述存储器被配置为存储计算机程序指令;the memory is configured to store computer program instructions;
所述处理器被配置为执行所述计算机程序指令,使得所述电子设备实现如第一方面所述的图像处理方法。The processor is configured to execute the computer program instructions, so that the electronic device implements the image processing method as described in the first aspect.
第四方面,本公开提供了一种可读存储介质,包括:计算机程序指令;In a fourth aspect, the present disclosure provides a readable storage medium, including: computer program instructions;
电子设备的至少一个处理器执行所述计算机程序指令,以实现如第一方面所述的图像处理方法。At least one processor of the electronic device executes the computer program instructions to implement the image processing method as described in the first aspect.
第五方面,本公开提供一种计算机程序产品,当所述计算机程序产品被计算机执行时,使得所述计算机实现如第一方面所述的图像处理方法。In a fifth aspect, the present disclosure provides a computer program product, which, when executed by a computer, causes the computer to implement the image processing method as described in the first aspect.
第六方面,本公开提供一种计算机程序,包括指令,所述指令当由处理器执行时,使得所述处理器实现如第一方面所述的图像处理方法。In a sixth aspect, the present disclosure provides a computer program, including instructions, which, when executed by a processor, cause the processor to implement the image processing method as described in the first aspect.
本公开提供一种图像处理方法、装置、电子设备及可读存储介质,其中,该方法包括:遍历多个多媒体素材,根据目标色彩显示标准,确定多个多媒体素材包括的非目标色彩显示标准的多媒体素材;将非目标色彩显示标准的多媒体素材转换为目标色彩显示标准的多媒体素材;以及根据目标色彩显示标准,对多个多媒体素材进行图像渲染,根据图像渲染结果可以进行展示或者导出为特定格式的视频文件。The present disclosure provides an image processing method, device, electronic equipment, and readable storage medium, wherein the method includes: traversing multiple multimedia materials, and determining non-target color display standards included in the multiple multimedia materials according to the target color display standard Multimedia materials; convert non-target color display standard multimedia materials into target color display standard multimedia materials; and perform image rendering on multiple multimedia materials according to the target color display standard, and display or export to a specific format according to the image rendering results video file.
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following will briefly introduce the drawings that need to be used in the descriptions of the embodiments or related technologies. Obviously, for those of ordinary skill in the art, Other drawings can also be obtained from these drawings without any creative effort.
图1为本公开一实施例提供的图像处理方法的流程示意图;FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure;
图2A-图2B为本公开另一实施例提供的图像处理方法的流程示意图;2A-2B are schematic flowcharts of an image processing method provided by another embodiment of the present disclosure;
图3为本公开另一实施例提供的图像处理方法的流程示意图;FIG. 3 is a schematic flowchart of an image processing method provided by another embodiment of the present disclosure;
图4为本公开一实施例提供的图像处理装置的结构示意图;FIG. 4 is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure;
图5为本公开一实施例提供的电子设备的结构示意图。Fig. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure can also be implemented in other ways than described here; obviously, the embodiments in the description are only some of the embodiments of the present disclosure, and Not all examples.
若多个多媒体素材的色彩显示标准相同,经过编辑获得的视频能够符合预期显示效果。但由于不同色彩显示标准的颜色空间、亮度范围等等参数均不同,若多个多媒体素材的色彩显示标准不完全相同,经过编辑之后得到的合成视频以及在编辑的过程中进行预览时,若按照每个多媒体素材原始的色彩显示标准进行显示,则无法达到预期的显示效果。例如,第1个多媒体素材为标准动态范围(Standard Dynamic Range,SDR)色彩显示标准的多媒体素材,第2个多媒体素材为高动态范围(High Dynamic Range,HDR)色彩显示标准的多媒体素材,由于SDR色彩显示标准的颜色空间为bt.709,亮度范围为0~100nit,而HDR色彩显示标准的颜色空间为bt.2020,亮度范围为0~10000nit,在经过编辑之后,若按照SDR色彩显示标准显示第1个多媒体素材,按照HDR色彩显示标准显示第2个多媒体素材,则前后两个多媒体素材的视觉差异较大,无法达到预期显示效果,且极大降低了用户体验。If the color display standards of multiple multimedia materials are the same, the edited video can meet the expected display effect. However, since different color display standards have different parameters such as color space, brightness range, etc., if the color display standards of multiple multimedia materials are not completely the same, the synthesized video obtained after editing and the preview during the editing process will be different if the color display standards are different. If the original color display standard of each multimedia material is displayed, the expected display effect cannot be achieved. For example, the first multimedia material is a standard dynamic range (Standard Dynamic Range, SDR) color display standard multimedia material, and the second multimedia material is a high dynamic range (High Dynamic Range, HDR) color display standard multimedia material. The standard color space of color display is bt.709, and the brightness range is 0-100nit, while the standard color space of HDR color display is bt.2020, and the brightness range is 0-10000nit. After editing, if it is displayed according to the SDR color display standard If the first multimedia material is displayed according to the HDR color display standard and the second multimedia material is displayed, the visual difference between the two multimedia materials before and after is relatively large, and the expected display effect cannot be achieved, and the user experience is greatly reduced.
基于此,本公开提供一种图像处理方法、装置、电子设备、可读存储介质及计算机程序产品,其中,该方法通过将多个多媒体素材中非目标色彩显示标准的多媒体素材转换为目标色彩显示标准的多媒体素材,使得多个多媒体素材的色彩显示标准保持一致,基于此获得的合成视频中,各多媒体素材均按照目标色彩显示标准展示,视觉效果保持一致,从而能够实现多媒体素材的显示效果符合预期。Based on this, the present disclosure provides an image processing method, device, electronic equipment, readable storage medium, and computer program product, wherein the method converts non-target color display standard multimedia materials among a plurality of multimedia materials into target color display Standard multimedia materials make the color display standards of multiple multimedia materials consistent. In the composite video obtained based on this, each multimedia material is displayed according to the target color display standard, and the visual effect is consistent, so that the display effect of multimedia materials can be achieved. expected.
示例性地,本公开提供的图像处理方法可以由本公开提供的图像处理装置执行,图像处理装置可以通过任意的软件和/或硬件的方式实现。示例性地,图像处理装置可以包括但不限于:平板电脑、手机(如折叠屏手机、大屏手机等)、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智能电视、智慧屏、高清电视、4K电视、智能投影仪等物联网(the internet of things,IOT)设备、服务器、服务器集群、云服务器等等,本公开对电子设备的具体类型不作任何限制。Exemplarily, the image processing method provided in the present disclosure may be executed by the image processing device provided in the present disclosure, and the image processing device may be implemented by any software and/or hardware. Exemplarily, the image processing device may include but not limited to: tablet computer, mobile phone (such as folding screen mobile phone, large-screen mobile phone, etc.), notebook computer, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital Assistant (personal digital assistant, PDA), smart TV, smart screen, high-definition TV, 4K TV, smart projector and other Internet of things (the internet of things, IOT) equipment, server, server cluster, cloud server, etc. The specific type of electronic device is not limited in any way.
本公开实施例将以电子设备为例,且电子设备中安装视频编辑应用程序(简称应用1),可以通过应用1对多个多媒体素材进行编辑为例,结合附图以及应用场景,对本公开提供的图像处理方法进行详细阐述。The embodiment of the present disclosure will take an electronic device as an example, and a video editing application (referred to as application 1) is installed in the electronic device, and multiple multimedia materials can be edited through the application 1 as an example. Combined with the drawings and application scenarios, this disclosure provides The image processing method is described in detail.
本公开提供的图像处理方法可以应用于下述场景。The image processing method provided by the present disclosure can be applied to the following scenarios.
场景1:启动应用1,第一次导入多媒体素材时。Scenario 1: Start application 1, when importing multimedia materials for the first time.
场景2:对多个多媒体素材进行编辑的过程中,增加新的多媒体素材时。Scenario 2: In the process of editing multiple multimedia materials, when adding a new multimedia material.
场景3:利用应用1提供的定格功能,在定格位置插入指定的多媒体素材时。其中,“定格功能”是指将指定位置的视频帧图像保存为图像,然后按照播放速率,在指定位置插入相应数量的该图像。Scenario 3: Using the freeze function provided by application 1, when inserting a specified multimedia material at the freeze position. Among them, the "freezing function" refers to saving the video frame image at the specified position as an image, and then inserting a corresponding number of the image at the specified position according to the playback rate.
当然,本公开提供的方法并不限于应用于上述场景,上述场景1至场景3仅是示例。Of course, the method provided in the present disclosure is not limited to be applied to the above-mentioned scenarios, and the above-mentioned scenarios 1 to 3 are only examples.
图1为本公开一实施例提供的图像处理方法的流程示意图。参照图1所示,本实施例提供的方法包括:FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure. Referring to Figure 1, the method provided in this embodiment includes:
S101、根据目标色彩显示标准,确定多个多媒体素材包括的非目标色彩显示标准的多媒体素材。S101. Determine, according to the target color display standard, multimedia materials that are not included in the target color display standard included in the plurality of multimedia materials.
本公开对于多媒体素材的类型不做限定。例如,多媒体素材可以为照片、图片、视频等任一类型的素材。此外,本公开对于多媒体素材的数量不做限定。The present disclosure does not limit the types of multimedia materials. For example, the multimedia material may be any type of material such as a photo, a picture, or a video. In addition, the present disclosure does not limit the number of multimedia materials.
此外,多个多媒体素材分别对应的色彩显示标准可以不完全相同,或者,也可以相同,本公开对此不作限定。例如,有5个多媒体素材,其中3个为PQ色彩显示标准的多媒体素材,其中1个为HLG色彩显示标准的多媒体素材,另1个为SDR色彩显示标准的多媒体素材。In addition, the color display standards corresponding to the multiple multimedia materials may not be completely the same, or may also be the same, which is not limited in the present disclosure. For example, there are 5 multimedia materials, among which 3 are multimedia materials with PQ color display standard, 1 of them is HLG color display standard multimedia material, and the other is SDR color display standard multimedia material.
本公开对于目标色彩显示标准和非目标色彩显示标准不做限定。示例性地,目标色彩显示标准为PQ色彩显示标准,非目标色彩显示标准包括SDR色彩显示标准和/或HLG色彩显示标准;或者,目标色彩显示标准为SDR色彩显示标准,非目标色彩显示标准包括HLG色彩显示标准和/或PQ色彩显示标准;或者,目标色彩显示标准为HLG色彩显示标准,非目标色彩显示标准包括SDR色彩显示标准和/或PQ色彩显示标准。The present disclosure makes no limitation on the target color display standard and the non-target color display standard. Exemplarily, the target color display standard is the PQ color display standard, and the non-target color display standard includes the SDR color display standard and/or the HLG color display standard; or, the target color display standard is the SDR color display standard, and the non-target color display standard includes The HLG color display standard and/or the PQ color display standard; or, the target color display standard is the HLG color display standard, and the non-target color display standard includes the SDR color display standard and/or the PQ color display standard.
需要说明的是,目标色彩显示标准和非目标色彩显示标准并不限于上述几种情况。例如,目标色彩显示标准还可以为具有更广颜色空间、更高亮度范围的色彩显示标准。It should be noted that the target color display standard and the non-target color display standard are not limited to the above situations. For example, the target color display standard may also be a color display standard with a wider color space and a higher brightness range.
本公开对于电子设备获取多个多媒体素材的实现方式不做限定。示例性地,电子设备可以启动应用1,并通过应用1提供的相关入口从电子设备的本地存储空间中获取多个多媒体素材。此外,电子设备获取多媒体素材时,同时获取每个多媒体素材的相关属性信息,基于多媒体素材的相关属性信息确定多媒体素材对应的目标色彩显示标准。The present disclosure does not limit the implementation manner in which the electronic device acquires multiple multimedia materials. Exemplarily, the electronic device can start the application 1, and obtain a plurality of multimedia materials from the local storage space of the electronic device through related entries provided by the application 1. In addition, when the electronic device acquires the multimedia material, it simultaneously acquires the relevant attribute information of each multimedia material, and determines the target color display standard corresponding to the multimedia material based on the relevant attribute information of the multimedia material.
例如,多媒体素材的相关属性信息可以包括颜色空间信息、颜色描述信息(color transfer信息)等等,电子设备可以基于多媒体素材对应的颜色描述信息,确定多媒体素材对应的色彩显示标准。For example, the relevant attribute information of the multimedia material may include color space information, color description information (color transfer information), etc., and the electronic device may determine the color display standard corresponding to the multimedia material based on the color description information corresponding to the multimedia material.
示例性地,假设多媒体素材对应的颜色描述信息的格式如下所示:Exemplarily, it is assumed that the format of the color description information corresponding to the multimedia material is as follows:
“color_transfer”:“smpte2840”;或者,"color_transfer": "smpte2840"; or,
“color_transfer”:“arib-std-b67”。"color_transfer": "arib-std-b67".
则根据"smpte2840”或者“arib-std-b67”,可以确定该多媒体素材对应的色彩显示标准为HDR。Then according to "smpte2840" or "arib-std-b67", it can be determined that the color display standard corresponding to the multimedia material is HDR.
基于此,应用1可以通过遍历多个多媒体素材的相关信息,确定多个多媒体素材中每个多媒体素材分别对应的色彩显示标准,将每个多媒体素材对应的色彩显示标准与目标色彩显示标准进行对比,从而确定多个多媒体素材包括的非目标色彩显示标准的多媒体素材。其中,非目标色彩显示标准的多媒体素材可以为一个或者多个。Based on this, application 1 can determine the color display standard corresponding to each multimedia material in the multiple multimedia materials by traversing the relevant information of multiple multimedia materials, and compare the color display standard corresponding to each multimedia material with the target color display standard , so as to determine the non-target color display standard multimedia materials included in the multiple multimedia materials. Among them, the non-target color display standard multimedia material can be one or more.
例如,有5个多媒体素材,3个为PQ色彩显示标准的多媒体素材,1个为HLG色彩显示标准的多媒体素材,另1个为SDR色彩显示标准的多媒体素材;假设目标色彩显示标准为PQ色彩显示标准,则非目标色彩显示标准的多媒体素材包括HLG色彩显示标准的多媒体素材和SDR色彩显示标准的多媒体素材。For example, there are 5 multimedia materials, 3 of which are PQ color display standard multimedia materials, 1 is HLG color display standard multimedia material, and the other is SDR color display standard multimedia material; suppose the target color display standard is PQ color display standard, the non-target color display standard multimedia material includes HLG color display standard multimedia material and SDR color display standard multimedia material.
在一些情况下,当通过应用1提供的定格功能,在指定位置插入相应的图像时,若获取图像的原始多媒体素材的色彩显示标准与保存的图像的色彩显示标准不同,则会导致插入的图像产生色差。例如,指定位置对应的原始多媒体素材为HDR色彩显示标准,但电子设备仅支持将指定位置的图像保存为jpeg格式的图像,而jpeg格式的图像为SDR色彩显示标准的图像,则会导致插入的图像与原始多媒体素材之间产生色差。In some cases, when the corresponding image is inserted at the specified position through the freeze function provided by application 1, if the color display standard of the original multimedia material of the acquired image is different from the color display standard of the saved image, the inserted image will Chromatic aberration occurs. For example, the original multimedia material corresponding to the specified location is an HDR color display standard, but the electronic device only supports saving the image at the specified location as an image in jpeg format, and the image in jpeg format is an image in SDR color display standard, which will result in an inserted There is a color difference between the image and the original multimedia material.
因此,通过定格功能,保存从原始多媒体素材中抽取的图像时,可为该图像生成描述文件,描述文件中可以存储图像的相关属性信息,例如,图像来源(即原始多媒体素材)对应的色彩显示标准的信息。当插入该图像时,若基于描述文件确定该图像来源于目标色彩显示标准的多媒体素材,虽然该图像保存为非目标色彩显示标准,但可以不对该图像进行转换;若基于描述文件确定该图像来源于非目标色彩显示标准的多媒体素材,则确定该图像为需要进行转换的非目标色彩显示标准的多媒体素材。Therefore, when saving an image extracted from the original multimedia material through the freeze function, a description file can be generated for the image, and relevant attribute information of the image can be stored in the description file, for example, the color display corresponding to the image source (that is, the original multimedia material) standard information. When inserting the image, if it is determined based on the description file that the image comes from a multimedia material with a target color display standard, although the image is saved as a non-target color display standard, it is not necessary to convert the image; if the source of the image is determined based on the description file If the image is a non-target color display standard multimedia material, it is determined that the image is a non-target color display standard multimedia material that needs to be converted.
也就是说,若多个多媒体素材中的一多媒体素材是基于多个多媒体素材中另一多媒体素材生成的,则以源多媒体素材的色彩显示标准,确定多媒体素材是否需要转换。That is to say, if a multimedia material among the multiple multimedia materials is generated based on another multimedia material among the multiple multimedia materials, it is determined whether the multimedia material needs to be converted based on the color display standard of the source multimedia material.
S102、将非目标色彩显示标准的多媒体素材转换为目标色彩显示标准的多媒体素材。S102. Convert the non-target color display standard multimedia material into the target color display standard multimedia material.
在一些实施例中,实现步骤S102可以包括下述步骤:In some embodiments, implementing step S102 may include the following steps:
步骤a、对非目标色彩显示标准的多媒体素材进行解码,获得多媒体素材的各像素点在非目标色彩显示标准下的颜色值,即,获得第一颜色值集合。Step a: Decode the multimedia material of the non-target color display standard, and obtain the color value of each pixel of the multimedia material under the non-target color display standard, that is, obtain the first set of color values.
步骤b、基于非目标色彩显示标准对应的电光转换函数(EOTF),将第一颜色值集合中的各颜色值转换为非目标色彩显示标准下的光信号,获得第一光信号集合。Step b. Based on the electro-optical transfer function (EOTF) corresponding to the non-target color display standard, each color value in the first color value set is converted into an optical signal under the non-target color display standard to obtain the first optical signal set.
其中,电光转换函数是用于描述输入显示器的非线性颜色值(数字编码像素值,电信号)和显示器所显示的线性颜色值(光信号)之间的关系的函数。Among them, the electro-optical conversion function is a function used to describe the relationship between the nonlinear color value input to the display (digitally encoded pixel value, electrical signal) and the linear color value (optical signal) displayed by the display.
由于设备存储、传输的是电信号(即颜色值),且不同色彩显示标准对应的电光转换函数不同,因此,在将多媒体素材的各像素点在非目标色彩显示标准的颜色值转换为目标色彩显示标准的颜色值时,首先需要将多媒体素材的各像素点在非目标色彩显示标准的颜色值转换为光信号,以在线性空间中实现不同色颜色空间的颜色值的转换。Since the equipment stores and transmits electrical signals (i.e. color values), and the electro-optical conversion functions corresponding to different color display standards are different, therefore, the color value of each pixel of the multimedia material in the non-target color display standard is converted into the target color When displaying standard color values, it is first necessary to convert the color values of each pixel of the multimedia material in the non-target color display standard into light signals, so as to realize the conversion of color values in different color color spaces in linear space.
步骤c、基于光光转换函数(OOTF),对第一光信号集合中的各光信号进行转换,获得目标色彩显示标准下的第二光信号集合。Step c. Based on an optical-to-optical transfer function (OOTF), each optical signal in the first optical signal set is converted to obtain a second optical signal set under the target color display standard.
不同色彩显示标准下的光信号之间具有特定的转换函数(也可以理解为转换矩阵),即光光转换函数;通过光光转换函数,可以实现将非目标色彩显示标准下的光信号转换为目标色彩显示标准下的光信号。There is a specific conversion function (also known as a conversion matrix) between the optical signals under different color display standards, that is, the optical-to-optical conversion function; through the optical-to-optical conversion function, the optical signal under the non-target color display standard can be converted into The target color shows the light signal under the standard.
步骤d、基于目标色彩显示标准对应的光电转换函数(OETF),将第二光信号集合中的各光信号转换为颜色值,获得多媒体素材在目标色彩显示标准下的第二颜色值集合。Step d. Based on the optoelectronic transfer function (OETF) corresponding to the target color display standard, each optical signal in the second optical signal set is converted into a color value to obtain a second color value set of the multimedia material under the target color display standard.
通过将目标色彩显示标准下的光信号转换为目标色彩显示标准下的电信号(颜色值),即实现获得多媒体素材的各像素点在目标色彩显示标准下的颜色值。By converting the optical signal under the target color display standard into the electrical signal (color value) under the target color display standard, the color value of each pixel of the multimedia material under the target color display standard is obtained.
在上述转换的过程中,可以按照帧为单位对多媒体素材进行转换。During the above conversion process, the multimedia material may be converted in units of frames.
示例性地,以目标色彩显示标准为PQ色彩显示标准,非目标色彩显示标准为HLG色彩显示标准为例,结合图2A所示,进行举例说明。Exemplarily, the target color display standard is the PQ color display standard, and the non-target color display standard is the HLG color display standard as an example, with reference to FIG. 2A , for illustration.
其中,HLG色彩显示标准的多媒体素材简称为HLG素材,PQ色彩显示标准的多媒体素材简称为PQ素材。Wherein, the multimedia material of the HLG color display standard is referred to as the HLG material for short, and the multimedia material of the PQ color display standard is referred to as the PQ material for short.
首先,将对HLG素材进行解码,获取HLG素材的各像素点在HLG色彩显示标准下的RGB值;根据HLG色彩显示标准的EOTF,将HLG色彩显示标准下的各RGB值转换为HLG色彩显示标准下的光信号;基于HLG色彩显示标准和PQ色彩显示标准之间的光光转换函数,将HLG色彩显示标准下的各光信号转换为PQ色彩显示标准下的光信号;再根据PQ色彩显示标准的光电转换函数,将PQ色彩显示标准下的各光信号转换为PQ色彩显示标准下的RGB值,从而实现将HLG素材转换为SDR素材。First, the HLG material will be decoded to obtain the RGB value of each pixel of the HLG material under the HLG color display standard; according to the EOTF of the HLG color display standard, each RGB value under the HLG color display standard will be converted to the HLG color display standard under the optical signal; based on the optical-to-optical conversion function between the HLG color display standard and the PQ color display standard, each optical signal under the HLG color display standard is converted into an optical signal under the PQ color display standard; and then according to the PQ color display standard The photoelectric conversion function converts each optical signal under the PQ color display standard into the RGB value under the PQ color display standard, so as to realize the conversion of HLG material into SDR material.
需要说明的是,目标色彩显示标准和非目标色彩显示标准为其他情况时,实现方式类似,区别在于所采用的电光转换函数、光光转换函数以及光电转换函数具有差异,此处不一一举例说明。It should be noted that when the target color display standard and the non-target color display standard are other situations, the implementation methods are similar, the difference lies in the differences in the electro-optical conversion function, optical-optical conversion function, and photoelectric conversion function used, and no examples are given here. illustrate.
在一些可能的实施方式中,通过上述步骤c将非目标色彩显示标准的各光信号转换为目标色彩显示标准的光信号之后,还可以进行色域映射处理(gamut mapping),以对齐不同色彩显示标准中的颜色值。本公开对于色域映射处理的具体实现方式不做限定。In some possible implementations, after converting the light signals of non-target color display standards into light signals of target color display standards through the above step c, gamut mapping can also be performed to align different color display standards. The color value in the standard. The present disclosure does not limit the specific implementation manner of the color gamut mapping process.
例如,目标色彩显示标准为SDR色彩显示标准,非目标色彩显示标准为PQ色彩显示标准时,相同RGB值在PQ色彩显示标准中和在SDR色彩显示标准中表示不同的颜色,因此,可以将PQ色彩显示标准的光信号转换为SDR色彩显示标准的光信号之后,对各光信号进行色域映射处理,以将不同色彩显示标准中的颜色值对齐。For example, when the target color display standard is the SDR color display standard and the non-target color display standard is the PQ color display standard, the same RGB value represents different colors in the PQ color display standard and in the SDR color display standard. Therefore, the PQ color can be After the optical signal of the display standard is converted into the optical signal of the SDR color display standard, the color gamut mapping process is performed on each optical signal, so as to align the color values in different color display standards.
示例性地,参照图2B所示实施例,在将SDR色彩显示标准的多媒体素材转换为PQ色彩显示标准的多媒体素材时,通过光光转换函数将SDR色彩显示标准下的各光信号转换为PQ色彩显示标准下的光信号之后,可对各光信号进行色域映射处理,之后,再将PQ色彩显示标准下经过色域映射处理后得到的光信号转换为PQ色彩显示标准下的电信号。Exemplarily, with reference to the embodiment shown in Figure 2B, when the multimedia material of the SDR color display standard is converted into the multimedia material of the PQ color display standard, each optical signal under the SDR color display standard is converted into a PQ by an optical-to-optical conversion function. After the optical signals under the color display standard, color gamut mapping processing can be performed on each optical signal, and then the optical signals obtained after the color gamut mapping processing under the PQ color display standard are converted into electrical signals under the PQ color display standard.
类似地,将PQ色彩显示标准的多媒体素材转换为SDR色彩显示标准的多媒体素材,以及将HLG色彩显示标准的多媒体素材转换为SDR色彩显示标准的多媒体素材时,也可以进行色域映射处理。其实现方式与图2B所示实现方式类似,简明起见,此处不再赘述。Similarly, the color gamut mapping process can also be performed when converting the multimedia material of the PQ color display standard to the SDR color display standard multimedia material, and converting the HLG color display standard multimedia material to the SDR color display standard multimedia material. Its implementation is similar to that shown in FIG. 2B , and for the sake of brevity, details are not repeated here.
在实际应用中,应用1可通过调用实现上述不同色彩显示标准之间的转换的功能模块提供的应用程序编程接口(Application Programming Interface,API)实现步骤S102。In a practical application, the application 1 can implement step S102 by calling an application programming interface (Application Programming Interface, API) provided by the function module that realizes the conversion between the above-mentioned different color display standards.
例如,实现HLG色彩显示标准的多媒体素材转换为PQ色彩显示标准的多媒体素材的功能模块提供API,API名称为“TECoreHLG2PQCore”,应用1通过调用名称为“TECoreHLG2PQCore”的API,通过API的实现即可将HLG色彩显示标准的多媒体素材转换为PQ色彩显示标准的多媒体素材。For example, the functional module that realizes the conversion of HLG color display standard multimedia materials into PQ color display standard multimedia materials provides an API. The API name is "TECoreHLG2PQCore". Convert the multimedia material of HLG color display standard to the multimedia material of PQ color display standard.
用于实现SDR色彩显示标准的多媒体素材转换为PQ色彩显示标准的多媒体素材的功能模块提供API,API名称为“TECoreSDR2PQCore”,应用1通过调用“TECoreSDR2PQCore”的API,通过API的实现即可将SDR色彩显示标准的多媒体素材转换为PQ色彩显示标准的多媒体素材。The function module used to realize the conversion of multimedia material of SDR color display standard into multimedia material of PQ color display standard provides an API. The API name is "TECoreSDR2PQCore". Multimedia material with color display standard is converted into multimedia material with PQ color display standard.
目标色彩显示标准和非目标色彩显示标准为其他情形时,通过API实现转换的方式与此示例类似,简明起见,此处不再赘述。When the target color display standard and non-target color display standard are in other situations, the conversion method through the API is similar to this example, and will not be repeated here for the sake of brevity.
S103、根据目标色彩显示标准,对所述多个多媒体素材进行图像渲染,以根据图像渲染结果,在电子设备的显示屏幕上展示所述多个多媒体素材,或者,根据所述图像渲染结果,将所述多个多媒体素材导出为特定格式的视频文件。S103. Perform image rendering on the multiple multimedia materials according to the target color display standard, so as to display the multiple multimedia materials on the display screen of the electronic device according to the image rendering result, or, according to the image rendering result, render the The multiple multimedia materials are exported as video files in a specific format.
对多媒体素材进行图像渲染可以采用当前存在的渲染技术实现,本公开对于进行图像渲染的具体实施方式不作限定。The image rendering of the multimedia material can be realized by using the currently existing rendering technology, and the present disclosure does not limit the specific implementation manner of image rendering.
在电子设备的显示屏幕上展示多媒体素材场景中,电子设备可以根据目标色彩显示标准对应的电光转换函数以及图像渲染结果,将各多媒体图像素材的像素点的RGB颜色值转换为光信号,以进行展示。此外,基于不同场景下,可以展示多个多媒体素材中的部分或者全部。In the scene where the multimedia material is displayed on the display screen of the electronic device, the electronic device can convert the RGB color value of each pixel of the multimedia image material into an optical signal according to the electro-optic conversion function corresponding to the target color display standard and the image rendering result, so as to perform exhibit. In addition, based on different scenarios, part or all of the multiple multimedia materials can be displayed.
例如,用户通过应用1对多个多媒体素材进行编辑的过程中,定位在特定的视频帧位置,则可以根据目标色彩显示标准,显示该特定位置对应的多媒体素材。For example, when a user locates at a specific video frame position in the process of editing multiple multimedia materials through the application 1, the multimedia material corresponding to the specific position may be displayed according to the target color display standard.
又如,用户通过应用1对多个多媒体素材进行编辑的过程中,触发播放多个多媒体素材,则根据目标色彩显示标准,按照多个多媒体素材的顺序依次进行播放。For another example, when the user triggers the playing of multiple multimedia materials during the process of editing multiple multimedia materials through the application 1, the multiple multimedia materials are played sequentially according to the target color display standard.
在将进行了色彩显示标准转换之后的所述多个多媒体素材导出为特定格式的视频文件时,可基于图像渲染结果,根据目标色彩显示标准的多媒体素材对应的RGB颜色值信息进行编码,并保存为特定格式的视频文件,例如,mp4格式。When exporting the multiple multimedia materials after the color display standard conversion to a video file in a specific format, the image rendering result can be based on the RGB color value information corresponding to the multimedia material of the target color display standard to encode and save For video files of a specific format, for example, mp4 format.
本实施例提供的方法,通过遍历多个多媒体素材,根据目标色彩显示标准,确定多个多媒体素材包括的非目标色彩显示标准的多媒体素材;将非目标色彩显示标准的多媒体素材转换为目标色彩显示标准的多媒体素材;根据目标色彩显示标准,对多个多媒体素材进行图像渲染,以根据图像渲染结果,在电子设备的显示屏幕上展示多个多媒体素材,或者,根据图像渲染结果,将多个多媒体素材导出为特定格式的视频文件。从而能够实现多媒体素材的显示效果符合预期。The method provided in this embodiment, by traversing a plurality of multimedia materials, according to the target color display standard, determine the non-target color display standard multimedia materials included in the multiple multimedia materials; convert the non-target color display standard multimedia materials into target color display Standard multimedia materials; perform image rendering on multiple multimedia materials according to the target color display standard, so as to display multiple multimedia materials on the display screen of the electronic device according to the image rendering results, or, according to the image rendering results, render multiple multimedia materials The footage is exported as a video file in a specific format. Therefore, it can be realized that the display effect of the multimedia material meets expectations.
在图1所示实施例的基础上,在根据目标色彩显示标准,对所述多个多媒体素材进行图像渲染之前,还可以对多媒体素材进行剪辑,例如,可以根据应用程序提供的一个或者多个剪辑类型分别对应的剪辑操作方式,对多媒体素材进行剪辑。On the basis of the embodiment shown in Figure 1, before performing image rendering on the multiple multimedia materials according to the target color display standard, the multimedia materials can also be clipped, for example, according to one or more The editing operation mode corresponding to the editing type is used to edit the multimedia material.
其中,剪辑类型例如包括:滤镜、特效、贴纸等等。剪辑操作方式为上述剪辑类型提供的具体剪辑方式,例如,滤镜可以包括:风景滤镜、美食滤镜等等。Wherein, the editing type includes, for example: filters, special effects, stickers and the like. The editing operation mode is a specific editing mode provided by the above editing types, for example, the filter may include: a landscape filter, a food filter, and the like.
图3为本公开一实施例提供的图像处理方法的流程示意图。参照图3所示,本实施例提供的方法包括:Fig. 3 is a schematic flowchart of an image processing method provided by an embodiment of the present disclosure. Referring to Figure 3, the method provided in this embodiment includes:
S301、确定目标色彩显示标准。S301. Determine a target color display standard.
在一些实施例中,目标色彩显示标准可以基于自适应策略确定,即,自适应策略是表示目标色彩显示标准随着多个多媒体素材分别对应的目标色彩 显示标准的变化的策略。示例性地,目标色彩显示标准可以为多个多媒体素材分别对应的色彩显示标准中颜色空间最广的色彩显示标准。In some embodiments, the target color display standard may be determined based on an adaptive strategy, that is, the adaptive strategy is a strategy representing the change of the target color display standard along with the target color display standard corresponding to multiple multimedia materials. Exemplarily, the target color display standard may be the color display standard with the widest color space among the color display standards respectively corresponding to the plurality of multimedia materials.
例如,通过应用1导入3个多媒体素材时,3个多媒体素材分别对应的色彩显示标准相同,假设3个多媒体素材均为SDR色彩显示标准的多媒体素材;在进行视频编辑的过程中,新导入了一多媒体素材,该新导入的多媒体素材为PQ色彩显示标准的多媒体素材,则基于自适应策略,可确定目标色彩显示标准为PQ色彩显示标准,即需要将前面导入的3个多媒体素材转换为PQ色彩显示标准。For example, when 3 multimedia materials are imported through application 1, the color display standards corresponding to the 3 multimedia materials are the same, assuming that the 3 multimedia materials are all multimedia materials with SDR color display standards; in the process of video editing, the newly imported A multimedia material, the newly imported multimedia material is a multimedia material of the PQ color display standard, based on the adaptive strategy, it can be determined that the target color display standard is the PQ color display standard, that is, it is necessary to convert the previously imported 3 multimedia materials into PQ Color display standard.
另一种可能的实施方式,目标色彩显示标准可以为预先指定的色彩显示标准。例如,目标色彩显示标准可以为应用1指定的色彩显示标准。In another possible implementation manner, the target color display standard may be a pre-designated color display standard. For example, the target color display standard may be the color display standard specified by application 1 .
其中,确定目标色彩显示标准时,还需要考虑电子设备支持的色彩显示标准,避免出现错误,因此,通过上述自适应策略或者应用程序指定的方式确定目标色彩显示标准之前,还可以对电子设备支持上屏显示的色彩显示标准进行检测。Among them, when determining the target color display standard, it is also necessary to consider the color display standard supported by the electronic device to avoid errors. The color display standard displayed on the screen is tested.
示例性地,可通过检查特定API中相关参数,确定电子设备支持上屏显示的目标色彩显示标准。例如,确定使用android系统的电子设备是否支持上屏显示HDR色彩显示标准时,可通过校验电子设备的屏幕支持的显示参数以及校验图形API,当两者校验均通过时,则确定电子设备支持上屏显示HDR色彩显示标准。此处仅为示例,具体实现方式并不限于通过校验电子设备的屏幕支持的显示参数以及校验图形API的方式实现。Exemplarily, by checking relevant parameters in a specific API, it can be determined that the electronic device supports the target color display standard for on-screen display. For example, when determining whether an electronic device using the android system supports the HDR color display standard on the screen, the display parameters supported by the screen of the electronic device and the graphics API can be verified. When both verifications pass, the electronic device is determined to be Support HDR color display standard on the screen. This is only an example, and the specific implementation is not limited to the implementation of checking the display parameters supported by the screen of the electronic device and checking the graphics API.
S302、根据目标色彩显示标准,确定多个多媒体素材包括的非目标色彩显示标准的多媒体素材。S302. Determine, according to the target color display standard, non-target color display standard multimedia materials included in the plurality of multimedia materials.
S303、将非目标色彩显示标准的多媒体素材转换为目标色彩显示标准的多媒体素材。S303. Convert the non-target color display standard multimedia material into the target color display standard multimedia material.
S304、根据所述目标色彩显示标准,对所述多个多媒体素材进行图像渲染,以根据图像渲染结果,在电子设备的显示屏幕上展示所述多个多媒体素材,或者,根据所述图像渲染结果,将所述多个多媒体素材导出为特定格式的视频文件。S304. Perform image rendering on the multiple multimedia materials according to the target color display standard, so as to display the multiple multimedia materials on the display screen of the electronic device according to the image rendering result, or, according to the image rendering result , exporting the plurality of multimedia materials as video files in a specific format.
本实施例中步骤S302至S304分别与图1所示实施例中S101至S103类似,可参照图1所示实施例的详细描述,简明起见,此处不再赘述。Steps S302 to S304 in this embodiment are similar to S101 to S103 in the embodiment shown in FIG. 1 , and reference may be made to the detailed description of the embodiment shown in FIG. 1 . For the sake of brevity, details are not repeated here.
本实施例提供的方法,通过遍历多个多媒体素材,根据目标色彩显示标准,确定多个多媒体素材包括的非目标色彩显示标准的多媒体素材;将非目标色彩显示标准的多媒体素材转换为目标色彩显示标准的多媒体素材;根据目标色彩显示标准,对多个多媒体素材进行图像渲染,基于图像渲染结果,可以上屏显示或者导出为特定视频格式的视频文件。从而解决了由不同色彩显示标准的多媒体素材进行编辑得到的合成视频显示效果异常的问题。此外,在应用过程中,通过自适应策略或者指定的方式,确定目标色彩显示标准,可以提高图像处理的灵活性。The method provided in this embodiment, by traversing a plurality of multimedia materials, according to the target color display standard, determine the non-target color display standard multimedia materials included in the multiple multimedia materials; convert the non-target color display standard multimedia materials into target color display Standard multimedia materials; according to the target color display standard, image rendering is performed on multiple multimedia materials, and based on the image rendering results, it can be displayed on the screen or exported as a video file in a specific video format. Therefore, the problem of abnormal display effect of the synthesized video obtained by editing multimedia materials with different color display standards is solved. In addition, in the application process, the flexibility of image processing can be improved by determining the target color display standard through an adaptive strategy or a specified method.
示例性地,本公开还提供一种图像处理装置。Exemplarily, the present disclosure also provides an image processing device.
图4为本公开一实施例提供的图像处理装置的结构示意图。参照图4所示,本实施例提供的图像处理装置400,包括:FIG. 4 is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure. Referring to FIG. 4, the image processing device 400 provided in this embodiment includes:
识别模块401,用于根据目标色彩显示标准,确定所述多个多媒体素材包括的非目标色彩显示标准的多媒体素材。The identification module 401 is configured to determine, according to the target color display standard, the multimedia materials included in the plurality of multimedia materials that are not of the target color display standard.
转换模块402,用于将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材。The conversion module 402 is configured to convert the multimedia material of the non-target color display standard into the multimedia material of the target color display standard.
渲染模块403,用于根据所述目标色彩显示标准,对所述多个多媒体素材进行图像渲染,获得图像渲染结果。The rendering module 403 is configured to perform image rendering on the plurality of multimedia materials according to the target color display standard, and obtain an image rendering result.
图像处理装置400,还可以包括:控制模块404,用于根据图像渲染结果,控制电子设备的显示屏幕上显示多个多媒体素材,或者,根据图像渲染结果,控制将所述多个多媒体素材导出为特定格式的视频文件。The image processing apparatus 400 may further include: a control module 404, configured to control the display screen of the electronic device to display a plurality of multimedia materials according to the image rendering result, or, according to the image rendering result, control to export the plurality of multimedia materials as A video file of a specific format.
在一些实施例中,识别模块401根据目标色彩显示标准,确定所述多个多媒体素材包括的非目标色彩显示标准的多媒体素材之前,还用于确定目标色彩显示标准。In some embodiments, the identification module 401 is further configured to determine the target color display standard before determining the non-target color display standard multimedia materials included in the plurality of multimedia materials according to the target color display standard.
在一些实施例中,识别模块401,具体用于根据所述多个多媒体素材分别对应的色彩显示标准,确定所述目标色彩显示标准。In some embodiments, the identification module 401 is specifically configured to determine the target color display standard according to the color display standards respectively corresponding to the plurality of multimedia materials.
在一些实施例中,识别模块401,具体用于根据所述多个多媒体素材分别对应的色彩显示标准中颜色空间最广的色彩显示标准,确定所述目标色彩显示标准。In some embodiments, the identification module 401 is specifically configured to determine the target color display standard according to the color display standard with the widest color space among the color display standards respectively corresponding to the plurality of multimedia materials.
在一些实施例中,识别模块401,具体用于根据预先指定的色彩显示标准,确定所述目标色彩显示标准。In some embodiments, the identifying module 401 is specifically configured to determine the target color display standard according to a pre-specified color display standard.
在一些实施例中,转换模块402,具体用于若所述非目标色彩显示标准的多媒体素材是根据所述多个多媒体素材中另一所述非目标色彩显示标准的多媒体素材在定格位置的视频帧图像生成的,则将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材;或者,若所述非目标色彩显示标准的多媒体素材是根据所述多个多媒体素材中所述目标色彩显示标准的多媒体素材在所述定格位置的视频帧图像生成的,则不对所述非目标色彩显示标准的多媒体素材进行转换。In some embodiments, the conversion module 402 is specifically configured to if the multimedia material of the non-target color display standard is a video at a freeze frame position according to another multimedia material of the non-target color display standard among the multiple multimedia materials If the frame image is generated, the multimedia material of the non-target color display standard is converted into the multimedia material of the target color display standard; or, if the multimedia material of the non-target color display standard is based on the multiple multimedia materials If the target color display standard multimedia material is generated from the video frame image at the freeze position, the non-target color display standard multimedia material will not be converted.
在一些实施例中,所述目标色彩显示标准为PQ色彩显示标准,所述非目标色彩显示标准包括SDR色彩显示标准和/或HLG色彩显示标准;或者,所述目标色彩显示标准为SDR色彩显示标准,所述非目标色彩显示标准包括HLG色彩显示标准和/或PQ色彩显示标准;或者,所述目标色彩显示标准为HLG色彩显示标准,所述非目标色彩显示标准包括SDR色彩显示标准和/或PQ色彩显示标准。In some embodiments, the target color display standard is the PQ color display standard, and the non-target color display standard includes the SDR color display standard and/or the HLG color display standard; or, the target color display standard is the SDR color display standard Standard, the non-target color display standard includes HLG color display standard and/or PQ color display standard; or, the target color display standard is HLG color display standard, and the non-target color display standard includes SDR color display standard and/or or PQ color display standard.
在一些实施例中,图像处理装置400,还可以包括:剪辑处理模块,用于根据一个或者多个剪辑类型分别对应的剪辑操作方式,对所述多个多媒体素材进行处理。In some embodiments, the image processing apparatus 400 may further include: a clipping processing module, configured to process the multiple multimedia materials according to clipping operation modes respectively corresponding to one or more clipping types.
在对多媒体素材进行剪辑的过程中,渲染模块403可以根据剪辑操作方式的处理结果,实时进行图像渲染,以及在电子设备的显示屏幕上进行预览剪辑效果。In the process of clipping the multimedia material, the rendering module 403 can render the image in real time according to the processing result of the clipping operation mode, and preview the clipping effect on the display screen of the electronic device.
本实施例提供的图像处理装置可以用于执行上述任一方法实施例的基础上,其实现原理以及技术效果类似,可参照前述方法实施例的详细描述,简明起见,此处不再赘述。The image processing device provided in this embodiment can be used to execute any of the above method embodiments, and its implementation principles and technical effects are similar, and reference can be made to the detailed description of the foregoing method embodiments. For the sake of brevity, details are not repeated here.
示例性地,本公开还提供一种电子设备。Exemplarily, the present disclosure also provides an electronic device.
图5为本公开一实施例提供的电子设备的结构示意图。参照图5所示,本实施例提供的电子设备500包括:存储器501和处理器502。Fig. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Referring to FIG. 5 , an electronic device 500 provided in this embodiment includes: a memory 501 and a processor 502 .
其中,存储器501可以是独立的物理单元,与处理器502可以通过总线503连接。存储器501、处理器502也可以集成在一起,通过硬件实现等。Wherein, the memory 501 may be an independent physical unit, and may be connected with the processor 502 through the bus 503 . The memory 501 and the processor 502 may also be integrated together, implemented by hardware, and the like.
存储器501用于存储程序指令,处理器502调用该程序指令,执行以上任一方法实施例的技术方案。The memory 501 is used to store program instructions, and the processor 502 invokes the program instructions to execute the technical solution of any one of the above method embodiments.
可选地,当上述实施例的方法中的部分或全部通过软件实现时,上述电子设备500也可以只包括处理器502。用于存储程序的存储器501位于电子设备500之外,处理器502通过电路/电线与存储器连接,用于读取并执行存储器中存储的程序。Optionally, when part or all of the methods in the foregoing embodiments are implemented by software, the foregoing electronic device 500 may also include only the processor 502 . The memory 501 for storing programs is located outside the electronic device 500, and the processor 502 is connected to the memory through circuits/wires, and is used to read and execute the programs stored in the memory.
处理器502可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。The processor 502 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP.
处理器502还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 502 may further include a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
存储器501可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。The memory 501 may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory) ), a hard disk (hard disk drive, HDD) or a solid-state drive (solid-state drive, SSD); the memory can also include a combination of the above-mentioned types of memory.
本公开还提供一种可读存储介质,包括:计算机程序指令;The present disclosure also provides a readable storage medium, including: computer program instructions;
计算机程序指令被电子设备的至少一个处理器执行时,实现上述任一方法实施例所示的图像处理方法。When the computer program instructions are executed by at least one processor of the electronic device, the image processing method shown in any one of the above method embodiments is implemented.
本公开还提供一种计算机程序产品,所述计算机程序产品被计算机执行时,使得所述计算机实现上述任一方法实施例所示的图像处理方法。The present disclosure also provides a computer program product. When the computer program product is executed by a computer, the computer implements the image processing method shown in any one of the above method embodiments.
本公开还提供一种计算机程序,包括指令,所述指令当由处理器执行时,使得所述处理器实现上述任一方法实施例所示的图像处理方法。The present disclosure also provides a computer program, including instructions, which, when executed by a processor, enable the processor to implement the image processing method shown in any one of the above method embodiments.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these No such actual relationship or order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (14)
- 一种图像处理方法,包括:An image processing method, comprising:根据目标色彩显示标准,确定多个多媒体素材包括的非目标色彩显示标准的多媒体素材;According to the target color display standard, determine the non-target color display standard multimedia materials included in the multiple multimedia materials;将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材;以及converting the multimedia material of the non-target color display standard into the multimedia material of the target color display standard; and根据所述目标色彩显示标准,对所述多个多媒体素材进行图像渲染,以根据图像渲染结果,在电子设备的显示屏幕上展示所述多个多媒体素材,或者,根据所述图像渲染结果,将所述多个多媒体素材导出为特定格式的视频文件。Perform image rendering on the multiple multimedia materials according to the target color display standard, so as to display the multiple multimedia materials on the display screen of the electronic device according to the image rendering result, or, according to the image rendering result, render the The multiple multimedia materials are exported as video files in a specific format.
- 根据权利要求1所述的方法,其中,所述根据目标色彩显示标准,确定所述多个多媒体素材包括的非目标色彩显示标准的多媒体素材之前,所述方法还包括:The method according to claim 1, wherein, before determining the non-target color display standard multimedia materials included in the plurality of multimedia materials according to the target color display standard, the method further comprises:确定所述目标色彩显示标准。The target color display standard is determined.
- 根据权利要求2所述的方法,其中,所述确定所述目标色彩显示标准,包括:The method according to claim 2, wherein said determining said target color display standard comprises:根据所述多个多媒体素材分别对应的色彩显示标准中颜色空间最广的色彩显示标准,确定所述目标色彩显示标准。The target color display standard is determined according to the color display standard with the widest color space among the color display standards respectively corresponding to the plurality of multimedia materials.
- 根据权利要求2所述的方法,其中,所述确定所述目标色彩显示标准,包括:The method according to claim 2, wherein said determining said target color display standard comprises:根据预先指定的色彩显示标准,确定所述目标色彩显示标准。The target color display standard is determined according to a pre-designated color display standard.
- 根据权利要求1至4中的任一项所述的方法,其中,所述将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材,包括:The method according to any one of claims 1 to 4, wherein said converting the multimedia material of the non-target color display standard into the multimedia material of the target color display standard comprises:若所述非目标色彩显示标准的多媒体素材是根据所述多个多媒体素材中另一所述非目标色彩显示标准的多媒体素材在定格位置的视频帧图像生成的,则将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材;或者If the multimedia material of the non-target color display standard is generated according to the video frame image of another multimedia material of the non-target color display standard in the plurality of multimedia materials at the freeze frame position, then the non-target color display converting the standard multimedia material to display the standard multimedia material in said target color; or若所述非目标色彩显示标准的多媒体素材是根据所述多个多媒体素材中所述目标色彩显示标准的多媒体素材在所述定格位置的视频帧图像生成的,则不对所述非目标色彩显示标准的多媒体素材进行转换。If the multimedia material of the non-target color display standard is generated according to the video frame image of the multimedia material of the target color display standard in the plurality of multimedia materials at the fixed position, then the non-target color display standard is not displayed. multimedia material for conversion.
- 根据权利要求1至5中的任一项所述的方法,其中,所述将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材,包括:The method according to any one of claims 1 to 5, wherein said converting the multimedia material of the non-target color display standard into the multimedia material of the target color display standard comprises:对所述非目标色彩显示标准的多媒体素材进行解码,获得所述多媒体素材的各像素点在所述非目标色彩显示标准下的第一颜色值集合;Decoding the multimedia material of the non-target color display standard to obtain a first color value set of each pixel of the multimedia material under the non-target color display standard;基于所述非目标色彩显示标准对应的电光转换函数,将所述第一颜色值集合中的各颜色值转换为所述非目标色彩显示标准下的光信号,获得第一光信号集合;Based on the electro-optical conversion function corresponding to the non-target color display standard, converting each color value in the first color value set into an optical signal under the non-target color display standard to obtain a first optical signal set;基于光光转换函数,对所述第一光信号集合中的各光信号进行转换,获得所述目标色彩显示标准下的第二光信号集合;以及Converting each optical signal in the first optical signal set based on an optical-to-optical conversion function to obtain a second optical signal set under the target color display standard; and基于所述目标色彩显示标准对应的光电转换函数,将所述第二光信号集合中的各光信号转换为颜色值,获得所述多媒体素材在所述目标色彩显示标准下的第二颜色值集合。Convert each optical signal in the second optical signal set into a color value based on the photoelectric conversion function corresponding to the target color display standard, and obtain a second color value set of the multimedia material under the target color display standard .
- 根据权利要求6所述的方法,其中,所述基于光光转换函数,对所述第一光信号集合中的各光信号进行转换,获得所述目标色彩显示标准下的第二光信号集合之后,还包括:进行色域映射处理,以对齐不同色彩显示标准中的颜色值。The method according to claim 6, wherein, based on the optical-to-optical conversion function, each optical signal in the first optical signal set is converted, and after obtaining the second optical signal set under the target color display standard , also includes: performing color gamut mapping processing to align color values in different color display standards.
- 根据权利要求1至7任一项所述的方法,其中,所述目标色彩显示标准为感知量化PQ色彩显示标准,所述非目标色彩显示标准包括标准动态范围SDR色彩显示标准和/或混合对数型伽玛曲线HLG色彩显示标准;或者,The method according to any one of claims 1 to 7, wherein the target color display standard is a perceptually quantized PQ color display standard, and the non-target color display standard includes a standard dynamic range SDR color display standard and/or a mixed pair digital gamma curve HLG color display standard; or,所述目标色彩显示标准为SDR色彩显示标准,所述非目标色彩显示标准包括HLG色彩显示标准和/或PQ色彩显示标准;或者,The target color display standard is the SDR color display standard, and the non-target color display standard includes the HLG color display standard and/or the PQ color display standard; or,所述目标色彩显示标准为HLG色彩显示标准,所述非目标色彩显示标准包括SDR色彩显示标准和/或PQ色彩显示标准。The target color display standard is the HLG color display standard, and the non-target color display standard includes the SDR color display standard and/or the PQ color display standard.
- 根据权利要求1至8任一项所述的方法,其中,所述根据所述目标色彩显示标准,对所述多个多媒体素材进行图像渲染之前,所述方法还包括:The method according to any one of claims 1 to 8, wherein, before performing image rendering on the plurality of multimedia materials according to the target color display standard, the method further comprises:根据一个或者多个剪辑类型分别对应的剪辑操作方式,对所述多个多媒体素材进行处理。The plurality of multimedia materials are processed according to clipping operation modes respectively corresponding to one or more clip types.
- 一种图像处理装置,包括:An image processing device, comprising:识别模块,用于根据目标色彩显示标准,确定多个多媒体素材包括的非目标色彩显示标准的多媒体素材;The identification module is used to determine the non-target color display standard multimedia materials included in the multiple multimedia materials according to the target color display standard;转换模块,用于将所述非目标色彩显示标准的多媒体素材转换为所述目标色彩显示标准的多媒体素材;A conversion module, configured to convert the multimedia material of the non-target color display standard into the multimedia material of the target color display standard;渲染模块,用于对所述多个多媒体素材进行图像渲染;以及a rendering module, configured to perform image rendering on the plurality of multimedia materials; and控制模块,用于根据图像渲染结果,控制在电子设备的显示屏幕上展示所述多个多媒体素材,或者,根据所述图像渲染结果,控制将所述多个多媒体素材导出为特定格式的视频文件。A control module, configured to control displaying the multiple multimedia materials on the display screen of the electronic device according to the image rendering result, or control exporting the multiple multimedia materials into a video file in a specific format according to the image rendering result .
- 一种电子设备,包括:存储器和处理器;An electronic device comprising: a memory and a processor;所述存储器被配置为存储计算机程序指令;the memory is configured to store computer program instructions;所述处理器被配置为执行所述计算机程序指令,使得所述电子设备实现如权利要求1至9任一项所述的图像处理方法。The processor is configured to execute the computer program instructions, so that the electronic device implements the image processing method according to any one of claims 1 to 9.
- 一种可读存储介质,包括:计算机程序指令;A readable storage medium, comprising: computer program instructions;所述计算机程序指令被电子设备的至少一个处理器执行时,使得所述电子设备实现如权利要求1至9任一项所述的图像处理方法。When the computer program instructions are executed by at least one processor of the electronic device, the electronic device realizes the image processing method according to any one of claims 1-9.
- 一种计算机程序产品,当所述计算机程序产品被计算机执行时,使得所述计算机实现如权利要求1至9任一项所述的图像处理方法。A computer program product, when the computer program product is executed by a computer, it enables the computer to implement the image processing method according to any one of claims 1 to 9.
- 一种计算机程序,包括指令,所述指令当由处理器执行时,使得所述处理器实现如权利要求1至9任一项所述的图像处理方法。A computer program comprising instructions, which, when executed by a processor, cause the processor to implement the image processing method according to any one of claims 1 to 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22914721.0A EP4439467A1 (en) | 2021-12-30 | 2022-12-27 | Image processing method and apparatus, electronic device and readable storage medium |
US18/759,733 US20240357200A1 (en) | 2021-12-30 | 2024-06-28 | Image processing method and apparatus, electronic device and readable storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111658426.2 | 2021-12-30 | ||
CN202111658426.2A CN116416344A (en) | 2021-12-30 | 2021-12-30 | Image processing method, device, electronic equipment and readable storage medium |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/759,733 Continuation US20240357200A1 (en) | 2021-12-30 | 2024-06-28 | Image processing method and apparatus, electronic device and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023125467A1 true WO2023125467A1 (en) | 2023-07-06 |
Family
ID=86997869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/142142 WO2023125467A1 (en) | 2021-12-30 | 2022-12-27 | Image processing method and apparatus, electronic device and readable storage medium |
Country Status (4)
Country | Link |
---|---|
US (1) | US20240357200A1 (en) |
EP (1) | EP4439467A1 (en) |
CN (1) | CN116416344A (en) |
WO (1) | WO2023125467A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117692723A (en) * | 2023-07-12 | 2024-03-12 | 荣耀终端有限公司 | Video editing method and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016120424A1 (en) * | 2015-01-30 | 2016-08-04 | Thomson Licensing | Method and apparatus for encoding and decoding high dynamic range (hdr) videos |
CN112449169A (en) * | 2021-01-28 | 2021-03-05 | 北京达佳互联信息技术有限公司 | Method and apparatus for tone mapping |
CN113518185A (en) * | 2020-12-30 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Video conversion processing method and device, computer readable medium and electronic equipment |
CN113691865A (en) * | 2021-08-24 | 2021-11-23 | 京东方科技集团股份有限公司 | Multimedia playing method and system |
-
2021
- 2021-12-30 CN CN202111658426.2A patent/CN116416344A/en active Pending
-
2022
- 2022-12-27 EP EP22914721.0A patent/EP4439467A1/en active Pending
- 2022-12-27 WO PCT/CN2022/142142 patent/WO2023125467A1/en active Application Filing
-
2024
- 2024-06-28 US US18/759,733 patent/US20240357200A1/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016120424A1 (en) * | 2015-01-30 | 2016-08-04 | Thomson Licensing | Method and apparatus for encoding and decoding high dynamic range (hdr) videos |
CN113518185A (en) * | 2020-12-30 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Video conversion processing method and device, computer readable medium and electronic equipment |
CN112449169A (en) * | 2021-01-28 | 2021-03-05 | 北京达佳互联信息技术有限公司 | Method and apparatus for tone mapping |
CN113691865A (en) * | 2021-08-24 | 2021-11-23 | 京东方科技集团股份有限公司 | Multimedia playing method and system |
Also Published As
Publication number | Publication date |
---|---|
US20240357200A1 (en) | 2024-10-24 |
EP4439467A1 (en) | 2024-10-02 |
CN116416344A (en) | 2023-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10891722B2 (en) | Display method and display device | |
US10600166B2 (en) | Tone curve mapping for high dynamic range images | |
CN109151253B (en) | Display device, display method, and reproduction display system | |
JP6617719B2 (en) | Information processing apparatus, information recording medium, information processing method, and program | |
JP6946325B2 (en) | Methods and devices for encoding high dynamic range pictures, corresponding coding methods and devices | |
US20170039690A1 (en) | Image Range Expansion Control Methods And Apparatus | |
CN112449169B (en) | Method and apparatus for tone mapping | |
JP7359521B2 (en) | Image processing method and device | |
US20240357200A1 (en) | Image processing method and apparatus, electronic device and readable storage medium | |
JP2018524924A (en) | Method and device for encoding both HDR pictures and SDR pictures obtained from said HDR pictures using a color mapping function | |
WO2023010749A1 (en) | Hdr video conversion method and apparatus, and device and computer storage medium | |
JPWO2018021261A1 (en) | Image processing apparatus, reproduction apparatus, image processing method, and reproduction method | |
US20180005358A1 (en) | A method and apparatus for inverse-tone mapping a picture | |
JP6663432B2 (en) | Method and apparatus for converting an HDR version of a picture to an SDR version of the picture | |
WO2016063475A1 (en) | Transmission method and reproduction device | |
CN114501023B (en) | Video processing method, device, computer equipment and storage medium | |
WO2023010751A1 (en) | Information compensation method and apparatus for highlighted area of image, device, and storage medium | |
JP7074461B2 (en) | How and Devices to Reconstruct Display-Compatible HDR Images | |
KR20180070593A (en) | Method and device for selecting a process to be applied to video data from a set of candidate processes driven by a common set of information data | |
WO2023036109A1 (en) | Image processing method and apparatus, electronic device, and readable storage medium | |
CN110266915B (en) | Method and device for controlling video acquisition content on android device | |
Dai et al. | An overview of end-to-end HDR | |
US10368030B1 (en) | Optimized histogram computation for adaptive back light algorithm during camera preview and video playback | |
CN118037522A (en) | Video data encoding method, apparatus, electronic device and readable storage medium | |
JP2017220689A (en) | Transmission method and reproduction device |
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: 22914721 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022914721 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2022914721 Country of ref document: EP Effective date: 20240625 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |