CN113031896A - Text circulating rolling playing method, playing control device and computer equipment - Google Patents

Text circulating rolling playing method, playing control device and computer equipment Download PDF

Info

Publication number
CN113031896A
CN113031896A CN202110345525.9A CN202110345525A CN113031896A CN 113031896 A CN113031896 A CN 113031896A CN 202110345525 A CN202110345525 A CN 202110345525A CN 113031896 A CN113031896 A CN 113031896A
Authority
CN
China
Prior art keywords
playing
text
content
display
rendering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110345525.9A
Other languages
Chinese (zh)
Other versions
CN113031896B (en
Inventor
黄孟怀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Colorlight Cloud Technology Co Ltd
Original Assignee
Colorlight Cloud Technology Co Ltd
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 Colorlight Cloud Technology Co Ltd filed Critical Colorlight Cloud Technology Co Ltd
Priority to CN202110345525.9A priority Critical patent/CN113031896B/en
Publication of CN113031896A publication Critical patent/CN113031896A/en
Application granted granted Critical
Publication of CN113031896B publication Critical patent/CN113031896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

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

Abstract

The invention relates to a text circulating rolling playing method, which comprises the steps of receiving picture information; judging whether the text playing type is circular rolling playing according to a preset text playing type judgment strategy; if so, when the text playing content is controlled to be played for the first time, rendering the text playing content according to a preset first rendering strategy to obtain rendered first display content, and sending the first display content to a display screen for display; when the text playing content is controlled to be played for the Nth time, the text playing content is rendered according to a second rendering strategy to obtain rendered second display content, the second display content is sent to a display screen to be displayed, the second rendering strategy comprises the steps of connecting the multi-frame images in the picture information according to a preset playing sequence, rendering the connected multi-frame images simultaneously to obtain rendered Nth display content, and the method provided by the invention can eliminate the display screen flicker phenomenon during the text circular rolling playing and improve the display effect.

Description

Text circulating rolling playing method, playing control device and computer equipment
Technical Field
The present invention relates to the field of playback control, and in particular, to a method for playing a text in a scrolling manner, a playback control device, and a computer device.
Background
In the prior art, when a set of play system is formed by using a play box and an LED display screen, a single-column or single-row text content to be displayed is sent to the LED display screen connected to the play box through the play box, wherein the single-column or single-row text content is set to move continuously in a preset direction and has a special effect of end-to-end connection. In the specific using process, when a user terminal issues a single-row or single-line text content to a playing box, the user terminal firstly issues program information and a zip file to the playing box, the zip file comprises information such as pictures consisting of all characters, the size of the pictures and the like, the playing box then analyzes the zip file according to an analysis protocol to obtain picture information, finally the playing box calls OpenGL to render the picture information to realize special effects of continuous movement according to a preset direction and end-to-end connection, under the existing using condition, when the LED display screen plays the picture information comprising the single-row or single-line text content for the first time, no abnormal phenomenon occurs, when the LED display screen plays the picture information comprising the single-row or single-line text content for the second time, the LED display screen starts to generate a periodic flicker phenomenon, and the periodic flicker phenomenon occurs to part of the characters because the current rendering logic does not consider that the first-time playing is finished, in the process of the second rendering, the play box still executes the logic of the first playing, which results in that part of the segments are not successfully redrawn (rendered) (in a black screen state, assuming that there are 10 segments of single-column or single-row picture information, when the first segment is connected to the back of the 10 th segment, the 7 th, 8 th and 9 th segments may not be successfully rendered), because the refresh frequency of the LED display screen is fast, for human eyes, a phenomenon of flickering occurs, which will directly affect the display effect or visual effect of the LED display screen, and therefore, a new technical solution is urgently needed to be found by those skilled in the art to solve the problem of poor visual effect existing in the above-mentioned play system.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for playing a text in a scrolling manner, comprising: receiving a text playing instruction, wherein the text playing instruction comprises picture information, and the picture information comprises text playing content consisting of multiple frames of images; judging whether the text playing type is circular rolling playing according to a preset text playing type judgment strategy and a text playing instruction; if so, when the text playing content is controlled to be played for the first time, rendering the text playing content according to a preset first rendering strategy to obtain rendered first display content, and sending the first display content to a display screen for display; when the text playing content is controlled to be played for the Nth time, the text playing content is rendered according to a preset second rendering strategy, the rendered Nth display content is obtained, the Nth display content is sent to a display screen to be displayed, and the second rendering strategy comprises the following steps: connecting the multi-frame images in the picture information according to a preset playing sequence, rendering the connected multi-frame images simultaneously to obtain rendered Nth display content, and sending the Nth display content to a display screen for display, wherein N is greater than or equal to 2.
Further, the method also comprises the steps of presetting a corresponding relation between the playing logic state and the rendering strategy, wherein the playing logic state comprises an initial state and a reset state, the initial state corresponds to the first rendering strategy, and the reset state corresponds to the second rendering strategy; when the text playing content is controlled to be played for the first time, the playing logic state is initialized to the initial state, a first rendering strategy is obtained according to the initial state and the corresponding relation between the playing logic state and the rendering strategy, and the text playing content is rendered according to the first rendering strategy; and when the text playing content is controlled to be played for the Nth time, the playing logic state is converted from the initial state to the reset state, a second rendering strategy is obtained according to the reset state and the corresponding relation between the playing logic state and the rendering strategy, and the text playing content is rendered according to the second rendering strategy.
Further, the text playing instruction further includes program information, and the determining whether the text playing type is the circular rolling playing according to the preset text playing type determining policy and the text playing instruction includes: determining the circulating play times of the text play contents according to the program information, judging whether the circulating play times are greater than or equal to 2, and simultaneously judging whether the text play contents are single-row or single-line text play contents according to the picture information; if the circulation playing pass is more than or equal to 2 and the text playing content is a single-row or single-line text playing content, judging that the text playing type is circulation rolling playing, and otherwise, judging that the text playing type is not circulation rolling playing.
Further, the first rendering strategy comprises rendering each frame of image in the image information in sequence according to a preset playing sequence to obtain rendered first display content; or connecting the multi-frame images in the picture information according to a preset playing sequence, and simultaneously rendering the connected multi-frame images to obtain rendered first display content.
Further, the method further comprises: before sending the first display content or the Nth display content to the display screen for display, obtaining the size of a display window of the display screen at the current moment, judging whether the size of the display window of the display screen at the current moment is equal to the size of an initial display window of the display screen, and if not, sending a resolution adjustment instruction to the display screen according to the size of the display window of the display screen at the current moment so as to control the display screen to adjust the resolution of the display window; or before sending the first display content or the Nth display content to the display screen for display, judging whether a display window size adjusting instruction is received, if so, judging whether the display window size pre-adjusting instruction in the display window size adjusting instruction is equal to the initial display window size of the display screen, if not, generating a resolution adjusting instruction according to the display window pre-adjusting size, and sending the display window size adjusting instruction and the resolution adjusting instruction to the display screen so as to control the display screen to adjust the size and the resolution of the display window.
Further, the rendering is to call OpenGL to perform rendering, and the rendering includes initializing the information of an object to be rendered through a renderer when the view is created; and calling a rendering function through OpenGL, and rendering the image according to the information of the object to be rendered.
The invention also provides a play control device, which comprises a receiving module, a play type judging module, a display content generating module and a play control module, wherein: the receiving module is connected with the playing type judging module and used for receiving a text playing instruction, wherein the text playing instruction comprises picture information, and the picture information comprises text playing contents formed by multi-frame images; the playing type judging module is connected with the receiving module and the display content generating module and is used for judging whether the text playing type is circular rolling playing or not according to a preset text playing type judging strategy and a text playing instruction; the display content generation module is connected with the play type judgment module and the play control module and used for rendering the text play content according to a preset first rendering strategy to obtain a rendered first display content when the play type judgment module judges that the text play type is the circular rolling play and controls the text play content to play for the first time; when the text playing content is controlled to be played for the Nth time, the text playing content is rendered according to a preset second rendering strategy to obtain rendered Nth display content, wherein the second rendering strategy comprises the following steps: connecting the multi-frame images in the picture information according to a preset playing sequence, and simultaneously rendering the connected multi-frame images to obtain an N-th rendered display content, wherein N is more than or equal to 2; and the playing control module is used for sending the rendered first or Nth display content to the display screen for display after the display content generating module generates the rendered first or Nth display content.
Further, the playing type judging module includes a circulation playing pass determining unit, a text playing content determining unit and a playing type judging unit, wherein: the circulating playing pass determining unit is connected with the playing type judging unit and used for determining the circulating playing pass of the text playing content according to the program information in the text playing instruction and judging whether the circulating playing pass is more than or equal to 2 or not; the text playing content determining unit is connected with the playing type judging unit and used for determining whether the text playing content is a single-row or single-line text playing content according to the picture information; and the playing type judging unit is used for judging that the text playing type is the circular rolling playing when the circular playing pass is more than or equal to 2 and the text playing content is the single-row or single-line text playing content.
The device further comprises a display window size acquisition module, wherein the display window size acquisition module is connected with the play control module and is used for acquiring the size of the display window of the display screen at the current moment before the first display content or the Nth display content is sent to the display screen for display; and the playing control module is also used for judging whether the size of the display window of the display screen at the current moment is equal to the size of the initial display window of the display screen, and if not, sending a resolution adjustment instruction to the display screen according to the size of the display window of the display screen at the current moment so as to control the display screen to adjust the resolution of the display window.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the text circular rolling playing method when executing the computer program.
The text circulating rolling playing method, the text circulating rolling playing device and the computer equipment provided by the invention at least have the following beneficial effects: after the text playing content is played for the first time, when the text content is played for the Nth time in the following, according to a second rendering strategy: the method comprises the steps of connecting the multi-frame images in the picture information according to a preset playing sequence, rendering the connected multi-frame images simultaneously, obtaining rendered Nth display content, sending the Nth display content to a display screen for display, namely, when the Nth text playing content is played, rendering the multi-frame images of the text playing content simultaneously, so that the problem of display screen flicker caused by the fact that part of the frame images in the text playing content are not drawn successfully again can be avoided, the visual effect of the display screen for playing the display content is improved, and the user experience effect is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a text circular scrolling playing method according to an embodiment of the invention;
FIG. 2 is a schematic structural diagram of a playback control apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a play type determining module according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a playback control apparatus according to another embodiment of the present invention;
201-a receiving module, 202-a playing type judging module, 203-a display content generating module, 204-a playing control module, 205-a display window size obtaining module, 2021-a circulating playing pass determining unit, 2022-a text playing content determining unit and 2023-a playing type judging unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In an embodiment of the invention, a text circulation scrolling playing method is disclosed, which is applied to a playing box connected with a display screen and is used for controlling the display screen to play text playing contents. In the present invention, the display screen may be an LED display screen, an OLED display screen, an LCD display screen, etc., which is not limited in the present invention.
Specifically, as shown in fig. 1, the text circular scrolling playing method includes the following steps:
step S101: and receiving a text playing instruction.
Specifically, in this embodiment, a text playback instruction is sent by the user through the user's terminal device to a playback box (a video processing device connected to a display screen, which can be used for sending video data and processing video data, etc.). The text playing instruction comprises picture information, and the picture information comprises text playing content consisting of multi-frame images.
More specifically, the picture information may include information such as a text size and a color, in addition to the text playback content including the multi-frame image.
Step S102: and judging whether the text playing type is the circular rolling playing according to a preset text playing type judgment strategy and a text playing instruction, if so, executing the step S103, otherwise, executing the step S105.
Specifically, in this embodiment, the circular scrolling playing refers to that the single-column or single-line text playing content moves according to the preset direction, and meanwhile, the head of the text playing content during the nth playing is connected with the tail of the text playing content during the N-1 th playing, so as to perform circular playing.
More specifically, in this embodiment, the determining whether the text playback type is the circular scrolling playback according to the preset text playback type determination policy and the text playback instruction includes: and determining the circulating play times of the text play contents according to the program information in the text play instruction, judging whether the circulating play times are greater than or equal to 2, and judging whether the text play contents are single-row or single-line text play contents according to the picture information. And judging that the text playing type is the circular rolling playing only if the circular playing pass is more than or equal to 2 and the text playing content is the single-column or single-row text playing content, otherwise, judging that the text playing type is not the circular rolling playing. That is, the text playback type is determined not to be the circular scrolling playback in the following 3 cases: (1) the circulation playing pass is less than 2, and the text playing content is single-column or single-line text playing content; (2) the circulation playing pass is more than or equal to 2, and the text playing content is not single-column or single-row text playing content; (3) the number of the circulation playing passes is less than 2, and the text playing content is not single-column or single-row text playing content.
In this embodiment, the program information may include information such as a play start time and a play stop time in addition to the number of times of the loop play of the picture information.
In fact, when the text playing type is not the circular scrolling playing, for example, in the case of single playing of the text, the problem of screen flashing does not exist, and in the case of no problem of screen flashing, each frame of image in the picture information is rendered and played and displayed in sequence according to the preset playing sequence, so that resources can be saved, for example, only the image with the rendering requirement is rendered. Therefore, in this embodiment, it is determined in advance whether the current text playing type is the circular scrolling playing, and only when the current text playing type is the circular scrolling playing, the subsequent operations of step S103 and step S104 are performed to avoid the problem of display screen flickering.
Step S103: when the text playing content is controlled to be played for the first time, the picture information is rendered according to a preset first rendering strategy, rendered first display content is obtained, and the first display content is sent to a display screen to be displayed.
Specifically, the playing process of the single-column text in the display screen is illustrated by taking the text as the single-column text and 10 segments of the single-column text content (each segment of the text content is contained in the image of each frame) as an example: assuming that the playing direction of the single-column text is continuously upward, the display window of the display screen can only play 5 segments of text contents at the same time, in the process of continuously moving upward for 10 segments of text contents, each segment of text contents is sequentially moved from the lower end of the display window to the upper end of the display window, and the text contents moved to the upper end of the display window will leave the display window (i.e. disappear from the display window and are not displayed), the text contents of other segments will continue to move continuously upward, and simultaneously the head of the same single-column text content will be connected with the tail of the last single-column text content to perform a process of continuously moving upward (equivalent to the above-mentioned process of continuously moving upward and special effects connected end to end, i.e. text circular scrolling playing.
Since the text playing content moves on the display screen as described above, in a case where there are multiple sections of text playing content (that is, multiple frames of images are included), it is necessary to render each section of text playing content in advance in order to play the text playing content on the display screen. When the text playing content is played for the first time, because there is no problem of flicker, the first rendering strategy at least includes the following two ways:
one way is as follows: and rendering each frame of image in the image information according to a preset playing sequence. The preset playing sequence is preset by a user through user terminal equipment and is stored in the picture information, for example, the video data is composed of a plurality of frames of pictures of the preset playing sequence. The first display content is obtained after rendering each frame of image in the picture information in sequence according to a preset playing sequence, so that the first display content comprises a plurality of frames of rendered images. And sending the first display content to a display screen for display in the subsequent process, and sending each rendered frame image to the display screen in sequence according to a preset playing sequence so as to play the frame image along a preset direction according to the preset playing sequence. It is to be understood that the preset direction is also set by the user using the terminal device of the user, for example, when the text playing content is a single-line text playing content, the preset direction may be set from left to right or from right to left, and when the text playing content is a single-line text playing content, the preset direction may be set from top to bottom or from bottom to top, etc. Specifically, when the first-pass playing is carried out, the problem of display screen flicker does not exist, so that the previous rendering mode can be directly used, the playing logic does not need to be changed, and the playing is more convenient.
The other mode is to connect the multi-frame images in the picture information according to a preset playing sequence and render the connected multi-frame images simultaneously. Specifically, the multi-frame images in the picture information are connected according to a preset playing sequence, when the rendering is performed, the connected multi-frame images are rendered at the same time, an integral rendering image formed by the connection of the multi-frame images is obtained, and the integral rendering image is sent to the display screen as first display content to be displayed and played according to a preset direction.
Step S104: and when the text playing content is controlled to be played for the Nth time, the text playing content is rendered according to a preset second rendering strategy, the rendered Nth display content is obtained, and the Nth display content is sent to the display screen to be displayed.
Specifically, the second rendering strategy includes: connecting the multi-frame images in the picture information according to a preset playing sequence, rendering the connected multi-frame images simultaneously to obtain rendered Nth display content, and sending the Nth display content to the display screen for display.
In this embodiment, N is a positive integer greater than or equal to 2. In this embodiment, when the text playing content is controlled to be played for the nth time, because the multi-frame images in the picture information are connected according to the preset playing sequence, the connected multi-frame images are rendered simultaneously, and not each frame image is rendered according to the preset playing sequence, the problem of display screen flicker caused by unsuccessfully redrawing part of the frame images during the nth time playing is avoided.
Step S105: and ending the text circulation scrolling playing operation.
When it is determined that the current text playback type is not the loop scroll playback, the subsequent steps S103 and S104 are not required to be performed after step S102, and the text loop scroll playback operation is ended. It can be understood that, after step S105, the text playing content can be controlled to be played according to the text playing instruction and a method in the prior art, which is not limited in this respect, for example, when the text playing type is single playing, each frame of image in the image information is rendered and played and displayed in sequence according to a preset playing sequence.
In the text circular rolling playing method provided in this embodiment, after the text playing content is played for the first time, when the text content is played for the subsequent nth time, the multi-frame images in the picture information are connected according to the preset playing sequence according to the preset second rendering policy, and the connected multi-frame images are rendered at the same time.
In another embodiment of the present invention, the text circulation scrolling playing method further includes: presetting a corresponding relation between a playing logic state and a rendering strategy, wherein the playing logic state comprises an initial state and a reset state, the initial state corresponds to the first rendering strategy, and the reset state corresponds to the second rendering strategy;
when the text playing content is controlled to be played for the first time, the playing logic state is initialized to the initial state, a first rendering strategy is obtained according to the initial state and the corresponding relation between the playing logic state and the rendering strategy, and the text playing content is rendered according to the first rendering strategy;
and when the text playing content is controlled to be played for the Nth time, the playing logic state is converted from the initial state to the reset state, a second rendering strategy is obtained according to the reset state and the corresponding relation between the playing logic state and the rendering strategy, and the text playing content is rendered according to the second rendering strategy.
In this embodiment, through adopting the mode that changes the broadcast logic state, realize when the nth broadcast, utilize the second to render the tactics and play the processing to the text broadcast content, and then the phenomenon that can not appear twinkling, keep the visual effect of the display content of viewer to the display screen broadcast, promote user experience effect.
In another embodiment of the present invention, the text circulation scrolling playing method further includes:
before the first display content or the Nth display content is sent to the display screen to be displayed, the size of a display window of the display screen at the current moment is obtained, whether the size of the display window of the display screen at the current moment is equal to the size of an initial display window of the display screen is judged, if not, a resolution adjusting instruction is sent to the display screen according to the size of the display window of the display screen at the current moment, and therefore the resolution of the display window is controlled to be adjusted by the display screen. In this embodiment, the onsurface changed function may be performed to adjust the resolution of the display window.
Specifically, the size of the display window is set by a user according to actual needs, and in the process of circularly scrolling and playing the text, the user may change the size of the display window, so that before sending the first display content or the nth display content to the display screen for display each time, the size of the display window of the display screen at the current moment is obtained first, whether the size of the display window of the display screen at the current moment is equal to the size of the initial display window of the display screen is judged, if not, the resolution of the display window is adjusted according to the size of the display window of the display screen at the current moment, so that the first display content or the nth display content is adapted to the display window, and the display effect is improved.
More specifically, the initial display window size refers to a size of a display window when an image in the picture information is rendered, and the display window size at the current moment is a size of the display window after the first display content or the nth display content is generated by rendering the image in the picture information and before the first display content or the nth display content is sent to the display screen for display.
Unlike the previous embodiment, in another embodiment of the present invention, the text circulation scrolling playing method further includes:
before sending the first display content or the Nth display content to the display screen for display, judging whether a display window size adjusting instruction is received, if so, judging whether the display window size pre-adjusting size in the display window size adjusting instruction is equal to the initial display window size of the display screen, if not, generating a resolution adjusting instruction according to the display window pre-adjusting size, and sending the display window size adjusting instruction and the resolution adjusting instruction to the display screen so as to control the display screen to adjust the size and the resolution of the display window.
It can be understood that the display window size adjustment instruction in this embodiment is also sent to the play box by the user through the terminal device of the user, the display window size adjustment instruction may be sent simultaneously with the text play instruction, or sent separately, or the text play instruction includes the display window size adjustment instruction, and the specific sending method is not limited in this respect, and can be set by a technician according to actual needs.
In this embodiment, before sending the first display content or the nth display content to the display screen for display, it is determined whether a display window size adjustment instruction is received, and only if the display window size adjustment instruction is received, it is further determined whether the display window pre-adjustment size in the display window size adjustment instruction is equal to the initial display window.
In yet another embodiment of the present invention, the rendering is performed by calling OpenGL, OpenGL (open Graphics library) refers to an open Graphics library or an open Graphics library, and is a cross-language, cross-platform Application Programming Interface (API) for rendering 2D and 3D vector Graphics, and the API is composed of nearly 350 different function calls for drawing from simple Graphics bits to complex three-dimensional scenes.
Further, in this embodiment, the rendering includes: and initializing the information of the object to be rendered through a renderer when the view is created. Specifically, a multipicscollobject (an object to be rendered, that is, text playing information including information such as characters, special effects, colors, and the like) may be initialized by executing a multipicscollolder (a renderer, belonging to OpenGL) (the initialization is to assign values to the object so as to perform subsequent rendering operations).
And calling a rendering function through OpenGL, and rendering the image according to the information of the object to be rendered. Specifically, in this embodiment, the rendering function may be an onDrawFrame function. More specifically, in this embodiment, if the rendering is performed by rendering each frame of image in the picture information according to the preset playing sequence, the object to be rendered refers to the frame of image that needs to be rendered, and if the rendering is performed by using the second rendering policy, the object to be rendered refers to an entire image formed by connecting multiple frames of images.
The present invention further provides a play control apparatus, as shown in fig. 2, the play control apparatus includes a receiving module 201, a play type determining module 202, a display content generating module 203, and a play control module 204, wherein:
the receiving module 201 is connected to the play type determining module 202, and is configured to receive a text play instruction, where the text play instruction includes picture information, and the picture information includes text play content formed by multiple frames of images;
the playing type judging module 202 is connected to the receiving module 201 and the display content generating module 203, and is configured to judge whether the text playing type is the circular rolling playing according to a preset text playing type judging policy and a text playing instruction;
the display content generating module 203 is connected to the play type determining module 202 and the play control module 204, and is configured to render the picture information according to a preset first rendering policy when controlling the text play content to perform a first play after the play type determining module 202 determines that the text play type is the circular rolling play, and obtain a rendered first display content; when the text playing content is controlled to be played for the Nth time, the text playing content is rendered according to a preset second rendering strategy to obtain rendered Nth display content, wherein the second rendering strategy comprises the following steps: connecting the multi-frame images in the picture information according to a preset playing sequence, and simultaneously rendering the connected multi-frame images to obtain an N-th rendered display content, wherein N is greater than or equal to 2;
and the play control module 204 is configured to send the rendered first display content and nth display content to a display screen for display.
In another embodiment of the present invention, as shown in fig. 3, the play type determining module 202 includes a loop play pass determining unit 2021, a text play content determining unit 2022, and a play type determining unit 2023, wherein:
the loop play pass determining unit 2021, connected to the play type determining unit 2023, is configured to determine a loop play pass of the text play content according to the program information in the text play instruction, and determine whether the loop play pass is greater than or equal to 2;
the text playing content determining unit 2022 is connected to the playing type judging unit 2023, and is configured to determine whether the text playing content is a single-column or single-line text playing content according to the picture information;
the play type determining unit 2023 is configured to determine that the text play type is circular scrolling play when the circular play pass is greater than or equal to 2 and the text play content is a single-column or single-line text play content.
In another embodiment of the present invention, as shown in fig. 4, the apparatus further includes a display window size obtaining module 205, where the display window size obtaining module 205 is connected to the play control module 204, and is configured to obtain a display window size of the display screen at the current time before the first display content or the nth display content is sent to the display screen for display;
the play control module 204 is further configured to determine whether the size of the display window of the display screen at the current time is equal to the size of the initial display window of the display screen, and if not, send a resolution adjustment instruction to the display screen according to the size of the display window of the display screen at the current time to control the display screen to adjust the resolution of the display window.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory stores computer programs, and the processor realizes the steps of the text circular rolling playing method when executing the computer programs.
According to the text circulating rolling playing method, the text circulating rolling playing device and the computer equipment, when the text content is played for the Nth time, the multi-frame images in the picture information are connected according to the preset playing sequence according to the second rendering strategy, the connected multi-frame images are rendered at the same time, the problem of flicker of a display screen caused by the fact that part of the frame images in the text playing content are not drawn successfully again is solved by adopting the rendering, the visual effect of the display screen on playing the display content is improved, and the user experience effect is improved. In addition, after the image in the picture information is rendered to generate the first display content or the Nth display content, and before the first display content or the Nth display content is sent to the display screen to be displayed, the resolution of the display window is adjusted according to the size of the display window at the current moment, and the display effect of the display screen is further improved.
The terms and expressions used in the specification of the present invention have been set forth for illustrative purposes only and are not meant to be limiting. It will be appreciated by those skilled in the art that changes could be made to the details of the above-described embodiments without departing from the underlying principles thereof. The scope of the invention is, therefore, indicated by the appended claims, in which all terms are intended to be interpreted in their broadest reasonable sense unless otherwise indicated.

Claims (10)

1. A text circulation scrolling playing method is characterized by comprising the following steps:
receiving a text playing instruction, wherein the text playing instruction comprises picture information, and the picture information comprises text playing content consisting of multi-frame images;
judging whether the text playing type is circular rolling playing or not according to a preset text playing type judgment strategy and the text playing instruction;
if yes, when the text playing content is controlled to be played for the first time, rendering the text playing content according to a preset first rendering strategy to obtain rendered first display content, and sending the first display content to a display screen for display;
when the text playing content is controlled to be played for the Nth time, the text playing content is rendered according to a preset second rendering strategy, the rendered Nth display content is obtained, the Nth display content is sent to a display screen to be displayed, and the second rendering strategy comprises the following steps: and connecting the multi-frame images in the picture information according to a preset playing sequence, and rendering the connected multi-frame images simultaneously to obtain rendered Nth display content, wherein N is greater than or equal to 2.
2. The method for scrolling and playing the text in a circular manner according to claim 1, further comprising:
presetting a corresponding relation between a playing logic state and a rendering strategy, wherein the playing logic state comprises an initial state and a reset state, the initial state corresponds to the first rendering strategy, and the reset state corresponds to the second rendering strategy;
when the text playing content is controlled to be played for the first time, initializing the playing logic state to an initial state, obtaining the first rendering strategy according to the initial state and the corresponding relation between the playing logic state and the rendering strategy, and rendering the text playing content according to the first rendering strategy;
and when the text playing content is controlled to be played for the Nth time, the playing logic state is converted from the initial state to the reset state, the second rendering strategy is obtained according to the reset state and the corresponding relation between the playing logic state and the rendering strategy, and the text playing content is rendered according to the second rendering strategy.
3. The text circulation rolling playing method according to claim 1, wherein the text playing command further includes program information, and the determining whether the text playing type is circulation rolling playing according to the preset text playing type determining policy and the text playing command includes:
determining the circulation playing times of the text playing contents according to the program information, judging whether the circulation playing times are greater than or equal to 2, and simultaneously judging whether the text playing contents are single-row or single-line text playing contents according to the picture information;
if the circulation playing pass is more than or equal to 2 and the text playing content is a single-row or single-line text playing content, judging that the text playing type is circulation rolling playing, and otherwise, judging that the text playing type is not circulation rolling playing.
4. The method of claim 1, wherein the first rendering strategy comprises:
rendering each frame of image in the image information according to a preset playing sequence in sequence to obtain rendered first display content;
or connecting each frame of image in the image information according to a preset playing sequence, and simultaneously rendering the connected multiple frames of images to obtain rendered first display content.
5. The method for scrolling and playing the text in a circular manner according to claim 1, further comprising:
before the first display content or the Nth display content is sent to a display screen to be displayed, obtaining the size of a display window of the display screen at the current moment, judging whether the size of the display window of the display screen at the current moment is equal to the size of an initial display window of the display screen, and if not, sending a resolution adjustment instruction to the display screen according to the size of the display window of the display screen at the current moment so as to control the display screen to adjust the resolution of the display window;
or before sending the first display content or the nth display content to a display screen for display, judging whether a display window size adjustment instruction is received, if so, judging whether the display window size pre-adjustment size in the display window size adjustment instruction is equal to the initial display window size of the display screen, if not, generating a resolution adjustment instruction according to the display window pre-adjustment size, and sending the display window size adjustment instruction and the resolution adjustment instruction to the display screen so as to control the display screen to adjust the size and the resolution of the display window.
6. The method of claim 1, wherein the rendering is performed by invoking OpenGL, and comprises:
when the view is created, initializing the information of an object to be rendered through a renderer;
and calling a rendering function through OpenGL, and rendering the image according to the information of the object to be rendered.
7. A play control device is characterized in that the play control device comprises a receiving module, a play type judging module, a display content generating module and a play control module, wherein:
the receiving module is connected with the playing type judging module and used for receiving a text playing instruction, wherein the text playing instruction comprises picture information, and the picture information comprises text playing content consisting of multi-frame images;
the playing type judging module is connected with the receiving module and the display content generating module and is used for judging whether the text playing type is circular rolling playing according to a preset text playing type judging strategy and the text playing instruction;
the display content generation module is connected with the play type judgment module and the play control module, and is used for rendering the text play content according to a preset first rendering strategy to obtain a rendered first display content when the play type judgment module judges that the text play type is the circular rolling play and controls the text play content to play for the first time; when the text playing content is controlled to be played for the Nth time, the text playing content is rendered according to a preset second rendering strategy to obtain rendered Nth display content, wherein the second rendering strategy comprises the following steps: connecting the multi-frame images in the picture information according to a preset playing sequence, and simultaneously rendering the connected multi-frame images to obtain an N-th rendered display content, wherein N is greater than or equal to 2;
the playing control module is used for sending the rendered first or Nth display content to a display screen for display after the display content generating module generates the rendered first or Nth display content.
8. The playback control apparatus according to claim 7, wherein the playback type determination module includes a loop playback pass determination unit, a text playback content determination unit, and a playback type determination unit, wherein:
the circular playing pass determining unit is connected with the playing type judging unit and used for determining the circular playing pass of the text playing content according to the program information in the text playing instruction and judging whether the circular playing pass is more than or equal to 2;
the text playing content determining unit is connected with the playing type judging unit and is used for determining whether the text playing content is a single-row or single-line text playing content according to the picture information;
and the playing type judging unit is used for judging that the text playing type is the circular rolling playing when the circular playing pass is more than or equal to 2 and the text playing content is the single-row or single-line text playing content.
9. The playback control apparatus according to claim 7, further comprising a display window size acquisition module, wherein:
the display window size acquisition module is connected with the play control module and used for acquiring the size of the display window of the display screen at the current moment before the first display content or the Nth display content is sent to the display screen for display;
the playing control module is further configured to determine whether the size of the display window of the display screen at the current time is equal to the size of the initial display window of the display screen, and if not, send a resolution adjustment instruction to the display screen according to the size of the display window of the display screen at the current time to control the display screen to adjust the resolution of the display window.
10. A computer device comprising a memory in which a computer program is stored and a processor which, when executing the computer program, carries out the steps of the text looping scrolling playing method according to any of claims 1 to 6.
CN202110345525.9A 2021-03-31 2021-03-31 Text circulating rolling playing method, playing control device and computer equipment Active CN113031896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110345525.9A CN113031896B (en) 2021-03-31 2021-03-31 Text circulating rolling playing method, playing control device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110345525.9A CN113031896B (en) 2021-03-31 2021-03-31 Text circulating rolling playing method, playing control device and computer equipment

Publications (2)

Publication Number Publication Date
CN113031896A true CN113031896A (en) 2021-06-25
CN113031896B CN113031896B (en) 2023-01-20

Family

ID=76453374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110345525.9A Active CN113031896B (en) 2021-03-31 2021-03-31 Text circulating rolling playing method, playing control device and computer equipment

Country Status (1)

Country Link
CN (1) CN113031896B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006052390A2 (en) * 2004-10-15 2006-05-18 Seadragon Software, Inc. System and method for managing communication and/or storage of image data
CN1893418A (en) * 2005-07-01 2007-01-10 上海新纳广告传媒有限公司 Method for displaying custom-made content displayed in subarea in screen
US20130088505A1 (en) * 2011-10-11 2013-04-11 Microsoft Corporation Caching coverage values for rendering text using anti-aliasing techniques
CN103455571A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Method and device for displaying picture in webpage, and terminal
CN107393494A (en) * 2017-08-17 2017-11-24 福建星网锐捷通讯股份有限公司 A kind of font dot matrix display methods and storage device based on LCDs
CN109151547A (en) * 2018-08-30 2019-01-04 广州虎牙信息科技有限公司 A kind of carousel method, device, terminal and storage medium
CN109284102A (en) * 2017-07-21 2019-01-29 阿里巴巴集团控股有限公司 Information collecting method and device
CN112102442A (en) * 2020-09-04 2020-12-18 卡莱特(深圳)云科技有限公司 Image-text walking setting method and device for LED display screen

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006052390A2 (en) * 2004-10-15 2006-05-18 Seadragon Software, Inc. System and method for managing communication and/or storage of image data
CN1893418A (en) * 2005-07-01 2007-01-10 上海新纳广告传媒有限公司 Method for displaying custom-made content displayed in subarea in screen
US20130088505A1 (en) * 2011-10-11 2013-04-11 Microsoft Corporation Caching coverage values for rendering text using anti-aliasing techniques
CN103455571A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Method and device for displaying picture in webpage, and terminal
CN109284102A (en) * 2017-07-21 2019-01-29 阿里巴巴集团控股有限公司 Information collecting method and device
CN107393494A (en) * 2017-08-17 2017-11-24 福建星网锐捷通讯股份有限公司 A kind of font dot matrix display methods and storage device based on LCDs
CN109151547A (en) * 2018-08-30 2019-01-04 广州虎牙信息科技有限公司 A kind of carousel method, device, terminal and storage medium
CN112102442A (en) * 2020-09-04 2020-12-18 卡莱特(深圳)云科技有限公司 Image-text walking setting method and device for LED display screen

Also Published As

Publication number Publication date
CN113031896B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN108921951B (en) Virtual reality image display method and device and virtual reality equipment
US9786255B2 (en) Dynamic frame repetition in a variable refresh rate system
US9837030B2 (en) Refresh rate dependent adaptive dithering for a variable refresh rate display
TWI514367B (en) System, method, and computer program product for modifying a pixel value as a function of a display duration estimate
US10712817B1 (en) Image re-projection for foveated rendering
EP1225762A2 (en) Dynamic adjustment of on screen graphic displays to cope with different video display and/or display screen formats
US20140292773A1 (en) Virtualization method of vertical-synchronization in graphics systems
CN110166758B (en) Image processing method, image processing device, terminal equipment and storage medium
CN113377485B (en) Refreshing display method of ink screen device, electronic device and storage medium
EP3751862A1 (en) Display method and device, television set, and storage medium
KR20170065926A (en) Display apparatus and control method thereof
US10957020B2 (en) Systems and methods for frame time smoothing based on modified animation advancement and use of post render queues
US11804194B2 (en) Virtual reality display device and display method
CN104811785A (en) Control method and device for displaying graphical user interface of intelligent terminal
CN109272923B (en) Subtitle rolling display method and system based on multi-screen equipment and storage medium
CN106407003A (en) Screen interface display method and system
US8194065B1 (en) Hardware system and method for changing a display refresh rate
CN115641824A (en) Picture adjustment device, display device, and picture adjustment method
CN109151538B (en) Image display method and device, smart television and readable storage medium
US9087473B1 (en) System, method, and computer program product for changing a display refresh rate in an active period
CN113079408A (en) Video playing method, device and system
CN113031896B (en) Text circulating rolling playing method, playing control device and computer equipment
CN111161685B (en) Virtual reality display equipment and control method thereof
US10068549B2 (en) Cursor handling in a variable refresh rate environment
US20210264872A1 (en) Compensation method and compensation device for vr display and display device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant