CN112333514B - Display mode switching method and device, intelligent television and computer readable storage medium - Google Patents

Display mode switching method and device, intelligent television and computer readable storage medium Download PDF

Info

Publication number
CN112333514B
CN112333514B CN202010734353.XA CN202010734353A CN112333514B CN 112333514 B CN112333514 B CN 112333514B CN 202010734353 A CN202010734353 A CN 202010734353A CN 112333514 B CN112333514 B CN 112333514B
Authority
CN
China
Prior art keywords
picture
screen
switched
picture layer
target
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.)
Active
Application number
CN202010734353.XA
Other languages
Chinese (zh)
Other versions
CN112333514A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010734353.XA priority Critical patent/CN112333514B/en
Publication of CN112333514A publication Critical patent/CN112333514A/en
Application granted granted Critical
Publication of CN112333514B publication Critical patent/CN112333514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a display mode switching method, a display mode switching device, an intelligent television and a computer readable storage medium. The display mode switching method comprises the following steps: when a horizontal and vertical screen switching instruction is received, acquiring a horizontal screen picture to be switched; constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule; acquiring a rotation control gear of a motor, and adjusting the target picture layer according to the rotation control gear so as to cover the target picture layer to a screen display buffer area; and when the adjustment is completed, acquiring a target display picture from the screen display buffer area, and displaying the target display picture. The invention can avoid the phenomenon of messy codes or wire drawing during the switching of the horizontal screen and the vertical screen, and ensures that the switching process of the horizontal screen and the vertical screen is smoother.

Description

Display mode switching method and device, intelligent television and computer readable storage medium
Technical Field
The present invention relates to the field of smart televisions, and in particular, to a display mode switching method and apparatus, a smart television, and a computer readable storage medium.
Background
With the rapid development of intelligent television technology, intelligent televisions are increasingly popular and have more and more powerful functions. Previously, smart televisions are usually played in a horizontal screen display mode of 16:9, and with the change of technology and popular trend, a vertical screen display mode gradually appears, so that new visual effects are brought to people. However, in the current switching process of the horizontal screen and the vertical screen of the smart television, the phenomenon of picture messy codes or wire drawing usually occurs, so that the problems of unsmooth switching process of a motor and the like are caused, and the use experience of a user is affected.
Disclosure of Invention
The invention mainly aims to provide a display mode switching method, an intelligent television and a computer readable storage medium, and aims to prevent messy codes or 'wiredrawing' phenomenon from occurring during switching of a horizontal screen and a vertical screen, so that the switching process of the horizontal screen and the vertical screen is smoother.
In order to achieve the above object, the present invention provides a display mode switching method, including:
when a horizontal and vertical screen switching instruction is received, acquiring a horizontal screen picture to be switched;
constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule;
acquiring a rotation control gear of a motor, and adjusting the target picture layer according to the rotation control gear so as to cover the target picture layer to a screen display buffer area;
and when the adjustment is completed, acquiring a target display picture from the screen display buffer area, and displaying the target display picture.
Optionally, the step of constructing the target picture layer corresponding to the to-be-switched horizontal screen picture according to the picture layer construction rule includes:
constructing a frame picture layer above the vertical screen according to the left frame picture of the transverse screen picture to be switched;
constructing a frame picture layer below the vertical screen according to the right frame picture of the transverse screen picture to be switched;
constructing a vertical screen middle picture layer according to the horizontal screen middle picture of the horizontal screen picture to be switched;
the target picture layer comprises a frame picture layer above the vertical screen, a frame picture layer below the vertical screen and a picture layer in the middle of the vertical screen.
Optionally, the step of constructing a frame film layer above the vertical screen according to the left frame of the horizontal screen to be switched includes:
extracting pixel information of a left side frame in the transverse screen picture to be switched, and marking the pixel information as first pixel information;
calculating to obtain a first black pixel area of the left side frame according to the first pixel information;
acquiring the height and the width of the horizontal screen picture to be switched, and calculating to obtain the second black pixel area of the upper side frame of the vertical screen according to the height, the width and a first preset calculation formula;
judging whether the first black pixel area is larger than the second black pixel area or not;
if yes, determining a left side frame picture in the transverse screen picture to be switched according to the first pixel information, and copying the left side frame picture to obtain a frame picture layer above the vertical screen.
Optionally, the step of constructing the picture layer of the frame below the vertical screen according to the frame picture on the right side of the horizontal screen to be switched includes:
extracting pixel information of a right side frame in the transverse screen picture to be switched, and marking the pixel information as second pixel information;
calculating a third black pixel area of the right side frame according to the second pixel information;
acquiring the height and the width of the horizontal screen picture to be switched, and calculating to obtain a fourth black pixel area of the lower side frame of the vertical screen according to the height, the width and a second preset calculation formula;
judging whether the third black pixel area is larger than the fourth black pixel area;
if yes, determining a right side frame picture in the transverse screen picture to be switched according to the second pixel information, and copying the right side frame picture to obtain a frame picture layer below the vertical screen.
Optionally, the step of constructing a vertical screen middle picture layer according to the horizontal screen middle picture of the horizontal screen picture to be switched includes:
extracting pixel information of a middle horizontal screen picture in the horizontal screen pictures to be switched, and marking the pixel information as third pixel information;
calculating to obtain a first gray pixel area of the middle picture of the transverse screen according to the third pixel information;
acquiring the height and the width of the transverse screen picture to be switched, and calculating to obtain a second gray pixel area of the transverse screen intermediate picture according to the height, the width and a third preset calculation formula;
judging whether the first gray pixel area is larger than the second gray pixel area;
if yes, determining a horizontal screen middle picture in the horizontal screen pictures to be switched according to the third pixel information, and copying the right side frame picture to obtain a vertical screen middle picture layer.
Optionally, the step of obtaining a rotation control gear of the motor and adjusting the target picture layer according to the rotation control gear to cover the target picture layer to a screen display buffer area includes:
acquiring a rotation control gear of a motor, and calculating according to the rotation control gear to obtain rotation angle data;
and controlling the target picture layer to rotate in linkage with the motor based on the rotation angle data so as to cover the target picture layer to a screen display buffer area.
Optionally, the display mode switching method further includes:
when a vertical and horizontal screen switching instruction is received, a horizontal screen picture to be displayed is obtained, and the horizontal screen picture to be displayed is displayed so as to be switched to a horizontal screen display mode.
In addition, in order to achieve the above object, the present invention also provides a display mode switching device including:
the picture acquisition module is used for acquiring a transverse screen picture to be switched when a transverse screen and vertical screen switching instruction is received;
the picture layer construction module is used for constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule;
the linkage rotation module is used for acquiring a rotation control gear of the motor, and adjusting the target picture layer according to the rotation control gear so as to cover the target picture layer to a screen display buffer area;
and the picture display module is used for acquiring a target display picture from the screen display buffer area and displaying the target display picture when the adjustment is completed.
In addition, in order to achieve the above object, the present invention also provides an intelligent television, including: the display mode switching device comprises a memory, a processor and a display mode switching program which is stored in the memory and can run on the processor, wherein the display mode switching program realizes the steps of the display mode switching method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a display mode switching program which, when executed by a processor, implements the steps of the display mode switching method described above.
The invention provides a display mode switching method, a device, an intelligent television and a computer readable storage medium, wherein a transverse screen picture to be switched is obtained when a transverse screen and vertical screen switching instruction is received; constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule; then, a rotation control gear of the motor is obtained, and the target picture layer is adjusted according to the rotation control gear, so that the target picture layer and the motor rotate in a linkage manner, and the target picture layer is covered on a screen display buffer area; and when the adjustment is completed, acquiring a target display picture from the screen display buffer area, and displaying the target display picture. According to the method and the device, the target picture layer corresponding to the transverse screen picture to be switched is constructed, and then the target picture layer and the motor are linked and rotated in equal proportion, so that the phenomenon of messy codes or wiredrawing of the transverse screen picture to be switched during switching can be avoided, the transverse screen and vertical screen switching process is smoother, and the use experience of a user can be improved.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a mode switching method according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of a refinement procedure of step S20 in the first embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be an intelligent television.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit ), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., wireless-Fidelity, wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, and a display mode switching program may be included in the memory 1005, which is one type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client and communicating data with the client; and the processor 1001 may be configured to call a display mode switching program stored in the memory 1005 and perform the following operations:
when a horizontal and vertical screen switching instruction is received, acquiring a horizontal screen picture to be switched;
constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule;
acquiring a rotation control gear of a motor, and adjusting the target picture layer according to the rotation control gear so as to cover the target picture layer to a screen display buffer area;
and when the adjustment is completed, acquiring a target display picture from the screen display buffer area, and displaying the target display picture.
Further, the processor 1001 may call a display mode switching program stored in the memory 1005, and also perform the following operations:
constructing a frame picture layer above the vertical screen according to the left frame picture of the transverse screen picture to be switched;
constructing a frame picture layer below the vertical screen according to the right frame picture of the transverse screen picture to be switched;
constructing a vertical screen middle picture layer according to the horizontal screen middle picture of the horizontal screen picture to be switched;
the target picture layer comprises a frame picture layer above the vertical screen, a frame picture layer below the vertical screen and a picture layer in the middle of the vertical screen.
Further, the processor 1001 may call a display mode switching program stored in the memory 1005, and also perform the following operations:
extracting pixel information of a left side frame in the transverse screen picture to be switched, and marking the pixel information as first pixel information;
calculating to obtain a first black pixel area of the left side frame according to the first pixel information;
acquiring the height and the width of the horizontal screen picture to be switched, and calculating to obtain the second black pixel area of the upper side frame of the vertical screen according to the height, the width and a first preset calculation formula;
judging whether the first black pixel area is larger than the second black pixel area or not;
if yes, determining a left side frame picture in the transverse screen picture to be switched according to the first pixel information, and copying the left side frame picture to obtain a frame picture layer above the vertical screen.
Further, the processor 1001 may call a display mode switching program stored in the memory 1005, and also perform the following operations:
extracting pixel information of a right side frame in the transverse screen picture to be switched, and marking the pixel information as second pixel information;
calculating a third black pixel area of the right side frame according to the second pixel information;
acquiring the height and the width of the horizontal screen picture to be switched, and calculating to obtain a fourth black pixel area of the lower side frame of the vertical screen according to the height, the width and a second preset calculation formula;
judging whether the third black pixel area is larger than the fourth black pixel area;
if yes, determining a right side frame picture in the transverse screen picture to be switched according to the second pixel information, and copying the right side frame picture to obtain a frame picture layer below the vertical screen.
Further, the processor 1001 may call a display mode switching program stored in the memory 1005, and also perform the following operations:
extracting pixel information of a middle horizontal screen picture in the horizontal screen pictures to be switched, and marking the pixel information as third pixel information;
calculating to obtain a first gray pixel area of the middle picture of the transverse screen according to the third pixel information;
acquiring the height and the width of the transverse screen picture to be switched, and calculating to obtain a second gray pixel area of the transverse screen intermediate picture according to the height, the width and a third preset calculation formula;
judging whether the first gray pixel area is larger than the second gray pixel area;
if yes, determining a horizontal screen middle picture in the horizontal screen pictures to be switched according to the third pixel information, and copying the right side frame picture to obtain a vertical screen middle picture layer.
Further, the processor 1001 may call a display mode switching program stored in the memory 1005, and also perform the following operations:
acquiring a rotation control gear of a motor, and calculating according to the rotation control gear to obtain rotation angle data;
and controlling the target picture layer to rotate in linkage with the motor based on the rotation angle data so as to cover the target picture layer to a screen display buffer area.
Further, the processor 1001 may call a display mode switching program stored in the memory 1005, and also perform the following operations:
when a vertical and horizontal screen switching instruction is received, a horizontal screen picture to be displayed is obtained, and the horizontal screen picture to be displayed is displayed so as to be switched to a horizontal screen display mode.
Based on the above hardware structure, various embodiments of the display mode switching method of the present invention are presented.
The invention provides a display mode switching method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a mode switching method according to a first embodiment of the present invention.
In this embodiment, the display mode switching method includes:
step S10, when a horizontal and vertical screen switching instruction is received, a horizontal screen picture to be switched is obtained;
the terminal of the embodiment of the invention can be an intelligent television.
In this embodiment, under normal conditions, the smart television is in a landscape display mode, when a user needs to switch to a portrait display mode, the landscape display mode and the portrait display mode can be performed through key triggering, voice triggering or other modes, and at this time, the smart television acquires a landscape screen picture to be switched when receiving a landscape screen and portrait screen switching instruction. The horizontal screen to be switched may be a current display (e.g. a static menu interface) or a series of display (e.g. a subsequent play of a television program).
Step S20, constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule;
and then, constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule, wherein the target picture layer is a picture layer displayed after the display mode is switched, namely when the display mode is switched to a vertical screen mode, and comprises a frame picture layer above a vertical screen, a frame picture layer below the vertical screen and a middle picture layer of the vertical screen, and each picture layer is respectively constructed according to the corresponding part of the transverse screen picture to be switched.
The picture layer construction rule is preset and is used for constructing a target picture layer, and the specific process is as follows: the frame picture layer above the vertical screen can be constructed according to the left frame picture of the horizontal screen picture to be switched, the frame picture layer below the vertical screen can be constructed according to the right frame picture of the horizontal screen picture to be switched, and the middle picture layer of the vertical screen can be constructed according to the middle picture of the horizontal screen picture to be switched. The method for constructing each target picture layer can refer to the following embodiments, which are not described herein.
Step S30, a rotation control gear of a motor is obtained, and the target picture layer is adjusted according to the rotation control gear so as to cover the target picture layer to a screen display buffer area;
after the target picture layer is constructed, a rotation control gear of the motor is obtained, and the target picture layer is adjusted according to the rotation control gear, so that the target picture layer and the motor rotate in a linkage manner, and the target picture layer is covered on the screen display buffer area. The linkage rotation, namely the linkage of the picture layers of all target pictures and the motors in equal proportion, can avoid the phenomenon of messy codes or wire drawing when the horizontal screen picture to be switched is switched through the linkage rotation, and enables the horizontal screen and vertical screen switching process to be smoother.
Specifically, step S30 includes:
step a31, acquiring a rotation control gear of a motor, and calculating according to the rotation control gear to obtain rotation angle data;
and a step a32 of controlling the target picture layer to rotate in linkage with the motor based on the rotation angle data so as to cover the target picture layer to a screen display buffer area.
In this embodiment, the rotation control gear of the motor is first acquired, where the rotation control gear is set based on the motor gear, optionally set to 3, and then rotation angle data is calculated according to the rotation control gear, and since the switching of the horizontal and vertical screens is performed, the total rotation angle is 90 °, and correspondingly, the rotation angle data can be calculated to be 90/3=30° each time.
And controlling the target picture layer to rotate in linkage with the motor based on the rotation angle data so as to cover the target picture layer on the screen display buffer area. The target picture layer comprises a frame picture layer above the vertical screen, a frame picture layer below the vertical screen and a middle picture layer of the vertical screen.
When the linkage rotation is carried out, the rotation control gear is 3, and the corresponding rotation is divided into 3 times, and when the rotation is carried out for 30 degrees for the first time, the frame diagram sheet layer above the vertical screen is covered on the screen display buffer area, and the black frame above the vertical screen is displayed; covering the frame film layer below the vertical screen to a screen display buffer area when the vertical screen rotates for 30 degrees for the second time, and displaying the black frame below the vertical screen; and when the screen rotates 30 degrees for the third time, covering the vertical screen middle picture layer to a screen display buffer area, and displaying the vertical screen middle picture.
And S40, when the adjustment is completed, acquiring a target display picture from the screen display buffer area, and displaying the target display picture.
And after the rotation is completed, acquiring a target display picture from the screen display buffer area, and displaying the target display picture. The target display picture is a complete display picture which is obtained by splicing a frame picture layer above the vertical screen, a frame picture layer below the vertical screen and a middle picture layer of the vertical screen, wherein the frame picture layer covers the screen display buffer area.
The embodiment of the invention provides a display mode switching method, which comprises the steps of acquiring a transverse screen picture to be switched when a transverse screen and vertical screen switching instruction is received; constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule; then, a rotation control gear of the motor is obtained, and the target picture layer is adjusted according to the rotation control gear, so that the target picture layer and the motor rotate in a linkage manner, and the target picture layer is covered on a screen display buffer area; and when the adjustment is completed, acquiring a target display picture from the screen display buffer area, and displaying the target display picture. According to the embodiment of the invention, the target picture layer corresponding to the transverse screen picture to be switched is constructed, and then the target picture layer and the motor are in equal proportion linked rotation, so that the phenomenon of messy codes or wiredrawing during switching of the transverse screen picture to be switched can be avoided, the transverse screen and vertical screen switching process is smoother, and the use experience of a user can be improved.
Further, referring to fig. 3, fig. 3 is a schematic diagram of a refinement flow chart of step S20 in the first embodiment of the present invention.
In this embodiment, step S20 includes:
s21, constructing a frame picture layer above the vertical screen according to the left frame picture of the transverse screen picture to be switched;
in this embodiment, the frame picture layer above the vertical screen is constructed according to the left frame picture of the horizontal screen picture to be switched.
Specifically, step S21 includes:
step a211, extracting pixel information of a left side frame in the transverse screen picture to be switched, and recording the pixel information as first pixel information;
step a212, calculating a first black pixel area of the left side frame according to the first pixel information;
step a213, obtaining the height and width of the to-be-switched horizontal screen picture, and calculating to obtain the second black pixel area of the upper side frame of the vertical screen according to the height, the width and a first preset calculation formula;
step a214, judging whether the first black pixel area is larger than the second black pixel area;
and step a215, if yes, determining a left side frame picture in the transverse screen picture to be switched according to the first pixel information, and copying the left side frame picture to obtain a frame picture layer above the vertical screen.
In this embodiment, the construction process of the frame picture layer above the vertical screen is as follows:
the method comprises the steps of firstly extracting pixel information of a left side frame in a transverse screen picture to be switched, and recording the pixel information as first pixel information, wherein the first pixel information comprises the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the left side frame. The specific extraction method comprises the following steps: and extracting the leftmost coordinates of black pixels (RGB is (0, 0)) in the transverse screen picture to be switched to the number of pixels in the horizontal direction and the pixels in the vertical direction of the non-black pixels.
And then, calculating according to the first pixel information to obtain a first black pixel area of the left side frame, wherein the first black pixel area is the product of the number of pixels in the horizontal direction of the left side frame and the number of pixels in the vertical direction of the left side frame.
And then acquiring the height (marked as Y1) and the width (marked as X1) of the transverse screen picture to be switched, and calculating to obtain the second black pixel area of the upper side frame of the vertical screen according to the height, the width and the first preset calculation formula. Second black pixel area=x1×1/4×y1.
Judging whether the first black pixel area is larger than the second black pixel area, if the first black pixel area is larger than the second black pixel area, determining a left side frame picture in the transverse screen picture to be switched according to the first pixel information, and copying the left side frame picture to obtain a frame picture layer above the vertical screen.
Step S22, constructing a frame film layer below the vertical screen according to the right frame picture of the transverse screen picture to be switched;
and constructing a frame picture layer below the vertical screen according to the right frame picture of the transverse screen picture to be switched.
Specifically, step S22 includes:
step a221, extracting pixel information of a right side frame in the transverse screen picture to be switched, and recording the pixel information as second pixel information;
step a222, calculating a third black pixel area of the right side frame according to the second pixel information;
step a223, acquiring the height and the width of the to-be-switched horizontal screen picture, and calculating to obtain a fourth black pixel area of the lower side frame of the vertical screen according to the height, the width and a second preset calculation formula;
step a224, determining whether the third black pixel area is larger than the fourth black pixel area;
and a step a225, if yes, determining a right side frame picture in the to-be-switched horizontal screen picture according to the second pixel information, and copying the right side frame picture to obtain a frame picture layer below the vertical screen.
In this embodiment, the construction process of the picture layer of the frame below the vertical screen is as follows:
firstly, extracting pixel information of a right side frame in a transverse screen picture to be switched, and recording the pixel information as second pixel information, wherein the second pixel information comprises the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the right side frame. The specific extraction method comprises the following steps: and extracting the rightmost coordinates of black pixels (RGB is (0, 0)) in the transverse screen picture to be switched to the number of pixels in the horizontal direction and the pixels in the vertical direction of the non-black pixels.
And then, calculating a third black pixel area of the right side frame according to the second pixel information, wherein the third black pixel area is the product of the number of pixels in the horizontal direction of the right side frame and the number of pixels in the vertical direction of the right side frame.
And then acquiring the height (marked as Y1) and the width (marked as X1) of the horizontal screen picture to be switched, and calculating according to the height, the width and a second preset calculation formula to obtain the fourth black pixel area of the lower side frame of the vertical screen. Fourth black pixel area=x1×1/4×y1.
Judging whether the area of the third black pixel is larger than the area of the fourth black pixel, if the area of the third black pixel is larger than the area of the fourth black pixel, determining a right side frame picture in the transverse screen picture to be switched according to the second pixel information, and copying the right side frame picture to obtain a frame picture layer below the vertical screen.
Step S23, constructing a vertical screen middle picture layer according to the horizontal screen middle picture of the horizontal screen picture to be switched;
and constructing a vertical screen middle picture layer according to the horizontal screen middle picture of the horizontal screen picture to be switched.
Specifically, step S23 includes:
step a231, extracting pixel information of a middle horizontal screen picture in the horizontal screen pictures to be switched, and recording the pixel information as third pixel information;
step a232, calculating to obtain a first gray pixel area of the middle picture of the transverse screen according to the third pixel information;
step a233, obtaining the height and the width of the transverse screen picture to be switched, and calculating to obtain a second gray pixel area of the transverse screen intermediate picture according to the height, the width and a third preset calculation formula;
step a234, judging whether the first gray pixel area is larger than the second gray pixel area;
and a step a235, if yes, determining a horizontal screen middle picture in the horizontal screen pictures to be switched according to the third pixel information, and copying the right side frame picture to obtain a vertical screen middle picture layer.
In this embodiment, the construction process of the vertical screen middle picture layer is as follows:
firstly, extracting pixel information of a transverse screen middle picture in the transverse screen picture to be switched, and recording the pixel information as third pixel information, wherein the third pixel information comprises the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the transverse screen middle picture. The specific extraction method comprises the following steps: extracting the sum of the numbers of pixels from the central position to the left gray pixel and the right gray pixel (between RGB gains of 250-20) in the horizontal screen picture to be switched, namely the number of pixels in the horizontal direction of the horizontal screen middle picture; and extracting the sum of the numbers of pixels from the central position to the gray pixels (between the RGB gains of 250-20) at the upper side and the lower side in the transverse screen picture to be switched, namely the number of pixels in the vertical direction of the transverse screen middle picture.
And then, calculating according to the third pixel information to obtain a first gray pixel area of the horizontal screen intermediate picture, wherein the first gray pixel area is the product of the number of pixels in the horizontal direction and the number of pixels in the vertical direction of the horizontal screen intermediate picture.
And then acquiring the height (marked as Y1) and the width (marked as X1) of the transverse screen picture to be switched, and calculating to obtain the second gray pixel area of the transverse screen intermediate picture according to the height, the width and a third preset calculation formula. Second gray pixel area=x1×2/4×y1.
Judging whether the first gray pixel area is larger than the second gray pixel area, if the first gray pixel area is larger than the second gray pixel area, determining a horizontal screen middle picture in the horizontal screen pictures to be switched according to the third pixel information, and copying the right side frame picture to obtain a vertical screen middle picture layer.
The target picture layer comprises a frame picture layer above the vertical screen, a frame picture layer below the vertical screen and a picture layer in the middle of the vertical screen.
The execution sequence of step S21, step S22 and step S23 is not separately and successively executed.
In this embodiment, by the above manner, the horizontal screen picture to be switched can be split, and the vertical screen upper side frame picture layer, the vertical screen lower side frame picture layer and the vertical screen middle picture layer after being switched to the vertical screen are respectively constructed so as to facilitate the following linkage rotation with the motor.
Further, based on the above embodiments, a second example of the display mode switching method of the present invention is presented.
In this embodiment, after the step S40, the display mode switching method further includes:
when a vertical and horizontal screen switching instruction is received, a horizontal screen picture to be displayed is obtained, and the horizontal screen picture to be displayed is displayed so as to be switched to a horizontal screen display mode.
In this embodiment, when a vertical and horizontal screen switching instruction is received, that is, a switching instruction from a vertical screen to a horizontal screen is received, because the to-be-displayed frames of the smart television are in a horizontal screen mode, at this time, the to-be-displayed horizontal screen frames can be directly obtained and displayed, so as to switch to a horizontal screen display mode.
By the mode, the intelligent television can be switched from the vertical screen display mode to the horizontal screen display mode.
The invention also provides a display mode switching device.
In this embodiment, the display mode switching device includes:
the picture acquisition module is used for acquiring a transverse screen picture to be switched when a transverse screen and vertical screen switching instruction is received;
the picture layer construction module is used for constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule;
the linkage rotation module is used for acquiring a rotation control gear of the motor, and adjusting the target picture layer according to the rotation control gear so as to cover the target picture layer to a screen display buffer area;
and the picture display module is used for acquiring a target display picture from the screen display buffer area and displaying the target display picture when the adjustment is completed.
Further, the picture layer construction module includes:
the first construction unit is used for constructing a frame picture layer above the vertical screen according to the left frame picture of the transverse screen picture to be switched;
the second construction unit is used for constructing a frame picture layer below the vertical screen according to the right frame picture of the transverse screen picture to be switched;
the third construction unit is used for constructing a vertical screen middle picture layer according to the horizontal screen middle picture of the horizontal screen picture to be switched;
the target picture layer comprises a frame picture layer above the vertical screen, a frame picture layer below the vertical screen and a picture layer in the middle of the vertical screen.
Further, the first construction unit is specifically configured to:
extracting pixel information of a left side frame in the transverse screen picture to be switched, and marking the pixel information as first pixel information;
calculating to obtain a first black pixel area of the left side frame according to the first pixel information;
acquiring the height and the width of the horizontal screen picture to be switched, and calculating to obtain the second black pixel area of the upper side frame of the vertical screen according to the height, the width and a first preset calculation formula;
judging whether the first black pixel area is larger than the second black pixel area or not;
if yes, determining a left side frame picture in the transverse screen picture to be switched according to the first pixel information, and copying the left side frame picture to obtain a frame picture layer above the vertical screen.
Further, the second construction unit is specifically configured to:
extracting pixel information of a right side frame in the transverse screen picture to be switched, and marking the pixel information as second pixel information;
calculating a third black pixel area of the right side frame according to the second pixel information;
acquiring the height and the width of the horizontal screen picture to be switched, and calculating to obtain a fourth black pixel area of the lower side frame of the vertical screen according to the height, the width and a second preset calculation formula;
judging whether the third black pixel area is larger than the fourth black pixel area;
if yes, determining a right side frame picture in the transverse screen picture to be switched according to the second pixel information, and copying the right side frame picture to obtain a frame picture layer below the vertical screen.
Further, the third construction unit is specifically configured to:
extracting pixel information of a middle horizontal screen picture in the horizontal screen pictures to be switched, and marking the pixel information as third pixel information;
calculating to obtain a first gray pixel area of the middle picture of the transverse screen according to the third pixel information;
acquiring the height and the width of the transverse screen picture to be switched, and calculating to obtain a second gray pixel area of the transverse screen intermediate picture according to the height, the width and a third preset calculation formula;
judging whether the first gray pixel area is larger than the second gray pixel area;
if yes, determining a horizontal screen middle picture in the horizontal screen pictures to be switched according to the third pixel information, and copying the right side frame picture to obtain a vertical screen middle picture layer.
Further, the linked rotation module includes:
the angle calculation unit is used for acquiring a rotation control gear of the motor and calculating to obtain rotation angle data according to the rotation control gear;
and the linkage rotation unit is used for controlling the target picture layer to rotate in linkage with the motor based on the rotation angle data so as to cover the target picture layer to a screen display buffer area.
Further, the display mode switching device further includes:
and the mode switching module is used for acquiring a transverse screen picture to be displayed when receiving the vertical transverse screen switching instruction, and displaying the transverse screen picture to be displayed so as to switch to a transverse screen display mode.
The function implementation of each module in the display mode switching device corresponds to each step in the embodiment of the display mode switching method, and the function and implementation process of each module are not described herein.
The present invention also provides a computer-readable storage medium having stored thereon a display mode switching program which, when executed by a processor, implements the steps of the display mode switching method according to any one of the above embodiments.
The specific embodiments of the computer readable storage medium of the present invention are substantially the same as the embodiments of the display mode switching method described above, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A display mode switching method, characterized in that the display mode switching method comprises the steps of:
when a horizontal and vertical screen switching instruction is received, acquiring a horizontal screen picture to be switched;
constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule;
acquiring a rotation control gear of a motor, and adjusting the target picture layer according to the rotation control gear so as to cover the target picture layer to a screen display buffer area;
when the adjustment is completed, a target display picture is obtained from the screen display buffer area and displayed;
the step of constructing the target picture layer corresponding to the to-be-switched horizontal screen picture according to the picture layer construction rule comprises the following steps:
constructing a frame picture layer above the vertical screen according to the left frame picture of the transverse screen picture to be switched;
constructing a frame picture layer below the vertical screen according to the right frame picture of the transverse screen picture to be switched;
constructing a vertical screen middle picture layer according to the horizontal screen middle picture of the horizontal screen picture to be switched;
the target picture layer comprises a frame picture layer above the vertical screen, a frame picture layer below the vertical screen and a picture layer in the middle of the vertical screen;
the step of acquiring a rotation control gear of the motor and adjusting the target picture layer according to the rotation control gear so as to cover the target picture layer to a screen display buffer area comprises the following steps of:
acquiring a rotation control gear of a motor, and calculating according to the rotation control gear to obtain rotation angle data;
and controlling the target picture layers to rotate in a linkage way based on the rotation angle data so as to cover the target picture layers on a screen display buffer area, wherein the linkage rotation is to link each target picture layer with the motor in equal proportion.
2. The display mode switching method according to claim 1, wherein the step of constructing a vertical-screen-upper-side frame picture layer from the left-side frame picture of the horizontal screen picture to be switched comprises:
extracting pixel information of a left side frame in the transverse screen picture to be switched, and marking the pixel information as first pixel information;
calculating to obtain a first black pixel area of the left side frame according to the first pixel information;
acquiring the height and the width of the horizontal screen picture to be switched, and calculating to obtain the second black pixel area of the upper side frame of the vertical screen according to the height, the width and a first preset calculation formula;
judging whether the first black pixel area is larger than the second black pixel area or not;
if yes, determining a left side frame picture in the transverse screen picture to be switched according to the first pixel information, and copying the left side frame picture to obtain a frame picture layer above the vertical screen.
3. The display mode switching method according to claim 1, wherein the step of constructing a vertical-screen lower frame picture layer from the right frame picture of the horizontal screen picture to be switched comprises:
extracting pixel information of a right side frame in the transverse screen picture to be switched, and marking the pixel information as second pixel information;
calculating a third black pixel area of the right side frame according to the second pixel information;
acquiring the height and the width of the horizontal screen picture to be switched, and calculating to obtain a fourth black pixel area of the lower side frame of the vertical screen according to the height, the width and a second preset calculation formula;
judging whether the third black pixel area is larger than the fourth black pixel area;
if yes, determining a right side frame picture in the transverse screen picture to be switched according to the second pixel information, and copying the right side frame picture to obtain a frame picture layer below the vertical screen.
4. The display mode switching method according to claim 1, wherein the step of constructing a vertical screen intermediate picture layer from a horizontal screen intermediate picture of the horizontal screen picture to be switched comprises:
extracting pixel information of a middle horizontal screen picture in the horizontal screen pictures to be switched, and marking the pixel information as third pixel information;
calculating to obtain a first gray pixel area of the middle picture of the transverse screen according to the third pixel information;
acquiring the height and the width of the transverse screen picture to be switched, and calculating to obtain a second gray pixel area of the transverse screen intermediate picture according to the height, the width and a third preset calculation formula;
judging whether the first gray pixel area is larger than the second gray pixel area;
if yes, determining a horizontal screen middle picture in the horizontal screen pictures to be switched according to the third pixel information, and copying the right side frame picture to obtain a vertical screen middle picture layer.
5. The display mode switching method according to any one of claims 1 to 4, wherein the display mode switching method further comprises:
when a vertical and horizontal screen switching instruction is received, a horizontal screen picture to be displayed is obtained, and the horizontal screen picture to be displayed is displayed so as to be switched to a horizontal screen display mode.
6. A display mode switching device, characterized in that the display mode switching device comprises:
the picture acquisition module is used for acquiring a transverse screen picture to be switched when a transverse screen and vertical screen switching instruction is received;
the picture layer construction module is used for constructing a target picture layer corresponding to the transverse screen picture to be switched according to a picture layer construction rule;
the linkage rotation module is used for acquiring a rotation control gear of the motor, and adjusting the target picture layer according to the rotation control gear so as to cover the target picture layer to a screen display buffer area;
the picture display module is used for acquiring a target display picture from the screen display buffer area and displaying the target display picture when adjustment is completed;
the picture layer construction module is specifically configured to:
constructing a frame picture layer above the vertical screen according to the left frame picture of the transverse screen picture to be switched;
constructing a frame picture layer below the vertical screen according to the right frame picture of the transverse screen picture to be switched;
constructing a vertical screen middle picture layer according to the horizontal screen middle picture of the horizontal screen picture to be switched;
the target picture layer comprises a frame picture layer above the vertical screen, a frame picture layer below the vertical screen and a picture layer in the middle of the vertical screen;
wherein, the display mode switching device is further used for:
acquiring a rotation control gear of a motor, and calculating according to the rotation control gear to obtain rotation angle data;
and controlling the target picture layers to rotate in a linkage way based on the rotation angle data so as to cover the target picture layers on a screen display buffer area, wherein the linkage rotation is to link each target picture layer with the motor in equal proportion.
7. An intelligent television, characterized in that, the intelligent television includes: a memory, a processor, and a display mode switching program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the display mode switching method of any one of claims 1 to 5.
8. A computer-readable storage medium, on which a display mode switching program is stored, which when executed by a processor implements the steps of the display mode switching method according to any one of claims 1 to 5.
CN202010734353.XA 2020-07-24 2020-07-24 Display mode switching method and device, intelligent television and computer readable storage medium Active CN112333514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010734353.XA CN112333514B (en) 2020-07-24 2020-07-24 Display mode switching method and device, intelligent television and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010734353.XA CN112333514B (en) 2020-07-24 2020-07-24 Display mode switching method and device, intelligent television and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112333514A CN112333514A (en) 2021-02-05
CN112333514B true CN112333514B (en) 2024-02-06

