WO2024088132A1 - 目标图像的显示方法、显示装置、电子设备和存储介质 - Google Patents

目标图像的显示方法、显示装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2024088132A1
WO2024088132A1 PCT/CN2023/125201 CN2023125201W WO2024088132A1 WO 2024088132 A1 WO2024088132 A1 WO 2024088132A1 CN 2023125201 W CN2023125201 W CN 2023125201W WO 2024088132 A1 WO2024088132 A1 WO 2024088132A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
dot matrix
font
image content
matrix font
Prior art date
Application number
PCT/CN2023/125201
Other languages
English (en)
French (fr)
Inventor
孙为坤
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2024088132A1 publication Critical patent/WO2024088132A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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

Definitions

  • the present application belongs to the technical field of electronic equipment, and specifically relates to a method for displaying a target image, a display device, an electronic device and a storage medium.
  • the wearable device is limited by the memory and performance of the operating system.
  • the display screen of the wearable device can only display text information, but cannot display the image content in the target image.
  • the image content can only be displayed in the form of text, resulting in the user being unable to see the target image, which seriously affects the user experience of the wearable device.
  • the purpose of the embodiments of the present application is to provide a method for displaying a target image, a method for processing image content, a display device, a processing device, an electronic device and a readable storage medium, which can display the image content on a display screen of a wearable device when a target image including image content is received, so as to improve the user experience of the wearable device.
  • an embodiment of the present application provides a method for displaying a target image, comprising:
  • the image content is converted into a code to generate a code corresponding to the image content
  • the dot matrix font is obtained by performing data conversion on the image content in advance.
  • an embodiment of the present application provides a display device for a target image, wherein the display device is applied to a wearable device, the wearable device includes a display screen, and the display device includes:
  • a receiving module used for receiving image content corresponding to a target image
  • a conversion module used to perform encoding conversion on the image content according to a preset encoding rule to generate a code corresponding to the image content
  • An acquisition module used for acquiring a dot matrix font corresponding to the encoding
  • a display module used for displaying dot matrix fonts, which form a target image
  • the dot matrix font is obtained by performing data conversion on the image content in advance.
  • an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect and/or the second aspect are implemented.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect and/or the second aspect are implemented.
  • an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method of the first aspect.
  • an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect and/or the second aspect.
  • the display method can be used for a wearable device.
  • the wearable device receives image content in a target image, first, the image content is encoded and converted according to a preset encoding rule to generate a corresponding encoding of the image content.
  • a dot matrix font corresponding to the code is obtained.
  • a dot matrix font library is integrated, and when the operating system is integrated, the image content to be displayed by the wearable device is converted in advance to obtain the dot matrix font corresponding to the image content, and then the dot matrix font is stored in the dot matrix font library.
  • the image content needs to be displayed,
  • the dot matrix font corresponding to the image content is obtained from the dot matrix font library, and then the dot matrix font is displayed, the image content can be displayed on the display screen of the wearable device, that is, the target image is displayed on the display screen.
  • the memory occupied by the dot matrix font is much smaller, so the memory and performance requirements of the operating system for obtaining the dot matrix font are also much smaller.
  • the dot matrix font corresponding to the image content is obtained, so that the image content can be displayed on the display screen, thereby improving the user experience of the wearable device.
  • FIG1 is a flow chart showing a method for displaying a target image according to an embodiment of the present application
  • FIG2 is a schematic diagram showing the distribution of pixels of image content according to an embodiment of the present application.
  • FIG3 is a schematic diagram showing pixel position distribution of a display screen according to an embodiment of the present application.
  • FIG4 shows a structural block diagram of a device for displaying a target image according to an embodiment of the present application
  • FIG5 shows a structural block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • first, second, etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • a method for displaying a target image is provided.
  • the display method is used for a wearable device, and the wearable device includes a display screen.
  • FIG. 1 shows a flow chart of the method for displaying a target image according to an embodiment of the present application. As shown in FIG. 1 , the display method includes:
  • Step 102 receiving image content corresponding to a target image
  • the target image may be sent by other smart devices, such as a mobile phone, a computer or a tablet, through an application.
  • Step 104 performing encoding conversion on the image content according to a preset encoding rule to generate a code corresponding to the image content
  • Step 106 obtaining a dot matrix font corresponding to the code
  • bitmap font library may be pre-integrated into the operating system of the wearable device, so that an application installed in the operating system can obtain bitmap fonts from the bitmap font library.
  • Step 108 displaying the dot matrix font, the dot matrix font forms the target image.
  • the dot matrix font is obtained by performing data conversion on the image content in advance.
  • the wearable device when the wearable device receives the image content of the target image, first, the image content is converted into code according to a preset coding rule to generate a code corresponding to the image content.
  • a dot matrix font corresponding to the code is obtained.
  • a dot matrix font library is integrated in the operating system of the wearable device, and when the operating system is integrated, the image content to be displayed by the wearable device is converted in advance to obtain the dot matrix font corresponding to the image content, and then the dot matrix font is stored in the dot matrix font library.
  • the dot matrix font corresponding to the image content can be obtained from the dot matrix font library, and then the dot matrix font can be displayed, so that the image content can be displayed on the display screen of the wearable device, that is, the target image is displayed on the display screen.
  • the image content is usually image data, such as image data in PNG format.
  • the operating system needs to have sufficient memory and performance to ensure that the image data It can be successfully acquired so as to be displayed on the display.
  • the image data of the image content can be stored in the form of a dot matrix font, so that the memory occupied by the image content can be reduced.
  • the 2 32 (4 bytes) data of each pixel of a 32-bit PNG image is compressed and converted into 2 8 (1 byte) of a dot matrix font for storage.
  • the memory occupied by the dot matrix font is much smaller, so the memory and performance requirements of the operating system for acquiring the dot matrix font are also much smaller.
  • the dot matrix font corresponding to the image content is acquired, so that the image content is displayed on the display screen, thereby improving the user experience of the wearable device.
  • the wearable device may include a smart watch, which has an integrated real-time operating system (RTOS).
  • RTOS real-time operating system
  • the real-time operating system can smoothly display the received image content, thereby improving the user experience of the smart watch.
  • the step of obtaining a dot matrix font corresponding to the encoding includes:
  • the font name is generated by naming the image content according to a preset encoding rule before data conversion is performed on the image content.
  • the font name of the dot matrix font is obtained.
  • the font name of the dot matrix font is pre-generated. Specifically, the name of the image content is encoded according to a preset encoding rule to generate the font name. Further, the dot matrix font whose font name is the same as the code is obtained, and then the dot matrix font is displayed on the display screen, so that the display of the image content can be completed.
  • the preset encoding rule used when encoding the image content in the received target image is the same as the encoding rule used when encoding the image name of the image content.
  • the encoding rule is formulated by the developer of the image content specifically for the image content. Therefore, the font name obtained by encoding the name of the image content corresponds to the code obtained by encoding the image content in the received target image, and the point where the font name corresponds to the code can be determined.
  • the matrix font is a dot matrix font corresponding to the image content included in the target image. The image content can be displayed by displaying the dot matrix font on the display screen.
  • each emoji emoticon image has a unique (or combined unique) Unicode code for encoding, and the corresponding Unicode international standard range is: 0001F600-0001F64F.
  • the image content is also converted according to the Unicode encoding rules. Therefore, the encoding of the image content obtained by the encoding conversion is also in the above encoding range, such as 0000E000.
  • the font name of each dot matrix font is obtained, and the font name that is also 0000E000 is determined.
  • the dot matrix font is the dot matrix font corresponding to the received image content.
  • the dot matrix font is displayed on the display screen, and the emoji emoticon image corresponding to the received image content can be displayed.
  • the image content includes a dynamic image
  • the dynamic image includes a plurality of image frames, each image frame is pre-data-converted to generate a corresponding dot matrix font, and before each image frame is data-converted, each image frame is named within a continuous coding interval according to a preset coding rule;
  • the step of obtaining the dot matrix font corresponding to the encoding also includes:
  • the image content in the target image received by the wearable device may also include a dynamic image.
  • the dynamic image includes multiple image frames, that is, the image that needs to be displayed in each frame of the dynamic image, and each image frame is displayed continuously on the time axis to form a dynamic image.
  • each image frame of the dynamic image will be converted into data to obtain the dot matrix font of each image frame, and then stored in the dot matrix font library.
  • the font names of the dot matrix fonts of multiple image frames of a dynamic image are obtained by encoding the image names of the dynamic image in a continuous coding interval according to preset coding rules. That is, the font names of the dot matrix fonts of multiple image frames are in the same continuous coding interval,
  • the image name of the dynamic image is first converted according to the preset coding rules to generate a code, and then the font name corresponding to the code is determined.
  • the dynamic image includes multiple image frames, so it is also necessary to determine other font names in the same coding interval as the font name, and then determine the dot matrix font corresponding to each image frame of the dynamic image, so as to ensure that each image frame of the dynamic image can be displayed on the display screen, that is, to ensure the display effect of the dynamic image.
  • the font names of the dot matrix fonts corresponding to each image frame are: "0000E000”, “0000E001”, “0000E002”, “0000E003”, and "0000E004".
  • the obtained code is 0000E000. Therefore, the dot matrix font with the font name 0000E000 and the four dot matrix fonts "0000E001", “0000E002”, “0000E003”, and "0000E004" in the same encoding range as the dot matrix font are determined to be the dot matrix fonts that need to be obtained.
  • the step of displaying the dot matrix font on the display screen includes: according to the display order of the multiple image frames, cyclically displaying multiple dot matrix fonts corresponding to the multiple image frames respectively on the display screen.
  • the dot matrix font corresponding to each image frame of the dynamic image can be obtained and displayed on the display screen.
  • the dot matrix font corresponding to each image frame can be retrieved in sequence according to the display order of multiple image frames of the dynamic image, and displayed on the display screen in sequence, that is, after a dot matrix font is displayed, the display of the current dot matrix font is canceled, and the display of the next dot matrix font is performed, thereby realizing the display of the dynamic image.
  • the display of the dot matrix font is canceled and the first dot matrix font is displayed, that is, multiple dot matrix fonts are obtained in a loop and displayed in the order of display, thereby realizing the loop playback of the dynamic image and ensuring the playback effect of the dynamic image.
  • the image content includes a plurality of pixels
  • the dot matrix font includes a plurality of pixel data
  • the plurality of pixel data corresponds one-to-one to the plurality of pixels
  • the steps of displaying a dot matrix font on a display screen include:
  • the pixel data corresponding to each pixel point is filled into the corresponding pixel position on the display screen.
  • Figure 2 shows a schematic diagram of the distribution of pixel points of the image content according to the embodiment of the present application.
  • the image content 200 may include multiple pixel points 202. Accordingly, when the image content 200 is stored in the form of a dot matrix font, each dot matrix font includes multiple pixel data, and the multiple pixel data correspond to the multiple pixel points 202 one by one.
  • the arrangement order of the multiple pixel points 202 of the image content 200 can be determined first, and then the pixel data corresponding to each pixel point 202 is filled into the corresponding pixel position on the display screen, so that the font data can be displayed on the display screen, that is, the image content 200 can be displayed. That is, the pixel data of each pixel point 202 can be directly acquired and filled without other conversion, and the pixel data occupies a small amount of memory, and the memory and performance requirements of the operating system are low, which ensures the smooth display of the image content 200.
  • the display screen includes a plurality of pixel positions arranged in an array, each pixel position is composed of three sub-pixels of red, green and blue, and the color of the pixel position can be determined by adjusting the proportion of each sub-pixel to display the corresponding color.
  • FIG3 shows a schematic diagram of the pixel position distribution of a display screen according to an embodiment of the present application.
  • Each pixel position 300 on the display screen can be used to fill each pixel data of the dot matrix font, and according to the pixel data filled in the pixel position 300, the wearable device can control the proportion of the red sub-pixel 302, the green sub-pixel 304 and the blue sub-pixel 306 of each pixel position 300.
  • the display of the image content 200 is completed.
  • the processing method before acquiring the image content corresponding to the target image, the processing method includes:
  • the preset naming rule may be an encoding rule for the image content, and the image content is named according to the encoding rule to obtain the file name of the expression file.
  • the encoding rule is formulated by the developer of the image content for the image content alone.
  • the encoding rules are used in the process of encoding and converting the content. Therefore, the obtained names or codes are one-to-one corresponding to ensure that the corresponding image content can be determined according to the names or codes.
  • the dot matrix font includes bitmap binary information, and the file name of the image content corresponds to the bitmap binary information one by one.
  • the dot matrix font corresponding to the image content can be directly obtained and displayed on the display screen.
  • the image content is usually image data, such as image data in PNG format.
  • the operating system needs to have sufficient memory and performance to ensure that the image data can be successfully acquired so as to be displayed on the display.
  • the image data of the image content can be stored in the form of a dot matrix font, so that the memory occupied by the image content can be reduced. In this way, when the memory and performance of the operating system of the electronic device are limited, the dot matrix font corresponding to the image content is acquired, so that the image content can be displayed on the display screen, thereby improving the user experience.
  • a dot matrix font may include bitmap binary information.
  • bitmap binary information For example, by using a font creation tool, the 2 32 (4-byte) data of each pixel of a 32-bit PNG image can be compressed and converted into 2 8 (1-byte) bitmap binary information for storage.
  • the bitmap binary information still uses the file name of the image. After the conversion, the bitmap binary information corresponds to the file name of the image one by one.
  • the bitmap binary information corresponding to the image data can be determined according to the name to ensure the accuracy of the image display.
  • the image content includes a dynamic image
  • the dynamic image includes a plurality of image frames
  • the steps of naming the file name of the image content include:
  • the file name of each image frame of the dynamic image is named within a continuous naming interval.
  • the image content to be processed may be a dynamic image.
  • the dynamic image includes multiple image frames, that is, the images required to be displayed for each frame of the dynamic image. Each image frame is displayed continuously on the time axis to form a dynamic image. Accordingly, when naming the file name of the image, it is necessary to name the file name of each image frame of the dynamic image according to the preset naming rules. Specifically, the file name of each image frame can be named within a continuous naming interval. Then each image frame is converted into a bitmap font and integrated into the bitmap font library.
  • the dot matrix font corresponding to each image frame can be obtained and the dot matrix font corresponding to each image frame can be displayed on the display screen in sequence according to the playback order to realize the display of the dynamic image.
  • the file names of multiple image frames of the same dynamic image are in the same naming interval
  • all the dot matrix fonts whose file names are in the same naming interval can be determined, thereby ensuring that the dot matrix font corresponding to each image frame of the dynamic image can be obtained to ensure the display effect of the dynamic image.
  • the processing method before the step of naming the file name of the image content according to a preset naming rule, the processing method further includes:
  • the image content is compressed.
  • the image content can be compressed before being converted into a dot matrix font, that is, the number of pixels of the image content can be reduced.
  • the image content can include multiple pixels, and the larger the memory occupied by the image content, the more pixels the image content has.
  • each dot matrix font includes multiple pixel data, and the multiple pixel data correspond to multiple pixel points one by one.
  • the number of pixels of the image content is reduced, that is, the number of dot matrix fonts is reduced, and the memory and performance requirements of the operating system for the acquisition process of the dot matrix font are further reduced to ensure that the image content can be displayed smoothly.
  • the target image display method provided in the embodiment of the present application can be executed by a target image display device.
  • the target image display device performing the target image display method is taken as an example to illustrate the target image display device provided in the embodiment of the present application.
  • a display device for a target image is provided.
  • the wearable device includes a display screen.
  • FIG4 shows a structural block diagram of a display device 400 for a target image according to an embodiment of the present application. As shown in FIG4 , the display device includes:
  • a receiving module 402 is used to receive image content corresponding to a target image
  • the conversion module 404 is used to perform encoding conversion on the image content according to a preset encoding rule to generate a code corresponding to the image content;
  • An acquisition module 406 is used to acquire a dot matrix font corresponding to the code
  • Display module 408, used to display dot matrix fonts, which form image content
  • the dot matrix font is obtained by performing data conversion on the image content in advance.
  • the wearable device when the wearable device receives image content, first, the image content is converted into code according to a preset coding rule to generate a corresponding code for the image content.
  • a dot matrix font corresponding to the code is obtained.
  • a dot matrix font library is integrated, and when the operating system is integrated, the image content required to be displayed by the wearable device is converted in advance to obtain the dot matrix font corresponding to the image content, and then the dot matrix font is stored in the dot matrix font library.
  • the dot matrix font corresponding to the image content can be obtained from the dot matrix font library, and then the image content can be displayed on the display screen of the wearable device by obtaining the dot matrix font, that is, the image content included in the target image is displayed on the display screen.
  • the memory occupied by the dot matrix font is much smaller, so the memory and performance requirements of the operating system for obtaining the dot matrix font are also much smaller.
  • the dot matrix font corresponding to the image content is obtained, so that the image content is displayed on the display screen, thereby improving the user experience of the wearable device.
  • the acquisition module 406 is specifically used for:
  • the font name is generated by naming the image content according to a preset encoding rule before data conversion is performed on the image content.
  • the preset encoding rule used when encoding the image content in the received target image is different from the encoding rule used when encoding the image name of the image content.
  • the encoding rules are the same.
  • the encoding rules are formulated by the developer of the image content specifically for the image content. Therefore, the font name obtained by decoding the image content corresponds to the code obtained by converting the image content in the received target image. It can be determined that the dot matrix font corresponding to the font name and the code is the dot matrix font corresponding to the image content included in the target image. The dot matrix font is displayed on the display screen to display the image content.
  • the image content includes a dynamic image
  • the dynamic image includes a plurality of image frames, each image frame is pre-data-converted to generate a corresponding dot matrix font, and before each image frame is data-converted, each image frame is named within a continuous coding interval according to a preset coding rule;
  • the acquisition module 406 is specifically used to acquire the dot matrix fonts corresponding to other font names in the same coding interval as the font name.
  • the image name of the dynamic image is first converted into code in a continuous coding interval according to the preset coding rule to generate a code, and then the font name corresponding to the code is determined.
  • the dynamic image includes multiple image frames, so it is also necessary to determine other font names in the same coding interval as the font name, and then determine the dot matrix font corresponding to each image frame of the dynamic image, so as to ensure that the image frame under each frame of the dynamic image can be displayed on the display screen, that is, to ensure the display effect of the dynamic image.
  • the display module 408 is used to:
  • the multiple dot matrix fonts corresponding to the multiple image frames are cyclically displayed in sequence on the display screen.
  • the dot matrix font corresponding to each image frame of the dynamic image can be obtained and displayed on the display screen.
  • the dot matrix font corresponding to each image frame can be called in sequence according to the display order of multiple image frames of the dynamic image, and displayed on the display screen in sequence. That is, after a dot matrix font is displayed, the display of the current dot matrix font is canceled and the next dot matrix font is displayed, thereby realizing the display of the dynamic image.
  • the first dot matrix font is displayed in a row, that is, multiple dot matrix fonts are obtained cyclically and displayed in a display order, thereby realizing the cyclic playback of the dynamic image and ensuring the playback effect of the dynamic image.
  • the image content includes a plurality of pixels
  • the dot matrix font includes a plurality of pixel data
  • the plurality of pixel data corresponds one-to-one to the plurality of pixels
  • the display module 408 is specifically used for:
  • the pixel data corresponding to each pixel point is filled into the corresponding pixel position on the display screen.
  • the arrangement order of multiple pixels of the image content can be determined first, and then the pixel data corresponding to each pixel is filled into the corresponding pixel position on the display screen, so that the font data can be displayed on the display screen, that is, the image content can be displayed. That is, the pixel data of each pixel can be directly acquired and filled without other conversion, and the pixel data occupies a small amount of memory, and the memory and performance requirements of the operating system are low, which ensures the smooth display of the image content.
  • the image content processing method provided in the embodiment of the present application can be executed by an image content processing device.
  • the image content processing device executing the image content processing method is taken as an example to illustrate the image content processing device provided in the embodiment of the present application.
  • the processing device further includes:
  • a naming module used for naming the file name of the image content according to a preset naming rule before receiving the image content corresponding to the target image;
  • a conversion module used for converting image content into a dot matrix font
  • An integration module used for integrating the bitmap font into the bitmap font library
  • the dot matrix font includes bitmap binary information, and the file name of the image content corresponds to the bitmap binary information one by one.
  • the dot matrix font corresponding to the image content is directly obtained and displayed on the display screen.
  • the dot matrix font corresponding to the image content is obtained, so that the image content can be displayed on the display screen, thereby improving the user experience.
  • the image content includes a dynamic image
  • the dynamic image includes a plurality of image frames
  • the naming module is specifically used to name the file name of each image frame of the dynamic image within a continuous naming interval according to the naming rules.
  • the image content to be processed may be a dynamic image.
  • the dynamic image includes a plurality of image frames, that is, the image to be displayed for each frame of the dynamic image.
  • Each image frame is continuously displayed on the time axis to form a dynamic image.
  • the file name of each image frame may be named within a continuous naming interval. Then each image frame is converted into a bitmap font and integrated into the bitmap font library.
  • the dot matrix font corresponding to each image frame can be obtained and the dot matrix font corresponding to each image frame can be displayed on the display screen in sequence according to the playback order to realize the display of the dynamic image.
  • the file names of multiple image frames of the same dynamic image are in the same naming interval
  • all the dot matrix fonts whose file names are in the same naming interval can be determined, thereby ensuring that the dot matrix font corresponding to each image frame of the dynamic image can be obtained to ensure the display effect of the dynamic image.
  • the processing device further includes:
  • the compression module is used to compress the image content in response to the compression instruction.
  • the image content can be compressed before being converted into a dot matrix font, that is, the number of pixels of the image content can be reduced.
  • the image content can include multiple pixels, and the larger the memory occupied by the image content, the more pixels the image content has.
  • each dot matrix font includes multiple pixel data, and the multiple pixel data correspond to multiple pixel points one by one.
  • the number of pixels of the image content is reduced, that is, the number of dot matrix fonts is reduced, and the memory and performance requirements of the operating system for the acquisition process of the dot matrix font are further reduced to ensure that the image content can be displayed smoothly.
  • the display device of the target image and the processing device of the image content in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal or other devices other than a terminal.
  • the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • NAS Network Attached Storage
  • PC personal computer
  • TV television
  • teller machine a self-service machine
  • the target image display device and the image content processing device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the target image display device provided in the embodiment of the present application can implement the various processes implemented by the above-mentioned target image display method embodiment, and the image content processing device provided in the embodiment of the present application can implement the various processes implemented by the above-mentioned image content processing method embodiment. To avoid repetition, they will not be repeated here.
  • an embodiment of the present application further provides an electronic device.
  • Figure 5 shows a structural block diagram of an electronic device according to an embodiment of the present application.
  • the electronic device 500 includes a processor 502, a memory 504, and a program or instruction stored in the memory 504 and executable on the processor 502.
  • the program or instruction is executed by the processor 502
  • each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, Components include an interface unit 608, a memory 609, and a processor 610.
  • the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, so that the power management system can manage charging, discharging, and power consumption.
  • a power source such as a battery
  • the electronic device structure shown in FIG6 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the user input unit 607 is used to receive image content corresponding to the target image
  • Processor 610 is used to perform encoding conversion on the image content according to preset encoding rules to generate a code corresponding to the image content; obtain a dot matrix font corresponding to the code; display the dot matrix font, and the dot matrix font forms the image content; wherein the dot matrix font is obtained by pre-converting the image content.
  • the image content when image content is received, first, the image content is converted into a code according to a preset coding rule to generate a corresponding code of the image content.
  • a dot matrix font corresponding to the code is obtained.
  • a dot matrix font library is integrated, and when the operating system is integrated, the image content required to be displayed by the wearable device is converted in advance to obtain the dot matrix font corresponding to the image content, and then the dot matrix font is stored in the dot matrix font library.
  • the dot matrix font corresponding to the image content can be obtained from the dot matrix font library, and then the image content can be displayed on the display screen of the wearable device by obtaining the dot matrix font, that is, the image content included in the target image is displayed on the display screen.
  • the memory occupied by the dot matrix font is much smaller, so the memory and performance requirements of the operating system for obtaining the dot matrix font are also much smaller.
  • the dot matrix font corresponding to the image content is obtained, so that the image content is displayed on the display screen, thereby improving the user experience of the wearable device.
  • the processor 610 is also used to obtain the font name of the dot matrix font; determine the font name corresponding to the encoding, and obtain the dot matrix font corresponding to the font name; wherein the font name is generated by naming the image content according to preset encoding rules before data conversion of the image content.
  • the image content in the received target image is converted into code.
  • the preset encoding rule used when encoding the image name of the image content is the same as the encoding rule used when encoding the image content.
  • the encoding rule is formulated by the developer of the image content specifically for the image content. Therefore, the font name obtained by decoding the image content corresponds to the encoding obtained by converting the image content in the received target image. It can be determined that the dot matrix font corresponding to the font name and the encoding is the dot matrix font corresponding to the image content included in the target image. The dot matrix font is displayed on the display screen to display the image content.
  • the image content includes a dynamic image
  • the dynamic image includes multiple image frames, each image frame is pre-converted to generate a corresponding dot matrix font, and before each image frame is converted, each image frame is named within a continuous coding interval according to preset coding rules; the processor 610 is also used to obtain dot matrix fonts corresponding to other font names in the same coding interval as the font name.
  • the image name of the dynamic image is first converted into code in a continuous coding interval according to the preset coding rule to generate a code, and then the font name corresponding to the code is determined.
  • the dynamic image includes multiple image frames, so it is also necessary to determine other font names in the same coding interval as the font name, and then determine the dot matrix font corresponding to each image frame of the dynamic image, so as to ensure that the image frame under each frame of the dynamic image can be displayed on the display screen, that is, to ensure the display effect of the dynamic image.
  • the display unit 606 is configured to display a plurality of dot matrix fonts corresponding to the plurality of image frames in a cyclic manner on the display screen according to the display order of the plurality of image frames.
  • the dot matrix font corresponding to each image frame of the dynamic image can be obtained and displayed on the display screen.
  • the dot matrix font corresponding to each image frame can be called in sequence according to the display order of multiple image frames of the dynamic image, and displayed on the display screen in sequence. That is, after a dot matrix font is displayed, the display of the current dot matrix font is canceled and the next dot matrix font is displayed, thereby realizing the display of the dynamic image.
  • the first dot matrix font is displayed in a row, that is, multiple dot matrix fonts are obtained cyclically and displayed in a display order, thereby realizing the cyclic playback of the dynamic image and ensuring the playback effect of the dynamic image.
  • the image content includes multiple pixel points
  • the dot matrix font includes multiple pixel data
  • the multiple pixel data correspond one-to-one to the multiple pixel points
  • the display unit 606 is also used to fill the pixel data corresponding to each pixel point into the corresponding pixel position on the display screen according to the arrangement order of the multiple pixel points.
  • the arrangement order of multiple pixels of the image content can be determined first, and then the pixel data corresponding to each pixel is filled into the corresponding pixel position on the display screen, so that the font data can be displayed on the display screen, that is, the image content can be displayed. That is, the pixel data of each pixel can be directly acquired and filled without other conversion, and the pixel data occupies a small amount of memory, and the memory and performance requirements of the operating system are low, which ensures the smooth display of the image content.
  • the processor 610 is also used to name the file name of the image content according to a preset naming rule; convert the image content into a dot matrix font; and integrate the dot matrix font into a dot matrix font library; wherein the dot matrix font includes bitmap binary information, and the file name of the image content corresponds one-to-one to the bitmap binary information.
  • the dot matrix font corresponding to the image content is directly obtained and displayed on the display screen.
  • the dot matrix font corresponding to the image content is obtained, so that the image content can be displayed on the display screen, thereby improving the user experience.
  • the image content includes a dynamic image
  • the dynamic image includes multiple image frames
  • the processor 610 is further used to name the file name of each image frame of the dynamic image within a continuous naming interval according to a naming rule.
  • the image content to be processed may be a dynamic image.
  • the dynamic image includes multiple image frames, that is, the image to be displayed in each frame of the dynamic image. Each image frame is displayed continuously on the time axis to form a dynamic image. Accordingly, when naming the file name of the image, it is necessary to name the file name of each image frame of the dynamic image according to the preset naming rules. Specifically, the file name of each image frame can be named within a continuous naming interval. Then each image frame is converted into a bitmap font and integrated into a bitmap font library.
  • the dot matrix font corresponding to each image frame can be obtained and the dot matrix font corresponding to each image frame can be displayed on the display screen in sequence according to the playback order to realize the display of the dynamic image.
  • the file names of multiple image frames of the same dynamic image are in the same naming interval
  • all the dot matrix fonts whose file names are in the same naming interval can be determined, thereby ensuring that the dot matrix font corresponding to each image frame of the dynamic image can be obtained to ensure the display effect of the dynamic image.
  • the processor 610 is further configured to compress the image content in response to a compression instruction.
  • the image content can be compressed before being converted into a dot matrix font, that is, the number of pixels of the image content can be reduced.
  • the image content can include multiple pixels, and the larger the memory occupied by the image content, the more pixels the image content has.
  • each dot matrix font includes multiple pixel data, and the multiple pixel data correspond to multiple pixel points one by one.
  • the number of pixels of the image content is reduced, that is, the number of dot matrix fonts is reduced, and the memory and performance requirements of the operating system for the acquisition process of the dot matrix font are further reduced to ensure that the image content can be displayed smoothly.
  • the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
  • the user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072.
  • the touch panel 6071 is also called a touch screen.
  • the touch panel 6071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
  • the memory 609 can be used to store software programs and various data.
  • the memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (Programmable PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically PROM, EEPROM) or a flash memory.
  • ROM read-only memory
  • PROM programmable read-only memory
  • Erasable PROM erasable programmable read-only memory
  • EPROM erasable programmable read-only memory
  • Electrically erasable programmable read-only memory Electrically erasable programmable read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • the volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • DRRAM direct memory bus random access memory
  • the processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the program or instruction is executed by a processor, each process of the above-mentioned target image display method and image content processing method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device in the above embodiment.
  • the readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
  • An embodiment of the present application further provides a chip, which includes a processor and a communication interface, which are coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned target image display method and image content processing method embodiments, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.
  • the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
  • An embodiment of the present application provides a computer program product, which is stored in a storage medium.
  • the program product is executed by at least one processor to implement the various processes of the above-mentioned target image display method and image content processing method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本申请公开了一种目标图像的显示方法、显示装置、电子设备和存储介质,属于电子设备技术领域。目标图像的显示方法,包括:接收对应于目标图像的表情图像;根据预设编码规则,对表情图像进行编码转换,生成与表情图像对应的编码;获取与编码对应的点阵字体;显示点阵字体,点阵字体形成表情图像;其中,点阵字体为预先对表情图像进行数据转换得到的。

