Multimedia material displaying method and apparatus, device, and storage medium
By calling the image writing function in the electronic device to read the parameters of the target color space standard, the problem that the electronic device only supports one color space standard is solved, the flexible display of multimedia materials is achieved, and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/134225
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-20
- Filing Date
- 2024-11-25
- Publication Date
- 2025-09-25
AI Technical Summary
In the prior art, electronic devices only support one color space standard, which results in a narrow application range of multimedia material display methods and affects user experience.
The relevant parameters of the target color space standard are read through the image writing function to realize the on-screen display of the target color space standard. For example, when the electronic device does not support the HLG color space standard, the ImageWriter function is used to read the relevant parameters of the HLG color space standard.
The flexibility and applicability of multimedia material display are improved, and the user experience is enhanced.
Smart Images

Figure CN2024134225_25092025_PF_FP_ABST
Abstract
Description
Multimedia material display method, device, equipment and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202410323408.6 filed on March 20, 2024, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] The embodiments of the present disclosure relate to a method, apparatus, device and storage medium for displaying multimedia materials. Background Art
[0003] When editing multimedia materials, the multimedia materials in the High Dynamic Range (HDR) color space standard can be displayed by electronic devices to improve the display effect of the multimedia materials. Summary of the Invention
[0004] The embodiments of the present disclosure provide a multimedia material display method, apparatus, device, and storage medium, which can expand the scope of application of the multimedia material display method and improve user experience.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for displaying multimedia materials, including:
[0006] In response to a display instruction of a multimedia material, acquiring a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device;
[0007] If the first color space standard is a target color space standard but the second color space standard does not include the target color space standard, calling an image writing function, wherein the image writing function is used to read and write image parameters;
[0008] Image rendering parameters matching the target color space standard are read from the multimedia material through the image writing function, and the multimedia material is displayed according to the image rendering parameters.
[0009] In a second aspect, an embodiment of the present disclosure provides a multimedia material display device, comprising:
[0010] an acquisition module, configured to acquire, in response to a display instruction of a multimedia material, a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device;
[0011] a calling module, configured to call an image writing function if the first color space standard is a target color space standard but the second color space standard does not include the target color space standard, wherein the image writing function is used to read and write image parameters;
[0012] The display module is configured to read image rendering parameters matching the target color space standard from the multimedia material through the image writing function, and display the multimedia material according to the image rendering parameters.
[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0014] a processor, and a memory communicatively connected to the processor;
[0015] The memory stores computer-executable instructions;
[0016] The processor executes the computer-executable instructions stored in the memory to implement the multimedia material display method as described in the first aspect above.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the multimedia material display method described in the first aspect above is implemented.
[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the multimedia material display method as described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] FIG1 is a schematic diagram of an application scenario of a multimedia material display method provided by an embodiment of the present disclosure;
[0021] FIG2 is a flowchart of a multimedia material display method provided by an embodiment of the present disclosure;
[0022] FIG3 is a structural block diagram of a multimedia material display device provided by an embodiment of the present disclosure;
[0023] FIG4 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0025] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0026] When editing multimedia materials, the multimedia materials in the High Dynamic Range (HDR) color space standard can be displayed by electronic devices to improve the display effect of the multimedia materials.
[0027] In the related art, the HDR color space standard can be divided into the PQ (Perceptual Quantizer) color space standard and the HLG (Hybrid Log Gamma) color space standard. When displaying multimedia materials of the HDR color space standard, it is necessary to render the multimedia materials through the rendering driver corresponding to the color space standard, and then realize the on-screen display of the multimedia materials. However, the rendering driver installed in the electronic device only supports one color space standard (for example, only supports the PQ color space standard). At this time, only the on-screen display of multimedia materials of the PQ color space standard is supported. Therefore, the scope of application of the above-mentioned multimedia material display method is narrow, which affects the user experience of the electronic device.
[0028] Therefore, it can be seen that how to expand the application scope of the multimedia material display method to improve the user experience of electronic devices is an urgent problem to be solved.
[0029] In order to solve the above problems, this embodiment provides the following technical concept: when the electronic device does not support the on-screen display of the target color space standard, the relevant parameters of the target color space standard can be read through the ImageWriter function to achieve the on-screen display of the target color space standard.
[0030] The specific steps may include: first, in response to a display instruction of the multimedia material, obtaining a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device; then, if the first color space standard is the target color space standard but the second color space standard does not include the target color space standard, calling an image writing function, wherein the image writing function is used to read and write image parameters; finally, reading image rendering parameters that match the target color space standard from the multimedia material through the image writing function, and displaying the multimedia material according to the image rendering parameters.
[0031] Here, since the electronic device does not support the on-screen display of the target color space standard (for example, the HLG color space standard), the HLG color space standard related parameters can be read through the image writing function to achieve the on-screen display of the HLG color space standard, thereby improving the flexibility of the display.
[0032] The following explains the application scenarios of the embodiments of the present disclosure:
[0033] The multimedia material display method provided by the embodiment of the present disclosure can be applied to scenarios in which multimedia materials are edited on various editing software. Figure 1 is a schematic diagram of an application scenario of a multimedia material display method provided by an embodiment of the present disclosure. As shown in Figure 1, the multimedia material is a multimedia material of the High Dynamic Range (HDR) color space standard. When the editing software imports the HDR multimedia material, it triggers the display instruction of the HDR multimedia material, and then displays the HDR multimedia material through the multimedia material display method provided by the embodiment of the present disclosure. The multimedia material display method provided by the embodiment of the present disclosure is described in detail below using a detailed embodiment.
[0034] FIG2 is a flowchart of a multimedia material display method provided by an embodiment of the present disclosure. The execution subject of the multimedia material display method may be an electronic device. As shown in FIG2 , the method includes:
[0035] S201 : In response to a multimedia material display instruction, obtain a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device.
[0036] In the embodiments of the present disclosure, there is no limitation on the type and quantity of multimedia materials. For example, the multimedia materials can be any type of materials such as photos, pictures, videos, etc. When there are multiple multimedia materials, the color space standards corresponding to the multiple multimedia materials (that is, the material types of the multimedia materials) may not be exactly the same, or they may be the same, and the present disclosure does not limit this. For example, the multiple multimedia materials include 5 multimedia materials, namely: 3 multimedia materials with PQ (Perceptual Quantizer) color space standard, 1 multimedia material with HLG (Hybrid Log Gamma) color space standard, and 1 multimedia material with SDR (Standard Dynamic Range) color space standard.
[0037] Optionally, the situations in which the display instruction of multimedia materials is triggered may include: triggering the display instruction of multimedia materials when multimedia materials are imported; or triggering the display instruction of multimedia materials when new multimedia materials are added during the editing process of multimedia materials; or triggering the display instruction of multimedia materials when multimedia materials (for example, video clips) are played.
[0038] In some embodiments, the multimedia material display instruction carries a type identifier of each multimedia material, and the first color space standard of the multimedia material can be determined according to the type identifier.
[0039] Optionally, the type identifier may include an HLG type and a PQ type. The type identifier is used to indicate the color space standard corresponding to the multimedia material. For example, the HLG type indicates that the multimedia material corresponds to the HLG color space standard, and the PQ type indicates that the multimedia material corresponds to the PQ color space standard.
[0040] In other embodiments, the first color space standard corresponding to each multimedia material can be determined based on the relevant attribute information of each multimedia material by obtaining relevant attribute information of the multimedia material. For example, the relevant attribute information of the multimedia material can include color gamut space information, color gamut description information (color transfer information), etc. The electronic device can determine the first color space standard corresponding to the multimedia material based on the color gamut space information and color gamut description information corresponding to the multimedia material.
[0041] Optionally, the second color space standard supported by the electronic device includes the PQ color space standard and / or the HLG color space standard.
[0042] In some embodiments, the second color space standard supported by the electronic device is determined according to a color space standard supported by a display driver of the electronic device and a color space standard supported by display hardware of the electronic device.
[0043] Optionally, as shown in Table 1 below, the color space standards supported by the display driver include: no HDR support, only PQ support, support for PQ and HLG, and only HLG support. The color space standards supported by the display hardware include: no HDR support, only PQ support, support for PQ and HLG, and only HLG support.
[0044] Table 1 Second color space standards supported by electronic devices
[0045] It is important to note that, as shown in Table 1, if the color display standards supported by the display hardware include the PQ color space standard and the HLG color space standard, and the color display information supported by the display driver only includes the PQ color space standard, then the second color space standard supported by the electronic device is determined to be: the PQ display standard, not including the HLG color space standard. In this case, if the first color space standard of the multimedia material is the HLG color space standard, steps S202 and S203 can be executed to display the multimedia material on the screen using the HLG color space standard, thereby improving the user experience.
[0046] In other embodiments, if the first color space standard is the PQ color space standard and the second color space standard includes the PQ color space standard, the multimedia material is displayed according to the PQ color space standard; or, if the first color space standard is the HLG color space standard and the second color space standard includes the HLG color space standard, the multimedia material is displayed according to the HLG color space standard.
[0047] In the embodiment of the present disclosure, since the corresponding color space standard is determined according to the system capability and driving capability of the electronic device, various screen display schemes can be flexibly adjusted to achieve color gamut display that matches the material type, thereby improving display flexibility.
[0048] S202 : If the first color space standard is the target color space standard but the second color space standard does not include the target color space standard, call an image writing function, where the image writing function is used to read and write image parameters.
[0049] In some embodiments, the step of creating an image writing function may include: creating an image writing function in the Java layer, and setting the reading configuration information that matches the target color space standard as a parameter of the data space in the image writing function; wherein, the data space is used to indicate the color space standard of the image writing function for reading multimedia materials.
[0050] Optionally, the target color space standard is the HLG color space standard. The image writing function can be an ImageWriter function. The ImageWriter function is a class for reading and writing image data. In this embodiment, the color gamut information can be configured on a Surface (that is, the rendering parameters corresponding to the HLG color gamut are obtained) with the help of the color gamut configuration function of ImageWriter. When rendering multimedia materials, the associated display image (EGL Image) is set as texture information (for example, a two-dimensional texture); the texture of the multimedia material is rendered according to the rendering parameters corresponding to the HLG color gamut to achieve HLG color gamut display of the multimedia material.
[0051] S203 . Read image rendering parameters that match the target color space standard from the multimedia material through an image writing function, and display the multimedia material according to the image rendering parameters.
[0052] In an embodiment of the present disclosure, the image writing function may include reading configuration information that matches the target color space standard; accordingly, image rendering parameters that match the target color space standard are read from the multimedia material through the image writing function, including: through the image writing function, according to the reading configuration information that matches the target color space standard, image rendering parameters that match the target color space standard are read from the multimedia material.
[0053] Optionally, the read configuration information that matches the target color space standard includes: color gamut information that matches the target color space standard. Exemplarily, the target color space standard is the HLG color space standard. The read configuration information that matches the HLG color space standard includes: color gamut information that matches the HLG color space standard.
[0054] In some embodiments, the multimedia material can be displayed on the screen by associating the texture parameters of the multimedia material with the image rendering parameters. Accordingly, displaying the multimedia material according to the image rendering parameters includes: determining the image rendering parameters as the texture parameters of the multimedia material, and displaying the texture parameters of the multimedia material according to the target color space standard.
[0055] In this case, since the image rendering parameters match the target color space standard, the multimedia material can be displayed on the screen in the target color space standard.
[0056] The multimedia material display method provided by this embodiment is as follows: first, in response to a display instruction of the multimedia material, a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device are obtained; then, if the first color space standard is the target color space standard but the second color space standard does not include the target color space standard, an image write function is called, wherein the image write function is used to read and write image parameters; finally, image rendering parameters matching the target color space standard are read from the multimedia material through the image write function, and the multimedia material is displayed according to the image rendering parameters. In the embodiment of the present disclosure, since the electronic device does not support on-screen display of the target color space standard (for example, the HLG color space standard), the HLG color space standard-related parameters can be read through the image write function to achieve on-screen display of the HLG color space standard, thereby improving the flexibility of the display.
[0057] It should be noted that the material types of multimedia materials include standard dynamic range SDR multimedia materials, perceptual quantization PQ multimedia materials, and HLG multimedia materials. When the target color space standard is the HLG color space standard, if the multimedia material is HLG multimedia material, steps S202 and S203 can be directly executed to realize the on-screen display of the HLG multimedia material through the ImageWriter function. If the multimedia material is SDR multimedia material or PQ multimedia material, it is necessary to convert the SDR multimedia material or PQ multimedia material into HLG multimedia material before executing steps S202 and S203.
[0058] Correspondingly, step S202 reads image rendering parameters that match the target color space standard from the multimedia material through the image writing function, and before displaying the multimedia material according to the image rendering parameters, the method also includes: if the multimedia material is SDR multimedia material or PQ multimedia material, converting the multimedia material into HLG multimedia material.
[0059] In this embodiment, the type conversion of multimedia materials can be achieved by calling an application programming interface (API) provided by a functional module that implements conversion between different color space standards.
[0060] Optionally, the functional module API for converting PQ multimedia materials into HLG multimedia materials is "TECorePQ2HLGCore.h". By calling the API named "TECorePQ2HLGCore.h", the PQ multimedia materials can be converted into HLG multimedia materials.
[0061] Optionally, the functional module API for converting SDR multimedia materials into HLG multimedia materials is "TECoreSDR2HLGCore.h". By calling the API named "TECoreSDR2HLGCore.h", the SDR multimedia materials can be converted into HLG multimedia materials.
[0062] In the embodiment of the present disclosure, when the multimedia material is SDR multimedia material or PQ multimedia material, the SDR multimedia material or PQ multimedia material can be converted into HLG multimedia material, thereby realizing the display of the HLG color gamut, thereby further improving the flexibility of the display.
[0063] FIG3 is a structural block diagram of a multimedia material display device provided by an embodiment of the present disclosure. Referring to FIG3 , the device includes: an acquisition module 301 , a calling module 302 , and a display module 303 .
[0064] The acquisition module 301 is configured to acquire, in response to a display instruction for a multimedia material, a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device;
[0065] a calling module 302 configured to call an image writing function if the first color space standard is a target color space standard but the second color space standard does not include the target color space standard, wherein the image writing function is used to read and write image parameters;
[0066] The display module 303 is configured to read image rendering parameters matching the target color space standard from the multimedia material through the image writing function, and display the multimedia material according to the image rendering parameters.
[0067] According to one or more embodiments of the present disclosure, the image writing function includes reading configuration information that matches the target color space standard; accordingly, the display module 303 reads image rendering parameters that match the target color space standard from the multimedia material through the image writing function, specifically including: through the image writing function, according to the reading configuration information that matches the target color space standard, reading image rendering parameters that match the target color space standard from the multimedia material.
[0068] According to one or more embodiments of the present disclosure, the reading configuration information matching the target color space standard includes: color gamut information matching the target color space standard.
[0069] According to one or more embodiments of the present disclosure, the device also includes: a creation module; the creation module is used to create an image writing function in the Java layer, and set the reading configuration information matching the target color space standard as a parameter of the data space in the image writing function; wherein, the data space is used to indicate the color space standard of the image writing function for reading multimedia materials.
[0070] According to one or more embodiments of the present disclosure, the display module 303 displays the multimedia material according to the image rendering parameters, specifically including: determining the image rendering parameters as texture parameters of the multimedia material, and displaying the texture parameters of the multimedia material according to the target color space standard.
[0071] According to one or more embodiments of the present disclosure, the material types of the multimedia material include standard dynamic range SDR multimedia material, perceptual quantization PQ multimedia material and HLG multimedia material, and the target color space standard is the hybrid logarithmic gamma curve HLG color space standard; accordingly, the device also includes: a format conversion module; the format conversion module is used to convert the multimedia material into HLG multimedia material if the multimedia material is SDR multimedia material or PQ multimedia material.
[0072] According to one or more embodiments of the present disclosure, the display module 303 is further used to display the multimedia material according to the PQ color space standard if the first color space standard is the PQ color space standard and the second color space standard includes the PQ color space standard; or, if the first color space standard is the HLG color space standard and the second color space standard includes the HLG color space standard, display the multimedia material according to the HLG color space standard.
[0073] The acquisition module 301, the calling module 302 and the display module 303 are connected in sequence. The multimedia material display device provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0074] FIG4 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. Referring to FIG4 , the electronic device 400 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG4 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0075] As shown in Figure 4, electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. Various programs and data required for the operation of electronic device 400 are also stored in RAM 403. Processing device 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to bus 404.
[0076] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although FIG4 shows an electronic device 400 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0077] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0078] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0079] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0080] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0081] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0082] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0083] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0084] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0085] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0086] In a first aspect, according to one or more embodiments of the present disclosure, a method for displaying multimedia material is provided, comprising:
[0087] In response to a display instruction of a multimedia material, acquiring a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device;
[0088] If the first color space standard is a hybrid logarithmic gamma curve target color space standard but the second color space standard does not include the target color space standard, calling an image write function, wherein the image write function is used to read and write image parameters;
[0089] Image rendering parameters matching the target color space standard are read from the multimedia material through the image writing function, and the multimedia material is displayed according to the image rendering parameters.
[0090] According to one or more embodiments of the present disclosure, the image writing function includes reading configuration information that matches the target color space standard; accordingly, reading image rendering parameters that match the target color space standard from the multimedia material through the image writing function includes: reading image rendering parameters that match the target color space standard from the multimedia material through the image writing function according to the reading configuration information that matches the target color space standard.
[0091] According to one or more embodiments of the present disclosure, the reading configuration information matching the target color space standard includes: color gamut information matching the target color space standard.
[0092] According to one or more embodiments of the present disclosure, it also includes: creating an image writing function in the Java layer, and setting the reading configuration information matching the target color space standard as a parameter of the data space in the image writing function; wherein the data space is used to indicate the color space standard of the multimedia material read by the image writing function.
[0093] According to one or more embodiments of the present disclosure, displaying the multimedia material according to the image rendering parameters includes: determining the image rendering parameters as texture parameters of the multimedia material, and displaying the texture parameters of the multimedia material according to the target color space standard.
[0094] According to one or more embodiments of the present disclosure, the material types of the multimedia material include standard dynamic range SDR multimedia material, perceptual quantization PQ multimedia material and HLG multimedia material, and the target color space standard is the hybrid logarithmic gamma curve HLG color space standard; accordingly, before reading the image rendering parameters matching the target color space standard from the multimedia material through the image writing function and displaying the multimedia material according to the image rendering parameters, the method also includes: if the multimedia material is SDR multimedia material or PQ multimedia material, converting the multimedia material into HLG multimedia material.
[0095] According to one or more embodiments of the present disclosure, it also includes: if the first color space standard is the PQ color space standard and the second color space standard includes the PQ color space standard, then the multimedia material is displayed according to the PQ color space standard; or, if the first color space standard is the HLG color space standard and the second color space standard includes the HLG color space standard, then the multimedia material is displayed according to the HLG color space standard.
[0096] In a second aspect, according to one or more embodiments of the present disclosure, there is provided a multimedia material display device, comprising:
[0097] an acquisition module, configured to acquire, in response to a display instruction of a multimedia material, a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device;
[0098] a calling module, configured to call an image writing function if the first color space standard is a hybrid logarithmic gamma curve target color space standard but the second color space standard does not include the target color space standard, wherein the image writing function is used to read and write image parameters;
[0099] The display module is configured to read image rendering parameters matching the target color space standard from the multimedia material through the image writing function, and display the multimedia material according to the image rendering parameters.
[0100] According to one or more embodiments of the present disclosure, the image writing function includes reading configuration information that matches the target color space standard; accordingly, the display module reads image rendering parameters that match the target color space standard from the multimedia material through the image writing function, specifically including: through the image writing function, according to the reading configuration information that matches the target color space standard, reading image rendering parameters that match the target color space standard from the multimedia material.
[0101] According to one or more embodiments of the present disclosure, the reading configuration information matching the target color space standard includes: color gamut information matching the target color space standard.
[0102] According to one or more embodiments of the present disclosure, the device also includes: a creation module; the creation module is used to create an image writing function in the Java layer, and set the reading configuration information matching the target color space standard as a parameter of the data space in the image writing function; wherein, the data space is used to indicate the color space standard of the image writing function for reading multimedia materials.
[0103] According to one or more embodiments of the present disclosure, the display module displays the multimedia material according to the image rendering parameters, specifically including: determining the image rendering parameters as texture parameters of the multimedia material, and displaying the texture parameters of the multimedia material according to the target color space standard.
[0104] According to one or more embodiments of the present disclosure, the material types of the multimedia material include standard dynamic range SDR multimedia material, perceptual quantization PQ multimedia material and HLG multimedia material, and the target color space standard is the hybrid logarithmic gamma curve HLG color space standard; accordingly, the device also includes: a format conversion module; the format conversion module is used to convert the multimedia material into HLG multimedia material if the multimedia material is SDR multimedia material or PQ multimedia material.
[0105] According to one or more embodiments of the present disclosure, the display module is further used to display the multimedia material according to the PQ color space standard if the first color space standard is the PQ color space standard and the second color space standard includes the PQ color space standard; or, if the first color space standard is the HLG color space standard and the second color space standard includes the HLG color space standard, display the multimedia material according to the HLG color space standard.
[0106] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0107] The memory stores computer-executable instructions;
[0108] The processor executes the computer-executable instructions stored in the memory to implement the multimedia material display method as described in the first aspect and various possible designs of the first aspect.
[0109] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the multimedia material display method described in the first aspect and various possible designs of the first aspect is implemented.
[0110] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the multimedia material display method as described in the first aspect and various possible designs of the first aspect.
[0111] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0112] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0113] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A multimedia material display method, comprising: In response to a display instruction of a multimedia material, acquiring a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device; If the first color space standard is a target color space standard but the second color space standard does not include the target color space standard, calling an image writing function, wherein the image writing function is used to read and write image parameters; Image rendering parameters matching the target color space standard are read from the multimedia material through the image writing function, and the multimedia material is displayed according to the image rendering parameters.
2. The method according to claim 1, wherein The image writing function includes read configuration information that matches the target color space standard; Correspondingly, reading the image rendering parameters matching the target color space standard from the multimedia material through the image writing function includes: The image writing function is used to read image rendering parameters that match the target color space standard from the multimedia material according to the read configuration information that matches the target color space standard.
3. The method according to claim 2, wherein: The reading configuration information matching the target color space standard includes: color gamut information matching the target color space standard.
4. The method according to any one of claims 1 to 3, further comprising: Create an image writing function in the Java layer, and set the read configuration information matching the target color space standard as a parameter of the data space in the image writing function; The data space is used to indicate the color space standard of the multimedia material read by the image writing function.
5. The method according to any one of claims 1 to 4, wherein: Displaying the multimedia material according to the image rendering parameters includes: The image rendering parameters are determined as texture parameters of the multimedia material, and the texture parameters of the multimedia material are displayed according to the target color space standard.
6. The method according to any one of claims 1 to 5, wherein: The material types of the multimedia material include standard dynamic range SDR multimedia material, perceptual quantization PQ multimedia material and HLG multimedia material, and the target color space standard is the hybrid logarithmic gamma curve HLG color space standard; Accordingly, before reading the image rendering parameters matching the target color space standard from the multimedia material through the image writing function and displaying the multimedia material according to the image rendering parameters, the method further includes: If the multimedia material is an SDR multimedia material or a PQ multimedia material, the multimedia material is converted into an HLG multimedia material.
7. The method according to any one of claims 1 to 6, further comprising: If the first color space standard is the PQ color space standard and the second color space standard includes the PQ color space standard, displaying the multimedia material according to the PQ color space standard; or, If the first color space standard is the HLG color space standard and the second color space standard includes the HLG color space standard, the multimedia material is displayed according to the HLG color space standard.
8. A multimedia material display device, comprising: an acquisition module configured to acquire, in response to a display instruction of a multimedia material, a first color space standard for displaying the multimedia material and a second color space standard supported by the electronic device; a calling module configured to call an image writing function if the first color space standard is a target color space standard but the second color space standard does not include the target color space standard, wherein the image writing function is used to read and write image parameters; The display module is configured to read image rendering parameters matching the target color space standard from the multimedia material through the image writing function, and display the multimedia material according to the image rendering parameters.
9. An electronic device comprising: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the multimedia material display method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the multimedia material display method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for displaying multimedia materials according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Live streaming method and system, storage medium and equipment
CN111885393A
Video editing method and electronic equipment
CN114222187A
Picture display method and device, computer equipment and storage medium
CN116501273A
High dynamic range (HDR) video processing method and system and video processing equipment
CN117392964A