Family

ID=74303026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010734353.XA Active CN112333514B (en) 2020-07-24 2020-07-24 Display mode switching method and device, intelligent television and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112333514B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243100A (en) * 2022-03-18 2022-10-25 北京达佳互联信息技术有限公司 Multimedia resource generation method and device, electronic equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306997A (en) * 2014-05-30 2016-02-03 广州市动景计算机科技有限公司 Mobile terminal play mode switching method and device
CN105744346A (en) * 2014-12-12 2016-07-06 深圳Tcl数字技术有限公司 Subtitle switching method and device
WO2017166711A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Landscape/portrait screen switching method and apparatus for terminal
WO2018001202A1 (en) * 2016-06-27 2018-01-04 北京奇虎科技有限公司 Video playback mode switching method, device, program and medium
CN107908447A (en) * 2017-10-31 2018-04-13 北京小鸟看看科技有限公司 Using switching method, equipment and virtual reality device
WO2019020001A1 (en) * 2017-07-24 2019-01-31 腾讯科技(深圳)有限公司 Method and apparatus for displaying game picture, and computer readable storage medium
CN110166810A (en) * 2019-04-25 2019-08-23 腾讯科技(深圳)有限公司 Video rendering engine switching method, device, equipment and readable storage medium storing program for executing
CN110399064A (en) * 2019-07-22 2019-11-01 腾讯科技(深圳)有限公司 Switching method and apparatus, storage medium and the electronic device of display interface
CN111026297A (en) * 2019-11-19 2020-04-17 深圳鑫想科技有限责任公司 Screen image rotation method, control device, storage medium and computer equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170272811A1 (en) * 2016-03-21 2017-09-21 Le Holdings (Beijing) Co., Ltd. Method and electronic device for program switching

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306997A (en) * 2014-05-30 2016-02-03 广州市动景计算机科技有限公司 Mobile terminal play mode switching method and device
CN105744346A (en) * 2014-12-12 2016-07-06 深圳Tcl数字技术有限公司 Subtitle switching method and device
WO2017166711A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Landscape/portrait screen switching method and apparatus for terminal
WO2018001202A1 (en) * 2016-06-27 2018-01-04 北京奇虎科技有限公司 Video playback mode switching method, device, program and medium
WO2019020001A1 (en) * 2017-07-24 2019-01-31 腾讯科技(深圳)有限公司 Method and apparatus for displaying game picture, and computer readable storage medium
CN107908447A (en) * 2017-10-31 2018-04-13 北京小鸟看看科技有限公司 Using switching method, equipment and virtual reality device
CN110166810A (en) * 2019-04-25 2019-08-23 腾讯科技(深圳)有限公司 Video rendering engine switching method, device, equipment and readable storage medium storing program for executing
CN110399064A (en) * 2019-07-22 2019-11-01 腾讯科技(深圳)有限公司 Switching method and apparatus, storage medium and the electronic device of display interface
CN111026297A (en) * 2019-11-19 2020-04-17 深圳鑫想科技有限责任公司 Screen image rotation method, control device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN112333514A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
JP3870109B2 (en) Image display apparatus, image display method, and image display program
US11194536B2 (en) Image processing method and apparatus for displaying an image between two display screens
CN106935191B (en) Display control method and electronic equipment
US20240004676A1 (en) Screen Capture Method and Apparatus, Electronic Device, and Readable Storage Medium
CN110149550B (en) Image data processing method and device and storage medium
CN112333514B (en) Display mode switching method and device, intelligent television and computer readable storage medium
EP3975043A1 (en) Image processing method, terminal, and storage medium
US20170161875A1 (en) Video resolution method and apparatus
CN113905268A (en) Black edge removing method for screen projection display of mobile terminal
JP2003076355A (en) Picture display device, picture display method, recording medium, and program
CN111885314A (en) Screen adjustment method, device, terminal and computer readable storage medium
CN109544441B (en) Image processing method and device, and skin color processing method and device in live broadcast
CN113791857A (en) Application window background fuzzy processing method and device in Linux system
CN116884359A (en) Adaptive dimming method, device, equipment and storage medium based on picture content
CN105389308B (en) Webpage display processing method and device
CN103959204A (en) Information processing device, information processing method, and recording medium
JPWO2007099944A1 (en) Mobile phone terminal, screen display control method used therefor, and program thereof
CN114489546B (en) Split screen display method, electronic equipment, storage medium and device
US20050162427A1 (en) Font processor, terminal device, font processing method, and font processing program
CN113223186B (en) Processing method, equipment, product and device for realizing augmented reality
CN114527950A (en) Picture color adjusting method, device, equipment and storage medium
CN107450814B (en) Menu brightness automatic adjusting method, user equipment and storage medium
CN108053436B (en) Picture processing method and device, electronic equipment and picture server
JP2010091617A (en) Automatic setting device for character color of clock, method and program for the same
JP5123270B2 (en) Image processing apparatus and image display apparatus

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