Description

目标图像的显示方法、显示装置、电子设备和存储介质
相关申请的交叉引用
本申请主张在2022年10月25日在中国提交的中国专利申请No.202211311383.5的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于电子设备技术领域,具体涉及一种目标图像的显示方法、显示装置、电子设备和存储介质。
背景技术
在相关技术中,穿戴设备受限于操作系统的内存和性能,在接收包括目标图像时,穿戴设备的显示屏只能显示文字信息,而无法显示目标图像中的图像内容。或者只能将图像内容以文字的形式显示,导致用户无法看到目标图像,从而严重影响了穿戴设备的用户体验。
发明内容
本申请实施例的目的是提供一种目标图像的显示方法、图像内容的处理方法、显示装置、处理装置、电子设备和可读存储介质,能够在接收到包括图像内容的目标图像时,在穿戴设备的显示屏上显示出该图像内容,以提高穿戴设备的用户体验。
第一方面,本申请实施例提供了一种目标图像的显示方法,包括:
接收对应于目标图像的图像内容;
根据预设编码规则,对图像内容进行编码转换,生成与图像内容对应的编码;
获取与编码对应的点阵字体;
显示点阵字体,点阵字体形成目标图像;
其中,点阵字体为预先对图像内容进行数据转换得到的。
第二方面,本申请实施例提供了一种目标图像的显示装置,其中,显示装置应用于穿戴设备,穿戴设备包括显示屏,显示装置包括:
接收模块,用于接收对应于目标图像中图像内容;
转换模块,用于根据预设编码规则,对图像内容进行编码转换,生成与图像内容对应的编码;
获取模块,用于获取与编码对应的点阵字体;
显示模块,用于显示点阵字体,点阵字体形成目标图像;
其中,点阵字体为预先对图像内容进行数据转换得到的。
第三方面,本申请实施例提供了一种电子设备,包括处理器和存储器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面和/或第二方面的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现如第一方面和/或第二方面的方法的步骤。
第五方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现如第一方面的方法的步骤。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面和/或第二方面的方法。
在本申请实施例中,显示方法可以用于穿戴设备,当穿戴设备接收到目标图像中的图像内容时,首先,根据预设编码规则,对图像内容进行编码转换,生成图像内容的对应的编码。
进一步地,根据生成的编码,获取与编码相对应的点阵字体。具体地,在穿戴设备的操作系统中,集成有点阵字体库,并且,操作系统集成时,预先将穿戴设备所需要显示的图像内容进行数据装换,得到图像内容对应的点阵字体,然后将点阵字体存储于点阵字体库中。这样,在需要显示图像内容 时,即可从点阵字体库中获取图像内容相对应的点阵字体,然后显示点阵字体,即可实现在穿戴设备的显示屏上显示该图像内容,也就是将目标图像在显示屏上显示。可以理解的是,相较于图像内容的图像数据,点阵字体所占用的内存要小得多,因此获取点阵字体对操作系统的内存和性能要求也要小得多。这样,在穿戴设备的操作系统的内存和性能有限的情况下,通过将图像内容所对应的点阵字体进行获取,从而实现了将图像内容显示于显示屏上,进而提高了穿戴设备的用户体验。
附图说明
图1示出了根据本申请实施例的目标图像的显示方法的流程图;
图2示出了根据本申请实施例的图像内容的像素点的分布的示意图;
图3示出了根据本申请实施例的显示屏的像素位置分布示意图;
图4示出了根据本申请实施例的目标图像的显示装置的结构框图;
图5示出了根据本申请实施例的电子设备的结构框图;
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的目标图像的显示方法、图像内容的处理方法、显示装置、处理装置、电子设备和可读存储介质进行详细地说明。
在本申请的一些实施例中,提供了一种目标图像的显示方法,该显示方法用于穿戴设备,穿戴设备包括显示屏,图1示出了根据本申请实施例的目标图像的显示方法的流程图,如图1所示,显示方法包括:
步骤102,接收对应于目标图像的图像内容;
在步骤102中,目标图像可以为其它智能设备通过应用程序发送的,例如手机、电脑或平板等。
步骤104,根据预设编码规则,对图像内容进行编码转换,生成与图像内容对应的编码;
步骤106,获取与编码对应的点阵字体;
在步骤106中,点阵字体库可以为预先集成至穿戴设备的操作系统中的,以供操作系统中所安装的应用程序从点阵字体库中获取点阵字体。
步骤108,显示点阵字体,点阵字体形成目标图像。
其中,点阵字体为预先对图像内容进行数据转换得到的。
在本申请实施例中,当穿戴设备接收到目标图像的图像内容时,首先,根据预设编码规则,对图像内容进行编码转换,生成图像内容对应的编码。
进一步地,根据生成的编码,获取与编码相对应的点阵字体。具体地,在穿戴设备的操作系统中,集成有点阵字体库,并且,操作系统集成时,预先将穿戴设备所需要显示的图像内容进行数据转换,得到图像内容对应的点阵字体,然后将点阵字体存储于点阵字体库中。这样,在需要显示图像内容时,即可从点阵字体库中获取图像内容相对应的点阵字体,然后显示点阵字体,即可实现在穿戴设备的显示屏上显示该图像内容,也就是将目标图像在显示屏上显示。
可以理解的是,图像内容通常为图像数据,例如PNG格式的图像数据,在显示图像内容时,需要操作系统具有足够的内存和性能,以保证图像数据 能够被顺利获取,以便在显示器上进行显示。而当操作系统的内存和性能有限时,通过将图像内容的图像数据以点阵字体的形式进行存储,可以使得图像内容所占用的内存减小。例如,将32位的PNG图片每个像素点的232(4字节)数据压缩转换成28(1字节)的点阵字体进行存储。也就是,相较于图像内容的图像数据,点阵字体所占用的内存要小得多,因此获取点阵字体对操作系统的内存和性能要求也要小得多。这样,在穿戴设备的操作系统的内存和性能有限的情况下,通过将图像内容所对应的点阵字体进行获取,从而实现了将图像内容显示于显示屏上,进而提高了穿戴设备的用户体验。
具体地,穿戴设备可以包括智能手表,智能手表中集成有实时操作系统(Real Time Operating System,RTOS),通过本申请的目标图像的显示方法,可以使得实时操作系统能够顺利地对接收到的图像内容进行显示,提高了智能手表的用户体验。
在本申请的一些实施例中,获取与编码对应的点阵字体的步骤,包括:
获取点阵字体的字体名称;
确定与编码相对应的字体名称,并获取字体名称对应的点阵字体;
其中,字体名称为在对图像内容进行数据转换之前,根据预设编码规则对图像内容进行命名生成的。
在本申请实施例中,在从点阵字体库中获取与编码对应的点阵字体时,首先,获取点阵字体的字体名称。其中,点阵字体的字体名称为预先生成的,具体地,根据预设编码规则对图像内容的名称进行编码生成字体名称。进一步地,将字体名称与编码相同的点阵字体获取,进而将该点阵字体显示在显示屏上,即可完成图像内容的显示。
具体地,在对接收到的目标图像中的图像内容进行编码转换时所采用的预设编码规则,与对图像内容的图像名称进行编码时所采用的编码规则相同。并且,该编码规则是图像内容的开发者单独针对图像内容制定的,因此,对图像内容的名称编码所得到的字体名称与对接收到的目标图像中的图像内容编码转换所得到的编码一一对应,进而可以确定字体名称与编码相对应的点 阵字体即为目标图像中所包括的图像内容所对应的点阵字体,将该点阵字体在显示屏上显示,即可实现对图像内容的显示。
举例来说,以emoji表情图像的图像内容为例,根据表情图像开发者的设定,每个emoji表情图像都有一个唯一的(或者组合起来唯一的)Unicode码进行编码,对应的Unicode的国际标准区间是:0001F600—0001F64F。在接收到包含emoji表情图像时,同样根据Unicode编码规则对图像内容进行编码转换,因此,编码转换得到的图像内容的编码同样处于上述的编码区间,例如0000E000,然后,获取每个点阵字体的字体名称,确定同样为0000E000的字体名称,该点阵字体即为收到的图像内容对应的点阵字体,将该点阵字体显示在显示屏上,即可实现对收到的图像内容对应的emoji表情图像进行显示。
在本申请的一些实施例中,图像内容包括动态图像,动态图像包括多个图像帧,每个图像帧均预先进行数据转换,以生成相应的点阵字体,并且,在将每个图像帧进行数据转换之前,根据预设编码规则在一段连续的编码区间内对每个图像帧进行命名;
获取与编码对应的点阵字体的步骤,还包括:
获取与字体名称处于同一个编码区间内的其他字体名称相对应的点阵字体。
在本申请实施例中,穿戴设备所接收到的目标图像中的图像内容,还可以包括动态图像,具体地,动态图像包括多个图像帧,也就是动态图像的每一帧所需要显示的图像,在时间轴上连续显示每个图像帧,从而形成动态图像。相应地,在将动态图像放置到点阵字体库时,则会将动态图像的每一个图像帧进行数据转换,以得到每一个图像帧的点阵字体,进而存储到点阵字体库中。并且,一个动态图像的多个图像帧的点阵字体的字体名称,是根据预设编码规则在一个连续的编码区间内对动态图像的图像名称进行编码得到的。也就是,多个图像帧的点阵字体的字体名称是处于同一个连续的编码区间内的,
进一步地,在接收到的图像内容中包括动态图像时,首先根据预设编码规则,对动态图像的图像名称进行编码转换,生成编码,然后确定与编码相对应的字体名称。同时,动态图像包括多个图像帧,因此,还需要确定与该字体名称处于同一个编码区间的其他字体名称,进而确定该动态图像的每个图像帧所对应的点阵字体,以保证能够将动态图像的每一帧下的图像帧在显示屏上进行显示,也即保证动态图像的显示效果。
仍然以emoji表情图像为例,在一个emoji表情图像的动态图像中,包括5个图像帧,每个图像帧对应的点阵字体的字体名称分别为:“0000E000”、“0000E001”、“0000E002”、“0000E003”、“0000E004”,在对动态图像的名称进行编码转换之后,得到的编码为0000E000,因此,确定字体名称为0000E000的点阵字体以及与该点阵字体处于统一编码区间内的“0000E001”、“0000E002”、“0000E003”、“0000E004”的四个点阵字体为需要获取的点阵字体。
进一步地,在显示屏上显示点阵字体的步骤,包括:根据多个图像帧的显示顺序,在显示屏上循环依次显示分别与多个图像帧对应的多个点阵字体。
在本申请实施例中,当确定了动态图像的每个图像帧所对应的点阵字体后,即可以将点阵字体进行获取并显示在显示屏上。同时,为了保证动态图像的播放效果,可以根据动态图像的多个图像帧的显示顺序,依次调取每个图像帧对应的点阵字体,并依次在显示屏上显示,也就是一个点阵字体显示后,取消当前点阵字体的显示,进行下一个点阵字体的显示,实现了动态图像的显示。
进一步地,当最后一个点阵字体显示之后,取消该点阵字体的显示,进行第一个点阵字体的显示,也就是循环获取多个点阵字体并且按照显示顺序进行显示,进而实现了动态图像的循环播放,保证了动态图像的播放效果。
在本申请的一些实施例中,图像内容包括多个像素点,点阵字体包括多个像素数据,多个像素数据与多个像素点一一对应;
在显示屏上显示点阵字体的步骤,包括:
根据多个像素点的排列顺序,将与每个像素点相对应的像素数据填充至显示屏上的相应像素位置上。
在本申请实施例中,如图2所示,图2示出了根据本申请实施例的图像内容的像素点的分布的示意图。图像内容200可以包括多个像素点202,相应地,将图像内容200以点阵字体的形式进行存储时,每个点阵字体包括多个像素数据,并且,多个像素数据与多个像素点202一一对应。
进一步地,在确定了需要进行获取的点阵字体后,首先可以确定图像内容200的多个像素点202的排列顺序,然后,将与每个像素点202相对应的像素数据填充至显示屏上的相应像素位置上,即可完成字体数据在显示屏上的显示,也即实现图像内容200的显示。也就是将每个像素点202的像素数据直接获取填充即可,无需其他转换,并且像素数据占用内存小,对操作系统的内存以及性能要求低,保证了图像内容200的顺利显示。
具体地,显示屏上包括有多个阵列排布的像素位置,每个像素位置由红、绿、蓝三个子像素构成,通过调节每个子像素的占比,可以确定该像素位置的颜色,以显示相应的颜色。
进一步地,如图3所示,图3示出了根据本申请实施例的显示屏的像素位置分布示意图。显示屏上的每个像素位置300均可以用于填充点阵字体的每个像素数据,并且,根据填充至像素位置300上的像素数据,穿戴设备能够控制每个像素位置300的红色子像素302、绿色子像素304和蓝色子像素306的占比。将一个图像内容200的所有像素点202对应的像素数据按照排列顺序填充至相应的像素位置300上之后,即完成了图像内容200的显示。
在本申请的一些实施例中,在获取对应于目标图像的图像内容之前,处理方法包括:
根据预设命名规则,命名图像内容的文件名称;
预设命名规则可以为图像内容的编码规则,根据该编码规则对图像内容进行命名,以得到表情文件的文件名称。具体地,该编码规则是图像内容的开发者单独针对图像内容制定的,因此,在对图像内容进行命名或者对图像 内容进行编码转换等过程中,均根据该编码规则,因此,所得到的命名或者编码为一一对应的,以保证能够根据命名或编码确定相应的图像内容。
将图像内容转换为点阵字体;
将点阵字体集成至点阵字体库中;
其中,点阵字体包括位图二进制信息,图像内容的文件名称与位图二进制信息一一对应。
在本申请实施例中,通过将图像内容转换为点阵字体,并将点阵字体集成制点阵字体库中,在需要显示图像内容时,直接将图像内容所对应的点阵字体进行获取并在显示屏上进行显示即可。
可以理解的是,图像内容通常为图像数据,例如PNG格式的图像数据,在显示图像内容时,需要操作系统具有足够的内存和性能,以保证图像数据能够被顺利获取,以便在显示器上进行显示。而当操作系统的内存和性能有限时,通过将图像内容的图像数据以点阵字体的形式进行存储,可以使得图像内容所占用的内存减小。这样,在电子设备的操作系统的内存和性能有限的情况下,通过将图像内容所对应的点阵字体进行获取,从而实现了将图像内容显示于显示屏上,进而提高了用户体验。
具体地,点阵字体可以包括位图二进制信息。例如,通过字体制作工具,即可将32位的PNG图片每个像素点的232(4字节)数据压缩转换成28(1字节)的位图二进制信息进行存储,并且,在转换过程中,位图二进制信息仍然沿用图像的文件名称,转换后位图二进制信息与图像的文件名称一一对应,进而在获取位图二进制信息时,即可根据名称进行确定图像数据相应的位图二进制信息,保证图像显示的准确性。
在本申请的一些实施例中,图像内容包括动态图像,动态图像包括多个图像帧;
根据预设命名规则,命名图像内容的文件名称的步骤包括:
根据预设命名规则,在一段连续的命名区间内,命名动态图像的每个图像帧的文件名称。
在本申请实施例中,待处理的图像内容可以为动态图像,具体地,动态 图像包括多个图像帧,也就是动态图像的每一帧所需要显示的图像,在时间轴上连续显示每个图像帧,从而形成动态图像。相应地,在对图像的文件名称进行命名时,需要根据预设命名规则,对动态图像的每个图像帧的文件名称均进行命名,具体地,可以在一段连续的命名区间内,对每个图像帧的文件名称进行命名。然后将每个图像帧均转换为点阵字体,并集成至点阵字体库。
这样,在显示动态图像时,可以获取每个图像帧对应的点阵字体并按照播放顺序依次将每个图像帧对应的点阵字体显示在显示屏上,以实现动态图像的显示。其中,由于同一个动态图像的多个图像帧的文件名称是处于同一个命名区间内的,因此,在获取点阵字体时,可以确定文件名称处于同一个命名区间的所有点阵字体,从而保证动态图像的每个图像帧对应的点阵字体均能够被获取,以保证动态图像的显示效果。
在本申请的一些实施例中,根据预设命名规则,命名图像内容的文件名称的步骤之前,处理方法还包括:
响应于压缩指令,将图像内容压缩。
在本申请实施例中,针对占用内存较大的图像内容,在转换为点阵字体之前,可以将图像内容进行压缩,也就是减少图像内容的像素点的数量。可以理解的是,图像内容可以包括多个像素点,图像内容占用的内存越大,表明图像内容的像素点越多。而将图像内容以点阵字体的形式进行存储时,每个点阵字体包括多个像素数据,并且,多个像素数据与多个像素点一一对应。因此,通过将图像内容压缩,减少图像内容的像素点数量,也就是减少了点阵字体的数量,进而使得点阵字体的获取过程对操作系统的内存和性能要求进一步降低,以保证图像内容能够被顺利显示。
本申请实施例提供的目标图像的显示方法,执行主体可以为目标图像的显示装置。本申请实施例中以目标图像的显示装置执行目标图像的显示方法为例,说明本申请实施例提供的目标图像的显示装置。
在本申请的一些实施例中,提供了一种目标图像的显示装置,显示装置 应用于穿戴设备,穿戴设备包括显示屏,图4示出了根据本申请实施例的目标图像的显示装置400的结构框图,如图4所示,显示装置包括:
接收模块402,用于接收对应于目标图像的图像内容;
转换模块404,用于根据预设编码规则,对图像内容进行编码转换,生成与图像内容对应的编码;
获取模块406,用于获取与编码对应的点阵字体;
显示模块408,用于显示点阵字体,点阵字体形成图像内容;
其中,点阵字体为预先对图像内容进行数据转换得到的。
在本申请实施例中,当穿戴设备接收到图像内容时,首先,根据预设编码规则,对图像内容进行编码转换,生成图像内容的对应的编码。
进一步地,根据生成的编码,获取与编码相对应的点阵字体。具体地,在穿戴设备的操作系统中,集成有点阵字体库,并且,操作系统集成时,预先将穿戴设备所需要显示的图像内容进行数据转换,得到图像内容对应的点阵字体,然后将点阵字体存储于点阵字体库中。这样,在需要显示图像内容时,即可从点阵字体库中获取图像内容相对应的点阵字体,然后获取点阵字体即可实现在穿戴设备的显示屏上显示该图像内容,也就是将目标图像中所包括的图像内容在显示屏上显示。可以理解的是,相较于图像内容的图像数据,点阵字体所占用的内存要小得多,因此获取点阵字体对操作系统的内存和性能要求也要小得多。这样,在穿戴设备的操作系统的内存和性能有限的情况下,通过将图像内容所对应的点阵字体进行获取,从而实现了将图像内容显示于显示屏上,进而提高了穿戴设备的用户体验。
在本申请实施例中,获取模块406具体用于:
获取点阵字体的字体名称;
确定与编码相对应的字体名称,并获取字体名称对应的点阵字体;
其中,字体名称为在对图像内容进行数据转换之前,根据预设编码规则对图像内容进行命名生成的。
在本申请实施例中,在对接收到的目标图像中的图像内容进行编码转换时所采用的预设编码规则,与对图像内容的图像名称进行编码时所采用的编 码规则相同。并且,该编码规则是图像内容的开发者单独针对图像内容制定的,因此,对图像内容解码所得到的字体名称与对接收到的目标图像中的图像内容编码转换所得到的编码一一对应,进而可以确定字体名称与编码相对应的点阵字体即为目标图像中所包括的图像内容所对应的点阵字体,将该点阵字体在显示屏上显示,即可实现对图像内容的显示。
在本申请的一些实施例中,图像内容包括动态图像,动态图像包括多个图像帧,每个图像帧均预先进行数据转换,以生成相应的点阵字体,并且,在将每个图像帧进行数据转换之前,根据预设编码规则在一段连续的编码区间内对每个图像帧进行命名;
获取模块406具体用于:获取与字体名称处于同一个编码区间内的其他字体名称相对应的点阵字体。
在本申请实施例中,在接收到的目标图像中包括动态图像时,首先根据预设编码规则,在一个连续的编码区间内对动态图像的图像名称进行编码转换,生成编码,然后确定与编码相对应的字体名称。同时,动态图像包括多个图像帧,因此,还需要确定与该字体名称处于同一个编码区间的其他字体名称,进而确定该动态图像的每个图像帧所对应的点阵字体,以保证能够将动态图像的每一帧下的图像帧在显示屏上进行显示,也即保证动态图像的显示效果。
进一步地,显示模块408用于:
根据多个图像帧的显示顺序,在显示屏上循环依次显示多个图像帧相对应的多个点阵字体。
在本申请实施例中,当确定了动态图像的每个图像帧所对应的点阵字体后,既可以将点阵字体进行获取并显示在显示屏上,同时,为了保证动态图像的播放效果,可以根据动态图像的多个图像帧的显示顺序,依次调取每个图像帧对应的点阵字体,并依次在显示屏上显示,也就是一个点阵字体显示后,取消当前点阵字体的显示,进行下一个点阵字体的显示,实现了动态图像的显示。
进一步地,当最后一个点阵字体显示之后,取消该点阵字体的显示,进 行第一个点阵字体的显示,也就是循环获取多个点阵字体并且按照显示顺序进行显示,进而实现了动态图像的循环播放,保证了动态图像的播放效果。
在本申请的一些实施例中,图像内容包括多个像素点,点阵字体包括多个像素数据,多个像素数据与多个像素点一一对应;
显示模块408具体用于:
根据多个像素点的排列顺序,将与每个像素点相对应的像素数据填充至显示屏上的相应像素位置上。
在本申请实施例中,在确定了需要进行获取的点阵字体后,首先可以确定图像内容的多个像素点的排列顺序,然后,将与每个像素点相对应的像素数据填充至显示屏上的相应像素位置上,即可完成字体数据在显示屏上的显示,也即实现图像内容的显示。也就是将每个像素点的像素数据直接获取填充即可,无需其他转换,并且像素数据占用内存小,对操作系统的内存以及性能要求低,保证了图像内容的顺利显示。
本申请实施例提供的图像内容的处理方法,执行主体可以为图像内容的处理装置。本申请实施例中以图像内容的处理装置执行图像内容的处理方法为例,说明本申请实施例提供的图像内容的处理装置。
在本申请的一些实施例中,处理装置还包括:
命名模块,用于在接收对应于目标图像的图像内容之前,根据预设命名规则,命名图像内容的文件名称;
转换模块,用于将图像内容转换为点阵字体;
集成模块,用于将点阵字体集成至点阵字体库中;
其中,点阵字体包括位图二进制信息,图像内容的文件名称与位图二进制信息一一对应。
在本申请实施例中,通过将图像内容转换为点阵字体,并将点阵字体集成制点阵字体库中,在需要显示图像内容时,直接将图像内容所对应的点阵字体进行获取并在显示屏上进行显示即可。这样,在电子设备的操作系统的内存和性能有限的情况下,通过将图像内容所对应的点阵字体进行获取,从而实现了将图像内容显示于显示屏上,进而提高了用户体验。
在本申请的一些实施例中,图像内容包括动态图像,动态图像包括多个图像帧;
命名模块具体用于:根据命名规则,在一段连续的命名区间内,命名动态图像的每个图像帧的文件名称。
在本申请实施例中,待处理的图像内容可以为动态图像,具体地,动态图像包括多个图像帧,也就是动态图像的每一帧所需要显示的图像,在时间轴上连续显示每个图像帧,从而形成动态图像。相应地,在对图像的文件名称进行命名时,需要根据预设命名规则,对动态图像的每个图像帧的文件名称均进行命名,具体地,可以在一段连续的命名区间内,对每个图像帧的文件名称进行命名。然后将每个图像帧均转换为点阵字体,并集成至点阵字体库。
这样,在显示动态图像时,可以获取每个图像帧对应的点阵字体并按照播放顺序依次将每个图像帧对应的点阵字体显示在显示屏上,以实现动态图像的显示。其中,由于同一个动态图像的多个图像帧的文件名称是处于同一个命名区间内的,因此,在获取点阵字体时,可以确定文件名称处于同一个命名区间的所有点阵字体,从而保证动态图像的每个图像帧对应的点阵字体均能够被获取,以保证动态图像的显示效果。
在本申请的一些实施例中,处理装置还包括:
压缩模块,用于响应于压缩指令,将图像内容压缩。
在本申请实施例中,针对占用内存较大的图像内容,在转换为点阵字体之前,可以将图像内容进行压缩,也就是减少图像内容的像素点的数量。可以理解的是,图像内容可以包括多个像素点,图像内容占用的内存越大,表明图像内容的像素点越多。而将图像内容以点阵字体的形式进行存储时,每个点阵字体包括多个像素数据,并且,多个像素数据与多个像素点一一对应。因此,通过将图像内容压缩,减少图像内容的像素点数量,也就是减少了点阵字体的数量,进而使得点阵字体的获取过程对操作系统的内存和性能要求进一步降低,以保证图像内容能够被顺利显示。
本申请实施例中的目标图像的显示装置和图像内容的处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的目标图像的显示装置和图像内容的处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的目标图像的显示装置能够实现上述目标图像的显示方法实施例实现的各个过程,本申请实施例提供的图像内容的处理装置能够实现上述图像内容的处理方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,本申请实施例还提供一种电子设备,图5示出了根据本申请实施例的电子设备的结构框图,如图5所示,电子设备500包括处理器502,存储器504,存储在存储器504上并可在处理器502上运行的程序或指令,该程序或指令被处理器502执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、 接口单元608、存储器609以及处理器610等部件。
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元607用于接收对应于目标图像的图像内容;
处理器610用于根据预设编码规则,对图像内容进行编码转换,生成与图像内容对应的编码;获取与编码对应的点阵字体;显示点阵字体,点阵字体形成图像内容;其中,点阵字体为预先对图像内容进行数据转换得到的。
在本申请实施例中,当接收到图像内容时,首先,根据预设编码规则,对图像内容进行编码转换,生成图像内容的对应的编码。
进一步地,根据生成的编码,获取与编码相对应的点阵字体。具体地,在穿戴设备的操作系统中,集成有点阵字体库,并且,操作系统集成时,预先将穿戴设备所需要显示的图像内容进行数据转换,得到图像内容对应的点阵字体,然后将点阵字体存储于点阵字体库中。这样,在需要显示图像内容时,即可从点阵字体库中获取图像内容相对应的点阵字体,然后获取点阵字体即可实现在穿戴设备的显示屏上显示该图像内容,也就是将目标图像中所包括的图像内容在显示屏上显示。可以理解的是,相较于图像内容的图像数据,点阵字体所占用的内存要小得多,因此获取点阵字体对操作系统的内存和性能要求也要小得多。这样,在穿戴设备的操作系统的内存和性能有限的情况下,通过将图像内容所对应的点阵字体进行获取,从而实现了将图像内容显示于显示屏上,进而提高了穿戴设备的用户体验。
可选地,在处理器610还用于获取点阵字体的字体名称;确定与编码相对应的字体名称,并获取字体名称对应的点阵字体;其中,字体名称为在对图像内容进行数据转换之前,根据预设编码规则对图像内容进行命名生成的。
在本申请实施例中,在对接收到的目标图像中的图像内容进行编码转换 时所采用的预设编码规则,与对图像内容的图像名称进行编码时所采用的编码规则相同。并且,该编码规则是图像内容的开发者单独针对图像内容制定的,因此,对图像内容解码所得到的字体名称与对接收到的目标图像中的图像内容编码转换所得到的编码一一对应,进而可以确定字体名称与编码相对应的点阵字体即为目标图像中所包括的图像内容所对应的点阵字体,将该点阵字体在显示屏上显示,即可实现对图像内容的显示。
可选地,图像内容包括动态图像,动态图像包括多个图像帧,每个图像帧均预先进行数据转换,以生成相应的点阵字体,并且,在将每个图像帧进行数据转换之前,根据预设编码规则在一段连续的编码区间内对每个图像帧进行命名;处理器610还用于获取与字体名称处于同一个编码区间内的其他字体名称相对应的点阵字体。
在本申请实施例中,在接收到的目标图像中包括动态图像时,首先根据预设编码规则,在一个连续的编码区间内对动态图像的图像名称进行编码转换,生成编码,然后确定与编码相对应的字体名称。同时,动态图像包括多个图像帧,因此,还需要确定与该字体名称处于同一个编码区间的其他字体名称,进而确定该动态图像的每个图像帧所对应的点阵字体,以保证能够将动态图像的每一帧下的图像帧在显示屏上进行显示,也即保证动态图像的显示效果。
可选地,显示单元606用于根据多个图像帧的显示顺序,在显示屏上循环依次显示多个图像帧相对应的多个点阵字体。
在本申请实施例中,当确定了动态图像的每个图像帧所对应的点阵字体后,既可以将点阵字体进行获取并显示在显示屏上,同时,为了保证动态图像的播放效果,可以根据动态图像的多个图像帧的显示顺序,依次调取每个图像帧对应的点阵字体,并依次在显示屏上显示,也就是一个点阵字体显示后,取消当前点阵字体的显示,进行下一个点阵字体的显示,实现了动态图像的显示。
进一步地,当最后一个点阵字体显示之后,取消该点阵字体的显示,进 行第一个点阵字体的显示,也就是循环获取多个点阵字体并且按照显示顺序进行显示,进而实现了动态图像的循环播放,保证了动态图像的播放效果。
可选地,图像内容包括多个像素点,点阵字体包括多个像素数据,多个像素数据与多个像素点一一对应;显示单元606还用于根据多个像素点的排列顺序,将与每个像素点相对应的像素数据填充至显示屏上的相应像素位置上。
在本申请实施例中,在确定了需要进行获取的点阵字体后,首先可以确定图像内容的多个像素点的排列顺序,然后,将与每个像素点相对应的像素数据填充至显示屏上的相应像素位置上,即可完成字体数据在显示屏上的显示,也即实现图像内容的显示。也就是将每个像素点的像素数据直接获取填充即可,无需其他转换,并且像素数据占用内存小,对操作系统的内存以及性能要求低,保证了图像内容的顺利显示。
可选地,处理器610还用于,根据预设命名规则,命名图像内容的文件名称;将图像内容转换为点阵字体;将点阵字体集成至点阵字体库中;其中,点阵字体包括位图二进制信息,图像内容的文件名称与位图二进制信息一一对应。
在本申请实施例中,通过将图像内容转换为点阵字体,并将点阵字体集成制点阵字体库中,在需要显示图像内容时,直接将图像内容所对应的点阵字体进行获取并在显示屏上进行显示即可。这样,在电子设备的操作系统的内存和性能有限的情况下,通过将图像内容所对应的点阵字体进行获取,从而实现了将图像内容显示于显示屏上,进而提高了用户体验。
可选地,图像内容包括动态图像,动态图像包括多个图像帧;处理器610还用于,根据命名规则,在一段连续的命名区间内,命名动态图像的每个图像帧的文件名称。
在本申请实施例中,待处理的图像内容可以为动态图像,具体地,动态图像包括多个图像帧,也就是动态图像的每一帧所需要显示的图像,在时间轴上连续显示每个图像帧,从而形成动态图像。相应地,在对图像的文件名称进行命名时,需要根据预设命名规则,对动态图像的每个图像帧的文件名 称均进行命名,具体地,可以在一段连续的命名区间内,对每个图像帧的文件名称进行命名。然后将每个图像帧均转换为点阵字体,并集成至点阵字体库。
这样,在显示动态图像时,可以获取每个图像帧对应的点阵字体并按照播放顺序依次将每个图像帧对应的点阵字体显示在显示屏上,以实现动态图像的显示。其中,由于同一个动态图像的多个图像帧的文件名称是处于同一个命名区间内的,因此,在获取点阵字体时,可以确定文件名称处于同一个命名区间的所有点阵字体,从而保证动态图像的每个图像帧对应的点阵字体均能够被获取,以保证动态图像的显示效果。
可选地,处理器610还用于,响应于压缩指令,将图像内容压缩。
在本申请实施例中,针对占用内存较大的图像内容,在转换为点阵字体之前,可以将图像内容进行压缩,也就是减少图像内容的像素点的数量。可以理解的是,图像内容可以包括多个像素点,图像内容占用的内存越大,表明图像内容的像素点越多。而将图像内容以点阵字体的形式进行存储时,每个点阵字体包括多个像素数据,并且,多个像素数据与多个像素点一一对应。因此,通过将图像内容压缩,减少图像内容的像素点数量,也就是减少了点阵字体的数量,进而使得点阵字体的获取过程对操作系统的内存和性能要求进一步降低,以保证图像内容能够被顺利显示。
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072中的至少一种。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器609可以包括易失性存储器或非易失性存储器,或者,存储器609可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(ProgrammablePROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically PROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器609包括但不限于这些和任意其它适合类型的存储器。
处理器610可包括一个或多个处理单元;可选的,处理器610集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述目标图像的显示方法和图像内容的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述目标图像的显示方法和图像内容的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述目标图像的显示方法和图像内容的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服 务器,或者网络设备等)执行本申请各个实施例的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种目标图像的显示方法,包括:
    获取对应于所述目标图像的图像内容;
    根据预设编码规则,对所述图像内容进行编码转换,生成与所述图像内容对应的编码;
    获取与所述编码对应的点阵字体;
    显示所述点阵字体,所述点阵字体形成所述目标图像;
    其中,所述点阵字体为预先对所述图像内容进行数据转换得到的。
  2. 根据权利要求1所述的显示方法,其中,所述获取与所述编码对应的点阵字体的步骤,包括:
    获取所述点阵字体的字体名称;
    确定与所述编码相对应的所述字体名称,并获取所述字体名称对应的点阵字体;
    其中,所述字体名称为在对所述图像内容进行数据转换之前,根据所述预设编码规则对所述图像内容进行命名生成的。
  3. 根据权利要求2所述的显示方法,其中,所述图像内容包括动态图像,所述动态图像包括多个图像帧,每个所述图像帧均预先进行数据转换,以生成相应的所述点阵字体,其中,在将每个所述图像帧进行数据转换之前,根据所述预设编码规则在一段连续的编码区间内对每个所述图像帧进行命名;
    所述获取与所述编码对应的点阵字体的步骤,还包括:
    获取与所述字体名称处于同一个所述编码区间内的其他所述字体名称相对应的所述点阵字体;
    所述显示所述点阵字体,所述点阵字体形成所述目标图像的步骤,包括:
    根据所述多个图像帧的显示顺序,在显示屏上循环依次显示分别与所述多个图像帧对应的多个所述点阵字体。
  4. 根据权利要求1至3中任一项所述的显示方法,其中,所述图像内容包括多个像素点,所述点阵字体包括多个像素数据,所述多个像素数据与所述多个像素点一一对应;
    所述显示所述点阵字体,所述点阵字体形成所述目标图像的步骤,包括:
    根据所述多个像素点的排列顺序,将与每个所述像素点相对应的所述像素数据填充至显示屏上的相应像素位置上。
  5. 根据权利要求1至3中任一项所述的显示方法,其中,在所述获取对应于所述目标图像的图像内容之前,所述显示方法还包括:
    根据预设命名规则,命名所述图像内容的文件名称;
    将所述图像内容转换为所述点阵字体;
    将所述点阵字体集成至点阵字体库中;
    其中,所述点阵字体包括位图二进制信息,所述图像内容的文件名称与所述位图二进制信息一一对应。
  6. 根据权利要求5所述的显示方法,其中,所述图像内容包括动态图像,所述动态图像包括多个图像帧;
    所述根据预设命名规则,命名所述图像内容的文件名称的步骤包括:
    根据所述预设命名规则,在一段连续的命名区间内,命名所述动态图像的每个所述图像帧的文件名称。
  7. 一种目标图像的显示装置,包括:
    接收模块,用于接收对应于所述目标图像的图像内容;
    转换模块,用于根据预设编码规则,对所述图像内容进行编码转换,生成与所述图像内容对应的编码;
    获取模块,用于获取与所述编码对应的点阵字体;
    显示模块,用于显示所述点阵字体,所述点阵字体形成所述目标图像;
    其中,所述点阵字体为预先对所述图像内容进行数据转换得到的。
  8. 根据权利要求7所述的显示装置,其中,所述获取模块具体用于:
    获取所述点阵字体的字体名称;
    确定与所述编码相对应的所述字体名称,并获取所述字体名称对应的点阵字体;
    其中,所述字体名称为在对所述图像内容进行数据转换之前,根据所述预设编码规则对所述图像内容进行命名生成的。
  9. 根据权利要求8所述的显示装置,其中,所述图像内容包括动态图像, 所述动态图像包括多个图像帧,每个所述图像帧均预先进行数据转换,以生成相应的所述点阵字体,并且,在将每个所述图像帧进行数据转换之前,根据所述预设编码规则在一段连续的编码区间内对每个所述图像帧进行命名;
    所述获取模块具体用于:获取与所述字体名称处于同一个所述编码区间内的其他所述字体名称相对应的所述点阵字体;
    所述显示模块用于:
    根据所述多个图像帧的显示顺序,在显示屏上循环依次显示所述多个图像帧相对应的多个所述点阵字体。
  10. 根据权利要求7至9中任一项所述的显示装置,其中,所述图像内容包括多个像素点,所述点阵字体包括多个像素数据,所述多个像素数据与所述多个像素点一一对应;
    所述显示模块具体用于:
    根据所述多个像素点的排列顺序,将与每个所述像素点相对应的所述像素数据填充至显示屏上的相应像素位置上。
  11. 根据权利要求7至9中任一项所述的显示装置,其中,还包括:
    命名模块,用于在接收对应于所述目标图像的图像内容之前,根据预设命名规则,命名所述图像内容的文件名称;
    转换模块,用于将所述图像内容转换为所述点阵字体;
    集成模块,用于将所述点阵字体集成至点阵字体库中;
    其中,所述点阵字体包括位图二进制信息,所述图像内容的文件名称与所述位图二进制信息一一对应。
  12. 根据权利要求11所述的显示装置,其中,所述图像内容包括动态图像,所述动态图像包括多个图像帧;
    所述命名模块具体用于:根据所述命名规则,在一段连续的命名区间内,命名所述动态图像的每个所述图像帧的文件名称。
  13. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6中任一项所述的方法的步骤。
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序 或指令被处理器执行时实现如权利要求1至6中任一项所述的方法的步骤。
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的方法。
  16. 一种计算机程序产品,所述程序产品被存储在存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的方法。
  17. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至6中任一项所述的方法。
PCT/CN2023/125201 2022-10-25 2023-10-18 目标图像的显示方法、显示装置、电子设备和存储介质 WO2024088132A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211311383.5A CN115576513A (zh) 2022-10-25 2022-10-25 目标图像的显示方法、显示装置、电子设备和存储介质
CN202211311383.5 2022-10-25

Publications (1)

Publication Number Publication Date
WO2024088132A1 true WO2024088132A1 (zh) 2024-05-02

Family

ID=84587519

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/125201 WO2024088132A1 (zh) 2022-10-25 2023-10-18 目标图像的显示方法、显示装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN115576513A (zh)
WO (1) WO2024088132A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576513A (zh) * 2022-10-25 2023-01-06 维沃移动通信有限公司 目标图像的显示方法、显示装置、电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669650A (zh) * 2017-10-16 2019-04-23 宁波柯力传感科技股份有限公司 称重点阵大屏幕的图片显示方法
US20210173663A1 (en) * 2019-12-06 2021-06-10 Magic Leap, Inc. Encoding stereo splash screen in static image
CN113691816A (zh) * 2021-08-16 2021-11-23 维沃移动通信(杭州)有限公司 图像显示方法、装置、显示设备及存储介质
CN115576513A (zh) * 2022-10-25 2023-01-06 维沃移动通信有限公司 目标图像的显示方法、显示装置、电子设备和存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669650A (zh) * 2017-10-16 2019-04-23 宁波柯力传感科技股份有限公司 称重点阵大屏幕的图片显示方法
US20210173663A1 (en) * 2019-12-06 2021-06-10 Magic Leap, Inc. Encoding stereo splash screen in static image
CN113691816A (zh) * 2021-08-16 2021-11-23 维沃移动通信(杭州)有限公司 图像显示方法、装置、显示设备及存储介质
CN115576513A (zh) * 2022-10-25 2023-01-06 维沃移动通信有限公司 目标图像的显示方法、显示装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN115576513A (zh) 2023-01-06

Similar Documents

Publication Publication Date Title
CN106056530B (zh) 应用中图片内容的显示方法及装置
US20230291980A1 (en) Method and apparatus for video generation and displaying, device, and medium
WO2024088132A1 (zh) 目标图像的显示方法、显示装置、电子设备和存储介质
WO2016150281A1 (zh) 一种预览视频文件的展示方法及移动终端和系统
US11861381B2 (en) Icon updating method and apparatus, and electronic device
CN110555334A (zh) 人脸特征确定方法、装置、存储介质及电子设备
CN112651475A (zh) 二维码显示方法、装置、设备及介质
CN113691816A (zh) 图像显示方法、装置、显示设备及存储介质
CN112714357A (zh) 视频播放方法、视频播放装置、电子设备和存储介质
CN114598823B (zh) 特效视频生成方法、装置、电子设备及存储介质
CN110958402A (zh) 一种拼接矩阵显示方法及系统
CN114466246A (zh) 一种视频处理方法及其装置
WO2022052742A1 (zh) 多终端屏幕组合方法、装置、设备和计算机存储介质
WO2023231918A1 (zh) 图像处理方法、装置、电子设备及存储介质
CN112184538A (zh) 图像加速方法、相关装置、设备及存储介质
WO2023125217A1 (zh) 图像处理电路、方法和电子设备
US20230412891A1 (en) Video processing method, electronic device and medium
CN113852757B (zh) 视频处理方法、装置、设备和存储介质
CN115562539A (zh) 控件显示方法及装置、电子设备和可读存储介质
CN115729412A (zh) 界面显示方法及其装置
CN114070892A (zh) 数据传输方法和装置
CN114827339A (zh) 消息输出方法、装置和电子设备
CN113852774A (zh) 录屏方法及装置
CN112614049A (zh) 图像处理方法、装置、存储介质以及终端
US20220292733A1 (en) Method and apparatus for text effect processing

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: 23881710

Country of ref document: EP

Kind code of ref document: A1