WO2021180223A1 - Display method and display device - Google Patents

Display method and display device Download PDF

Info

Publication number
WO2021180223A1
WO2021180223A1 PCT/CN2021/080552 CN2021080552W WO2021180223A1 WO 2021180223 A1 WO2021180223 A1 WO 2021180223A1 CN 2021080552 W CN2021080552 W CN 2021080552W WO 2021180223 A1 WO2021180223 A1 WO 2021180223A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
rotation
screen
video
image
Prior art date
Application number
PCT/CN2021/080552
Other languages
French (fr)
Chinese (zh)
Inventor
李斌
刘儒茜
刘丽英
于颜梅
朱铄
王大勇
孙梅艳
Original Assignee
海信视像科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202010176794.2A external-priority patent/CN113395558B/en
Priority claimed from CN202010350580.2A external-priority patent/CN113573118B/en
Priority claimed from CN202010693749.4A external-priority patent/CN111866590B/en
Priority claimed from CN202011036180.0A external-priority patent/CN112165644B/en
Application filed by 海信视像科技股份有限公司 filed Critical 海信视像科技股份有限公司
Publication of WO2021180223A1 publication Critical patent/WO2021180223A1/en

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M11/00Stands or trestles as supports for apparatus or articles placed thereon Stands for scientific apparatus such as gravitational force meters
    • F16M11/02Heads
    • F16M11/18Heads with mechanism for moving the apparatus relatively to the stand
    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Definitions

  • This application relates to the technical field of smart TVs, and in particular to a display method and display device.
  • Smart TV equipment has an independent operating system and supports function expansion.
  • Various applications can be installed in the smart TV according to user needs, for example, traditional video applications, social applications such as short videos, and reading applications such as comics and books. These applications can use the screen of the smart TV to display application images, and provide rich media resources for the smart TV.
  • smart TVs can also exchange data and share resources with different terminals.
  • a smart TV can be connected to a mobile phone through wireless communication methods such as local area network, Bluetooth, etc., so as to play resources in the mobile phone or directly cast a screen to display the screen on the mobile phone.
  • This application provides a display method and display device
  • this application provides a display method, including:
  • the intermediate image is the video frame data obtained by intercepting the output image after the image to be displayed is output through image quality processing;
  • the rotated image is displayed frame by frame.
  • the present application also provides a display device, including: a display, a rotating component, and a controller.
  • the rotation component is configured to drive the display to rotate, so that the display is in one of a variety of rotation states;
  • the controller is configured to execute the following program steps:
  • the intermediate image is the video frame data obtained by intercepting the output image after the image to be displayed is output through image quality processing;
  • FIG. 1A is an application scenario diagram of a display device of this application
  • FIG. 1B is a rear view of a display device of this application.
  • FIG. 2 is a block diagram of the hardware configuration of the control device of the application
  • FIG. 3 is a block diagram of the hardware configuration of the display device of this application.
  • FIG. 4 is a block diagram of the architecture configuration of the operating system in the storage device of the display device of the present application.
  • Figure 5A is a schematic diagram of the horizontal screen state of the display device of this application.
  • Figure 5B is a schematic diagram of the vertical screen state of the display device of the application.
  • FIG. 6 is a schematic diagram of a scene of a method for rotating a video picture according to this application.
  • FIG. 7 is a schematic flowchart of a method for rotating a video picture according to this application.
  • FIG. 8 is a schematic diagram of the process of obtaining a to-be-displayed video image by the application.
  • FIG. 9 is a schematic diagram of the process of generating an intermediate image in this application.
  • FIG. 10 is a schematic diagram of the process of generating a rotating image in this application.
  • FIG. 11 is a schematic diagram of a flow of calling a rotation service to obtain display rotation information in this application;
  • Figure 12 is a schematic diagram of the flow of the monitoring angle callback interface
  • Figure 13 is a schematic diagram of a rotating display screen of the application.
  • FIG. 14 is a schematic flow chart of the application for scaling a rotated image according to the current boundary position
  • 15A is a schematic diagram of the horizontal screen state of the display device in FIG. 1 according to some embodiments of the application;
  • 15B is a schematic diagram of the vertical screen state of the display device in FIG. 1 provided by some embodiments of the application;
  • 16 is a schematic flowchart of a display screen rotation adaptation method provided by some embodiments of the application.
  • FIG. 17 is a schematic diagram of a flow of detecting a switch state according to some embodiments of the application.
  • FIG. 18 is a schematic diagram of a flow of inputting a rotation instruction provided by some embodiments of the application.
  • FIG. 19 is a schematic flowchart of a display screen zoom operation provided by some embodiments of the application.
  • FIG. 20 is a schematic flowchart of a display screen rotation operation provided by some embodiments of the application.
  • FIG. 21 is a schematic flow chart of calculating rotation parameters provided by some embodiments of the application.
  • 22 is a schematic diagram of a display screen rotation adaptation method provided by some embodiments of the application.
  • FIG. 23 is a schematic diagram of a display screen provided by some embodiments of the application.
  • FIG. 24 is a schematic flowchart of a method for rotating and adapting a display screen provided by some embodiments of the application.
  • embodiments of the present application provide a video image rotating display method and a display device suitable for the video image rotating display method, wherein the display device is a rotating TV. It should be noted that the method provided in this embodiment is not only applicable to rotating TVs, but also applicable to other display devices, such as computers and tablet computers.
  • module used in the various embodiments of this application can refer to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code that can execute related components Function.
  • remote control used in the various embodiments of this application refers to a component of an electronic device (such as the display device disclosed in this application), which can generally control the electronic device wirelessly within a short distance.
  • the component can generally use infrared and/or radio frequency (RF) signals and/or Bluetooth to connect with electronic devices, and can also include functional modules such as WiFi, wireless USB, Bluetooth, and motion sensors.
  • RF radio frequency
  • a handheld touch remote control uses a user interface in a touch screen to replace most of the physical built-in hard keys in general remote control devices.
  • gesture used in the embodiments of the present application refers to a user's behavior through a change of hand shape or hand movement to express expected ideas, actions, goals, and/or results.
  • the term "hardware system” used in the various embodiments of this application may refer to an integrated circuit (IC), printed circuit board (Printed circuit board, PCB) and other mechanical, optical, electrical, and magnetic devices with computing , Control, storage, input and output functions of the physical components.
  • the hardware system is also usually referred to as a motherboard or a main chip or a controller.
  • FIG. 1A is an application scenario diagram of a display device provided by some embodiments of this application.
  • the control device 100 and the display device 200 can communicate in a wired or wireless manner.
  • control device 100 is configured to control the display device 200, which can receive operation instructions input by the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, and act as an intermediary for the interaction between the user and the display device 200 effect.
  • the user operates the channel addition and subtraction keys on the control device 100, and the display device 200 responds to the channel addition and subtraction operations.
  • the control device 100 may be a remote controller 100A, including infrared protocol communication or Bluetooth protocol communication, and other short-distance communication methods, etc., to control the display device 200 in a wireless or other wired manner.
  • the user can control the display device 200 by inputting user instructions through keys on the remote control, voice input, control panel input, etc.
  • the user can control the display device 200 by inputting corresponding control commands through the volume plus and minus keys, channel control keys, up/down/left/right movement keys, voice input keys, menu keys, and power on/off keys on the remote control. Function.
  • the control device 100 may also be a smart device, such as a mobile terminal 100B, a tablet computer, a computer, a notebook computer, and the like.
  • a smart device such as a mobile terminal 100B, a tablet computer, a computer, a notebook computer, and the like.
  • an application program running on a smart device is used to control the display device 200.
  • the application can be configured to provide users with various controls through an intuitive user interface (UI) on the screen associated with the smart device.
  • UI intuitive user interface
  • the mobile terminal 100B may install a software application with the display device 200, realize connection communication through a network communication protocol, and realize the purpose of one-to-one control operation and data communication.
  • the mobile terminal 100B can establish a control instruction protocol with the display device 200, and the functions of the physical keys arranged on the remote control 100A can be realized by operating various function keys or virtual controls of the user interface provided on the mobile terminal 100B.
  • the audio and video content displayed on the mobile terminal 100B can also be transmitted to the display device 200 to realize the synchronous display function.
  • the display device 200 may provide a broadcast receiving function and a network TV function of a computer support function.
  • the display device can be implemented as digital TV, Internet TV, Internet Protocol TV (IPTV), and so on.
  • the display device 200 may be a liquid crystal display, an organic light emitting display, or a projection device.
  • the specific display device type, size and resolution are not limited.
  • the display device 200 also performs data communication with the server 300 through a variety of communication methods.
  • the display device 200 may be allowed to communicate through a local area network (LAN), a wireless local area network (WLAN), and other networks.
  • the server 300 may provide various contents and interactions to the display device 200.
  • the display device 200 can send and receive information, such as receiving electronic program guide (EPG) data, receiving software program updates, or accessing a remotely stored digital media library.
  • EPG electronic program guide
  • the server 300 can be one group or multiple groups, and can be one type or multiple types of servers.
  • the server 300 provides other network service content such as video-on-demand and advertising services.
  • the display device 200 includes a rotating assembly 276, a controller 250, a display 275, a terminal interface 278 protruding from a gap on the backplane, and a rotating assembly 276 connected to the backplane.
  • the component 276 can cause the display 275 to rotate.
  • the rotating component 276 can rotate the display screen to the vertical screen state, that is, the state where the vertical side length of the screen is greater than the horizontal side length, or it can rotate the screen to the horizontal screen state, that is, the screen horizontally. The state where the side length is greater than the vertical side length.
  • control device 100 includes a controller 110, a memory 120, a communicator 130, a user input interface 140, a user output interface 150, and a power supply 160.
  • the controller 110 includes a random access memory (RAM) 111, a read only memory (ROM) 112, a processor 113, a communication interface, and a communication bus.
  • RAM random access memory
  • ROM read only memory
  • the controller 110 is used to control the operation and operation of the control device 100, as well as the communication and cooperation between internal components, and external and internal data processing functions.
  • the controller 110 may control to generate a signal corresponding to the detected interaction, and This signal is sent to the display device 200.
  • the memory 120 is used to store various operating programs, data, and applications for driving and controlling the control device 100 under the control of the controller 110.
  • the memory 120 can store various control signal instructions input by the user.
  • the communicator 130 realizes the communication of control signals and data signals with the display device 200 under the control of the controller 110.
  • the control device 100 sends a control signal (such as a touch signal or a control signal) to the display device 200 via the communicator 130, and the control device 100 can receive the signal sent by the display device 200 via the communicator 130.
  • the communicator 130 may include an infrared signal interface 131 and a radio frequency signal interface 132.
  • the user input instruction needs to be converted into an infrared control signal according to the infrared control protocol, and sent to the display device 200 via the infrared sending module.
  • a radio frequency signal interface a user input instruction needs to be converted into a digital signal, which is then modulated according to the radio frequency control signal modulation protocol, and then sent to the display device 200 by the radio frequency sending terminal.
  • the user input interface 140 may include at least one of a microphone 141, a touch panel 142, a sensor 143, a button 144, etc., so that the user can input user instructions for controlling the display device 200 to the control device through voice, touch, gesture, pressing, etc. 100.
  • the user output interface 150 outputs a user instruction received by the user input interface 140 to the display device 200, or outputs an image or voice signal received by the display device 200.
  • the user output interface 150 may include an LED interface 151, a vibration interface 152 that generates vibration, a sound output interface 153 that outputs a sound, a display 154 that outputs an image, and the like.
  • the remote controller 100A can receive output signals such as audio, video, or data from the user output interface 150, and display the output signals as images on the display 154, as audio on the sound output interface 153, or as output on the vibration interface 152. Vibration form.
  • the power supply 160 is used to provide operating power support for each element of the control device 100 under the control of the controller 110.
  • the form can be battery and related control circuit.
  • FIG. 3 exemplarily shows a block diagram of the hardware configuration of the display device 200.
  • the display device 200 may include a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a memory 260, a user interface 265, a video processor 270, a display 275, Rotating component 276, audio processor 280, audio output interface 285, power supply 290.
  • the rotating assembly 276 may include components such as a drive motor and a rotating shaft.
  • the driving motor can be connected to the controller 250 and output the rotation angle under the control of the controller 250; one end of the rotating shaft is connected to the power output shaft of the driving motor, and the other end is connected to the display 275, so that the display 275 can be fixedly installed on the rotating assembly 276.
  • the wall or bracket On the wall or bracket.
  • the rotating assembly 276 may also include other components, such as transmission components, detection components, and so on.
  • the transmission component can adjust the rotation speed and torque output by the rotating assembly 276 through a specific transmission ratio, and can be a gear transmission mode
  • the detection component can be composed of sensors arranged on the rotating shaft, such as an angle sensor, an attitude sensor, and the like. These sensors can detect parameters such as the angle of rotation of the rotating component 276 and send the detected parameters to the controller 250 so that the controller 250 can determine or adjust the state of the display device 200 according to the detected parameters.
  • the rotating assembly 276 may include, but is not limited to, one or more of the aforementioned components.
  • the tuner and demodulator 210 which receives broadcast television signals through wired or wireless means, can perform modulation and demodulation processing such as amplification, mixing and resonance, and is used to demodulate the television selected by the user from multiple wireless or cable broadcast television signals
  • modulation and demodulation processing such as amplification, mixing and resonance
  • the audio and video signals carried in the frequency of the channel, as well as additional information (such as EPG data).
  • the tuner and demodulator 210 can be selected by the user and controlled by the controller 250 to respond to the frequency of the television channel selected by the user and the television signal carried by the frequency.
  • the tuner and demodulator 210 can receive signals in many ways according to different broadcasting formats of TV signals, such as terrestrial broadcasting, cable broadcasting, satellite broadcasting or Internet broadcasting; and according to different modulation types, it can be digital modulation or analog Modulation method; and according to different types of received TV signals, analog signals and digital signals can be demodulated.
  • different broadcasting formats of TV signals such as terrestrial broadcasting, cable broadcasting, satellite broadcasting or Internet broadcasting
  • modulation types it can be digital modulation or analog Modulation method
  • received TV signals, analog signals and digital signals can be demodulated.
  • the tuner demodulator 210 may also be in an external device, such as an external set-top box.
  • the set-top box outputs a TV signal after modulation and demodulation, and is input to the display device 200 through the external device interface 240.
  • the communicator 220 is a component used to communicate with external devices or external servers according to various types of communication protocols.
  • the display device 200 may transmit content data to an external device connected via the communicator 220, or browse and download content data from an external device connected via the communicator 220.
  • the communicator 220 may include a network communication protocol module such as a WIFI module 221, a Bluetooth communication protocol module 222, and a wired Ethernet communication protocol module 223 or a near field communication protocol module, so that the communicator 220 can receive the control device 100 according to the control of the controller 250 Control signals, and implement the control signals as WIFI signals, Bluetooth signals, radio frequency signals, etc.
  • the detector 230 is a component of the display device 200 for collecting signals from the external environment or interacting with the outside.
  • the detector 230 may include a sound collector 231, such as a microphone, which may be used to receive a user's voice, such as a voice signal of a control instruction for the user to control the display device 200; or, it may collect environmental sounds used to identify the type of environmental scene to realize display
  • the device 200 can adapt to environmental noise.
  • the detector 230 may also include an image collector 232, such as a camera, a camera, etc., which may be used to collect external environment scenes to adaptively change the display parameters of the display device 200; and to collect The attributes of the user or interactive gestures with the user to achieve the function of interaction between the display device and the user.
  • an image collector 232 such as a camera, a camera, etc., which may be used to collect external environment scenes to adaptively change the display parameters of the display device 200; and to collect The attributes of the user or interactive gestures with the user to achieve the function of interaction between the display device and the user.
  • the detector 230 may also include a light receiver, which is used to collect the ambient light intensity to adapt to changes in display parameters of the display device 200 and so on.
  • the detector 230 may also include a temperature sensor.
  • the display device 200 may adaptively adjust the display color temperature of the image. Exemplarily, when the temperature is relatively high, the color temperature of the display device 200 can be adjusted to be colder; when the temperature is relatively low, the color temperature of the display device 200 can be adjusted to be warmer.
  • the external device interface 240 is a component that provides the controller 250 to control data transmission between the display device 200 and external devices.
  • the external device interface 240 can be connected to external devices such as set-top boxes, game devices, notebook computers, etc. in a wired/wireless manner, and can receive external devices such as video signals (such as moving images), audio signals (such as music), and additional information (such as EPG). ) And other data.
  • the external device interface 240 may include: a high-definition multimedia interface (HDMI) terminal 241, a composite video blanking synchronization (CVBS) terminal 242, an analog or digital component terminal 243, a universal serial bus (USB) terminal 244, and a component (Component) Any one or more of terminals (not shown in the figure), red, green and blue (RGB) terminals (not shown in the figure), etc.
  • HDMI high-definition multimedia interface
  • CVBS composite video blanking synchronization
  • USB universal serial bus
  • Component Any one or more of terminals (not shown in the figure), red, green and blue (RGB) terminals (not shown in the figure), etc.
  • the controller 250 controls the work of the display device 200 and responds to user operations by running various software control programs (such as an operating system and various application programs) stored on the memory 260.
  • various software control programs such as an operating system and various application programs
  • the controller 250 includes a random access memory (RAM) 251, a read only memory (ROM) 252, a graphics processor 253, a CPU processor 254, a communication interface 255, and a communication bus 256.
  • RAM random access memory
  • ROM read only memory
  • CPU CPU processor
  • communication interface 255 a communication bus 256.
  • the RAM 251, the ROM 252, the graphics processor 253, and the CPU processor 254 communication interface 255 are connected via a communication bus 256.
  • ROM252 used to store various system startup instructions. For example, when the power-on signal is received, the power of the display device 200 starts to start, and the CPU processor 254 runs the system start-up instruction in the ROM 252 to copy the operating system stored in the memory 260 to the RAM 251 to start running the start-up operating system. After the operating system is started up, the CPU processor 254 copies various application programs in the memory 260 to the RAM 251, and then starts to run and start various application programs.
  • the graphics processor 253 is used to generate various graphics objects, such as icons, operation menus, and user input instructions to display graphics.
  • the graphics processor 253 may include an arithmetic unit, which is used to perform operations by receiving various interactive instructions input by the user, and then display various objects according to the display attributes; and a renderer, which is used to generate various objects obtained based on the arithmetic unit, and perform The rendered result is displayed on the display 275.
  • the CPU processor 254 is configured to execute operating system and application program instructions stored in the memory 260. And according to the received user input instructions, to execute various applications, data and content processing, so as to finally display and play various audio and video content.
  • the CPU processor 254 may include multiple processors.
  • the multiple processors may include a main processor and multiple or one sub-processors.
  • the main processor is configured to perform some initialization operations of the display device 200 in the display device preloading mode, and/or, to display screen operations in the normal mode. Multiple or one sub-processor, used to perform an operation in the standby mode of the display device.
  • the communication interface 255 may include the first interface to the nth interface. These interfaces may be network interfaces connected to external devices via a network.
  • the controller 250 may control the overall operation of the display device 200. For example, in response to receiving a user input command for selecting a GUI object displayed on the display 275, the controller 250 may perform an operation related to the object selected by the user input command.
  • the object can be any one of the selectable objects, such as a hyperlink or an icon.
  • the operation related to the selected object for example, the operation of displaying the page, document, image, etc. connected to the hyperlink, or the operation of executing the program corresponding to the object.
  • the user input command for selecting the GUI object may be a command input through various input devices (for example, a mouse, a keyboard, a touch pad, etc.) connected to the display device 200 or a voice command corresponding to a voice spoken by the user.
  • the memory 260 is used to store various types of data, software programs or application programs for driving and controlling the operation of the display device 200.
  • the memory 260 may include volatile and/or non-volatile memory.
  • the term “memory” includes the memory 260, the RAM 251 and ROM 252 of the controller 250, or the memory card in the display device 200.
  • the memory 260 is specifically used to store the operating program that drives the controller 250 in the display device 200; to store various application programs built in the display device 200 and downloaded from external devices by the user; and to store the configuration provided by the display 275 Data such as various GUIs, various objects related to the GUI, and visual effect images of the selector used to select GUI objects.
  • the memory 260 is specifically used to store drivers and related data of the tuner and demodulator 210, the communicator 220, the detector 230, the external device interface 240, the video processor 270, the display 275, the audio processor 280, etc.
  • external data such as audio and video data
  • user data such as key information, voice information, touch information, etc.
  • the memory 260 specifically stores software and/or programs for representing an operating system (OS). These software and/or programs may include, for example, a kernel, middleware, application programming interface (API), and/or application.
  • OS operating system
  • these software and/or programs may include, for example, a kernel, middleware, application programming interface (API), and/or application.
  • the kernel can control or manage system resources and functions implemented by other programs (such as the middleware, API, or application program); at the same time, the kernel can provide interfaces to allow middleware, API, or application program access control To control or manage system resources.
  • FIG. 4 exemplarily shows a block diagram of the architecture configuration of the operating system in the memory of the display device 200.
  • the operating system architecture consists of the application layer, the middleware layer, and the kernel layer from top to bottom.
  • Application layer system built-in applications and non-system-level applications belong to the application layer. Responsible for direct interaction with users.
  • the application layer can include multiple applications, such as settings applications, e-post applications, media center applications, and so on. These applications can be implemented as web applications, which are executed based on the WebKit engine, and specifically can be developed and executed based on HTML5, Cascading Style Sheets (CSS) and JavaScript.
  • CSS Cascading Style Sheets
  • HTML HyperText Markup Language
  • HyperText Markup Language Hyper Text Markup Language
  • Web pages are described through markup tags. HTML tags are used to describe text, graphics, animation, sounds, and tables. , Links, etc., the browser will read the HTML document, explain the content of the tags in the document, and display it in the form of a web page.
  • CSS the full name of Cascading Style Sheets (Cascading Style Sheets), is a computer language used to express the style of HTML files, and can be used to define style structures, such as fonts, colors, and positions. CSS styles can be directly stored in HTML web pages or in separate style files to achieve control over styles in web pages.
  • JavaScript is a language used in web page programming, which can be inserted into HTML pages and interpreted and executed by the browser.
  • the interaction logic of the web application is implemented through JavaScript.
  • JavaScript can encapsulate the JavaScript extension interface through the browser to realize the communication with the kernel layer,
  • the middleware layer can provide some standardized interfaces to support the operation of various environments and systems.
  • the middleware layer can be implemented as the Multimedia and Hypermedia Information Coding Expert Group (MHEG) of the middleware related to data broadcasting, and can also be implemented as the DLNA middleware of the middleware related to external device communication, and can also be implemented as providing Display the middleware of the browser environment in which each application in the device runs.
  • MHEG Multimedia and Hypermedia Information Coding Expert Group
  • the kernel layer provides core system services, such as file management, memory management, process management, network management, system security authority management and other services.
  • the kernel layer can be implemented as a kernel based on various operating systems, for example, a kernel based on the Linux operating system.
  • the kernel layer also provides communication between system software and hardware, and provides device driver services for various hardware, such as: providing display drivers for displays, camera drivers for cameras, button drivers for remote controls, and WIFI modules Provide WiFi driver, audio driver for audio output interface, power management driver for power management (PM) module, etc.
  • device driver services for various hardware, such as: providing display drivers for displays, camera drivers for cameras, button drivers for remote controls, and WIFI modules Provide WiFi driver, audio driver for audio output interface, power management driver for power management (PM) module, etc.
  • the user interface 265 receives various user interactions. Specifically, it is used to send the input signal of the user to the controller 250, or to transmit the output signal from the controller 250 to the user.
  • the remote control 100A may send input signals input by the user, such as a power switch signal, a channel selection signal, and a volume adjustment signal, to the user interface 265, and then the user interface 265 transfers to the controller 250; or the remote control 100A may Receive output signals such as audio, video, or data output from the user interface 265 after the controller 250 processes, and display the received output signal or output the received output signal as audio or vibration.
  • the user may input a user command on a graphical user interface (GUI) displayed on the display 275, and the user interface 265 receives the user input command through the GUI.
  • GUI graphical user interface
  • the user interface 265 may receive user input commands for controlling the position of the selector in the GUI to select different objects or items.
  • “user interface” is a medium interface for interaction and information exchange between application programs or operating systems and users, and it realizes the conversion between the internal form of information and the form acceptable to users.
  • the commonly used form of the user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of an electronic device.
  • the control can include icons, controls, menus, tabs, text boxes, dialog boxes, status bars, channel bars, Widgets, etc. Visual interface elements.
  • the user may input a user command by inputting a specific sound or gesture, and the user interface 265 recognizes the sound or gesture through the sensor to receive the user input command.
  • the video processor 270 is used to receive external video signals, and perform video data processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to the standard codec protocol of the input signal.
  • video data processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to the standard codec protocol of the input signal.
  • the video signal displayed or played directly on the display 275.
  • the video processor 270 includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, and the like.
  • the demultiplexing module is used to demultiplex the input audio and video data stream, such as the input MPEG-2 stream (based on the compression standard of digital storage media moving images and voice), then the demultiplexing module will demultiplex it Multiplexed into video signals and audio signals, etc.
  • the video decoding module is used to process the demultiplexed video signal, including decoding and scaling.
  • An image synthesis module such as an image synthesizer, is used to superimpose and mix the GUI signal generated by the graphics generator with the zoomed video image according to user input or itself to generate an image signal for display.
  • the frame rate conversion module is used to convert the frame rate of the input video, such as converting the frame rate of the input 60Hz video to a frame rate of 120Hz or 240Hz, and the usual format is realized by such as frame interpolation.
  • the display formatting module is used to change the signal output by the frame rate conversion module to a signal conforming to the display format such as a display, for example, format the signal output by the frame rate conversion module to output RGB data signals.
  • the display 275 is used to receive the image signal input from the video processor 270 to display video content, images, and a menu control interface.
  • the displayed video content can be from the video content in the broadcast signal received by the tuner and demodulator 210, or from the video content input by the communicator 220 or the external device interface 240.
  • the display 275 simultaneously displays a user manipulation interface UI generated in the display device 200 and used to control the display device 200.
  • the display 275 may include a display screen component for presenting a picture and a driving component for driving image display.
  • the display 275 may also include a projection device and a projection screen.
  • the controller can send a control signal to make the rotating component 276 rotate the display 255.
  • the audio processor 280 is used to receive external audio signals, and perform decompression and decoding according to the standard codec protocol of the input signal, as well as audio data processing such as noise reduction, digital-to-analog conversion, and amplification processing, so that it can be stored in the speaker 286 The audio signal to be played.
  • the audio processor 280 may support various audio formats. Such as MPEG-2, MPEG-4, Advanced Audio Coding (AAC), High Efficiency AAC (HE-AAC) and other formats.
  • AAC Advanced Audio Coding
  • HE-AAC High Efficiency AAC
  • the audio output interface 285 is used to receive the audio signal output by the audio processor 280 under the control of the controller 250.
  • the audio output interface 285 may include a speaker 286, or output to an external audio output terminal 287 of a generator of an external device, such as a headset Output terminal.
  • the video processor 270 may include one or more chips.
  • the audio processor 280 may also include one or more chips.
  • the video processor 270 and the audio processor 280 may be separate chips, or may be integrated with the controller 250 in one or more chips.
  • the power supply 290 is used to provide power supply support for the display device 200 with power input from an external power supply under the control of the controller 250.
  • the power supply 290 may be a built-in power supply circuit installed inside the display device 200, or may be a power supply installed outside the display device 200.
  • an instruction can be issued by the controller 250 to control the driving motor of the rotating assembly 276 to rotate a preset angle according to the direction indicated by the instruction, so as to drive the display 275 to rotate to the preset angle.
  • the rotation state may include a horizontal screen state and a vertical screen state, wherein the horizontal screen state means that the long side of the screen of the display 275 is parallel to the ground (or horizontal plane), and the short side is perpendicular to the ground (or horizontal plane), as shown in FIG. 5A As shown; the vertical screen state means that the short side of the screen of the display 275 is parallel to the ground (or horizontal plane), and the long side is perpendicular to the ground (or horizontal plane) as shown in FIG. 5B.
  • the horizontal screen state is more suitable for playing media assets with a horizontal screen ratio of 16:9, 4:3, etc., such as regular video resources such as movies and TV shows.
  • the vertical screen state is more suitable for playing media assets with a vertical screen ratio of 9:16, 3:4, etc., for example, short videos, comics, etc. shot through terminals such as mobile phones.
  • the horizontal screen state is mainly used to display horizontal media assets such as TV series and movies
  • the vertical screen state is mainly used to display vertical media assets such as short videos and comics
  • the above-mentioned horizontal screen state and vertical screen state are only two types. Different display states do not limit the displayed content. For example, vertical media assets such as short videos and comics can still be displayed in the horizontal screen state; horizontal media assets such as TV series and movies can still be displayed in the vertical screen state, but the inconsistent display window needs to be zoomed in this state. Adjustment.
  • Different rotation states correspond to different rotation angles of the rotating assembly 276.
  • the rotation angle of the rotating component 276 is defined as 0 degrees in the horizontal screen state of the display 275
  • the rotating angle of the rotating component 276 in the vertical screen state of the display 275 is 90 degrees (or -90 degrees).
  • the rotating component 276 can also drive the display 275 to rotate at any angle, for example, a 180-degree inverted screen state.
  • the display 275 needs to be automatically rotated to adapt to different forms of video resources. For example, when the display 275 is in the horizontal screen state, the user chooses to play vertical screen media assets such as short videos.
  • the operating system of the display device 200 can detect that the aspect ratio of the video resource is less than 1, and the current screen aspect ratio of the display 275 is greater than 1, that is, it is determined that the current rotation state does not match the video resource, thereby automatically sending control to the rotation component 276 Instruct it to drive the display 275 to rotate 90 degrees clockwise (or counterclockwise) to adjust the display 275 to the vertical screen state.
  • the display device 200 may also perform image quality processing on the video image through an image quality adjustment algorithm.
  • the image quality processing may include processing the image on each frame of the video picture, such as color correction, color adjustment, etc., and may also include processing the multi-frame data of the video picture, such as frame interpolation algorithm, motion compensation, etc.
  • image quality processing the image display quality can be further improved, so as to have a better viewing experience under the same equipment configuration and without increasing the size of the video source resource.
  • multiple display processing levels are configured in the system framework of the display device 200, such as a video layer (Video layer), an OSD layer (On-Screen Display layer), and so on.
  • the video layer refers to the display level used to present the play screen on the display device 200 after the user plays the media assets, and may also be referred to as the image quality layer of the display device 200.
  • the playback screen corresponding to the media assets can be displayed in the image quality layer.
  • the OSD layer refers to a display level used to provide interactive operations for users, and may also be referred to as a UI (User Interface) layer of the display device 200.
  • the video layer can perform image quality processing on the displayed image
  • the OSD layer can perform post-adjustment of the displayed image, such as rotation and zooming.
  • the OSD layer as the UI layer can also add various interactive controls to the display screen, such as controlling the homepage, so as to manually adjust the screen.
  • the rotating assembly 276 cannot quickly rotate the display 275 to a preset angle. Therefore, the user needs to wait for a certain period of time to be normal during the rotation of the display 275. Watch video resources. For example, it takes 10-30 seconds for the display 275 to rotate from the horizontal screen state to the vertical screen state. During this time, as the display 275 rotates, the image originally presented on the display 275 will be tilted until the display 275 is completely rotated to After the vertical screen state (or after rotating to a preset angle), the display screen can be adjusted to rotate and fill the screen. It can be seen that during this period, the user needs to watch the tilted picture for a long time, which seriously affects the user experience.
  • the present application can rotate the display screen while rotating the display 275, so that the display screen is in a positive state, so that the user can view the display screen normally during the process of rotating the display 275.
  • the adjustment of the picture includes the rotation of the display picture and the adjustment of the picture quality of the display picture.
  • the image quality processing and the rotation adjustment for the rotation process cannot be performed at the same time, so that the rotating TV has to abandon the image quality processing of the display screen during the rotation process and only performs the rotation adjustment.
  • the display device 200 when playing a video, if you want to achieve dynamic arbitrary angle rotation of the video, you can use the setRotation API of the view to set the angle information in real time to achieve the rotation effect.
  • the display device 200 can only perform image rotation when the video is output using the OSD layer, and cannot perform image rotation when the video is output using the video layer.
  • the video should be output using the video layer and processed for image quality. It can be seen that the existing display device 200 of the Android system cannot realize a video display mode that can perform image quality processing and can rotate at any angle.
  • this application provides a video screen rotation method, as shown in Figures 6 and 7.
  • the video screen rotation method provided by this application includes the following steps :
  • the video picture to be displayed refers to the picture being played by the display device 200 when the user manipulates the display 275 to rotate.
  • the current display 275 is in a horizontal screen state, and the user performs an interactive operation by controlling the device 100 to open a short video application and play any short video in a vertical screen state.
  • the controller 250 detects that the currently played short video picture is in the vertical state, it automatically controls the rotation component 276 to rotate, thereby rotating the display 275 to the vertical state. Since it takes 10-30s to adjust the display 275 from the horizontal screen state to the vertical screen state, the short video content corresponding to the 10-30s time is the video image to be displayed.
  • the video screen to be displayed is not limited to the played video screen itself, but also includes the UI interface provided by the operating system at this time, such as the operation homepage, the playback interface with operation controls, and so on.
  • the controller 250 may extract the currently displayed picture by executing the operating program, that is, obtain each frame of the video one by one to obtain the to-be-displayed video picture.
  • the display device 200 can also select a normal frame rate or a high frame rate acquisition frequency mode according to its own hardware configuration level. For example, for the display device 200 with a higher computing performance of the controller 250, the acquisition frequency can be obtained at a frame rate of 60 Hz or higher. However, for the display device 200 with low computing performance of the controller 250, an acquisition frequency of 30 Hz or lower can be used, but it is necessary to ensure that the display screen can still meet the basic fluency requirements after subsequent processing.
  • S2 Perform image quality processing on the to-be-displayed video picture through the video layer.
  • the controller 250 After the controller 250 acquires the to-be-displayed video image, it needs to first perform image quality processing on the to-be-displayed video image in the video layer, so as to improve the display effect of the image.
  • the image quality processing may include processing for multi-frame images and processing for single-frame images. Among them, processing for multi-frame images can improve the dynamic effect of the video picture. For example, for video content that requires motion compensation, after acquiring the video image to be displayed, the built-in motion compensation algorithm program in the operating system can be run, and the built-in motion compensation hardware of the display device 200 can be invoked, which can be used between multiple frames of the motion video. Insert motion compensation frames to increase the display frame rate of the motion video screen and achieve the effect of motion compensation.
  • the processing of a single frame image can provide the image quality of the video image to be displayed, such as color, clarity, and resolution. For example, after acquiring the video image to be displayed, each frame of the image can be extracted separately, and then by reading the color value of each pixel on each frame of The color value of the frame image is adjusted to optimize the color according to the use scene of the screen.
  • the controller 250 may call related services to perform image interception on the output image after the image quality processing, thereby generating an intermediate image. Therefore, the intermediate image is video frame data obtained by intercepting the output image after the image quality processing of the to-be-displayed video image is output.
  • the effect of adjusting the image quality of the display screen can be retained through the interception method, and the image display quality can be improved.
  • the controller 250 can capture the output image frame by frame after the image quality processing, that is, the frame rate of the video image after the image quality processing is equal to the image capture frequency, and it is specific to each output image. Take screenshots for every frame.
  • the frame rate of the video image to be displayed is 60 Hz
  • the intercepting frequency of the controller 250 is also 60 Hz, that is, 60 frames of images are intercepted per second.
  • Such an image interception method can not only maintain the image quality of the output image of the video layer, but also maintain the smoothness of the video image to be displayed after the image quality processing.
  • the interception frequency can be reduced to 30Hz, that is, an interception is performed every frame, 30 frames of images are intercepted per second, and the corresponding video frame rate of the intermediate image output after interception becomes 30Hz.
  • the frequency of intercepting the display screen can also be adjusted according to actual application scenarios. For example, when the display device 200 plays media assets that require motion compensation such as action movies, live sports events, etc., the interception frequency of the video screen can be increased, so that the video to be displayed will not have obvious frame drop or freeze; and when the display device 200 performs static image presentations or plays ordinary short videos and other media assets that do not require motion compensation, the frequency of capturing video images can be appropriately reduced to reduce the load on the controller 250.
  • the displayed picture can be rotated at the same time during the rotation of the display 275.
  • the display 275 needs to rotate counterclockwise from the horizontal screen state to the vertical screen state within 15s; the display screen can be rotated clockwise through the OSD layer service within 15s to keep the screen displayed on the display 275 always positive Towards.
  • the process of rotating the intermediate image can be determined according to the rotation instruction input by the user, or according to the current angle of the display 275.
  • the rotation instruction refers to an instruction used to control the rotation of the rotating component, and may include a trigger signal and a designated rotation angle.
  • the controller can calculate the rotation angle of the display 275 per unit time according to the time it takes for the display 275 to rotate to the specified state, so as to synchronize the rotation service set to the OSD layer, so that the service can rotate according to the rotation angle per unit time And the current time to determine the amount of angle that needs to be rotated on the display screen.
  • the display 275 As the display 275 rotates, as the rotation progresses, the display 275 will be at a different angle, so the display screen during the rotation process needs to be rotated by an angle corresponding to the rotation angle of the display 275 to ensure that the screen stays in Positive. For example, when the display 275 rotates clockwise to 30 degrees, the display 275 is in a tilted state, and the display screen needs to be rotated 30 degrees counterclockwise to ensure that the display screen is positive.
  • a video stream can be formed according to the generated rotated image.
  • the formed video stream can be displayed on the display 275. Since the displayed image is rotated, it can adapt to the rotation process of the display 275 during display, so that during the rotation of the display 275, the display screen is always displayed in the forward direction to avoid affecting the user's viewing effect.
  • the rotated image is the image after the image quality processing is intercepted by the screen, so the displayed video image also obtains the effect after the image quality processing, that is, it is realized that the display image is rotated and adjusted during the rotation of the display 275.
  • the image quality of the display screen has been processed.
  • the step of obtaining a to-be-displayed video picture the method further includes:
  • S103 Invoke the player to decode the to-be-displayed video image, and send the decoded, to-be-displayed video image to the video layer service.
  • a service that implements the video screen rotation method of this application can be created as the system starts up.
  • the created service will be kept in the memory after the system is started up to monitor the video playback status.
  • the created service can be called to execute the corresponding video screen rotation method.
  • a video layer service surface view
  • a player can be created upon startup, and the handle of the video layer service can be sent to the player so that it can be called when the video is played.
  • the player first performs operations such as demultiplexing and decoding of the video image to be displayed, and sends the decoded video image to the video layer service by calling the handle of the video layer service.
  • the step of generating an intermediate image includes:
  • S303 Invoke the interception service to intercept the output image, and obtain the intermediate image.
  • the interception service is used to intercept the video frame data.
  • the interception service can also be created when the system is started and initialized, and when the display screen needs to be rotated, the service is called to intercept the video layer data in real time and send it to the OSD layer for display .
  • the to-be-displayed video screen that has undergone image quality processing may form an output image, that is, the output image is image data obtained after the image-quality processing of the to-be-displayed video screen is processed.
  • the output image may have a different frame rate and/or different image effects from the original image to be displayed.
  • the created interception service can be invoked, and the image quality processed output image can be obtained in the video layer.
  • the interception service can intercept frame by frame or interval frame interception to obtain intermediate images.
  • the step of rotating the intermediate image through the OSD layer to generate a rotated image further includes:
  • the controller 250 can determine the current display rotation information by reading the angle sensor provided on the rotation component 276 or the gravity acceleration sensor built in the display 275.
  • the display rotation information includes the display rotation direction and the display rotation angle.
  • the rotation direction of the display can be obtained from the rotation instruction.
  • the rotation instruction specifies that the display 275 rotates from the horizontal screen state to the vertical screen state, and the display rotation direction in the display rotation information is counterclockwise.
  • the rotation angle of the display can be obtained from a value detected by an angle sensor or a gravity acceleration sensor. In practical applications, the rotation angle of the display refers to an angle value relative to the horizontal screen state (0 degree state).
  • the controller 250 may set the rotation mode of the screen according to the display rotation information, that is, set the screen rotation direction and the screen rotation angle.
  • the screen rotation direction is opposite to the display rotation direction
  • the screen rotation angle is equal to the display rotation angle. For example, if it is determined by the display rotation information that the current display 275 is rotated counterclockwise by 35 degrees, then the screen rotation direction is set to clockwise and the screen rotation angle is set to 35 degrees.
  • the controller 250 rotates the intermediate image according to the screen rotation direction and the screen rotation angle. For example, keep the intermediate image rotated by 35 degrees clockwise.
  • the method further includes:
  • the rotation service is used to rotate the display screen.
  • the rotation service is based on the OSD layer, and it can also be automatically created when the display device 200 is turned on, and called and executed after the rotation instruction is obtained.
  • the rotation instruction is used to drive the rotation assembly 276 to drive the display 275 to rotate, so that the display 275 is in one of a variety of rotation states.
  • the rotation service after the rotation service is created, the rotation instruction input by the user may be obtained, and after the rotation instruction input by the user is obtained, the rotation service may be invoked to obtain display rotation information.
  • the rotation service can be kept in an inactive state to avoid occupying the memory space of the display device 200.
  • the step of obtaining display rotation information includes:
  • S412 Obtain the current rotation angle of the display through the angle callback interface, and generate the display rotation information.
  • the rotation component 276 is provided with an angle callback interface.
  • the angle callback interface is a unified standard interface set by the operating system to adapt to the display rotation process, and is used to obtain the rotation angle of the rotating component 276 in real time.
  • the angle callback interface can detect the angle rotated by the rotating component 276 in real time through an angle sensor, so as to determine the corresponding posture at any time during the rotation of the display 275.
  • the current rotation angle of the display 275 can be determined, and combined with the display rotation direction specified in the rotation instruction, the display rotation information can be generated.
  • the method further includes: locating the current boundary position of the display 275 according to the display rotation information; The rotated image is cropped; or, the rotated image is scaled according to the current boundary position.
  • the boundary position of the display 275 will also change, and if the display screen is in the forward display state, the tilted display 275 will not be able to display the forward screen normally. For example, as shown in Figure 13, areas that cannot be displayed appear in the upper right and lower left corners of the screen, while blank areas appear in other edge positions.
  • the position of the border of the display 275 at the current time can be determined according to the display rotation information, and then the rotated image is cropped according to the current border position and the blank area is filled, for example, according to the display 275 screen border position, cut the upper right corner and lower left corner of the screen to be able to maintain the current state to complete the display of the screen; and also fill the other edge positions of the screen with a solid color background to improve the display quality.
  • the rotated image can also be scaled according to the current boundary position, that is, the rotated image can be scaled according to the maximum forward image display area that the screen of the display 275 in the current tilt state can accommodate. Since the tilt state of the screen of the display 275 is constantly changing during the rotation process, the maximum positive image area that can be accommodated is also constantly changing. Therefore, the rotated image can be gradually scaled according to the rotation process to achieve a smooth transition display effect.
  • the step of scaling the rotated image according to the current boundary position includes:
  • S441 According to the display rotation information, locate the current display window position and the target display window position;
  • the current display window position and the target display window position refer to the position of the screen display window before and after the rotation of the display 275 corresponding to the rotation state of the display 275.
  • the screen position corresponding to the displayed video in the horizontal screen state is the current display window position; and the display 275 correspondingly displays the played video in the vertical screen state after rotation
  • the screen position of is the target window position.
  • the screen position corresponding to the displayed video in the vertical screen state is the current display window position; and the display 275 corresponds to the horizontal screen state after rotation.
  • the screen position of the playing video is the target window position.
  • the display screen in order to ensure that the display screen is always able to fill the display area of the display 275 during the rotation of the display 275, and to ensure the quality of the display screen, the display screen can be rotated at the same time. Perform equal scaling.
  • the target display window position can be determined according to the rotation angle and the screen size characteristics of the display 275. For example, if it is necessary to switch from the horizontal screen state to the vertical screen state, the extracted rotation angle is 90 degrees counterclockwise, so as to determine that the predetermined target window position is the position corresponding to the playback area in the vertical screen state.
  • the width and height deformation amount of the display window can be determined by comparing the target display window position with the current display window position.
  • the size of a 65-inch monitor is 1440 ⁇ 810 (mm)
  • the height of the display screen is less than or equal to the height of the monitor 275, that is, less than or equal to 810mm, while in the portrait mode
  • the amount of width deformation can be calculated according to the aspect ratio of the vertical media assets.
  • the width and height zoom amount per unit time can be calculated according to the width and height deformation amount and the rotation speed of the rotating component 276, that is, the zoom step size is generated.
  • the width and height values of the display screen window can be adjusted at the same time according to the zoom step. Therefore, when the display 275 rotates to the target state, the display screen just fills the display area of the display 275, which improves the user experience.
  • the controller 250 may also be configured as the following program steps: locate the zoom base point coordinates in the current display window; and The zoom base point coordinates are used as a reference, and the width and height values of the display screen window are synchronously adjusted according to the zoom step length.
  • the zoom base point can be positioned according to the shape and adjustment mode of the display window.
  • the center point of the display window can be selected as the zoom base point, so that the position of the base point is fixed before and after the display screen is rotated.
  • One of the four vertices of the window boundary can also be used as the zoom base point, such as the upper left vertex.
  • the present application provides a method for rotating a video image, which can perform image quality processing on the video layer after acquiring the video image to be displayed.
  • the intermediate image is obtained by intercepting the output image after the image quality processing, and the intermediate image is rotated through the OSD layer to generate the rotated image.
  • the rotating image is displayed frame by frame to realize the dynamic rotation of the video image at any angle during the video playback process, and at the same time, the corresponding image quality processing is performed on the video image to improve the image display effect.
  • the present application also provides a display device, including: a display 275, a rotation component 276, and a controller 250.
  • the display 275 and the rotating component 276 both establish a data connection relationship with the controller 250, so as to control the display process of the display 275 and the rotating process of the rotating component 276 through the controller 250, respectively.
  • the rotating component 276 is also configured to drive the display 275 to rotate, so that the display 275 is in one of a variety of rotating states.
  • controller 250 is configured to execute the following program steps:
  • S2 Perform image quality processing on the to-be-displayed video picture through the video layer
  • S5 Control the display to display the rotated image frame by frame.
  • the controller 250 can be configured to: the application creates an interception service, which is used to intercept frame data from the video layer in real time and transmit the data to the OSD layer; and then the application creates a surfaceview (video layer) service and plays And send the handle of the surfaceview to the player; and create a surface service for OSD layer output.
  • the controller 250 is also called by the application player to perform demultiplexing, decoding, and other operations, and the decoded data is sent to the video layer; the data is processed through the video layer for image quality; and the interception service is executed to intercept the video layer data in real time. And send it to the OSD layer for display; and the application sets the rotation angle information to the OSD layer through the service to realize the video rotation and display.
  • the present application also provides a display device 200, which includes a display 275, a rotating component 276, and a controller 250.
  • the controller 250 can control the rotation of the rotating assembly 276 to drive the display 275 to rotate by a preset angle.
  • the controller 250 can intercept the frame data that has completed the image quality processing from the video layer to the OSD layer for rotation processing, so that it can perform image quality processing on the to-be-displayed video image and rotate the video at any angle.
  • FIG. 15A is a schematic diagram of the horizontal screen state of the display device in FIG. 1 provided by some embodiments of this application.
  • the operation mode when the display 275 is in the horizontal screen state may be referred to as the horizontal screen media viewing mode
  • the operation mode when the display 275 is in the vertical screen state may be referred to as the vertical screen media viewing mode.
  • the display 275 in the display device 200 and the controller 250 in the display device 200 is further communicatively connected with the server 300 for calling the interface of the server 300 to obtain corresponding data.
  • the display 275 in the display device 200 can be driven to rotate by the rotating component 276 and used to display a user interface. In practical applications, the user can control the play mode, play content, etc. of the display device 200 through the control device 100, where the play mode includes a horizontal screen media viewing mode and a vertical screen media viewing mode.
  • the display device 200 includes a rotating component 276 that can fix the display device 200, and can control the rotation of the display 275 under the control of the controller 250 so that the display 275 is in a landscape state or Portrait state.
  • the rotating component 276 can be fixed on the back of the display 275.
  • the rotating component 276 is used for fixing to the wall, and the rotating component 276 receives the control command of the controller 250 to rotate the display 275 in a vertical plane, so that the display 275 is in the vertical plane.
  • the horizontal screen state refers to a state in which the length (width) in the horizontal direction of the display 275 is greater than the length (height) in the vertical direction when viewed from the front of the display 275; the vertical screen state refers to, When viewed from the front of the display 275, the length (width) of the display 275 in the horizontal direction is smaller than the length (height) in the vertical direction.
  • the vertical direction in this application refers to substantially vertical
  • the horizontal direction also refers to substantially horizontal.
  • the display 275 can be rotated 90 degrees clockwise or counterclockwise, so that the display 275 is in a vertical screen state, as shown in FIG. 15B.
  • the display In the vertical screen state, the display can display the user interface corresponding to the vertical screen state, and has the interface layout and interaction mode corresponding to the vertical screen state.
  • the vertical screen media asset viewing mode users can watch short videos, comics and other vertical screen media assets.
  • the controller 250 in the display device 200 is further in communication with the server 300, it is possible to obtain the media asset data corresponding to the vertical screen by calling the interface of the server 300 in the vertical screen state.
  • the vertical screen state is more suitable for playing media assets with a vertical screen ratio of 9:16, for example, short videos shot through terminals such as mobile phones. Since terminal devices such as mobile phones mostly adopt vertical screen ratios such as 9:16 and 9:18, when the terminal is connected to the display device 200 and the terminal screen is displayed through the display device 200, the vertical screen state can avoid the transitional scaling of the screen. Make full use of the display screen of the display 275 to have a better user experience.
  • the horizontal screen state is mainly used to display horizontal media assets such as TV series and movies
  • the vertical screen state is mainly used to display vertical media assets such as short videos and comics.
  • the above-mentioned horizontal screen state and vertical screen state are just two different display states, and do not limit the displayed content.
  • vertical media assets such as short videos and comics can still be displayed in the horizontal screen state
  • Horizontal media assets such as TV series and movies can still be displayed, but the inconsistent display windows need to be compressed and adjusted in this state.
  • the display device 200 can provide the user with a display screen through the display 275, and can provide multiple display levels, such as an image quality layer, a UI layer, and so on.
  • the image quality layer refers to the display level used to present the play screen on the display device 200 after the user plays the media assets, and may also be referred to as the Video layer of the display device 200.
  • the playback screen corresponding to the media assets can be displayed in the image quality layer.
  • the UI layer User Interface
  • the UI layer refers to a display level for providing interactive operations for users, and may also be referred to as an OSD (On-Screen Display) layer of the display device 200.
  • the UI layer can display various interactive controls, such as controlling the homepage.
  • the home page mode presented on the display 275 is also different.
  • the display device 200 detects that the current display 275 is in a landscape state when the display device 200 is started. Then the controller 250 requests to call the interface of the server 300, and sends a request for acquiring the horizontal screen homepage data to the server 300.
  • the server 300 responds to the acquisition request, and delivers the horizontal screen homepage data to the controller 250.
  • the controller 250 recognizes the horizontal homepage data, and controls the display 275 to display the horizontal homepage based on the horizontal homepage data.
  • the rotating component 276 is controlled to rotate so that the display 275 is converted from the current vertical screen state to the horizontal screen state, and the interface of the server 300 is requested to be called ,
  • the server 300 responds to the acquisition request, and delivers the horizontal screen homepage data to the controller 250.
  • the controller 250 recognizes the horizontal homepage data, and controls the display 275 to display the horizontal homepage based on the horizontal homepage data.
  • the horizontal screen state and the vertical screen state of the display 275 can be adjusted by rotating the component 276. That is, the display 275 can be rotated according to user needs, and the user can send an operation instruction to trigger rotation to the controller 250 according to viewing needs, and the controller 250 receives and responds to the operation instruction sent by the user to trigger rotation to switch the rotation state of the display 275 ,
  • the rotation state can include the horizontal screen state or the vertical screen state, the horizontal screen state corresponds to the horizontal screen media asset viewing mode, and the vertical screen state corresponds to the vertical screen media asset viewing mode.
  • the controller 250 of the display device 200 can determine whether the display 275 needs to be rotated by detecting the aspect ratio displayed in the display 275. For example, if the user plays a short video, comics and other vertical media assets in the horizontal screen state, the controller 250 can detect that the vertical media assets do not match the current horizontal screen state, and automatically control the rotating component 276 to Rotate the display 275 by 90 degrees to adjust to the portrait state.
  • the display 275 needs to be rotated 90 degrees clockwise from the horizontal screen state to the vertical screen state, and the rotation process takes 15s in total. In 15s, the picture in the display 275 will continue to tilt with the rotation of the display 275 until the display 275 rotates to After the vertical screen state, turn the screen 90 degrees counterclockwise to display the vertical screen.
  • the present application can synchronize the rotation of the display screen at the image quality layer, so that the screen displayed on the display 275 is always positive during the rotation process.
  • the image quality layer is a display level in the operating system corresponding to the display device 200. Different from the UI layer, the image quality layer can easily adjust the image quality, zoom ratio, and direction of the screen. Generally, the playback screen corresponding to the media assets is displayed in the image quality layer. Therefore, synchronous rotation at the image quality layer can adjust all media assets without considering the source of the video resources.
  • the display 276 needs to be rotated to adapt to the inconsistent media asset image.
  • the specific processing is as follows:
  • video resources include local, DLNA (Digital Living Network Alliance, Digital Living Network Alliance) push, DMS (Database Management System, database management system) sharing and other sources of video resources.
  • DLNA Digital Living Network Alliance, Digital Living Network Alliance
  • DMS Database Management System, database management system
  • the homepage for the user to operate can also include two forms of horizontal screen homepage and vertical screen homepage, and in different homepage modes, the content that can be presented can also be different.
  • the homepage in the horizontal homepage mode, can present more types of horizontal media assets or links such as movies and TV series for users to directly select and play.
  • Vertical media assets can be classified into one or more controls, such as the "short video" application icon. Users need to click on the corresponding controls before they can select vertical media assets or links to play.
  • the controller 250 decodes the video resource and converts it into a video image for display on the display 275. While controlling the display 275 to display the video picture, the controller 250 can also detect the display aspect ratio of the picture and the rotation state of the display 275 to determine whether the currently displayed picture aspect ratio is compatible with the current rotation state of the display 275.
  • the aspect ratio of the currently displayed screen is adapted to the current rotation state of the display 275, and no rotation adjustment is required; if the currently displayed screen is Vertical media resources, but the display 275 is in a landscape state, the aspect ratio of the currently displayed picture is not suitable for the current rotation state of the display 275, and rotation adjustment is required.
  • the controller 250 triggers the rotation of the rotation component 276 to adjust the rotation state of the display 275; at the same time, the displayed image can be rotated in the opposite direction in the image quality layer, so that the displayed image can be displayed on the display.
  • the controller 250 triggers the rotation of the rotation component 276 to adjust the rotation state of the display 275; at the same time, the displayed image can be rotated in the opposite direction in the image quality layer, so that the displayed image can be displayed on the display.
  • the controller 250 triggers the rotation of the rotation component 276 to adjust the rotation state of the display 275; at the same time, the displayed image can be rotated in the opposite direction in the image quality layer, so that the displayed image can be displayed on the display.
  • the controller 250 triggers the rotation of the rotation component 276 to adjust the rotation state of the display 275; at the same time, the displayed image can be rotated in the opposite direction in the image quality layer, so that the displayed image can be displayed on the display.
  • the controller 250 triggers the rotation of the rotation component 276 to
  • the controller 250 sends an instruction to control the rotation of the rotation component 276 on the one hand, so that the rotation component 276 can drive the display 275 to rotate clockwise. 90 degrees, adjust the rotation state of the display 275 to the vertical screen state.
  • the current display screen can be adjusted in the image quality layer, and the current display screen can be rotated and/or zoomed so that the current display screen can be smoothly rotated 90 degrees counterclockwise. Since the clockwise rotation of the display screen during the rotation process can offset the tilt caused by the counterclockwise rotation of the display 275, the display screen always remains in the state of positive display.
  • FIG. 16 it is a schematic flowchart of a method for adapting a display screen rotation according to this application.
  • the controller 250 described in this application is further configured to execute the following program steps:
  • S161 In response to the video media resource playing action of the display device, detect the current rotation state of the display.
  • the user selects a media asset on the control homepage and plays it, that is, a video media asset playing action is generated in the display device 200. For example, after a user opens a short video application through "Featured-My Application-Short Video", he selects one of multiple short video resource icons to play.
  • the controller 250 can determine the current rotation state of the display 275 through the angle sensor on the rotation component 276 or the gravity acceleration sensor on the display 275. For example, by analyzing the data measured by the gravity acceleration sensor, it can be determined that the current gravity direction of the display 275 is perpendicular to the long side, and then it is determined that the display 275 is currently in a landscape state.
  • the controller 250 may determine the display aspect ratio corresponding to the video media resource in the file description information of the video media resource. For example, if the played video media resource is a short video, and its display screen ratio is 9:16, it is determined that the current short video is a vertical media resource. If the rotation state of the display 275 at this time is also the vertical screen state, that is, the screen ratio of the video media resource matches the current rotation state, at this time, it is sufficient to directly control the display to display the screen corresponding to the video media resource.
  • the rotation can be controlled.
  • the component 276 rotates the display 275 to the portrait state to adapt to the display aspect ratio corresponding to the short video being played.
  • the aspect ratio and the rotation state match between the aspect ratio of the video media resource being played is the same as or similar to the aspect ratio of the display 275 screen.
  • the width of the screen is larger than the height, that is, the aspect ratio of horizontal media assets is usually greater than 1.
  • the width of the screen is larger than the height, that is, the aspect ratio of horizontal media assets is usually greater than 1.
  • the width of the screen is less than the height, that is, the aspect ratio of the vertical media is less than 1.
  • the aspect ratio of the display 275 in the portrait mode is also less than 1.
  • the aspect ratio of the video media resource and the aspect ratio of the display 275 are both greater than 1 or less than 1, it is determined that the aspect ratio of the video media resource matches the current rotation state. That is, the screen ratio of the horizontal media asset matches the horizontal screen state; the screen ratio of the vertical media asset matches the vertical screen state.
  • the aspect ratio of the video media resource and the aspect ratio of the display 275 are not both greater than 1 or less than 1 at the same time, it is determined that the aspect ratio of the video media resource does not match the current rotation state. For example, the screen ratio of the vertical media asset does not match the horizontal screen state; the screen ratio of the horizontal media asset does not match the vertical screen state.
  • the controller 250 may obtain it from the description information of the resource after the user selects to play a certain resource.
  • the aspect ratio is specified in the file description. For example, if the file description information is 4096 ⁇ 2160, the aspect ratio is determined to be 4096:2160>1. It is also possible to determine the aspect ratio of the display screen by querying the effective pixels occupied by the width and height of the displayed image. For example, outside of the pixels occupied by the black insertion area, the effective pixels occupied by the display screen are 720 and 1280 pixels in width and height, respectively, and the aspect ratio is 720:1280 ⁇ 1.
  • controller 250 is further configured to execute the following program steps:
  • the controller 250 may display the rotary switch of the device 200 for detection, and determine whether the rotary component 276 is in an on state.
  • the on-off state of the rotating component 276 can refer to the on-off state of the hardware, that is, whether the control circuit of the rotating component 276 is powered on; it can also refer to the on-off state of the software, that is, the corresponding control of the rotating component 276 in the operating system.
  • the program is active.
  • the controller 250 may further detect the aspect ratio of the display screen corresponding to the current video media resource and the rotation state of the current display, so as to determine whether the display 275 and the display screen need to be rotated according to the detection result.
  • the aspect ratio of the display screen refers to the ratio between the width and the height of the edge of the display screen.
  • the edge of the displayed picture here refers to the edge of the effective display picture, such as the edge of a video or an image, and does not include the black area filled in to adapt to the picture.
  • the current display screen is a vertical media resource
  • the screen width is 360 pixels
  • the screen height is 640 pixels
  • the corresponding aspect ratio is 360: 640
  • the display resolution is 3840 ⁇ 2160, that is, the aspect ratio of the screen display area is 3840:2160, it is determined that the aspect ratio of the currently displayed picture is inconsistent with the rotation state of the current display.
  • the aspect ratio of the display picture can be classified according to the specific ratio. If the aspect ratio of the displayed screen is greater than 1, that is, the width of the screen is greater than the height, then the video resource is horizontal media; similarly, if the aspect ratio of the displayed screen is less than 1, that is, the width of the screen is less than the height, then the video resource is vertical. To media resources.
  • the determination of whether the aspect ratio of the current display screen is compatible with the rotation state of the current display can be determined by the aspect ratio of the display screen. If the aspect ratio is greater than 1, it means that the video is a wider video. At this time, if the display 275 is in a landscape state, it is not necessary to drive the display 275 to rotate. If the display 275 is in a portrait state, it is necessary to rotate the display 275 to landscape; if The aspect ratio is less than 1, indicating that the video is a higher video. If the display 275 is in a landscape state, the display 275 needs to be rotated, and if the display 275 is in a portrait state, it is not necessary to drive the display 275 to rotate.
  • controller 250 is further configured to:
  • a setting screen that is, a UI interface corresponding to “settings”, is displayed on the display 275 for the user to turn on the rotating component 276.
  • the applications installed on the display device 200 can include three types. One is the applications that only support the horizontal screen state, such as cloud audio-visual, small TV, iQiyi and other movies and TV apps.
  • controller 250 is further configured to execute the following program steps:
  • S181 Receive a rotation instruction input by the user for rotating the display.
  • the rotation instruction refers to an instruction used to trigger a rotation operation, which may be initiated by the user actively, or may be automatically initiated by the controller 250 by judging the current display state. It should be noted that the rotation command is intended to trigger a rotation operation, and there may not be a corresponding command in actual applications. For example, the controller 250 judges that the currently playing screen is a vertical media resource, and the current display 275 is in a horizontal screen state. When, the rotation operation can be triggered automatically without generating an additional rotation instruction. Therefore, for those skilled in the art, whether or not to trigger the rotation operation is within the protection scope of the present application.
  • the user can perform different operations to generate a control instruction that triggers the rotation component 276 to rotate.
  • the operation performed by the user can be displayed directly on the UI interface in the form of a control, or it can be displayed dynamically on the UI interface. That is, the controller 250 can adjust the display of the controls on the UI interface in real time by detecting the aspect ratio of the played video and the current rotation state of the display 275.
  • the controller 250 detects that the aspect ratio of the played video is a vertical media resource, which is inconsistent with the current horizontal screen state of the display 275, and then it is displayed in the UI interface The following prompt text and controls are displayed such as "It is detected that the current video resource is more suitable for viewing in portrait mode, whether to automatically switch to portrait mode", "Yes/No".
  • the controller 250 selects “Yes”, the corresponding user input is generated and sent to the controller 250.
  • the controller 250 needs to analyze the user's input to determine the rotation strategy of the display 275. For example, when the user wants to adjust the display 275 from the landscape state to the portrait state, the rotation instruction can control the rotation component 276 to rotate 90 degrees clockwise; when the user wants to adjust the display 275 from the portrait state to the landscape state , The rotation command can control the rotation component 276 to rotate 90 degrees counterclockwise.
  • the controller 250 is further configured to:
  • the controller 250 may determine and control the rotation of the display 275 according to the current rotation state and the aspect ratio of the video media resource. For example, when the current rotation state of the display 275 is the horizontal screen state and the aspect ratio of the video media resource is vertical, it can be specified that the display 275 needs to be rotated to the vertical screen state, that is, an instruction to rotate the display 275 clockwise by 90 degrees.
  • the controller 250 can rotate the displayed picture and the display 275 at the same time, so that the display picture is always maintained in a forward state, so the rotation parameters include the display picture zoom ratio and/or the rotation angle.
  • the controller 250 needs to adjust the display image. For example, when the display 275 rotates 90 degrees clockwise, it controls the display image to rotate 90 degrees counterclockwise, and keeps the display 275 running in synchronization with the rotation process of the display image, so as to achieve a positive display at all times.
  • the purpose of the screen is adjusting the display image.
  • the display screen is adjusted at the image quality layer, that is, only the video playback screen is adjusted, so the flexibility and efficiency of adjustment will be greatly increased.
  • the adjustment on the image quality layer The adjustment of the display screen is not restricted by the source of the video resource file being played. It can adjust the video file in the local disk, and can also adjust the video file pushed to the display device 200 by DLNA, and share it with DMS Adjust the output video file.
  • the adjustment on the image quality layer can also further adjust the display screen without affecting the UI layer screen.
  • the controller 250 can also perform more detailed adjustments to the display screen, including rotation operations, zoom operations, and so on.
  • the rotation operation is an adjustment made to adapt to the rotation of the display 275
  • the zoom operation is an adjustment made to adapt to the change in width and height of the display 275 during the rotation.
  • the rotation operation and the zoom operation can be performed at the same time, or the rotation operation can be performed first, and then the zoom operation can be performed.
  • the controller 250 is further configured to perform the following steps:
  • S194 Generate a zoom step length, where the zoom step length is a width and height zoom amount per unit time calculated according to the width and height deformation amount and the rotation speed of the rotating component;
  • the current display window position and the target display window position refer to the position of the screen display window before and after the rotation of the display 275 corresponding to the rotation state of the display 275.
  • the corresponding image quality layer displays the picture position of the playing video is the current display window position; and the display 275 corresponds to the vertical screen state after rotation
  • the image quality layer shows the screen position of the playing video as the target window position.
  • the corresponding image quality layer displays the picture position of the playing video is the current display window position; and the display 275 is in the horizontal screen state after rotation
  • the corresponding image quality layer below shows the screen position of the playing video is the target window position.
  • the display screen in order to ensure that the display screen is always able to fill the display area of the display 275 during the rotation of the display 275, and to ensure the quality of the display screen, the display screen can be rotated at the same time. Perform equal scaling.
  • the target display window position can be determined according to the rotation angle and the screen size characteristics of the display 275. For example, if it is necessary to switch from the horizontal screen state to the vertical screen state, the extracted rotation angle is 90 degrees clockwise, so as to determine that the predetermined target window position is the position corresponding to the playback area in the vertical screen state.
  • the width and height deformation amount of the display window can be determined by comparing the target display window position with the current display window position.
  • the size of a 65-inch monitor is 1440:810
  • the vertical media is displayed in the landscape mode
  • the height of the display screen is less than or equal to the height of the monitor 275, that is, less than or equal to 810mm
  • the vertical screen is displayed in the portrait mode.
  • the amount of width deformation can be calculated according to the aspect ratio of the vertical media assets.
  • the width and height values of the display screen window can be adjusted at the same time according to the zoom step. Therefore, when the display 275 rotates to the target state, the display screen just fills the display area of the display 275, which improves the user experience.
  • the controller 250 may also be configured as the following program steps: locate the zoom base point coordinates in the current display window; and The zoom base point coordinates are used as a reference, and the width and height values of the display screen window are synchronously adjusted according to the zoom step length.
  • the zoom base point can be positioned according to the shape and adjustment mode of the display window.
  • the center point of the display window can be selected as the zoom base point, so that the position of the base point is fixed before and after the display screen is rotated.
  • One of the four vertices of the window boundary can also be used as the zoom base point, such as the upper left vertex.
  • the controller 250 is further configured to perform the following steps:
  • the rotation direction of the display screen can be determined according to the rotation direction of the display 275, wherein the screen rotation direction is opposite to the rotation direction of the display.
  • the display 275 needs to be rotated 90 degrees clockwise to switch from the horizontal screen state to the vertical screen state.
  • the corresponding screen rotation direction is counterclockwise.
  • the angular deformation can be generated according to the target display window position and the current display window position.
  • the target display window position is the display position in the portrait state
  • the current display window position is the display position in the landscape state
  • the angular deformation is 90 degrees.
  • S204 Adjust the display direction of the display screen window according to the rotation step size and the screen rotation direction.
  • the display direction of the display screen window can be adjusted according to the rotation step length and the screen rotation direction. For example, the display 275 rotates 6 degrees clockwise every second, while the display screen rotates 6 degrees counterclockwise, so that the display screen always maintains a positive state.
  • the state of the display 275 may not be limited to the horizontal screen state and the vertical screen state, and may also be maintained in a variety of inclined states according to playback needs. Therefore, the current display window position and the target display window position are not limited to the above two situations, and may also be a rotation process at any two tilt angles. Therefore, the horizontal and vertical screen rotation, horizontal and vertical screen rotation, vertical and inclined screen rotation, and inclined screen rotation that can be thought of according to the above-mentioned rotation method all fall within the scope of protection of the present application.
  • the rotation operation of the display screen can be controlled according to the rotation speed of the rotation component 276 driving the display 275.
  • the rotation speed of the rotating assembly 276 is determined by the drive motor and may remain unchanged. Therefore, for all rotation processes, the rotation parameters can be determined by a fixed rotation speed. Therefore, the above process of calculating the rotation parameters is the simplest and the most convenient to control the rotation operation.
  • the rotating assembly 276 In order to adapt to the change of the rotating speed, in one implementation, the rotating assembly 276 An angle callback interface is provided on the interface, and the angle callback interface can detect the rotation angle of the rotation component 276 in real time through an angle sensor, so as to determine the corresponding posture at any time during the rotation of the display 275. It is also possible to set a gravity acceleration sensor on the display 275. During the rotation of the display 275, by detecting the information of the gravity sensor in the three directions of the spatial coordinate system (x, y, z), the posture corresponding to the display 275 at any time can be obtained. Then adjust the display screen in real time according to the detected data, that is, as shown in FIG. 21, the controller is further configured to:
  • S211 Monitor the angle sensor of the rotating component and/or the gravity acceleration sensor, and obtain the angle data of the display in real time;
  • the controller 250 can monitor the Android standard angle callback interface during the rotation of the display 275, and start the Orientation Event Listener program to obtain the rotation angle of the display 275, so as to calculate the rotation angle of the target window in real time.
  • the position and the required rotation angle achieve the effect of following the display 275 to rotate.
  • the monitoring angle callback interface is not limited to the Android standard angle callback interface, and other corresponding angle callback interfaces can be called according to the operating system of the display device 200 in actual applications. It may also be an angle callback interface generated by the controller 250 according to the x, y, and z direction information of sensors such as a gravity acceleration sensor according to a set rule.
  • the steps to calculate the position of the target window and the required rotation angle in real time are as follows:
  • the video display area Rect is a rectangular area composed of 4 points, and the coordinates of each point are the coordinates of the point on the screen. Taking the upper left corner of the screen as the origin, Rect can specify point 1 and point 4 to determine the position. Point 1 is (left, top) (left, top), and point 4 is (right, bottom) (right, bottom).
  • the parameters set to the image quality layer Surface View include the zoom ratio scale X and scale Y and the rotation angle rotate.
  • scale X and scale Y can use the right and bottom positions of Rect to record the width and height of the video window, calculate the current position of the video window oldRect and the target position newRect respectively, and gradually increase the width and height of the display area according to the principle of equal steps. Until the target location.
  • the specific algorithm is as follows:
  • Rect oldRect new Rect(0,0,oldWidth,oldHeight);
  • Rect newRect new Rect(0,0,newWidth,newHeight);
  • flocat scaleX tempWidth/mBaseWidth
  • mBaseWidth and mBaseHeight are the base width and height, which are used to calculate scale X and scale Y.
  • the display device provided by the present application can adjust the video playback screen at the image quality layer, thereby realizing automatic rotation of the display 275, and during the rotation of the display 275, the display screen is also rotated in real time, so The display picture always maintains a positive state, reducing the influence of the TV rotation process on the viewing experience.
  • the present application also provides a display screen rotation adaptation method.
  • the display screen rotation adaptation method is configured in the controller 250 for controlling the rotation process, which specifically includes:
  • S161 In response to the video media resource playing action of the display device, detect the current rotation state of the display;
  • the present application provides a display device and a display screen rotation adaptation method.
  • the current rotation state of the display can be detected by responding to the video media resource playback action of the display device. If the aspect ratio of the video media resource does not match the current rotation state, control the rotation component to rotate the display so that the display adapts to the aspect ratio of the video media resource and the corresponding video media resource is played Picture.
  • the display device automatically drives the motor of the TV to rotate when it detects that the width and height of the currently played video does not match the current rotation state of the display, and synchronously zooms and rotates the picture on the display during the rotation, so as to prevent the user from needing to watch the direction tilt for a long time
  • the video screen improves the user experience.
  • the present application also provides a display device 200, which includes a display, a rotating component, and a controller.
  • the rotating component is connected to the display, and is configured to drive the display to rotate so that the display is in one of a horizontal screen state or a vertical screen state;
  • the controller is connected to the rotating assembly and the display, and is configured to:
  • the current rotation state of the display is a horizontal screen state, and the rotation component is controlled to rotate the display to a vertical screen state.
  • the present application also provides a display device 200, which includes a display, a rotating component, and a controller.
  • the rotating component is connected to the display, and is configured to drive the display to rotate so that the display is in one of a horizontal screen state or a vertical screen state;
  • the controller is connected to the rotating assembly and the display, and is configured to:
  • the current rotation state of the display is a vertical screen state, and the rotation component is controlled to rotate the display to a horizontal screen state.
  • the present application provides a display device 200 and a display screen rotation adaptation method.
  • the current rotation state of the display 275 can be detected by responding to the video media resource playback action of the display device 200. If the video media resource is a vertical media resource and the current rotation state of the display 275 is a horizontal screen state, the rotation component 276 can be controlled to rotate the display 275 to a horizontal screen state; or, if the video media resource is a horizontal media resource The current rotation state of the display 275 is the vertical screen state, and the rotation component 276 can be controlled to rotate the display 275 to the vertical screen state, and the display 275 is automatically rotated to adapt to the aspect ratio corresponding to the video media resource.

Abstract

The present application provides a display method and a display device. The method comprises: obtaining video images to be displayed, and performing image quality processing on a video layer; then, obtaining intermediate images by capturing output images after the image quality processing; rotating the intermediate images by means of an OSD layer to generate rotated images; finally, displaying the rotated images frame by frame to display the video images.

Description

一种显示方法及显示设备Display method and display device
本申请要求在2020年3月13日提交中国专利局、申请号为202010176794.2申请名称为“一种显示设备及显示画面旋转适配方法”的中国专利的优先权;本申请要求在2020年4月28日提交中国专利局、申请号为202010350580.2申请名称为“一种视频画面旋转方法及显示设备”的中国专利的优先权;本申请要求在2020年9月27日提交中国专利局、申请号为202011036180.0申请名称为“一种显示设备及竖屏状态下视频播放方法”的中国专利的优先权;申请要求在2020年7月17日提交中国专利局、申请号为202010693749.4申请名称为“一种显示设备”的优先权;其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent filed with the Chinese Patent Office on March 13, 2020 with the application number 202010176794.2 and the application titled "A display device and display screen rotation adaptation method"; this application claims in April 2020 The priority of the Chinese patent filed with the Chinese Patent Office on the 28th with the application number 202010350580.2 and the application titled "A method and display device for rotating video images"; this application requires that it be filed with the Chinese Patent Office on September 27, 2020. The application number is 202011036180.0 is the priority of the Chinese patent application titled "A display device and video playback method in portrait mode"; the application is required to be submitted to the Chinese Patent Office on July 17, 2020, and the application number is 202010693749.4. The application title is "A display The priority of “equipment”; its entire contents are incorporated in this application by reference.
技术领域Technical field
本申请涉及智能电视技术领域,尤其涉及一种显示方法及显示设备。This application relates to the technical field of smart TVs, and in particular to a display method and display device.
背景技术Background technique
智能电视设备拥有独立的操作系统,并支持功能扩展。可以根据用户需要在智能电视中安装各种应用程序,例如,传统视频应用、短视频等社交应用以及漫画、看书等阅读应用。这些应用可利用智能电视的屏幕展示应用画面,为智能电视提供丰富的媒体资源。同时,智能电视还可以与不同的终端进行数据交互和资源共享。例如,智能电视可以通过局域网、蓝牙等无线通信方式与手机连接,从而播放手机中的资源或者直接进行投屏显示手机上的画面。Smart TV equipment has an independent operating system and supports function expansion. Various applications can be installed in the smart TV according to user needs, for example, traditional video applications, social applications such as short videos, and reading applications such as comics and books. These applications can use the screen of the smart TV to display application images, and provide rich media resources for the smart TV. At the same time, smart TVs can also exchange data and share resources with different terminals. For example, a smart TV can be connected to a mobile phone through wireless communication methods such as local area network, Bluetooth, etc., so as to play resources in the mobile phone or directly cast a screen to display the screen on the mobile phone.
发明内容Summary of the invention
本申请提供了一种显示方法及显示设备,This application provides a display method and display device,
一方面,本申请提供一种显示方法,包括:On the one hand, this application provides a display method, including:
获取待显示视频画面;Obtain the to-be-displayed video screen;
通过视频层对所述待显示视频画面进行画质处理;Performing image quality processing on the to-be-displayed video picture through the video layer;
生成中间图像;所述中间图像为在所述待显示视频画面经过画质处理输出图像后,通过截取输出图像获得的视频帧数据;Generating an intermediate image; the intermediate image is the video frame data obtained by intercepting the output image after the image to be displayed is output through image quality processing;
通过OSD层旋转所述中间图像,生成旋转图像;Rotate the intermediate image through the OSD layer to generate a rotated image;
逐帧显示所述旋转图像。The rotated image is displayed frame by frame.
另一方面,本申请还提供一种显示设备,包括:显示器、旋转组件以及控制器。其中,所述旋转组件被配置为带动所述显示器旋转,以使所述显示器处于多种旋转状态中的一种;所述控制器被配置为执行以下程序步骤:On the other hand, the present application also provides a display device, including: a display, a rotating component, and a controller. Wherein, the rotation component is configured to drive the display to rotate, so that the display is in one of a variety of rotation states; the controller is configured to execute the following program steps:
获取待显示视频画面;Obtain the to-be-displayed video screen;
通过视频层对所述待显示视频画面进行画质处理;Performing image quality processing on the to-be-displayed video picture through the video layer;
生成中间图像;所述中间图像为在所述待显示视频画面经过画质处理输出图像后,通过截取输出图像获得的视频帧数据;Generating an intermediate image; the intermediate image is the video frame data obtained by intercepting the output image after the image to be displayed is output through image quality processing;
通过OSD层旋转所述中间图像,生成旋转图像;Rotate the intermediate image through the OSD layer to generate a rotated image;
控制所述显示器逐帧显示所述旋转图像。Controlling the display to display the rotated image frame by frame.
附图说明Description of the drawings
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solution of the present application more clearly, the following will briefly introduce the drawings needed in the embodiments. Obviously, for those of ordinary skill in the art, without creative work, Other drawings can be obtained from these drawings.
图1A为本申请一种显示设备的应用场景图;FIG. 1A is an application scenario diagram of a display device of this application;
图1B为本申请一种显示设备的后视图;FIG. 1B is a rear view of a display device of this application;
图2为本申请控制装置的硬件配置框图;Figure 2 is a block diagram of the hardware configuration of the control device of the application;
图3为本申请显示设备的硬件配置框图;Figure 3 is a block diagram of the hardware configuration of the display device of this application;
图4为本申请显示设备存储器中操作系统的架构配置框图;FIG. 4 is a block diagram of the architecture configuration of the operating system in the storage device of the display device of the present application;
图5A为本申请显示设备横屏状态示意图;Figure 5A is a schematic diagram of the horizontal screen state of the display device of this application;
图5B为本申请显示设备竖屏状态示意图;Figure 5B is a schematic diagram of the vertical screen state of the display device of the application;
图6为本申请一种视频画面旋转方法场景示意图;FIG. 6 is a schematic diagram of a scene of a method for rotating a video picture according to this application;
图7为本申请一种视频画面旋转方法流程示意图;FIG. 7 is a schematic flowchart of a method for rotating a video picture according to this application;
图8为本申请获取待显示视频画面的流程示意图;FIG. 8 is a schematic diagram of the process of obtaining a to-be-displayed video image by the application;
图9为本申请生成中间图像的流程示意图;FIG. 9 is a schematic diagram of the process of generating an intermediate image in this application;
图10为本申请生成旋转图像的流程示意图;FIG. 10 is a schematic diagram of the process of generating a rotating image in this application;
图11为本申请调用旋转服务获取显示器旋转信息的流程示意图;FIG. 11 is a schematic diagram of a flow of calling a rotation service to obtain display rotation information in this application;
图12为监听角度回调接口的流程示意图;Figure 12 is a schematic diagram of the flow of the monitoring angle callback interface;
图13为本申请旋转显示画面示意图;Figure 13 is a schematic diagram of a rotating display screen of the application;
图14为本申请根据当前边界位置对旋转图像进行缩放的流程示意图;FIG. 14 is a schematic flow chart of the application for scaling a rotated image according to the current boundary position;
图15A为本申请一些实施例提供的图1中显示设备的横屏状态的示意图;15A is a schematic diagram of the horizontal screen state of the display device in FIG. 1 according to some embodiments of the application;
图15B为本申请一些实施例提供的图1中显示设备的竖屏状态的示意图;15B is a schematic diagram of the vertical screen state of the display device in FIG. 1 provided by some embodiments of the application;
图16为本申请一些实施例提供的显示画面旋转适配方法的流程示意图;16 is a schematic flowchart of a display screen rotation adaptation method provided by some embodiments of the application;
图17为本申请一些实施例提供的检测开关状态的流程示意图;FIG. 17 is a schematic diagram of a flow of detecting a switch state according to some embodiments of the application;
图18为本申请一些实施例提供的输入旋转指令的流程示意图;FIG. 18 is a schematic diagram of a flow of inputting a rotation instruction provided by some embodiments of the application;
图19为本申请一些实施例提供的显示画面缩放操作的流程示意图;FIG. 19 is a schematic flowchart of a display screen zoom operation provided by some embodiments of the application;
图20为本申请一些实施例提供的显示画面旋转操作的流程示意图;FIG. 20 is a schematic flowchart of a display screen rotation operation provided by some embodiments of the application;
图21为本申请一些实施例提供的计算旋转参数的流程示意图;FIG. 21 is a schematic flow chart of calculating rotation parameters provided by some embodiments of the application;
图22为本申请一些实施例提供的显示画面旋转适配方法示意图;22 is a schematic diagram of a display screen rotation adaptation method provided by some embodiments of the application;
图23为本申请一些实施例提供的显示画面示意图;FIG. 23 is a schematic diagram of a display screen provided by some embodiments of the application;
图24为本申请一些实施例提供的一种显示画面旋转适配方法流程示意图。FIG. 24 is a schematic flowchart of a method for rotating and adapting a display screen provided by some embodiments of the application.
具体实施方式Detailed ways
下面将详细地对实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下实施例中描述的实施方式并不代表与本申请相一致的所有实施方式。仅是与权利要求书中所详述的、本申请的一些方面相一致的系统和方法的示例。The embodiments will be described in detail below, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following examples do not represent all implementation manners consistent with this application. It is only an example of a system and method consistent with some aspects of the present application as detailed in the claims.
为方便用户在显示器不同的横竖屏状态显示视频画面,本申请实施例提供一种视频画面旋转显示方法及以及适用于所述视频画面旋转显示方法的显示设备,其中,显示设备如旋转电视。需要说明的是,本实施例提供的方法不仅适用于旋转电视,还适 用于其它显示设备,如计算机、平板电脑等。In order to facilitate users to display video images in different horizontal and vertical screen states of the display, embodiments of the present application provide a video image rotating display method and a display device suitable for the video image rotating display method, wherein the display device is a rotating TV. It should be noted that the method provided in this embodiment is not only applicable to rotating TVs, but also applicable to other display devices, such as computers and tablet computers.
本申请各实施例中使用的术语“模块”,可以是指任何已知或后来开发的硬件、软件、固件、人工智能、模糊逻辑或硬件或/和软件代码的组合,能够执行与该元件相关的功能。The term "module" used in the various embodiments of this application can refer to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code that can execute related components Function.
本申请各实施例中使用的术语“遥控器”,是指电子设备(如本申请中公开的显示设备)的一个组件,该组件通常可在较短的距离范围内无线控制电子设备。该组件一般可以使用红外线和/或射频(RF)信号和/或蓝牙与电子设备连接,也可以包括WiFi、无线USB、蓝牙、动作传感器等功能模块。例如:手持式触摸遥控器,是以触摸屏中用户界面取代一般遥控装置中的大部分物理内置硬键。The term "remote control" used in the various embodiments of this application refers to a component of an electronic device (such as the display device disclosed in this application), which can generally control the electronic device wirelessly within a short distance. The component can generally use infrared and/or radio frequency (RF) signals and/or Bluetooth to connect with electronic devices, and can also include functional modules such as WiFi, wireless USB, Bluetooth, and motion sensors. For example, a handheld touch remote control uses a user interface in a touch screen to replace most of the physical built-in hard keys in general remote control devices.
本申请各实施例中使用的术语“手势”,是指用户通过一种手型的变化或手部运动等动作,用于表达预期想法、动作、目的/或结果的用户行为。The term "gesture" used in the embodiments of the present application refers to a user's behavior through a change of hand shape or hand movement to express expected ideas, actions, goals, and/or results.
本申请各实施例中使用的术语“硬件系统”,可以是指由集成电路(Integrated Circuit,IC)、印刷电路板(Printed circuit board,PCB)等机械、光、电、磁器件构成的具有计算、控制、存储、输入和输出功能的实体部件。在本申请各个实施例中,硬件系统通常也会被称为主板(motherboard)或主芯片或控制器。The term "hardware system" used in the various embodiments of this application may refer to an integrated circuit (IC), printed circuit board (Printed circuit board, PCB) and other mechanical, optical, electrical, and magnetic devices with computing , Control, storage, input and output functions of the physical components. In the various embodiments of the present application, the hardware system is also usually referred to as a motherboard or a main chip or a controller.
参见图1A,为本申请一些实施例提供的一种显示设备的应用场景图。如图1A所示,控制装置100和显示设备200之间可以有线或无线方式进行通信。Refer to FIG. 1A, which is an application scenario diagram of a display device provided by some embodiments of this application. As shown in FIG. 1A, the control device 100 and the display device 200 can communicate in a wired or wireless manner.
其中,控制装置100被配置为控制显示设备200,其可接收用户输入的操作指令,且将操作指令转换为显示设备200可识别和响应的指令,起着用户与显示设备200之间交互的中介作用。如:用户通过操作控制装置100上频道加减键,显示设备200响应频道加减的操作。Among them, the control device 100 is configured to control the display device 200, which can receive operation instructions input by the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, and act as an intermediary for the interaction between the user and the display device 200 effect. For example, the user operates the channel addition and subtraction keys on the control device 100, and the display device 200 responds to the channel addition and subtraction operations.
控制装置100可以是遥控器100A,包括红外协议通信或蓝牙协议通信,及其他短距离通信方式等,通过无线或其他有线方式来控制显示设备200。用户可以通过遥控器上按键、语音输入、控制面板输入等输入用户指令,来控制显示设备200。如:用户可以通过遥控器上音量加减键、频道控制键、上/下/左/右的移动按键、语音输入按键、菜单键、开关机按键等输入相应控制指令,来实现控制显示设备200的功能。The control device 100 may be a remote controller 100A, including infrared protocol communication or Bluetooth protocol communication, and other short-distance communication methods, etc., to control the display device 200 in a wireless or other wired manner. The user can control the display device 200 by inputting user instructions through keys on the remote control, voice input, control panel input, etc. For example, the user can control the display device 200 by inputting corresponding control commands through the volume plus and minus keys, channel control keys, up/down/left/right movement keys, voice input keys, menu keys, and power on/off keys on the remote control. Function.
控制装置100也可以是智能设备,如移动终端100B、平板电脑、计算机、笔记本电脑等。例如,使用在智能设备上运行的应用程序控制显示设备200。该应用程序通过配置可以在与智能设备关联的屏幕上,通过直观的用户界面(UI)为用户提供各种控制。The control device 100 may also be a smart device, such as a mobile terminal 100B, a tablet computer, a computer, a notebook computer, and the like. For example, an application program running on a smart device is used to control the display device 200. The application can be configured to provide users with various controls through an intuitive user interface (UI) on the screen associated with the smart device.
示例性的,移动终端100B可与显示设备200安装软件应用,通过网络通信协议实现连接通信,实现一对一控制操作的和数据通信的目的。如:可以使移动终端100B与显示设备200建立控制指令协议,通过操作移动终端100B上提供的用户界面的各种功能键或虚拟控件,来实现如遥控器100A布置的实体按键的功能。也可以将移动终端100B上显示的音视频内容传输到显示设备200上,实现同步显示功能。Exemplarily, the mobile terminal 100B may install a software application with the display device 200, realize connection communication through a network communication protocol, and realize the purpose of one-to-one control operation and data communication. For example, the mobile terminal 100B can establish a control instruction protocol with the display device 200, and the functions of the physical keys arranged on the remote control 100A can be realized by operating various function keys or virtual controls of the user interface provided on the mobile terminal 100B. The audio and video content displayed on the mobile terminal 100B can also be transmitted to the display device 200 to realize the synchronous display function.
显示设备200可提供广播接收功能和计算机支持功能的网络电视功能。显示设备可以实施为,数字电视、网络电视、互联网协议电视(IPTV)等。The display device 200 may provide a broadcast receiving function and a network TV function of a computer support function. The display device can be implemented as digital TV, Internet TV, Internet Protocol TV (IPTV), and so on.
显示设备200,可以是液晶显示器、有机发光显示器、投影设备。具体显示设备类型、尺寸大小和分辨率等不作限定。The display device 200 may be a liquid crystal display, an organic light emitting display, or a projection device. The specific display device type, size and resolution are not limited.
显示设备200还与服务器300通过多种通信方式进行数据通信。这里可允许显示 设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。服务器300可以向显示设备200提供各种内容和互动。示例的,显示设备200可以发送和接收信息,例如:接收电子节目指南(EPG)数据、接收软件程序更新、或访问远程储存的数字媒体库。服务器300可以一组,也可以多组,可以一类或多类服务器。通过服务器300提供视频点播和广告服务等其他网络服务内容。The display device 200 also performs data communication with the server 300 through a variety of communication methods. Here, the display device 200 may be allowed to communicate through a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 300 may provide various contents and interactions to the display device 200. For example, the display device 200 can send and receive information, such as receiving electronic program guide (EPG) data, receiving software program updates, or accessing a remotely stored digital media library. The server 300 can be one group or multiple groups, and can be one type or multiple types of servers. The server 300 provides other network service content such as video-on-demand and advertising services.
在一些实施例中,如图1B所示,显示设备200包括旋转组件276,控制器250,显示器275,从背板上空隙处伸出的端子接口278以及和背板连接的旋转组件276,旋转组件276可以使显示器275进行旋转。从显示设备正面观看的角度,旋转组件276可以将显示屏旋转到竖屏状态,即屏幕竖向的边长大于横向的边长的状态,也可以将屏幕旋转至横屏状态,即屏幕横向的边长大于竖向的边长的状态。In some embodiments, as shown in FIG. 1B, the display device 200 includes a rotating assembly 276, a controller 250, a display 275, a terminal interface 278 protruding from a gap on the backplane, and a rotating assembly 276 connected to the backplane. The component 276 can cause the display 275 to rotate. Viewed from the front of the display device, the rotating component 276 can rotate the display screen to the vertical screen state, that is, the state where the vertical side length of the screen is greater than the horizontal side length, or it can rotate the screen to the horizontal screen state, that is, the screen horizontally. The state where the side length is greater than the vertical side length.
图2中示例性示出了控制装置100的配置框图。如图2所示,控制装置100包括控制器110、存储器120、通信器130、用户输入接口140、用户输出接口150、供电电源160。The configuration block diagram of the control device 100 is exemplarily shown in FIG. 2. As shown in FIG. 2, the control device 100 includes a controller 110, a memory 120, a communicator 130, a user input interface 140, a user output interface 150, and a power supply 160.
控制器110包括随机存取存储器(RAM)111、只读存储器(ROM)112、处理器113、通信接口以及通信总线。控制器110用于控制控制装置100的运行和操作,以及内部各部件之间的通信协作、外部和内部的数据处理功能。The controller 110 includes a random access memory (RAM) 111, a read only memory (ROM) 112, a processor 113, a communication interface, and a communication bus. The controller 110 is used to control the operation and operation of the control device 100, as well as the communication and cooperation between internal components, and external and internal data processing functions.
示例性的,当检测到用户按压在遥控器100A上布置的按键的交互或触摸在遥控器100A上布置的触摸面板的交互时,控制器110可控制产生与检测到的交互相应的信号,并将该信号发送到显示设备200。Exemplarily, when an interaction of a user pressing a button arranged on the remote control 100A or an interaction of touching a touch panel arranged on the remote control 100A is detected, the controller 110 may control to generate a signal corresponding to the detected interaction, and This signal is sent to the display device 200.
存储器120,用于在控制器110的控制下存储驱动和控制控制装置100的各种运行程序、数据和应用。存储器120,可以存储用户输入的各类控制信号指令。The memory 120 is used to store various operating programs, data, and applications for driving and controlling the control device 100 under the control of the controller 110. The memory 120 can store various control signal instructions input by the user.
通信器130在控制器110的控制下,实现与显示设备200之间控制信号和数据信号的通信。如:控制装置100经由通信器130将控制信号(例如触摸信号或控件信号)发送至显示设备200上,控制装置100可经由通信器130接收由显示设备200发送的信号。通信器130可以包括红外信号接口131和射频信号接口132。例如:红外信号接口时,需要将用户输入指令按照红外控制协议转化为红外控制信号,经红外发送模块进行发送至显示设备200。再如:射频信号接口时,需将用户输入指令转化为数字信号,然后按照射频控制信号调制协议进行调制后,由射频发送端子发送至显示设备200。The communicator 130 realizes the communication of control signals and data signals with the display device 200 under the control of the controller 110. For example, the control device 100 sends a control signal (such as a touch signal or a control signal) to the display device 200 via the communicator 130, and the control device 100 can receive the signal sent by the display device 200 via the communicator 130. The communicator 130 may include an infrared signal interface 131 and a radio frequency signal interface 132. For example, in the case of an infrared signal interface, the user input instruction needs to be converted into an infrared control signal according to the infrared control protocol, and sent to the display device 200 via the infrared sending module. For another example, in the case of a radio frequency signal interface, a user input instruction needs to be converted into a digital signal, which is then modulated according to the radio frequency control signal modulation protocol, and then sent to the display device 200 by the radio frequency sending terminal.
用户输入接口140,可包括麦克风141、触摸板142、传感器143、按键144等中至少一者,从而用户可以通过语音、触摸、手势、按压等将关于控制显示设备200的用户指令输入到控制装置100。The user input interface 140 may include at least one of a microphone 141, a touch panel 142, a sensor 143, a button 144, etc., so that the user can input user instructions for controlling the display device 200 to the control device through voice, touch, gesture, pressing, etc. 100.
用户输出接口150,通过将用户输入接口140接收的用户指令输出至显示设备200,或者,输出由显示设备200接收的图像或语音信号。这里,用户输出接口150可以包括LED接口151、产生振动的振动接口152、输出声音的声音输出接口153和输出图像的显示器154等。例如,遥控器100A可从用户输出接口150接收音频、视频或数据等输出信号,并且将输出信号在显示器154上显示为图像形式、在声音输出接口153输出为音频形式或在振动接口152输出为振动形式。The user output interface 150 outputs a user instruction received by the user input interface 140 to the display device 200, or outputs an image or voice signal received by the display device 200. Here, the user output interface 150 may include an LED interface 151, a vibration interface 152 that generates vibration, a sound output interface 153 that outputs a sound, a display 154 that outputs an image, and the like. For example, the remote controller 100A can receive output signals such as audio, video, or data from the user output interface 150, and display the output signals as images on the display 154, as audio on the sound output interface 153, or as output on the vibration interface 152. Vibration form.
供电电源160,用于在控制器110的控制下为控制装置100各元件提供运行电力支持。形式可以为电池及相关控制电路。The power supply 160 is used to provide operating power support for each element of the control device 100 under the control of the controller 110. The form can be battery and related control circuit.
图3中示例性示出了显示设备200的硬件配置框图。如图3所示,显示设备200中可以包括调谐解调器210、通信器220、检测器230、外部装置接口240、控制器250、存储器260、用户接口265、视频处理器270、显示器275、旋转组件276、音频处理器280、音频输出接口285、供电电源290。FIG. 3 exemplarily shows a block diagram of the hardware configuration of the display device 200. As shown in FIG. 3, the display device 200 may include a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a memory 260, a user interface 265, a video processor 270, a display 275, Rotating component 276, audio processor 280, audio output interface 285, power supply 290.
其中,旋转组件276可以包括驱动电机、旋转轴等部件。其中,驱动电机可以连接控制器250,受控制器250的控制输出旋转角度;旋转轴的一端连接驱动电机的动力输出轴,另一端连接显示器275,以使显示器275可以通过旋转组件276固定安装在墙壁或支架上。Among them, the rotating assembly 276 may include components such as a drive motor and a rotating shaft. Among them, the driving motor can be connected to the controller 250 and output the rotation angle under the control of the controller 250; one end of the rotating shaft is connected to the power output shaft of the driving motor, and the other end is connected to the display 275, so that the display 275 can be fixedly installed on the rotating assembly 276. On the wall or bracket.
旋转组件276还可以包括其他部件,如传动部件、检测部件等。其中,传动部件可以通过特定传动比,调整旋转组件276输出的转速和力矩,可以为齿轮传动方式;检测部件可以由设置在旋转轴上的传感器组成,例如角度传感器、姿态传感器等。这些传感器可以对旋转组件276旋转的角度等参数进行检测,并将检测的参数发送给控制器250,以使控制器250能够根据检测的参数判断或调整显示设备200的状态。实际应用中,旋转组件276可以包括但不限于上述部件中的一种或多种。The rotating assembly 276 may also include other components, such as transmission components, detection components, and so on. Among them, the transmission component can adjust the rotation speed and torque output by the rotating assembly 276 through a specific transmission ratio, and can be a gear transmission mode; the detection component can be composed of sensors arranged on the rotating shaft, such as an angle sensor, an attitude sensor, and the like. These sensors can detect parameters such as the angle of rotation of the rotating component 276 and send the detected parameters to the controller 250 so that the controller 250 can determine or adjust the state of the display device 200 according to the detected parameters. In practical applications, the rotating assembly 276 may include, but is not limited to, one or more of the aforementioned components.
调谐解调器210,通过有线或无线方式接收广播电视信号,可以进行放大、混频和谐振等调制解调处理,用于从多个无线或有线广播电视信号中解调出用户所选择的电视频道的频率中所携带的音视频信号,以及附加信息(例如EPG数据)。The tuner and demodulator 210, which receives broadcast television signals through wired or wireless means, can perform modulation and demodulation processing such as amplification, mixing and resonance, and is used to demodulate the television selected by the user from multiple wireless or cable broadcast television signals The audio and video signals carried in the frequency of the channel, as well as additional information (such as EPG data).
调谐解调器210,可根据用户选择,以及由控制器250控制,响应用户选择的电视频道的频率以及该频率所携带的电视信号。The tuner and demodulator 210 can be selected by the user and controlled by the controller 250 to respond to the frequency of the television channel selected by the user and the television signal carried by the frequency.
调谐解调器210,根据电视信号的广播制式不同,可以接收信号的途径有很多种,诸如:地面广播、有线广播、卫星广播或互联网广播等;以及根据调制类型不同,可以数字调制方式或模拟调制方式;以及根据接收电视信号的种类不同,可以解调模拟信号和数字信号。The tuner and demodulator 210 can receive signals in many ways according to different broadcasting formats of TV signals, such as terrestrial broadcasting, cable broadcasting, satellite broadcasting or Internet broadcasting; and according to different modulation types, it can be digital modulation or analog Modulation method; and according to different types of received TV signals, analog signals and digital signals can be demodulated.
在其他一些示例性实施例中,调谐解调器210也可在外部设备中,如外部机顶盒等。这样,机顶盒通过调制解调后输出电视信号,经过外部装置接口240输入至显示设备200中。In some other exemplary embodiments, the tuner demodulator 210 may also be in an external device, such as an external set-top box. In this way, the set-top box outputs a TV signal after modulation and demodulation, and is input to the display device 200 through the external device interface 240.
通信器220,是用于根据各种通信协议类型与外部设备或外部服务器进行通信的组件。例如显示设备200可将内容数据发送至经由通信器220连接的外部设备,或者,从经由通信器220连接的外部设备浏览和下载内容数据。通信器220可以包括WIFI模块221、蓝牙通信协议模块222、有线以太网通信协议模块223等网络通信协议模块或近场通信协议模块,从而通信器220可根据控制器250的控制接收控制装置100的控制信号,并将控制信号实现为WIFI信号、蓝牙信号、射频信号等。The communicator 220 is a component used to communicate with external devices or external servers according to various types of communication protocols. For example, the display device 200 may transmit content data to an external device connected via the communicator 220, or browse and download content data from an external device connected via the communicator 220. The communicator 220 may include a network communication protocol module such as a WIFI module 221, a Bluetooth communication protocol module 222, and a wired Ethernet communication protocol module 223 or a near field communication protocol module, so that the communicator 220 can receive the control device 100 according to the control of the controller 250 Control signals, and implement the control signals as WIFI signals, Bluetooth signals, radio frequency signals, etc.
检测器230,是显示设备200用于采集外部环境或与外部交互的信号的组件。检测器230可以包括声音采集器231,如麦克风,可以用于接收用户的声音,如用户控制显示设备200的控制指令的语音信号;或者,可以采集用于识别环境场景类型的环境声音,实现显示设备200可以自适应环境噪声。The detector 230 is a component of the display device 200 for collecting signals from the external environment or interacting with the outside. The detector 230 may include a sound collector 231, such as a microphone, which may be used to receive a user's voice, such as a voice signal of a control instruction for the user to control the display device 200; or, it may collect environmental sounds used to identify the type of environmental scene to realize display The device 200 can adapt to environmental noise.
在其他一些示例性实施例中,检测器230,还可以包括图像采集器232,如相机、摄像头等,可以用于采集外部环境场景,以自适应变化显示设备200的显示参数;以及用于采集用户的属性或与用户交互手势,以实现显示设备与用户之间互动的功能。In some other exemplary embodiments, the detector 230 may also include an image collector 232, such as a camera, a camera, etc., which may be used to collect external environment scenes to adaptively change the display parameters of the display device 200; and to collect The attributes of the user or interactive gestures with the user to achieve the function of interaction between the display device and the user.
在其他一些示例性实施例中,检测器230,还可以包括光接收器,用于采集环境 光线强度,以自适应显示设备200的显示参数变化等。In some other exemplary embodiments, the detector 230 may also include a light receiver, which is used to collect the ambient light intensity to adapt to changes in display parameters of the display device 200 and so on.
在其他一些示例性实施例中,检测器230,还可以包括温度传感器,如通过感测环境温度,显示设备200可自适应调整图像的显示色温。示例性的,当温度偏高的环境时,可调整显示设备200显示图像色温偏冷色调;当温度偏低的环境时,可以调整显示设备200显示图像色温偏暖色调。In some other exemplary embodiments, the detector 230 may also include a temperature sensor. For example, by sensing the ambient temperature, the display device 200 may adaptively adjust the display color temperature of the image. Exemplarily, when the temperature is relatively high, the color temperature of the display device 200 can be adjusted to be colder; when the temperature is relatively low, the color temperature of the display device 200 can be adjusted to be warmer.
外部装置接口240,是提供控制器250控制显示设备200与外部设备间数据传输的组件。外部装置接口240可按照有线/无线方式与诸如机顶盒、游戏装置、笔记本电脑等外部设备连接,可接收外部设备的诸如视频信号(例如运动图像)、音频信号(例如音乐)、附加信息(例如EPG)等数据。The external device interface 240 is a component that provides the controller 250 to control data transmission between the display device 200 and external devices. The external device interface 240 can be connected to external devices such as set-top boxes, game devices, notebook computers, etc. in a wired/wireless manner, and can receive external devices such as video signals (such as moving images), audio signals (such as music), and additional information (such as EPG). ) And other data.
其中,外部装置接口240可以包括:高清多媒体接口(HDMI)端子241、复合视频消隐同步(CVBS)端子242、模拟或数字分量端子243、通用串行总线(USB)端子244、组件(Component)端子(图中未示出)、红绿蓝(RGB)端子(图中未示出)等任一个或多个。Among them, the external device interface 240 may include: a high-definition multimedia interface (HDMI) terminal 241, a composite video blanking synchronization (CVBS) terminal 242, an analog or digital component terminal 243, a universal serial bus (USB) terminal 244, and a component (Component) Any one or more of terminals (not shown in the figure), red, green and blue (RGB) terminals (not shown in the figure), etc.
控制器250,通过运行存储在存储器260上的各种软件控制程序(如操作系统和各种应用程序),来控制显示设备200的工作和响应用户的操作。The controller 250 controls the work of the display device 200 and responds to user operations by running various software control programs (such as an operating system and various application programs) stored on the memory 260.
如图3所示,控制器250包括随机存取存储器(RAM)251、只读存储器(ROM)252、图形处理器253、CPU处理器254、通信接口255、以及通信总线256。其中,RAM251、ROM252以及图形处理器253、CPU处理器254通信接口255通过通信总线256相连接。As shown in FIG. 3, the controller 250 includes a random access memory (RAM) 251, a read only memory (ROM) 252, a graphics processor 253, a CPU processor 254, a communication interface 255, and a communication bus 256. Among them, the RAM 251, the ROM 252, the graphics processor 253, and the CPU processor 254 communication interface 255 are connected via a communication bus 256.
ROM252,用于存储各种系统启动指令。如在接收到开机信号时,显示设备200电源开始启动,CPU处理器254运行ROM252中的系统启动指令,将存储在存储器260的操作系统拷贝至RAM251中,以开始运行启动操作系统。当操作系统启动完成后,CPU处理器254再将存储器260中各种应用程序拷贝至RAM251中,然后,开始运行启动各种应用程序。ROM252, used to store various system startup instructions. For example, when the power-on signal is received, the power of the display device 200 starts to start, and the CPU processor 254 runs the system start-up instruction in the ROM 252 to copy the operating system stored in the memory 260 to the RAM 251 to start running the start-up operating system. After the operating system is started up, the CPU processor 254 copies various application programs in the memory 260 to the RAM 251, and then starts to run and start various application programs.
图形处理器253,用于产生各种图形对象,如图标、操作菜单、以及用户输入指令显示图形等。图形处理器253可以包括运算器,用于通过接收用户输入各种交互指令进行运算,进而根据显示属性显示各种对象;以及包括渲染器,用于产生基于运算器得到的各种对象,将进行渲染的结果显示在显示器275上。The graphics processor 253 is used to generate various graphics objects, such as icons, operation menus, and user input instructions to display graphics. The graphics processor 253 may include an arithmetic unit, which is used to perform operations by receiving various interactive instructions input by the user, and then display various objects according to the display attributes; and a renderer, which is used to generate various objects obtained based on the arithmetic unit, and perform The rendered result is displayed on the display 275.
CPU处理器254,用于执行存储在存储器260中的操作系统和应用程序指令。以及根据接收的用户输入指令,来执行各种应用程序、数据和内容的处理,以便最终显示和播放各种音视频内容。The CPU processor 254 is configured to execute operating system and application program instructions stored in the memory 260. And according to the received user input instructions, to execute various applications, data and content processing, so as to finally display and play various audio and video content.
在一些示例性实施例中,CPU处理器254,可以包括多个处理器。多个处理器可包括一个主处理器以及多个或一个子处理器。主处理器,用于在显示设备预加载模式中执行显示设备200的一些初始化操作,和/或,在正常模式下显示画面的操作。多个或一个子处理器,用于执行在显示设备待机模式等状态下的一种操作。In some exemplary embodiments, the CPU processor 254 may include multiple processors. The multiple processors may include a main processor and multiple or one sub-processors. The main processor is configured to perform some initialization operations of the display device 200 in the display device preloading mode, and/or, to display screen operations in the normal mode. Multiple or one sub-processor, used to perform an operation in the standby mode of the display device.
通信接口255,可包括第一接口到第n接口。这些接口可以是经由网络被连接到外部设备的网络接口。The communication interface 255 may include the first interface to the nth interface. These interfaces may be network interfaces connected to external devices via a network.
控制器250可以控制显示设备200的整体操作。例如:响应于接收到用于选择在显示器275上显示的GUI对象的用户输入命令,控制器250便可以执行与由用户输入命令选择的对象有关的操作。The controller 250 may control the overall operation of the display device 200. For example, in response to receiving a user input command for selecting a GUI object displayed on the display 275, the controller 250 may perform an operation related to the object selected by the user input command.
其中,该对象可以是可选对象中的任何一个,例如超链接或图标。该与所选择的对象有关的操作,例如显示连接到超链接页面、文档、图像等操作,或者执行与对象相对应的程序的操作。该用于选择GUI对象的用户输入命令,可以是通过连接到显示设备200的各种输入装置(例如,鼠标、键盘、触摸板等)输入命令或者与由用户说出语音相对应的语音命令。Among them, the object can be any one of the selectable objects, such as a hyperlink or an icon. The operation related to the selected object, for example, the operation of displaying the page, document, image, etc. connected to the hyperlink, or the operation of executing the program corresponding to the object. The user input command for selecting the GUI object may be a command input through various input devices (for example, a mouse, a keyboard, a touch pad, etc.) connected to the display device 200 or a voice command corresponding to a voice spoken by the user.
存储器260,用于存储驱动和控制显示设备200运行的各种类型的数据、软件程序或应用程序。存储器260可以包括易失性和/或非易失性存储器。而术语“存储器”包括存储器260、控制器250的RAM251和ROM252、或显示设备200中的存储卡。The memory 260 is used to store various types of data, software programs or application programs for driving and controlling the operation of the display device 200. The memory 260 may include volatile and/or non-volatile memory. The term “memory” includes the memory 260, the RAM 251 and ROM 252 of the controller 250, or the memory card in the display device 200.
在一些实施例中,存储器260具体用于存储驱动显示设备200中控制器250的运行程序;存储显示设备200内置的和用户从外部设备下载的各种应用程序;存储用于配置由显示器275提供的各种GUI、与GUI相关的各种对象及用于选择GUI对象的选择器的视觉效果图像等数据。In some embodiments, the memory 260 is specifically used to store the operating program that drives the controller 250 in the display device 200; to store various application programs built in the display device 200 and downloaded from external devices by the user; and to store the configuration provided by the display 275 Data such as various GUIs, various objects related to the GUI, and visual effect images of the selector used to select GUI objects.
在一些实施例中,存储器260具体用于存储调谐解调器210、通信器220、检测器230、外部装置接口240、视频处理器270、显示器275、音频处理器280等的驱动程序和相关数据,例如从外部装置接口接收的外部数据(例如音视频数据)或用户接口接收的用户数据(例如按键信息、语音信息、触摸信息等)。In some embodiments, the memory 260 is specifically used to store drivers and related data of the tuner and demodulator 210, the communicator 220, the detector 230, the external device interface 240, the video processor 270, the display 275, the audio processor 280, etc. For example, external data (such as audio and video data) received from an external device interface or user data (such as key information, voice information, touch information, etc.) received from a user interface.
在一些实施例中,存储器260具体存储用于表示操作系统(OS)的软件和/或程序,这些软件和/或程序可包括,例如:内核、中间件、应用编程接口(API)和/或应用程序。示例性的,内核可控制或管理系统资源,以及其它程序所实施的功能(如所述中间件、API或应用程序);同时,内核可以提供接口,以允许中间件、API或应用程序访问控制器,以实现控制或管理系统资源。In some embodiments, the memory 260 specifically stores software and/or programs for representing an operating system (OS). These software and/or programs may include, for example, a kernel, middleware, application programming interface (API), and/or application. Exemplarily, the kernel can control or manage system resources and functions implemented by other programs (such as the middleware, API, or application program); at the same time, the kernel can provide interfaces to allow middleware, API, or application program access control To control or manage system resources.
图4中示例性示出了显示设备200存储器中操作系统的架构配置框图。该操作系统架构从上到下依次是应用层、中间件层和内核层。FIG. 4 exemplarily shows a block diagram of the architecture configuration of the operating system in the memory of the display device 200. The operating system architecture consists of the application layer, the middleware layer, and the kernel layer from top to bottom.
应用层,系统内置的应用程序以及非系统级的应用程序都是属于应用层。负责与用户进行直接交互。应用层可包括多个应用程序,如设置应用程序、电子帖应用程序、媒体中心应用程序等。这些应用程序可被实现为Web应用,其基于WebKit引擎来执行,具体可基于HTML5、层叠样式表(CSS)和JavaScript来开发并执行。Application layer, system built-in applications and non-system-level applications belong to the application layer. Responsible for direct interaction with users. The application layer can include multiple applications, such as settings applications, e-post applications, media center applications, and so on. These applications can be implemented as web applications, which are executed based on the WebKit engine, and specifically can be developed and executed based on HTML5, Cascading Style Sheets (CSS) and JavaScript.
这里,HTML,全称为超文本标记语言(Hyper Text Markup Language),是一种用于创建网页的标准标记语言,通过标记标签来描述网页,HTML标签用以说明文字、图形、动画、声音、表格、链接等,浏览器会读取HTML文档,解释文档内标签的内容,并以网页的形式显示出来。Here, HTML, the full name of HyperText Markup Language (Hyper Text Markup Language), is a standard markup language used to create web pages. Web pages are described through markup tags. HTML tags are used to describe text, graphics, animation, sounds, and tables. , Links, etc., the browser will read the HTML document, explain the content of the tags in the document, and display it in the form of a web page.
CSS,全称为层叠样式表(Cascading Style Sheets),是一种用来表现HTML文件样式的计算机语言,可以用来定义样式结构,如字体、颜色、位置等的语言。CSS样式可以直接存储与HTML网页或者单独的样式文件中,实现对网页中样式的控制。CSS, the full name of Cascading Style Sheets (Cascading Style Sheets), is a computer language used to express the style of HTML files, and can be used to define style structures, such as fonts, colors, and positions. CSS styles can be directly stored in HTML web pages or in separate style files to achieve control over styles in web pages.
JavaScript,是一种应用于Web网页编程的语言,可以插入HTML页面并由浏览器解释执行。其中Web应用的交互逻辑都是通过JavaScript实现。JavaScript可以通过浏览器,封装JavaScript扩展接口,实现与内核层的通信,JavaScript is a language used in web page programming, which can be inserted into HTML pages and interpreted and executed by the browser. The interaction logic of the web application is implemented through JavaScript. JavaScript can encapsulate the JavaScript extension interface through the browser to realize the communication with the kernel layer,
中间件层,可以提供一些标准化的接口,以支持各种环境和系统的操作。例如,中间件层可以实现为与数据广播相关的中间件的多媒体和超媒体信息编码专家组(MHEG),还可以实现为与外部设备通信相关的中间件的DLNA中间件,还可以实 现为提供显示设备内各应用程序所运行的浏览器环境的中间件等。The middleware layer can provide some standardized interfaces to support the operation of various environments and systems. For example, the middleware layer can be implemented as the Multimedia and Hypermedia Information Coding Expert Group (MHEG) of the middleware related to data broadcasting, and can also be implemented as the DLNA middleware of the middleware related to external device communication, and can also be implemented as providing Display the middleware of the browser environment in which each application in the device runs.
内核层,提供核心系统服务,例如:文件管理、内存管理、进程管理、网络管理、系统安全权限管理等服务。内核层可以被实现为基于各种操作系统的内核,例如,基于Linux操作系统的内核。The kernel layer provides core system services, such as file management, memory management, process management, network management, system security authority management and other services. The kernel layer can be implemented as a kernel based on various operating systems, for example, a kernel based on the Linux operating system.
内核层也同时提供系统软件和硬件之间的通信,为各种硬件提供设备驱动服务,例如:为显示器提供显示驱动程序、为摄像头提供摄像头驱动程序、为遥控器提供按键驱动程序、为WIFI模块提供WiFi驱动程序、为音频输出接口提供音频驱动程序、为电源管理(PM)模块提供电源管理驱动等。The kernel layer also provides communication between system software and hardware, and provides device driver services for various hardware, such as: providing display drivers for displays, camera drivers for cameras, button drivers for remote controls, and WIFI modules Provide WiFi driver, audio driver for audio output interface, power management driver for power management (PM) module, etc.
图3中,用户接口265,接收各种用户交互。具体的,用于将用户的输入信号发送给控制器250,或者,将从控制器250的输出信号传送给用户。示例性的,遥控器100A可将用户输入的诸如电源开关信号、频道选择信号、音量调节信号等输入信号发送至用户接口265,再由用户接口265转送至控制器250;或者,遥控器100A可接收经控制器250处理从用户接口265输出的音频、视频或数据等输出信号,并且显示接收的输出信号或将接收的输出信号输出为音频或振动形式。In Fig. 3, the user interface 265 receives various user interactions. Specifically, it is used to send the input signal of the user to the controller 250, or to transmit the output signal from the controller 250 to the user. Exemplarily, the remote control 100A may send input signals input by the user, such as a power switch signal, a channel selection signal, and a volume adjustment signal, to the user interface 265, and then the user interface 265 transfers to the controller 250; or the remote control 100A may Receive output signals such as audio, video, or data output from the user interface 265 after the controller 250 processes, and display the received output signal or output the received output signal as audio or vibration.
在一些实施例中,用户可在显示器275上显示的图形用户界面(GUI)输入用户命令,则用户接口265通过GUI接收用户输入命令。确切的说,用户接口265可接收用于控制选择器在GUI中的位置以选择不同的对象或项目的用户输入命令。其中,“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、控件、菜单、选项卡、文本框、对话框、状态栏、频道栏、Widget等可视的界面元素。In some embodiments, the user may input a user command on a graphical user interface (GUI) displayed on the display 275, and the user interface 265 receives the user input command through the GUI. Specifically, the user interface 265 may receive user input commands for controlling the position of the selector in the GUI to select different objects or items. Among them, "user interface" is a medium interface for interaction and information exchange between application programs or operating systems and users, and it realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of the user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of an electronic device. The control can include icons, controls, menus, tabs, text boxes, dialog boxes, status bars, channel bars, Widgets, etc. Visual interface elements.
或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户接口265通过传感器识别出声音或手势,来接收用户输入命令。Alternatively, the user may input a user command by inputting a specific sound or gesture, and the user interface 265 recognizes the sound or gesture through the sensor to receive the user input command.
视频处理器270,用于接收外部的视频信号,根据输入信号的标准编解码协议,进行解压缩、解码、缩放、降噪、帧率转换、分辨率转换、图像合成等视频数据处理,可得到直接在显示器275上显示或播放的视频信号。The video processor 270 is used to receive external video signals, and perform video data processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to the standard codec protocol of the input signal. The video signal displayed or played directly on the display 275.
示例的,视频处理器270,包括解复用模块、视频解码模块、图像合成模块、帧率转换模块、显示格式化模块等。For example, the video processor 270 includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, and the like.
其中,解复用模块,用于对输入音视频数据流进行解复用处理,如输入MPEG-2流(基于数字存储媒体运动图像和语音的压缩标准),则解复用模块将其进行解复用成视频信号和音频信号等。Among them, the demultiplexing module is used to demultiplex the input audio and video data stream, such as the input MPEG-2 stream (based on the compression standard of digital storage media moving images and voice), then the demultiplexing module will demultiplex it Multiplexed into video signals and audio signals, etc.
视频解码模块,用于对解复用后的视频信号进行处理,包括解码和缩放处理等。The video decoding module is used to process the demultiplexed video signal, including decoding and scaling.
图像合成模块,如图像合成器,其用于将图形生成器根据用户输入或自身生成的GUI信号,与缩放处理后视频图像进行叠加混合处理,以生成可供显示的图像信号。An image synthesis module, such as an image synthesizer, is used to superimpose and mix the GUI signal generated by the graphics generator with the zoomed video image according to user input or itself to generate an image signal for display.
帧率转换模块,用于对输入视频的帧率进行转换,如将输入的60Hz视频的帧率转换为120Hz或240Hz的帧率,通常的格式采用如插帧方式实现。The frame rate conversion module is used to convert the frame rate of the input video, such as converting the frame rate of the input 60Hz video to a frame rate of 120Hz or 240Hz, and the usual format is realized by such as frame interpolation.
显示格式化模块,用于将帧率转换模块输出的信号,改变为符合诸如显示器显示格式的信号,如将帧率转换模块输出的信号进行格式转换以输出RGB数据信号。The display formatting module is used to change the signal output by the frame rate conversion module to a signal conforming to the display format such as a display, for example, format the signal output by the frame rate conversion module to output RGB data signals.
显示器275,用于接收源自视频处理器270输入的图像信号,进行显示视频内容、图像以及菜单操控界面。显示视频内容,可以来自调谐解调器210接收的广播信号中的视频内容,也可以来自通信器220或外部装置接口240输入的视频内容。显示器275,同时显示显示设备200中产生且用于控制显示设备200的用户操控界面UI。The display 275 is used to receive the image signal input from the video processor 270 to display video content, images, and a menu control interface. The displayed video content can be from the video content in the broadcast signal received by the tuner and demodulator 210, or from the video content input by the communicator 220 or the external device interface 240. The display 275 simultaneously displays a user manipulation interface UI generated in the display device 200 and used to control the display device 200.
以及,显示器275可以包括用于呈现画面的显示屏组件以及驱动图像显示的驱动组件。或者,倘若显示器275为一种投影显示器,还可以包括一种投影装置和投影屏幕。And, the display 275 may include a display screen component for presenting a picture and a driving component for driving image display. Alternatively, if the display 275 is a projection display, it may also include a projection device and a projection screen.
旋转组件276,控制器可以发出控制信号使旋转组件276旋转显示器255。Rotating the component 276, the controller can send a control signal to make the rotating component 276 rotate the display 255.
音频处理器280,用于接收外部的音频信号,根据输入信号的标准编解码协议,进行解压缩和解码,以及降噪、数模转换、和放大处理等音频数据处理,得到可以在扬声器286中播放的音频信号。The audio processor 280 is used to receive external audio signals, and perform decompression and decoding according to the standard codec protocol of the input signal, as well as audio data processing such as noise reduction, digital-to-analog conversion, and amplification processing, so that it can be stored in the speaker 286 The audio signal to be played.
示例性的,音频处理器280可以支持各种音频格式。例如MPEG-2、MPEG-4、高级音频编码(AAC)、高效AAC(HE-AAC)等格式。Exemplarily, the audio processor 280 may support various audio formats. Such as MPEG-2, MPEG-4, Advanced Audio Coding (AAC), High Efficiency AAC (HE-AAC) and other formats.
音频输出接口285,用于在控制器250的控制下接收音频处理器280输出的音频信号,音频输出接口285可包括扬声器286,或输出至外接设备的发生装置的外接音响输出端子287,如耳机输出端子。The audio output interface 285 is used to receive the audio signal output by the audio processor 280 under the control of the controller 250. The audio output interface 285 may include a speaker 286, or output to an external audio output terminal 287 of a generator of an external device, such as a headset Output terminal.
在其他一些示例性实施例中,视频处理器270可以包括一个或多个芯片组成。音频处理器280,也可以包括一个或多个芯片组成。In some other exemplary embodiments, the video processor 270 may include one or more chips. The audio processor 280 may also include one or more chips.
以及,在其他一些示例性实施例中,视频处理器270和音频处理器280,可以为单独的芯片,也可以与控制器250一起集成在一个或多个芯片中。And, in some other exemplary embodiments, the video processor 270 and the audio processor 280 may be separate chips, or may be integrated with the controller 250 in one or more chips.
供电电源290,用于在控制器250的控制下,将外部电源输入的电力为显示设备200提供电源供电支持。供电电源290可以是安装在显示设备200内部的内置电源电路,也可以是安装在显示设备200外部的电源。The power supply 290 is used to provide power supply support for the display device 200 with power input from an external power supply under the control of the controller 250. The power supply 290 may be a built-in power supply circuit installed inside the display device 200, or may be a power supply installed outside the display device 200.
对于显示设备200,可以通过控制器250发出指令,控制旋转组件276的驱动电机按照指令指示的方向旋转预设角度,从而带动显示器275旋转至预设角度。通常,为了适应不同的观看需要,可以预设多种旋转角度使显示器275处于不同的旋转状态。例如,旋转状态可以包括横屏状态和竖屏状态,其中,所述横屏状态是指显示器275的屏幕长边平行于地面(或水平面),短边垂直于地面(或水平面),如图5A所示;所述竖屏状态是指显示器275的屏幕短边平行于地面(或水平面),长边垂直于地面(或水平面)如图5B所示。For the display device 200, an instruction can be issued by the controller 250 to control the driving motor of the rotating assembly 276 to rotate a preset angle according to the direction indicated by the instruction, so as to drive the display 275 to rotate to the preset angle. Generally, in order to adapt to different viewing needs, multiple rotation angles can be preset to make the display 275 in different rotation states. For example, the rotation state may include a horizontal screen state and a vertical screen state, wherein the horizontal screen state means that the long side of the screen of the display 275 is parallel to the ground (or horizontal plane), and the short side is perpendicular to the ground (or horizontal plane), as shown in FIG. 5A As shown; the vertical screen state means that the short side of the screen of the display 275 is parallel to the ground (or horizontal plane), and the long side is perpendicular to the ground (or horizontal plane) as shown in FIG. 5B.
显然,横屏状态比较适合播放画面比例为16:9,4:3等横屏形式的媒资,如电影、电视剧等常规视频资源。竖屏状态更适合播放画面比例为9:16,3:4等竖屏形式的媒资,例如,通过手机等终端拍摄的短视频、漫画等。Obviously, the horizontal screen state is more suitable for playing media assets with a horizontal screen ratio of 16:9, 4:3, etc., such as regular video resources such as movies and TV shows. The vertical screen state is more suitable for playing media assets with a vertical screen ratio of 9:16, 3:4, etc., for example, short videos, comics, etc. shot through terminals such as mobile phones.
需要说明的是,虽然横屏状态主要用于显示电视剧、电影等横向媒资,竖屏状态主要用于显示短视频、漫画等竖向媒资,但是上述横屏状态和竖屏状态只是两种不相同的显示器状态,并不对显示的内容构成限制。例如,在横屏状态下依然可以显示短视频、漫画等竖向媒资;在竖屏状态下也依然可以显示电视剧、电影等横向媒资,只是在该状态需要对不相符的显示窗口进行缩放调整。It should be noted that although the horizontal screen state is mainly used to display horizontal media assets such as TV series and movies, and the vertical screen state is mainly used to display vertical media assets such as short videos and comics, the above-mentioned horizontal screen state and vertical screen state are only two types. Different display states do not limit the displayed content. For example, vertical media assets such as short videos and comics can still be displayed in the horizontal screen state; horizontal media assets such as TV series and movies can still be displayed in the vertical screen state, but the inconsistent display window needs to be zoomed in this state. Adjustment.
不同的旋转状态对应于旋转组件276处在不同的旋转角度。实际应用中,如果定 义显示器275横屏状态时旋转组件276的旋转角度为0度,则显示器275竖屏状态时旋转组件276的旋转角度为90度(或-90度)。除上述横屏状态和竖屏状态外,旋转组件276还可以带动显示器275旋转任意角度,例如,180度倒置屏状态等。Different rotation states correspond to different rotation angles of the rotating assembly 276. In practical applications, if the rotation angle of the rotating component 276 is defined as 0 degrees in the horizontal screen state of the display 275, the rotating angle of the rotating component 276 in the vertical screen state of the display 275 is 90 degrees (or -90 degrees). In addition to the above-mentioned horizontal screen state and vertical screen state, the rotating component 276 can also drive the display 275 to rotate at any angle, for example, a 180-degree inverted screen state.
在显示设备200播放某些视频时,需要自动对显示器275进行旋转,以适应不同形式的视频资源。例如,在显示器275处于横屏状态时,用户选择播放短视频等竖屏媒资。显示设备200的操作系统可以检测出视频资源的画面宽高比小于1,而当前显示器275的屏幕宽高比大于1,即确定当前旋转状态与视频资源不匹配,从而自动向旋转组件276发送控制指令,使其带动显示器275顺时针(或逆时针)旋转90度,调整显示器275至竖屏状态。When the display device 200 plays certain videos, the display 275 needs to be automatically rotated to adapt to different forms of video resources. For example, when the display 275 is in the horizontal screen state, the user chooses to play vertical screen media assets such as short videos. The operating system of the display device 200 can detect that the aspect ratio of the video resource is less than 1, and the current screen aspect ratio of the display 275 is greater than 1, that is, it is determined that the current rotation state does not match the video resource, thereby automatically sending control to the rotation component 276 Instruct it to drive the display 275 to rotate 90 degrees clockwise (or counterclockwise) to adjust the display 275 to the vertical screen state.
显示设备200在显示视频画面时,还可以通过画质调整算法,对视频画面进行画质处理。画质处理可以包括对视频画面每一帧上图像的处理,如颜色校正、色彩调优等,还可以包括对视频画面的多帧数据进行处理,如插帧算法、运动补偿等。通过画质处理,可以进一步提高画面显示质量,从而在同等设备配置且不增加视频源资源大小的情况下,拥有更好的观影体验。When the display device 200 displays a video image, it may also perform image quality processing on the video image through an image quality adjustment algorithm. The image quality processing may include processing the image on each frame of the video picture, such as color correction, color adjustment, etc., and may also include processing the multi-frame data of the video picture, such as frame interpolation algorithm, motion compensation, etc. Through image quality processing, the image display quality can be further improved, so as to have a better viewing experience under the same equipment configuration and without increasing the size of the video source resource.
通常,为了在显示器275上进行视频画面显示,在显示设备200的系统框架中,配置有多个显示处理层级,例如视频层(Video层)、OSD层(On-Screen Display层)等。其中,所述视频层是指用户在播放媒资后,显示设备200上用于呈现播放画面的显示层级,也可以称为显示设备200的画质层。在画质层可以显示媒资对应的播放画面。所述OSD层是指用于为用户提供交互操作的显示层级,也可以称为显示设备200的UI(User Interface)层。其中,视频层可以对显示画面进行画质处理,OSD层可以对显示的画面进行后期调整,如旋转、缩放等。并且所述OSD层作为UI层还可以为显示画面添加各种交互控件,例如控制主页等,以便对画面进行手动调整。Generally, in order to display a video screen on the display 275, multiple display processing levels are configured in the system framework of the display device 200, such as a video layer (Video layer), an OSD layer (On-Screen Display layer), and so on. Wherein, the video layer refers to the display level used to present the play screen on the display device 200 after the user plays the media assets, and may also be referred to as the image quality layer of the display device 200. The playback screen corresponding to the media assets can be displayed in the image quality layer. The OSD layer refers to a display level used to provide interactive operations for users, and may also be referred to as a UI (User Interface) layer of the display device 200. Among them, the video layer can perform image quality processing on the displayed image, and the OSD layer can perform post-adjustment of the displayed image, such as rotation and zooming. In addition, the OSD layer as the UI layer can also add various interactive controls to the display screen, such as controlling the homepage, so as to manually adjust the screen.
对于可旋转的显示设备200,由于其显示器275的体积和重量较大,旋转组件276不能迅速将显示器275旋转到预设角度,因此在显示器275旋转的过程中,用户需要等待一定的时间才能正常观看视频资源。例如,显示器275从横屏状态旋转到竖屏状态需要消耗10-30s,在这段时间内,随着显示器275的旋转,显示器275上原本呈现的画面将会出现倾斜,直至显示器275完全旋转至竖屏状态后(或旋转至预设角度后),才能够调整显示画面旋转以及铺满屏幕。可见,在此期间,用户需要长时间观看倾斜的画面,严重影响用户体验。For the rotatable display device 200, due to the large size and weight of the display 275, the rotating assembly 276 cannot quickly rotate the display 275 to a preset angle. Therefore, the user needs to wait for a certain period of time to be normal during the rotation of the display 275. Watch video resources. For example, it takes 10-30 seconds for the display 275 to rotate from the horizontal screen state to the vertical screen state. During this time, as the display 275 rotates, the image originally presented on the display 275 will be tilted until the display 275 is completely rotated to After the vertical screen state (or after rotating to a preset angle), the display screen can be adjusted to rotate and fill the screen. It can be seen that during this period, the user needs to watch the tilted picture for a long time, which seriously affects the user experience.
鉴于此,本申请可以实现在旋转显示器275的同时,对显示画面进行旋转,以使显示画面处于正向的状态,使用户在旋转显示器275的过程中也能够正常观看显示画面。并且,在实际应用中更希望在旋转显示器275的同时,也对显示画面进行调整,以尽量提高旋转过程中所显示画面的画质。通常对画面进行调整包括对显示画面的旋转以及显示画面的画质调整。但在实际应用中,针对旋转过程的画质处理和旋转调整并不能同时进行,使得旋转电视在旋转过程中不得不舍弃对显示画面的画质处理,仅进行旋转调整。In view of this, the present application can rotate the display screen while rotating the display 275, so that the display screen is in a positive state, so that the user can view the display screen normally during the process of rotating the display 275. Moreover, in practical applications, it is more desirable to adjust the display picture while rotating the display 275, so as to improve the picture quality of the picture displayed during the rotation process as much as possible. Usually, the adjustment of the picture includes the rotation of the display picture and the adjustment of the picture quality of the display picture. However, in practical applications, the image quality processing and the rotation adjustment for the rotation process cannot be performed at the same time, so that the rotating TV has to abandon the image quality processing of the display screen during the rotation process and only performs the rotation adjustment.
以基于Android系统的显示设备200为例,在播放视频时,如果要对视频实现动态的任意角度旋转,可以使用view的setRotation API实时的设置角度信息,以达到旋转效果。但是,受限于硬件规格,视频只有在使用OSD层输出时,显示设备200才能进行画面旋转,而当视频使用视频层输出时,无法进行画面旋转。同时,对于显示设 备200,为了对视频做画质处理提高显示效果,视频要使用视频层输出,并做画质处理。可见,现有Android系统的显示设备200,无法实现既能做画质处理又能进行任意角度旋转的视频显示方式。Taking the display device 200 based on the Android system as an example, when playing a video, if you want to achieve dynamic arbitrary angle rotation of the video, you can use the setRotation API of the view to set the angle information in real time to achieve the rotation effect. However, due to hardware specifications, the display device 200 can only perform image rotation when the video is output using the OSD layer, and cannot perform image rotation when the video is output using the video layer. At the same time, for the display device 200, in order to perform image quality processing on the video to improve the display effect, the video should be output using the video layer and processed for image quality. It can be seen that the existing display device 200 of the Android system cannot realize a video display mode that can perform image quality processing and can rotate at any angle.
为了实现在旋转过程中,对显示画面同时进行画质处理和旋转调整,本申请提供一种视频画面旋转方法,如图6、图7所示,本申请提供的视频画面旋转方法,包括以下步骤:In order to achieve simultaneous image quality processing and rotation adjustment on the display screen during the rotation process, this application provides a video screen rotation method, as shown in Figures 6 and 7. The video screen rotation method provided by this application includes the following steps :
S1:获取待显示视频画面。S1: Obtain the video image to be displayed.
待显示视频画面是指用户在操纵显示器275旋转时,显示设备200正在播放的画面。例如,当前显示器275为横屏状态,而用户通过控制装置100执行交互操作,打开短视频应用并播放任一竖屏状态的短视频。控制器250在检测到当前播放的短视频画面为竖向状态后,自动控制旋转组件276进行旋转,从而将显示器275旋转至竖屏状态。由于显示器275在横屏状态调整到竖屏状态需要消耗10-30s时间,因此,在这10-30s时间内对应的短视频内容即为待显示视频画面。The video picture to be displayed refers to the picture being played by the display device 200 when the user manipulates the display 275 to rotate. For example, the current display 275 is in a horizontal screen state, and the user performs an interactive operation by controlling the device 100 to open a short video application and play any short video in a vertical screen state. After the controller 250 detects that the currently played short video picture is in the vertical state, it automatically controls the rotation component 276 to rotate, thereby rotating the display 275 to the vertical state. Since it takes 10-30s to adjust the display 275 from the horizontal screen state to the vertical screen state, the short video content corresponding to the 10-30s time is the video image to be displayed.
显然,待显示视频画面不仅局限于所播放的视频画面本身,还包括此时操作系统所提供的UI界面,例如操作主页、带有操作控件的播放界面等。实际应用中,控制器250可以通过执行操作程序对当前需要显示的画面进行提取,即逐一获取视频中的每一帧图像,以获取待显示视频画面。显示设备200还可以根据自身的硬件配置水平,选择普通帧率或高帧率获取频率模式,例如,对于控制器250运算性能较高的显示设备200,可以通过60Hz或更高帧率的获取频率,而对于控制器250运算性能较低的显示设备200,可以使用30Hz或更低的获取频率,但要保证显示画面在经过后续处理后,仍能够满足基本的流畅性要求。Obviously, the video screen to be displayed is not limited to the played video screen itself, but also includes the UI interface provided by the operating system at this time, such as the operation homepage, the playback interface with operation controls, and so on. In practical applications, the controller 250 may extract the currently displayed picture by executing the operating program, that is, obtain each frame of the video one by one to obtain the to-be-displayed video picture. The display device 200 can also select a normal frame rate or a high frame rate acquisition frequency mode according to its own hardware configuration level. For example, for the display device 200 with a higher computing performance of the controller 250, the acquisition frequency can be obtained at a frame rate of 60 Hz or higher. However, for the display device 200 with low computing performance of the controller 250, an acquisition frequency of 30 Hz or lower can be used, but it is necessary to ensure that the display screen can still meet the basic fluency requirements after subsequent processing.
S2:通过视频层对所述待显示视频画面进行画质处理。S2: Perform image quality processing on the to-be-displayed video picture through the video layer.
控制器250在获取待显示视频画面后,需要先将待显示视频画面在视频层进行画质处理,从而提高画面的显示效果。画质处理可以包括针对多帧图像进行的处理和针对单帧图像进行的处理。其中,针对多帧图像进行的处理可以提高视频画面的动态效果。例如,对于需要进行运动补偿的视频内容,在获取到待显示视频画面后,可以运行操作系统中内置的运动补偿算法程序,以及调用显示设备200内置的运动补偿硬件,在运动视频的多帧间插入运动补偿帧,从而提高运动视频画面的显示帧率,达到运动补偿效果。After the controller 250 acquires the to-be-displayed video image, it needs to first perform image quality processing on the to-be-displayed video image in the video layer, so as to improve the display effect of the image. The image quality processing may include processing for multi-frame images and processing for single-frame images. Among them, processing for multi-frame images can improve the dynamic effect of the video picture. For example, for video content that requires motion compensation, after acquiring the video image to be displayed, the built-in motion compensation algorithm program in the operating system can be run, and the built-in motion compensation hardware of the display device 200 can be invoked, which can be used between multiple frames of the motion video. Insert motion compensation frames to increase the display frame rate of the motion video screen and achieve the effect of motion compensation.
针对单帧图像进行的处理可以提供待显示视频画面的颜色、清晰度、分辨率等画面质量。例如,在获取待显示视频画面后,可以分别提取每一帧画面,再通过读取每一帧画面上各个像素点的色值,在根据预设的颜色校正算法对每一帧画面上每一帧图像的色值进行调整,从而根据画面的使用场景进行颜色调优。The processing of a single frame image can provide the image quality of the video image to be displayed, such as color, clarity, and resolution. For example, after acquiring the video image to be displayed, each frame of the image can be extracted separately, and then by reading the color value of each pixel on each frame of The color value of the frame image is adjusted to optimize the color according to the use scene of the screen.
S3:生成中间图像。S3: Generate an intermediate image.
在待显示视频画面经过画质处理后,控制器250可以调用相关服务,对画质处理后的输出图像进行图像截取,从而生成中间图像。因此,所述中间图像为在所述待显示视频画面经过画质处理输出图像后,通过截取输出图像获得的视频帧数据。通过截取的方式可以保留显示画面画质调整后的效果,提高画面显示质量。After the to-be-displayed video screen undergoes image quality processing, the controller 250 may call related services to perform image interception on the output image after the image quality processing, thereby generating an intermediate image. Therefore, the intermediate image is video frame data obtained by intercepting the output image after the image quality processing of the to-be-displayed video image is output. The effect of adjusting the image quality of the display screen can be retained through the interception method, and the image display quality can be improved.
实际应用中,如果控制器250具有足够的运算能力,可以针对画质处理后的输出图像进行逐帧截取,即经过画质处理后视频画面的帧率等于画面的截取频率,针对输 出图像的每一帧都进行画面截取。例如,经过运动补偿算法处理后,待显示视频画面的帧率为60Hz,则控制器250的截取频率也为60Hz,即每秒截取60帧图像。这样的图像截取方式不仅能够保持视频层输出图像的画质,而且能够保持画质处理后待显示视频画面的流畅性。In practical applications, if the controller 250 has sufficient computing power, it can capture the output image frame by frame after the image quality processing, that is, the frame rate of the video image after the image quality processing is equal to the image capture frequency, and it is specific to each output image. Take screenshots for every frame. For example, after processing by the motion compensation algorithm, the frame rate of the video image to be displayed is 60 Hz, and the intercepting frequency of the controller 250 is also 60 Hz, that is, 60 frames of images are intercepted per second. Such an image interception method can not only maintain the image quality of the output image of the video layer, but also maintain the smoothness of the video image to be displayed after the image quality processing.
而对于控制器250处理性能较弱时,可以针对画质处理后的输出图像进行间隔截取,但为了保证视频的动态效果,截取频率也不能过低。例如,原待显示视频的帧率为60Hz,但当前控制器250的处理性能不能满足每秒60帧的截取需求。因此,可以降低截取频率至30Hz,即每间隔一帧进行一次截取,每秒截取30帧图像,经截取输出的中间图像对应视频帧率变为30Hz。When the processing performance of the controller 250 is weak, the output image after the image quality processing can be intercepted at intervals, but in order to ensure the dynamic effect of the video, the intercepting frequency should not be too low. For example, the frame rate of the original video to be displayed is 60 Hz, but the current processing performance of the controller 250 cannot meet the interception requirement of 60 frames per second. Therefore, the interception frequency can be reduced to 30Hz, that is, an interception is performed every frame, 30 frames of images are intercepted per second, and the corresponding video frame rate of the intermediate image output after interception becomes 30Hz.
需要说明的是,截取显示画面的频率还可以根据实际应用场景进行调整。例如,当显示设备200播放动作类电影、体育赛事直播等需要运动补偿的媒资时,可以提高视频画面的截取频率,使待显示视频不会出现明显的掉帧、卡顿的现象;而当显示设备200进行静态图像演示或播放普通短视频等不需要运动补偿的媒资时,可以适当降低视频画面的截取频率,以减轻控制器250的负荷。It should be noted that the frequency of intercepting the display screen can also be adjusted according to actual application scenarios. For example, when the display device 200 plays media assets that require motion compensation such as action movies, live sports events, etc., the interception frequency of the video screen can be increased, so that the video to be displayed will not have obvious frame drop or freeze; and when When the display device 200 performs static image presentations or plays ordinary short videos and other media assets that do not require motion compensation, the frequency of capturing video images can be appropriately reduced to reduce the load on the controller 250.
S4:通过OSD层旋转所述中间图像,生成旋转图像。S4: Rotate the intermediate image through the OSD layer to generate a rotated image.
为了使电视的旋转过程不影响到用户的观看,可以在显示器275旋转过程中同时对显示的画面进行旋转。例如,显示器275要在15s内从横屏状态逆时针旋转到竖屏状态;则可以在15s内,通过OSD层的服务对显示画面进行顺时针旋转,以保持显示器275上显示的画面始终为正向。In order to ensure that the rotation of the TV does not affect the user's viewing, the displayed picture can be rotated at the same time during the rotation of the display 275. For example, the display 275 needs to rotate counterclockwise from the horizontal screen state to the vertical screen state within 15s; the display screen can be rotated clockwise through the OSD layer service within 15s to keep the screen displayed on the display 275 always positive Towards.
其中,对中间图像进行旋转的过程可以依据用户输入的旋转指令,或者依据显示器275当前所处的角度进行确定。所述旋转指令是指用于控制旋转组件旋转的指令,可以包括触发信号和指定旋转的角度。当获取旋转指令后,控制器可以根据显示器275旋转至指定状态所消耗的时间,计算单位时间显示器275的旋转角度量,从而同步设置给OSD层的旋转服务,使服务能够按照单位时间的旋转角度量和当前时间,确定需要对显示画面进行旋转的角度量。Wherein, the process of rotating the intermediate image can be determined according to the rotation instruction input by the user, or according to the current angle of the display 275. The rotation instruction refers to an instruction used to control the rotation of the rotating component, and may include a trigger signal and a designated rotation angle. After obtaining the rotation instruction, the controller can calculate the rotation angle of the display 275 per unit time according to the time it takes for the display 275 to rotate to the specified state, so as to synchronize the rotation service set to the OSD layer, so that the service can rotate according to the rotation angle per unit time And the current time to determine the amount of angle that needs to be rotated on the display screen.
由于在显示器275旋转过程中,随着旋转过程的进行,显示器275会处在不同的角度,因此旋转过程中的显示画面需要旋转与显示器275旋转角度相对应的角度,才能保证画面式中保持在正向。例如,在显示器275顺时针旋转至30度时,显示器275处于倾斜状态,需要对显示画面逆时针也旋转30度才能保证显示画面为正向。As the display 275 rotates, as the rotation progresses, the display 275 will be at a different angle, so the display screen during the rotation process needs to be rotated by an angle corresponding to the rotation angle of the display 275 to ensure that the screen stays in Positive. For example, when the display 275 rotates clockwise to 30 degrees, the display 275 is in a tilted state, and the display screen needs to be rotated 30 degrees counterclockwise to ensure that the display screen is positive.
S5:逐帧显示所述旋转图像。S5: Display the rotated image frame by frame.
对显示画面进行旋转后,可以根据生成的旋转图像形成视频流,此时,可以将形成的视频流在显示器275上进行显示。由于显示的图像经过旋转,因此在显示时可以适应显示器275的旋转过程,从而在显示器275旋转的过程中,显示画面始终保持在正向显示,避免影响用户的观影效果。并且,旋转图像是通过画面截取画质处理后的图像,因此所呈现的视频画面也获得了画质处理后的效果,即实现了在显示器275旋转过程中,既对显示画面进行旋转调整,又对显示画面进行了画质处理。After the display screen is rotated, a video stream can be formed according to the generated rotated image. At this time, the formed video stream can be displayed on the display 275. Since the displayed image is rotated, it can adapt to the rotation process of the display 275 during display, so that during the rotation of the display 275, the display screen is always displayed in the forward direction to avoid affecting the user's viewing effect. In addition, the rotated image is the image after the image quality processing is intercepted by the screen, so the displayed video image also obtains the effect after the image quality processing, that is, it is realized that the display image is rotated and adjusted during the rotation of the display 275. The image quality of the display screen has been processed.
在一种实现方式中,如图8所示,获取待显示视频画面的步骤,所述方法还包括:In an implementation manner, as shown in FIG. 8, the step of obtaining a to-be-displayed video picture, the method further includes:
S101:创建视频层服务和播放器;S101: Create a video layer service and player;
S102:将所述视频层服务的句柄下发给所述播放器;S102: Deliver the handle of the video layer service to the player;
S103:调用所述播放器对所述待显示视频画面进行解码,以及将解码后的所述待 显示视频画面发送所述视频层服务。S103: Invoke the player to decode the to-be-displayed video image, and send the decoded, to-be-displayed video image to the video layer service.
实际应用中,可以随着系统开机启动,创建实施本申请视频画面旋转方法的服务,创建的服务会随着系统开机运行后,保持在内存中,以便监听视频播放状态。在用户发出指令控制显示设备200进行旋转时,或者系统通过自动判断实现旋转时,可以调用创建的服务,从而执行相应的视频画面旋转方法。In actual applications, a service that implements the video screen rotation method of this application can be created as the system starts up. The created service will be kept in the memory after the system is started up to monitor the video playback status. When the user issues an instruction to control the display device 200 to rotate, or when the system realizes rotation through automatic judgment, the created service can be called to execute the corresponding video screen rotation method.
其中,为了实现在不同层进行画面处理,可以随开机启动创建视频层服务(surface view)和播放器,并将视频层服务的句柄(handle)下发给播放器,以便在播放视频时可以调用播放器先对待显示视频画面进行解复用、解码等操作,并通过调用视频层服务的句柄将解码后的视频画面发送给视频层服务。Among them, in order to realize image processing at different layers, a video layer service (surface view) and a player can be created upon startup, and the handle of the video layer service can be sent to the player so that it can be called when the video is played. The player first performs operations such as demultiplexing and decoding of the video image to be displayed, and sends the decoded video image to the video layer service by calling the handle of the video layer service.
在一种实现方式中,如图9所示,生成中间图像的步骤,包括:In an implementation manner, as shown in FIG. 9, the step of generating an intermediate image includes:
S301:创建截取服务;S301: Create an interception service;
S302:获取输出图像;S302: Obtain an output image;
S303:调用所述截取服务截取所述输出图像,获得所述中间图像。S303: Invoke the interception service to intercept the output image, and obtain the intermediate image.
其中,所述截取服务用于截取视频帧数据,截取服务也可以在系统开机初始化运行时创建,并且在需要对显示画面进行旋转时,调用服务实时的截取视频层数据,并输送到OSD层显示。本申请中,经过画质处理的待显示视频画面可以形成输出图像,即所述输出图像为所述待显示视频画面经过画质处理后,获得的图像数据。显然,输出图像可以与原待显示图像拥有不同的帧率和/或不同的图像画面效果。Wherein, the interception service is used to intercept the video frame data. The interception service can also be created when the system is started and initialized, and when the display screen needs to be rotated, the service is called to intercept the video layer data in real time and send it to the OSD layer for display . In this application, the to-be-displayed video screen that has undergone image quality processing may form an output image, that is, the output image is image data obtained after the image-quality processing of the to-be-displayed video screen is processed. Obviously, the output image may have a different frame rate and/or different image effects from the original image to be displayed.
例如,在视频层完成(或部分完成)对待显示视频画面的画质处理后,可以调用创建的截取服务,并在视频层获取经画质处理后的输出图像。针对输出图像,截取服务可以逐帧截取或间隔帧截取,从而获得中间图像。For example, after the video layer completes (or partially completes) the image quality processing of the to-be-displayed video image, the created interception service can be invoked, and the image quality processed output image can be obtained in the video layer. For the output image, the interception service can intercept frame by frame or interval frame interception to obtain intermediate images.
在一种实现方式中,如图10所示,通过OSD层旋转所述中间图像,生成旋转图像的步骤,还包括:In an implementation manner, as shown in FIG. 10, the step of rotating the intermediate image through the OSD layer to generate a rotated image further includes:
S41:获取显示器旋转信息;S41: Obtain display rotation information;
S42:设置画面旋转方向和画面旋转角度;S42: Set the screen rotation direction and screen rotation angle;
S43:按照所述画面旋转方向和画面旋转角度旋转所述中间图像。S43: Rotate the intermediate image according to the screen rotation direction and the screen rotation angle.
在获取中间图像后,控制器250可以通过读取旋转组件276上设置的角度传感器或者读取显示器275内置的重力加速度传感器,确定当前显示器旋转信息。显然,所述显示器旋转信息包括显示器旋转方向和显示器旋转角度。其中,显示器旋转方向可以从旋转指令中获取,例如旋转指令指定显示器275从横屏状态旋转至竖屏状态,显示器旋转信息中的显示器旋转方向为逆时针。显示器旋转角度可以从角度传感器或重力加速度传感器检测的数值中获取,实际应用中所述显示器旋转角度是指相对于横屏状态(0度状态)下的角度值。After acquiring the intermediate image, the controller 250 can determine the current display rotation information by reading the angle sensor provided on the rotation component 276 or the gravity acceleration sensor built in the display 275. Obviously, the display rotation information includes the display rotation direction and the display rotation angle. The rotation direction of the display can be obtained from the rotation instruction. For example, the rotation instruction specifies that the display 275 rotates from the horizontal screen state to the vertical screen state, and the display rotation direction in the display rotation information is counterclockwise. The rotation angle of the display can be obtained from a value detected by an angle sensor or a gravity acceleration sensor. In practical applications, the rotation angle of the display refers to an angle value relative to the horizontal screen state (0 degree state).
在获取显示器旋转信息后,控制器250可以根据显示器旋转信息对画面的旋转方式进行设置,即设置画面旋转方向和画面旋转角度。其中,所述画面旋转方向与所述显示器旋转方向相反,所述画面旋转角度等于所述显示器旋转角度。例如,通过显示器旋转信息确定当前显示器275逆时针旋转35度,则设置画面旋转方向为顺时针,画面旋转角度为35度。最后,控制器250再按照画面旋转方向和画面旋转角度旋转中间图像。例如,使中间图像保持在顺时针旋转35度的状态。After obtaining the display rotation information, the controller 250 may set the rotation mode of the screen according to the display rotation information, that is, set the screen rotation direction and the screen rotation angle. Wherein, the screen rotation direction is opposite to the display rotation direction, and the screen rotation angle is equal to the display rotation angle. For example, if it is determined by the display rotation information that the current display 275 is rotated counterclockwise by 35 degrees, then the screen rotation direction is set to clockwise and the screen rotation angle is set to 35 degrees. Finally, the controller 250 rotates the intermediate image according to the screen rotation direction and the screen rotation angle. For example, keep the intermediate image rotated by 35 degrees clockwise.
在一种实现方式中,如图11所示,为了执行画面旋转操作,所述方法还包括:In an implementation manner, as shown in FIG. 11, in order to perform a screen rotation operation, the method further includes:
S401:创建旋转服务;S401: Create a rotation service;
S402:获取用户输入的旋转指令;S402: Obtain the rotation instruction input by the user;
S403:如果获取到所述旋转指令,调用所述旋转服务获取显示器旋转信息。S403: If the rotation instruction is obtained, call the rotation service to obtain display rotation information.
其中,所述旋转服务用于对显示画面进行旋转,显然旋转服务基于OSD层,也可以随着显示设备200开机启动自动创建,而在获取到旋转指令后调用执行。其中,所述旋转指令用于驱动旋转组件276带动显示器275进行旋转,以使所述显示器275处于多种旋转状态中的一种。Wherein, the rotation service is used to rotate the display screen. Obviously, the rotation service is based on the OSD layer, and it can also be automatically created when the display device 200 is turned on, and called and executed after the rotation instruction is obtained. The rotation instruction is used to drive the rotation assembly 276 to drive the display 275 to rotate, so that the display 275 is in one of a variety of rotation states.
因此,在本实施例中,可以在创建旋转服务后,获取用户输入的旋转指令,当获取到用户输入的旋转指令后,调用旋转服务以获取显示器旋转信息。而当未获取到旋转指令时,旋转服务可以保持在未激活的状态,以避免对显示设备200内存空间的占用。Therefore, in this embodiment, after the rotation service is created, the rotation instruction input by the user may be obtained, and after the rotation instruction input by the user is obtained, the rotation service may be invoked to obtain display rotation information. When the rotation instruction is not obtained, the rotation service can be kept in an inactive state to avoid occupying the memory space of the display device 200.
在一种实现方式中,如图12所示,为了对中间图像进行旋转,获取显示器旋转信息的步骤,包括:In an implementation manner, as shown in FIG. 12, in order to rotate the intermediate image, the step of obtaining display rotation information includes:
S411:监听旋转组件的角度回调接口;S411: Monitor the angle callback interface of the rotating component;
S412:通过所述角度回调接口获取显示器当前旋转的角度,生成所述显示器旋转信息。S412: Obtain the current rotation angle of the display through the angle callback interface, and generate the display rotation information.
旋转组件276上设置有角度回调接口。角度回调接口是操作系统为适应显示器旋转过程而设置的一种统一规范接口,用于实时获取旋转组件276的转动角度。角度回调接口可以通过角度传感器实时检测所述旋转组件276所转动的角度,从而确定显示器275旋转的过程中,任意时刻对应的姿态。The rotation component 276 is provided with an angle callback interface. The angle callback interface is a unified standard interface set by the operating system to adapt to the display rotation process, and is used to obtain the rotation angle of the rotating component 276 in real time. The angle callback interface can detect the angle rotated by the rotating component 276 in real time through an angle sensor, so as to determine the corresponding posture at any time during the rotation of the display 275.
因此,通过监听旋转组件276的角度回调接口,可以确定显示器275当前旋转的角度,再结合旋转指令中指定的显示器旋转方向,从而生成显示器旋转信息。Therefore, by monitoring the angle callback interface of the rotation component 276, the current rotation angle of the display 275 can be determined, and combined with the display rotation direction specified in the rotation instruction, the display rotation information can be generated.
在一种实现方式中,通过OSD层旋转所述中间图像,生成旋转图像的步骤后,所述方法还包括:根据显示器旋转信息定位显示器275的当前边界位置;再根据所述当前边界位置对所述旋转图像进行裁切;或者,根据所述当前边界位置对所述旋转图像进行缩放。In one implementation, after the step of rotating the intermediate image through the OSD layer to generate the rotated image, the method further includes: locating the current boundary position of the display 275 according to the display rotation information; The rotated image is cropped; or, the rotated image is scaled according to the current boundary position.
实际应用中,由于显示器275在旋转至倾斜状态后,显示器275的边界位置也会发生变化,而如果显示画面处在正向显示的状态时,倾斜的显示器275将无法正常显示正向的画面。例如,如图13所示,在画面的右上角和左下角出现无法显示的区域,而在其他边缘位置出现空白区域。为此,在获取到任意时刻显示器旋转信息后,可以根据显示器旋转信息确定当前时刻显示器275边界所处的位置,再根据当前边界位置对旋转图像进行裁切并对空白区域进行填充,例如按照显示器275的屏幕边界位置,将画面的右上角和左下角进行裁切,以能够保持当前状态对画面完成显示;并且还对画面的其他边缘位置填充纯色背景,以提高显示质量。In practical applications, after the display 275 is rotated to the tilted state, the boundary position of the display 275 will also change, and if the display screen is in the forward display state, the tilted display 275 will not be able to display the forward screen normally. For example, as shown in Figure 13, areas that cannot be displayed appear in the upper right and lower left corners of the screen, while blank areas appear in other edge positions. For this reason, after acquiring the display rotation information at any time, the position of the border of the display 275 at the current time can be determined according to the display rotation information, and then the rotated image is cropped according to the current border position and the blank area is filled, for example, according to the display 275 screen border position, cut the upper right corner and lower left corner of the screen to be able to maintain the current state to complete the display of the screen; and also fill the other edge positions of the screen with a solid color background to improve the display quality.
生成旋转图像的步骤后,还可以根据当前边界位置对旋转图像进行缩放,即按照当前倾斜状态的显示器275屏幕所能够容纳的最大正向画面显示区域,对旋转后的图像进行缩放。由于显示器275在旋转过程中屏幕的倾斜状态不断变化,所能够容纳的最大正向画面区域也是不断变化的,因此,可以根据旋转过程,逐步对旋转图像进行缩放,以达到平稳过渡的显示效果。After the step of generating the rotated image, the rotated image can also be scaled according to the current boundary position, that is, the rotated image can be scaled according to the maximum forward image display area that the screen of the display 275 in the current tilt state can accommodate. Since the tilt state of the screen of the display 275 is constantly changing during the rotation process, the maximum positive image area that can be accommodated is also constantly changing. Therefore, the rotated image can be gradually scaled according to the rotation process to achieve a smooth transition display effect.
即在一种实现方式中,如图14所示,根据所述当前边界位置对所述旋转图像进行 缩放的步骤,包括:That is, in an implementation manner, as shown in FIG. 14, the step of scaling the rotated image according to the current boundary position includes:
S441:根据显示器旋转信息,定位当前显示窗口位置和目标显示窗口位置;S441: According to the display rotation information, locate the current display window position and the target display window position;
S442:比对所述目标显示窗口位置与所述当前显示窗口位置,生成宽高变形量;S442: Compare the position of the target display window with the position of the current display window to generate a width and height deformation amount;
S443:生成缩放步长;S443: Generate zoom step size;
S444:按照所述缩放步长调整所述旋转图像的宽高数值。S444: Adjust the width and height values of the rotated image according to the zoom step.
其中,所述当前显示窗口位置和目标显示窗口位置是指对应于显示器275旋转状态,显示器275旋转前后的画面显示窗口位置。例如,显示器275需要从横屏状态旋转到竖屏状态的过程中,横屏状态下对应显示播放视频的画面位置即为当前显示窗口位置;而在旋转后显示器275竖屏状态下对应显示播放视频的画面位置即为目标窗口位置。Wherein, the current display window position and the target display window position refer to the position of the screen display window before and after the rotation of the display 275 corresponding to the rotation state of the display 275. For example, when the display 275 needs to be rotated from the horizontal screen state to the vertical screen state, the screen position corresponding to the displayed video in the horizontal screen state is the current display window position; and the display 275 correspondingly displays the played video in the vertical screen state after rotation The screen position of is the target window position.
同理,在显示器275需要从竖屏状态旋转到横屏状态的过程中,竖屏状态下对应显示播放视频的画面位置即为当前显示窗口位置;而在旋转后显示器275横屏状态下对应显示播放视频的画面位置即为目标窗口位置。In the same way, when the display 275 needs to be rotated from the vertical screen state to the horizontal screen state, the screen position corresponding to the displayed video in the vertical screen state is the current display window position; and the display 275 corresponds to the horizontal screen state after rotation. The screen position of the playing video is the target window position.
本实施例中,为了使得显示画面在显示器275的旋转过程中,始终能够较多地填充显示器275的显示区域,保证显示画面的质量,可以在对显示画面进行旋转的过程中,同时对显示画面进行等比例缩放。In this embodiment, in order to ensure that the display screen is always able to fill the display area of the display 275 during the rotation of the display 275, and to ensure the quality of the display screen, the display screen can be rotated at the same time. Perform equal scaling.
具体的,可以在播放媒资画面后,根据旋转角度以及显示器275的屏幕尺寸特点,确定目标显示窗口位置。例如,需要从横屏状态切换至竖屏状态,则提取的旋转角度为逆时针90度,从而确定预定目标窗口位置为竖屏状态下播放区域对应的位置。Specifically, after the media asset screen is played, the target display window position can be determined according to the rotation angle and the screen size characteristics of the display 275. For example, if it is necessary to switch from the horizontal screen state to the vertical screen state, the extracted rotation angle is 90 degrees counterclockwise, so as to determine that the predetermined target window position is the position corresponding to the playback area in the vertical screen state.
在确定目标显示窗口位置后,可以通过比对目标显示窗口位置与当前显示窗口位置,确定显示窗口的宽高变形量。例如,65寸的显示器尺寸为1440×810(mm),在横屏状态下显示竖向媒资,则显示画面的高度小于或等于显示器275的高度,即小于或等于810mm,而在竖屏状态下显示竖向媒资则可以小于或等于1440mm的高度(横屏状态下显示器的宽度),因此可以确定显示画面高度变形量为1440-810=630mm。同理,按照竖向媒资的宽高比可以计算出宽度变形量。After the target display window position is determined, the width and height deformation amount of the display window can be determined by comparing the target display window position with the current display window position. For example, the size of a 65-inch monitor is 1440×810 (mm), and when the media is displayed vertically in the landscape mode, the height of the display screen is less than or equal to the height of the monitor 275, that is, less than or equal to 810mm, while in the portrait mode The vertical media information displayed in the bottom can be less than or equal to 1440mm in height (the width of the display in the horizontal screen state), so it can be determined that the display screen height deformation is 1440-810=630mm. In the same way, the amount of width deformation can be calculated according to the aspect ratio of the vertical media assets.
在确定宽高变形量后,可以根据宽高变形量与旋转组件276的转动速度计算获得的单位时间宽高缩放量,即生成缩放步长。所述缩放步长为根据所述宽高变形量与旋转组件的转动速度计算获得的单位时间宽高缩放量。例如,显示器275要在15s从横屏状态旋转到竖屏状态,则高度缩放步长为630/15=42mm/s。同样,根据宽度的变形量,也可以计算出宽度的缩放步长。After the width and height deformation amount is determined, the width and height zoom amount per unit time can be calculated according to the width and height deformation amount and the rotation speed of the rotating component 276, that is, the zoom step size is generated. The zoom step size is the width and height zoom amount per unit time calculated according to the width and height deformation amount and the rotation speed of the rotating component. For example, if the display 275 is to be rotated from the horizontal screen state to the vertical screen state in 15s, the height zoom step is 630/15=42mm/s. Similarly, according to the amount of deformation of the width, the zoom step of the width can also be calculated.
分别确定显示画面高度和宽度的缩放步长后,可以按照缩放步长同时调整显示画面窗口的宽高数值。从而在显示器275旋转至目标状态时,显示画面恰好充满显示器275的显示区域,提高用户体验。After determining the zoom step for the height and width of the display screen respectively, the width and height values of the display screen window can be adjusted at the same time according to the zoom step. Therefore, when the display 275 rotates to the target state, the display screen just fills the display area of the display 275, which improves the user experience.
为了获得更好的显示效果,在按照缩放步长同时调整显示画面窗口的宽高数值的步骤中,控制器250还可以被配置为以下程序步骤:在当前显示窗口中定位缩放基点坐标;并且以所述缩放基点坐标为基准,按照所述缩放步长同步调整显示画面窗口的宽高数值。In order to obtain a better display effect, in the step of simultaneously adjusting the width and height values of the display window according to the zoom step, the controller 250 may also be configured as the following program steps: locate the zoom base point coordinates in the current display window; and The zoom base point coordinates are used as a reference, and the width and height values of the display screen window are synchronously adjusted according to the zoom step length.
其中,缩放基点可以根据显示窗口的形状和调节方式进行定位,例如可以选择显示窗口的中心点作为缩放基点,这样,在显示画面旋转前后,基点的位置是固定不变的。还可以窗口边界四个顶点中的一个作为缩放基点,例如左上顶点等。The zoom base point can be positioned according to the shape and adjustment mode of the display window. For example, the center point of the display window can be selected as the zoom base point, so that the position of the base point is fixed before and after the display screen is rotated. One of the four vertices of the window boundary can also be used as the zoom base point, such as the upper left vertex.
由以上技术方案可知,本申请提供一种视频画面旋转方法,所述方法在获取待显示视频画面后,可在视频层进行画质处理。再通过截取画质处理后的输出图像获得中间图像,并且在通过OSD层旋转中间图像,以生成旋转图像。最后逐帧显示旋转图像从而实现在视频播放过程中对视频画面进行动态任意角度的旋转,同时对视频图像做相应的画质处理,提高图像显示效果。It can be seen from the above technical solutions that the present application provides a method for rotating a video image, which can perform image quality processing on the video layer after acquiring the video image to be displayed. The intermediate image is obtained by intercepting the output image after the image quality processing, and the intermediate image is rotated through the OSD layer to generate the rotated image. Finally, the rotating image is displayed frame by frame to realize the dynamic rotation of the video image at any angle during the video playback process, and at the same time, the corresponding image quality processing is performed on the video image to improve the image display effect.
基于上述视频画面旋转方法,本申请还提供一种显示设备,包括:显示器275、旋转组件276以及控制器250。其中,显示器275和旋转组件276均与控制器250建立数据连接关系,以通过控制器250分别控制显示器275的显示过程和旋转组件276的旋转过程中。旋转组件276还被配置为带动所述显示器275旋转,以使所述显示器275处于多种旋转状态中的一种。Based on the above video image rotation method, the present application also provides a display device, including: a display 275, a rotation component 276, and a controller 250. Wherein, the display 275 and the rotating component 276 both establish a data connection relationship with the controller 250, so as to control the display process of the display 275 and the rotating process of the rotating component 276 through the controller 250, respectively. The rotating component 276 is also configured to drive the display 275 to rotate, so that the display 275 is in one of a variety of rotating states.
如图6所示,控制器250被配置为执行以下程序步骤:As shown in FIG. 6, the controller 250 is configured to execute the following program steps:
S1:获取待显示视频画面;S1: Obtain the video image to be displayed;
S2:通过视频层对所述待显示视频画面进行画质处理;S2: Perform image quality processing on the to-be-displayed video picture through the video layer;
S3:生成中间图像;所述中间图像为在所述待显示视频画面经过画质处理输出图像后,通过截取输出图像获得的视频帧数据;S3: generating an intermediate image; the intermediate image is the video frame data obtained by intercepting the output image after the image to be displayed is output through image quality processing;
S4:通过OSD层旋转所述中间图像,生成旋转图像;S4: Rotate the intermediate image through the OSD layer to generate a rotated image;
S5:控制所述显示器逐帧显示所述旋转图像。S5: Control the display to display the rotated image frame by frame.
实际应用中,控制器250可以被配置为:应用创建一个截取服务,该截取服务用于从视频层实时截取帧数据,并将数据输送到OSD层;再应用创建surfaceview(视频层)服务以及播放器,并将surfaceview的handle下发给播放器;以及创建surface服务,用于OSD层输出。控制器250还被应用调用播放器进行解复用、解码等操作,解码后的数据送到视频层;再通过视频层对数据进行画质处理;再通过执行截取服务,实时的截取视频层数据并输送到OSD层显示;以及应用通过服务给OSD层设置旋转角度信息,实现视频旋转并显示。In practical applications, the controller 250 can be configured to: the application creates an interception service, which is used to intercept frame data from the video layer in real time and transmit the data to the OSD layer; and then the application creates a surfaceview (video layer) service and plays And send the handle of the surfaceview to the player; and create a surface service for OSD layer output. The controller 250 is also called by the application player to perform demultiplexing, decoding, and other operations, and the decoded data is sent to the video layer; the data is processed through the video layer for image quality; and the interception service is executed to intercept the video layer data in real time. And send it to the OSD layer for display; and the application sets the rotation angle information to the OSD layer through the service to realize the video rotation and display.
由以上技术方案可知,本申请还提供一种显示设备200,包括:显示器275、旋转组件276以及控制器250。其中,控制器250可以控制旋转组件276转动,以带动显示器275旋转预设角度。并且,在控制显示器275旋转的过程中,还可以同步对显示视频画面进行旋转和画质处理。控制器250可从视频层截取完成画质处理的帧数据到OSD层进行旋转处理,实现既能对待显示视频画面做画质处理,又能对视频进行任意角度旋转。It can be seen from the above technical solutions that the present application also provides a display device 200, which includes a display 275, a rotating component 276, and a controller 250. The controller 250 can control the rotation of the rotating assembly 276 to drive the display 275 to rotate by a preset angle. In addition, in the process of controlling the rotation of the display 275, it is also possible to perform rotation and image quality processing on the displayed video screen simultaneously. The controller 250 can intercept the frame data that has completed the image quality processing from the video layer to the OSD layer for rotation processing, so that it can perform image quality processing on the to-be-displayed video image and rotate the video at any angle.
参见图15A,为本申请一些实施例提供的图1中显示设备的横屏状态的示意图。显示器275处于横屏状态时的操作模式可以称为横屏媒资观看模式,显示器275处于竖屏状态时的操作模式可以称为竖屏媒资观看模式。图15中,能够直观看到的即为显示设备200中的显示器275,该显示设备200中的控制器250进一步与服务器300通信连接,用于调用服务器300的接口,获取相应数据。该显示设备200中的显示器275能够被旋转组件276驱动旋转,并用于显示用户界面。在实际应用中,用户可通过控制装置100来控制显示设备200的播放模式、播放内容等,其中,播放模式包括横屏媒资观看模式和竖屏媒资观看模式。Refer to FIG. 15A, which is a schematic diagram of the horizontal screen state of the display device in FIG. 1 provided by some embodiments of this application. The operation mode when the display 275 is in the horizontal screen state may be referred to as the horizontal screen media viewing mode, and the operation mode when the display 275 is in the vertical screen state may be referred to as the vertical screen media viewing mode. In FIG. 15, what can be visually seen is the display 275 in the display device 200, and the controller 250 in the display device 200 is further communicatively connected with the server 300 for calling the interface of the server 300 to obtain corresponding data. The display 275 in the display device 200 can be driven to rotate by the rotating component 276 and used to display a user interface. In practical applications, the user can control the play mode, play content, etc. of the display device 200 through the control device 100, where the play mode includes a horizontal screen media viewing mode and a vertical screen media viewing mode.
在一种实现方式中,显示设备200包括旋转组件276,该旋转组件276能够将显示设备200进行固定,并能够在控制器250的控制下,控制显示器275旋转以使显示 器275处于横屏状态或竖屏状态。该旋转组件276可以固定在显示器275的背面,旋转组件276用于和墙面固定,且旋转组件276接收控制器250的控制指令,使显示器275在竖直的平面内进行旋转,使得显示器275处于横屏状态或竖屏状态。In one implementation, the display device 200 includes a rotating component 276 that can fix the display device 200, and can control the rotation of the display 275 under the control of the controller 250 so that the display 275 is in a landscape state or Portrait state. The rotating component 276 can be fixed on the back of the display 275. The rotating component 276 is used for fixing to the wall, and the rotating component 276 receives the control command of the controller 250 to rotate the display 275 in a vertical plane, so that the display 275 is in the vertical plane. Horizontal screen state or vertical screen state.
其中,所述横屏状态是指,从显示器275正面观看时,所述显示器275水平方向上的长度(宽)大于竖直方向上的长度(高)的状态;所述竖屏状态是指,从显示器275正面观看时,所述显示器275水平方向上的长度(宽)小于竖直方向上的长度(高)的状态。显然,所述竖直方向在本申请中是指大致竖直,水平方向也是指大致水平即可。Wherein, the horizontal screen state refers to a state in which the length (width) in the horizontal direction of the display 275 is greater than the length (height) in the vertical direction when viewed from the front of the display 275; the vertical screen state refers to, When viewed from the front of the display 275, the length (width) of the display 275 in the horizontal direction is smaller than the length (height) in the vertical direction. Obviously, the vertical direction in this application refers to substantially vertical, and the horizontal direction also refers to substantially horizontal.
在旋转组件276的驱动下,显示器275可以顺时针或逆时针旋转90度,以显示器275处于竖屏状态,如图15B所示。在竖屏状态下,显示器可以显示竖屏状态对应的用户界面,并拥有竖屏状态相对应的界面布局和交互方式。在竖屏媒资观看模式下,用户可以观看短视频、漫画等竖屏媒资。同理,由于显示设备200中的控制器250进一步与服务器300通信连接,因此可以在竖屏状态时,通过调用服务器300的接口,获取竖屏相应的媒资数据。Driven by the rotating component 276, the display 275 can be rotated 90 degrees clockwise or counterclockwise, so that the display 275 is in a vertical screen state, as shown in FIG. 15B. In the vertical screen state, the display can display the user interface corresponding to the vertical screen state, and has the interface layout and interaction mode corresponding to the vertical screen state. In the vertical screen media asset viewing mode, users can watch short videos, comics and other vertical screen media assets. In the same way, since the controller 250 in the display device 200 is further in communication with the server 300, it is possible to obtain the media asset data corresponding to the vertical screen by calling the interface of the server 300 in the vertical screen state.
竖屏状态更适合播放画面比例为9:16等竖屏形式的媒资,例如,通过手机等终端拍摄的短视频等。由于手机等终端设备多采用9:16,9:18等竖向屏幕比例,因此在终端接入显示设备200,并通过显示设备200显示终端画面时,竖屏状态能够避免对画面进行过渡缩放,充分利用显示器275的显示画面,拥有更好的用户体验。The vertical screen state is more suitable for playing media assets with a vertical screen ratio of 9:16, for example, short videos shot through terminals such as mobile phones. Since terminal devices such as mobile phones mostly adopt vertical screen ratios such as 9:16 and 9:18, when the terminal is connected to the display device 200 and the terminal screen is displayed through the display device 200, the vertical screen state can avoid the transitional scaling of the screen. Make full use of the display screen of the display 275 to have a better user experience.
需要说明的是,横屏状态主要用于显示电视剧、电影等横向媒资,竖屏状态主要用于显示短视频、漫画等竖向媒资。上述横屏状态和竖屏状态只是两种不相同的显示器状态,并不对显示的内容构成限制,例如,在横屏状态下依然可以显示短视频、漫画等竖向媒资;在竖屏状态下也依然可以显示电视剧、电影等横向媒资,只是在该状态需要对不相符的显示窗口进行压缩、调整。It should be noted that the horizontal screen state is mainly used to display horizontal media assets such as TV series and movies, and the vertical screen state is mainly used to display vertical media assets such as short videos and comics. The above-mentioned horizontal screen state and vertical screen state are just two different display states, and do not limit the displayed content. For example, vertical media assets such as short videos and comics can still be displayed in the horizontal screen state; in the vertical screen state Horizontal media assets such as TV series and movies can still be displayed, but the inconsistent display windows need to be compressed and adjusted in this state.
显示设备200可以通过显示器275为用户提供显示画面,可以提供多个显示层级,例如画质层、UI层等。其中,所述画质层是指用户在播放媒资后,显示设备200上用于呈现播放画面的显示层级,也可以称为显示设备200的Video层。在画质层可以显示媒资对应的播放画面。所述UI层(User Interface)是指用于为用户提供交互操作的显示层级,也可以称为显示设备200的OSD(On-Screen Display)层。UI层可以显示各种交互控件,例如控制主页。The display device 200 can provide the user with a display screen through the display 275, and can provide multiple display levels, such as an image quality layer, a UI layer, and so on. Wherein, the image quality layer refers to the display level used to present the play screen on the display device 200 after the user plays the media assets, and may also be referred to as the Video layer of the display device 200. The playback screen corresponding to the media assets can be displayed in the image quality layer. The UI layer (User Interface) refers to a display level for providing interactive operations for users, and may also be referred to as an OSD (On-Screen Display) layer of the display device 200. The UI layer can display various interactive controls, such as controlling the homepage.
根据显示器275不同的旋转状态,显示器275上所呈现的主页模式也不同,例如在一种实现方式中,显示设备200启动中,检测到当前显示器275处于横屏状态。则控制器250请求调用服务器300的接口,向服务器300发送横屏主页数据的获取请求。服务器300响应于该获取请求,并将横屏主页数据下发至控制器250。控制器250对横屏主页数据进行识别,并根据横屏主页数据控制显示器275显示出横屏主页。According to different rotation states of the display 275, the home page mode presented on the display 275 is also different. For example, in an implementation manner, the display device 200 detects that the current display 275 is in a landscape state when the display device 200 is started. Then the controller 250 requests to call the interface of the server 300, and sends a request for acquiring the horizontal screen homepage data to the server 300. The server 300 responds to the acquisition request, and delivers the horizontal screen homepage data to the controller 250. The controller 250 recognizes the horizontal homepage data, and controls the display 275 to display the horizontal homepage based on the horizontal homepage data.
而在另一种实现方式中,在显示器275处于竖屏状态时,响应于操作指令,控制旋转组件276旋转以使显示器275由当前竖屏状态转换为横屏状态,并请求调用服务器300的接口,向服务器300发送横屏主页数据的获取请求。服务器300响应于该获取请求,并将横屏主页数据下发至控制器250。控制器250对横屏主页数据进行识别,并根据横屏主页数据控制显示器275显示出横屏主页。In another implementation manner, when the display 275 is in the vertical screen state, in response to the operation instruction, the rotating component 276 is controlled to rotate so that the display 275 is converted from the current vertical screen state to the horizontal screen state, and the interface of the server 300 is requested to be called , To send a request for acquiring the horizontal screen homepage data to the server 300. The server 300 responds to the acquisition request, and delivers the horizontal screen homepage data to the controller 250. The controller 250 recognizes the horizontal homepage data, and controls the display 275 to display the horizontal homepage based on the horizontal homepage data.
为了获得更好的观看体验,在显示不同的媒资时,可以通过旋转组件276来调整 显示器275的横屏状态和竖屏状态。即,显示器275能够根据用户需求进行旋转,用户可根据观看需求,向控制器250发送触发旋转的操作指令,控制器250接收并响应于用户发送的触发旋转的操作指令,转换显示器275的旋转状态,旋转状态可以包括横屏状态或竖屏状态,横屏状态对应横屏媒资观看模式,竖屏状态对应竖屏媒资观看模式。In order to obtain a better viewing experience, when different media assets are displayed, the horizontal screen state and the vertical screen state of the display 275 can be adjusted by rotating the component 276. That is, the display 275 can be rotated according to user needs, and the user can send an operation instruction to trigger rotation to the controller 250 according to viewing needs, and the controller 250 receives and responds to the operation instruction sent by the user to trigger rotation to switch the rotation state of the display 275 , The rotation state can include the horizontal screen state or the vertical screen state, the horizontal screen state corresponds to the horizontal screen media asset viewing mode, and the vertical screen state corresponds to the vertical screen media asset viewing mode.
在一种实现方式中,显示设备200的控制器250可以通过检测显示器275中显示的画面比例来确定是否需要旋转显示器275。例如,用户在横屏状态下播放了短视频、漫画等竖向媒资,控制器250可以检测到该竖向媒资与当前的横屏状态不相符时,自动对旋转组件276进行控制,以将显示器275转动90度,调整为竖屏状态。In an implementation manner, the controller 250 of the display device 200 can determine whether the display 275 needs to be rotated by detecting the aspect ratio displayed in the display 275. For example, if the user plays a short video, comics and other vertical media assets in the horizontal screen state, the controller 250 can detect that the vertical media assets do not match the current horizontal screen state, and automatically control the rotating component 276 to Rotate the display 275 by 90 degrees to adjust to the portrait state.
由于旋转组件276的转动过程比较缓慢,因此,在转动过程中,用户需要长时间观看倾斜的画面。例如,显示器275从横屏状态到竖屏状态需要顺时针转动90度,转动过程共需要15s,则在15s内显示器275中的画面会随着显示器275的转动,不断倾斜,直到显示器275转动到竖屏状态后,再通过将画面逆时针转动90度,以呈现为竖屏显示。Since the rotating process of the rotating component 276 is relatively slow, the user needs to watch the tilted picture for a long time during the rotating process. For example, the display 275 needs to be rotated 90 degrees clockwise from the horizontal screen state to the vertical screen state, and the rotation process takes 15s in total. In 15s, the picture in the display 275 will continue to tilt with the rotation of the display 275 until the display 275 rotates to After the vertical screen state, turn the screen 90 degrees counterclockwise to display the vertical screen.
为了减少倾斜时间,改善用户体验,本申请可以在画质层对显示画面进行同步旋转,以使得在旋转过程中,显示器275上显示的画面始终为正向。其中,画质层为显示设备200所对应操作系统中的一个显示层级。区别于UI层,画质层可以很方便的对画面进行画质、缩放比例、方向进行调整。一般,媒资对应的播放画面在画质层进行展示,因此,在画质层进行同步旋转可以无需考虑视频资源的来源,对所有媒资都能够进行调整。In order to reduce the tilting time and improve the user experience, the present application can synchronize the rotation of the display screen at the image quality layer, so that the screen displayed on the display 275 is always positive during the rotation process. The image quality layer is a display level in the operating system corresponding to the display device 200. Different from the UI layer, the image quality layer can easily adjust the image quality, zoom ratio, and direction of the screen. Generally, the playback screen corresponding to the media assets is displayed in the image quality layer. Therefore, synchronous rotation at the image quality layer can adjust all media assets without considering the source of the video resources.
当用户播放与当前旋转状态不相符的媒资时,需要对显示器276进行旋转以适应不相符的媒资画面,具体处理如下:When the user plays a media asset that does not match the current rotation state, the display 276 needs to be rotated to adapt to the inconsistent media asset image. The specific processing is as follows:
首先,选择视频进行播放。用户可以根据自身需求,通过UI界面上的一系列操作,进行视频播放。例如,用户可以通过在控制装置100上实施操作,在主页上依次选择“精选”-“我的应用”-“短视频”,进入短视频应用界面。并且在短视频对应的应用界面中,选择任一视频进行播放。显然,本申请中,视频资源包含本地,DLNA(Digital Living Network Alliance,数字生活网络联盟)推送,DMS(Database Management System,数据库管理系统)共享等来源的视频资源。First, select the video to play. Users can perform video playback through a series of operations on the UI interface according to their own needs. For example, the user can perform operations on the control device 100, and select "Featured"-"My Application"-"Short Video" on the homepage to enter the short video application interface. And in the application interface corresponding to the short video, select any video to play. Obviously, in this application, video resources include local, DLNA (Digital Living Network Alliance, Digital Living Network Alliance) push, DMS (Database Management System, database management system) sharing and other sources of video resources.
为了适应不同的显示,供用户操作的主页也可以包括横屏主页和竖屏主页两种形式,并且在不同的主页模式中,可呈现的内容也可以不同。例如,在横屏主页模式下,主页中可以呈现较多的电影、电视剧等类型的横向媒资或链接,以供用户直接进行选择播放。而竖向媒资则可以归类于一个或多个控件中,例如“短视频”应用图标,用户需要点击对应的控件后,才能够选择竖向媒资或链接进行播放。In order to adapt to different displays, the homepage for the user to operate can also include two forms of horizontal screen homepage and vertical screen homepage, and in different homepage modes, the content that can be presented can also be different. For example, in the horizontal homepage mode, the homepage can present more types of horizontal media assets or links such as movies and TV series for users to directly select and play. Vertical media assets can be classified into one or more controls, such as the "short video" application icon. Users need to click on the corresponding controls before they can select vertical media assets or links to play.
其次,对播放的视频进行检测。在用户确定要打开的视频资源后,控制器250会对视频资源进行解码,并转化为视频画面在显示器275上进行展示。在控制显示器275展示视频画面的同时,控制器250还可以对画面的显示宽高比与显示器275的旋转状态进行检测,确定当前显示的画面宽高比是否与当前显示器275的旋转状态相适应。Secondly, detect the played video. After the user determines the video resource to be opened, the controller 250 decodes the video resource and converts it into a video image for display on the display 275. While controlling the display 275 to display the video picture, the controller 250 can also detect the display aspect ratio of the picture and the rotation state of the display 275 to determine whether the currently displayed picture aspect ratio is compatible with the current rotation state of the display 275.
例如,如果当前展示的画面为竖向媒资,且显示器275为竖屏状态,则当前显示的画面宽高比与当前显示器275的旋转状态相适应,无需进行旋转调整;如果当前展示的画面为竖向媒资,但显示器275为横屏状态,则当前显示的画面宽高比与当前显 示器275的旋转状态不适应,需要进行旋转调整。For example, if the currently displayed screen is vertical media assets and the display 275 is in the vertical screen state, the aspect ratio of the currently displayed screen is adapted to the current rotation state of the display 275, and no rotation adjustment is required; if the currently displayed screen is Vertical media resources, but the display 275 is in a landscape state, the aspect ratio of the currently displayed picture is not suitable for the current rotation state of the display 275, and rotation adjustment is required.
最后,进行旋转调整。对于需要进行旋转调整的情况,控制器250触发旋转组件276旋转,以调节显示器275的旋转状态;同时可以在画质层对显示的画面进行相反方向的旋转调节,以使得显示的画面能够在显示器275旋转的过程中,始终保持在正向显示的状态。Finally, make rotation adjustments. In the case that rotation adjustment is required, the controller 250 triggers the rotation of the rotation component 276 to adjust the rotation state of the display 275; at the same time, the displayed image can be rotated in the opposite direction in the image quality layer, so that the displayed image can be displayed on the display. During the rotation of the 275, it always maintains the status of positive display.
例如,当前播放的画面为竖向媒资,而当前显示器275为横屏状态,则控制器250一方面向旋转组件276发送控制其进行转动的指令,使旋转组件276可以带动显示器275顺时针旋转90度,调整显示器275的旋转状态为竖屏状态。可以在画质层调整当前显示画面,将当前显示画面进行旋转和/或缩放,使当前显示画面得以平缓的逆时针进行转动90度。由于在转动过程中显示画面的顺时针转动可以抵消显示器275逆时针转动所带来的倾斜,因此显示画面始终保持为正向显示的状态。For example, if the currently playing screen is a vertical media resource, and the current display 275 is in a landscape state, the controller 250 sends an instruction to control the rotation of the rotation component 276 on the one hand, so that the rotation component 276 can drive the display 275 to rotate clockwise. 90 degrees, adjust the rotation state of the display 275 to the vertical screen state. The current display screen can be adjusted in the image quality layer, and the current display screen can be rotated and/or zoomed so that the current display screen can be smoothly rotated 90 degrees counterclockwise. Since the clockwise rotation of the display screen during the rotation process can offset the tilt caused by the counterclockwise rotation of the display 275, the display screen always remains in the state of positive display.
如图16所示,为本申请一种显示画面旋转适配方法的流程示意图。对于实际的控制过程,本申请中所述控制器250被进一步配置为执行以下程序步骤:As shown in FIG. 16, it is a schematic flowchart of a method for adapting a display screen rotation according to this application. For the actual control process, the controller 250 described in this application is further configured to execute the following program steps:
S161:响应于显示设备的视频媒体资源播放动作,检测所述显示器的当前旋转状态。S161: In response to the video media resource playing action of the display device, detect the current rotation state of the display.
用户在控制主页上选定一个媒资,并进行播放,即在显示设备200中产生一个视频媒体资源播放动作。例如,用户通过“精选-我的应用-短视频”打开短视频应用后,在多个短视频资源图标下选择一个进行播放。The user selects a media asset on the control homepage and plays it, that is, a video media asset playing action is generated in the display device 200. For example, after a user opens a short video application through "Featured-My Application-Short Video", he selects one of multiple short video resource icons to play.
控制器250在监听到视频媒体资源播放动作后,可以通过旋转组件276上的角度传感器或者显示器275上的重力加速度传感器确定显示器275当前的旋转状态。例如,通过对重力加速度传感器测得的数据分析可以确定当前显示器275的重力方向垂直于长边,则确定显示器275当前处于横屏状态。After the controller 250 monitors the playback action of the video media resource, it can determine the current rotation state of the display 275 through the angle sensor on the rotation component 276 or the gravity acceleration sensor on the display 275. For example, by analyzing the data measured by the gravity acceleration sensor, it can be determined that the current gravity direction of the display 275 is perpendicular to the long side, and then it is determined that the display 275 is currently in a landscape state.
S162:如果所述视频媒体资源的画面比例与所述当前旋转状态匹配,控制所述显示器显示所述视频媒体资源对应的画面。S162: If the screen ratio of the video media resource matches the current rotation state, control the display to display the screen corresponding to the video media resource.
控制器250可以在视频媒体资源的文件描述信息中,确定视频媒体资源对应的显示画面比例。例如,播放的视频媒体资源为短视频,其显示画面比例为9:16,确定当前短视频为竖向媒资。如果此时显示器275的旋转状态也为竖屏状态,即视频媒体资源的画面比例与所述当前旋转状态匹配,此时,直接控制显示器显示视频媒体资源对应的画面即可。The controller 250 may determine the display aspect ratio corresponding to the video media resource in the file description information of the video media resource. For example, if the played video media resource is a short video, and its display screen ratio is 9:16, it is determined that the current short video is a vertical media resource. If the rotation state of the display 275 at this time is also the vertical screen state, that is, the screen ratio of the video media resource matches the current rotation state, at this time, it is sufficient to directly control the display to display the screen corresponding to the video media resource.
S163:如果所述视频媒体资源的画面比例与所述当前旋转状态不匹配,控制所述旋转组件旋转所述显示器,以使所述显示器适应所述视频媒体资源的画面比例以及播放所述视频媒体资源对应的画面。S163: If the aspect ratio of the video media resource does not match the current rotation state, control the rotation component to rotate the display so that the display adapts to the aspect ratio of the video media resource and plays the video media The screen corresponding to the resource.
例如,显示器275的当前旋转状态为横屏状态,播放的视频媒体资源为短视频等竖向媒资,则确定视频媒体资源的画面比例与所述当前旋转状态不匹配,此时,可以控制旋转组件276旋转显示器275至竖屏状态,以适应所播放的短视频对应的显示画面比例。For example, if the current rotation state of the display 275 is a horizontal screen state, and the video media resource being played is a vertical media resource such as a short video, it is determined that the aspect ratio of the video media resource does not match the current rotation state. At this time, the rotation can be controlled. The component 276 rotates the display 275 to the portrait state to adapt to the display aspect ratio corresponding to the short video being played.
需要说明的是,在本申请提供的技术方案中,画面比例与旋转状态之间是否匹配是指:所播放的视频媒体资源的宽高比是否与显示器275屏幕的宽高比相同或者具有相似的比例关系。例如,传统电影、电视剧等横向媒资,其画面的宽度要大于高度,即横向媒资的宽高比通常大于1。而显示器275在横屏状态下时,长边处于水平状态 作为宽,短边处于竖直状态作为高,则横屏状态下显示器275的宽高比也大于1;同理,对于短视频、漫画等竖向媒资,其画面的宽度小于高度,即竖向媒资的宽高比小于1,而显示器275在横屏状态下时,长边处于竖直状态作为高,短边处于水平状态作为宽,则竖屏状态下显示器275的宽高比也小于1。It should be noted that in the technical solution provided in this application, whether the aspect ratio and the rotation state match between the aspect ratio of the video media resource being played is the same as or similar to the aspect ratio of the display 275 screen. ratio. For example, for traditional movies, TV series and other horizontal media assets, the width of the screen is larger than the height, that is, the aspect ratio of horizontal media assets is usually greater than 1. When the display 275 is in the horizontal screen state, the long side is in the horizontal state as the width, and the short side is in the vertical state as the height. The aspect ratio of the display 275 in the horizontal screen state is also greater than 1. The same applies to short videos and cartoons. For vertical media, the width of the screen is less than the height, that is, the aspect ratio of the vertical media is less than 1. When the display 275 is in the horizontal screen state, the long side is in the vertical state as high, and the short side is in the horizontal state as Wide, the aspect ratio of the display 275 in the portrait mode is also less than 1.
本申请中,如果所述视频媒体资源的画面宽高比与显示器275的宽高比同时大于1或者同时小于1,则确定所述视频媒体资源的画面比例与所述当前旋转状态匹配。即,横向媒资的画面比例与横屏状态匹配;竖向媒资的画面比例与竖屏状态匹配。同理,如果所述视频媒体资源的画面宽高比与显示器275的宽高比不是同时大于1或者同时小于1,则确定所述视频媒体资源的画面比例与所述当前旋转状态不匹配。例如,竖向媒资的画面比例与横屏状态不匹配;横向媒资的画面比例与竖屏状态不匹配。In this application, if the aspect ratio of the video media resource and the aspect ratio of the display 275 are both greater than 1 or less than 1, it is determined that the aspect ratio of the video media resource matches the current rotation state. That is, the screen ratio of the horizontal media asset matches the horizontal screen state; the screen ratio of the vertical media asset matches the vertical screen state. Similarly, if the aspect ratio of the video media resource and the aspect ratio of the display 275 are not both greater than 1 or less than 1 at the same time, it is determined that the aspect ratio of the video media resource does not match the current rotation state. For example, the screen ratio of the vertical media asset does not match the horizontal screen state; the screen ratio of the horizontal media asset does not match the vertical screen state.
为了获得显示画面的宽高比,控制器250可以在用户选择播放某一资源后,通过资源的描述信息中获取。对于大部分资源其文件描述中会指定其画面比例,例如文件描述信息为:4096×2160,则确定其宽高比为4096:2160>1。也可以通过对显示图像在宽度和高度上所占用的有效像素点进行查询,确定显示画面的宽高比。例如,出插黑区域所占的像素点外,显示画面的所占据的有效像素点在宽度和高度上分别为720和1280个像素点,则其宽高比为720:1280<1。In order to obtain the aspect ratio of the display screen, the controller 250 may obtain it from the description information of the resource after the user selects to play a certain resource. For most resources, the aspect ratio is specified in the file description. For example, if the file description information is 4096×2160, the aspect ratio is determined to be 4096:2160>1. It is also possible to determine the aspect ratio of the display screen by querying the effective pixels occupied by the width and height of the displayed image. For example, outside of the pixels occupied by the black insertion area, the effective pixels occupied by the display screen are 720 and 1280 pixels in width and height, respectively, and the aspect ratio is 720:1280<1.
在一种实现方式中,如图17所示,控制器250还被配置为执行以下程序步骤:In an implementation manner, as shown in FIG. 17, the controller 250 is further configured to execute the following program steps:
S171:检测所述旋转组件的开关状态。S171: Detect the on-off state of the rotating component.
在选择播放的视频资源后,控制器250可以显示设备200的旋转开关进行检测,确定旋转组件276是否处于开启的状态。显然,旋转组件276的开关状态可以是指硬件上的开关状态,即旋转组件276的控制电路是否上电;也可以是指软件上的开关状态,即在操作系统中,旋转组件276对应的控制程序为激活的状态。After the video resource to be played is selected, the controller 250 may display the rotary switch of the device 200 for detection, and determine whether the rotary component 276 is in an on state. Obviously, the on-off state of the rotating component 276 can refer to the on-off state of the hardware, that is, whether the control circuit of the rotating component 276 is powered on; it can also refer to the on-off state of the software, that is, the corresponding control of the rotating component 276 in the operating system. The program is active.
S172:如果所述开关状态为开启,检测所述视频媒体资源对应显示画面的宽高比以及所述显示器的当前旋转状态。S172: If the switch state is on, detect the aspect ratio of the display screen corresponding to the video media resource and the current rotation state of the display.
如果旋转组件276的开关状态为开启,即当前旋转组件276可以随时受到系统控制而启动运行。此时,控制器250可以进一步对当前所述视频媒体资源对应显示画面的宽高比与当前显示器的旋转状态进行检测,从而根据检测结果确定是否需要旋转显示器275和显示画面。If the switch state of the rotating component 276 is on, that is, the current rotating component 276 can be controlled by the system at any time to start operation. At this time, the controller 250 may further detect the aspect ratio of the display screen corresponding to the current video media resource and the rotation state of the current display, so as to determine whether the display 275 and the display screen need to be rotated according to the detection result.
显示画面的宽高比,是指显示画面边缘的宽度与高度之间的比值。需要说明的是,此处显示画面边缘是指有效显示画面的边缘,例如视频边缘或者图像的边缘,不包括为了适应画面而填充的黑色区域。例如,当前显示画面为竖向媒资,其画面宽度为360像素,画面高度为640像素,则对应的宽高比为360:640;而当前显示器275为横屏状态,显示分辨率为3840×2160,即屏幕显示区域宽高比3840:2160,则确定当前显示画面的宽高比与当前显示器的旋转状态不一致。The aspect ratio of the display screen refers to the ratio between the width and the height of the edge of the display screen. It should be noted that the edge of the displayed picture here refers to the edge of the effective display picture, such as the edge of a video or an image, and does not include the black area filled in to adapt to the picture. For example, if the current display screen is a vertical media resource, the screen width is 360 pixels, and the screen height is 640 pixels, the corresponding aspect ratio is 360: 640; while the current display 275 is in landscape mode, and the display resolution is 3840× 2160, that is, the aspect ratio of the screen display area is 3840:2160, it is determined that the aspect ratio of the currently displayed picture is inconsistent with the rotation state of the current display.
由于视频资源画面比例差异较大,因此为了适应多种资源类型,对于显示画面的宽高比,可以通过具体的比值将其进行归类。显示画面的宽高比如果大于1,即画面的宽度大于高度,则视频资源为横向媒资;同理,显示画面的宽高比如果小于1,即画面的宽度小于高度,则视频资源为竖向媒资。Due to the large difference in video resource picture ratio, in order to adapt to multiple resource types, the aspect ratio of the display picture can be classified according to the specific ratio. If the aspect ratio of the displayed screen is greater than 1, that is, the width of the screen is greater than the height, then the video resource is horizontal media; similarly, if the aspect ratio of the displayed screen is less than 1, that is, the width of the screen is less than the height, then the video resource is vertical. To media resources.
相应的,对于当前显示画面的宽高比与当前显示器的旋转状态是否相适应的判断,可以通过对显示画面的宽高比进行判断。如果宽高比大于1,说明视频是较宽的视频, 此时若显示器275是横屏状态则不需要驱动显示器275旋转,如果若显示器275是竖屏状态则需要旋转显示器275至横屏;如果宽高比小于1,说明视频是较高的视频,如果若显示器275是横屏状态则需要旋转显示器275,若显示器275是竖屏状态则不需要驱动显示器275旋转。Correspondingly, the determination of whether the aspect ratio of the current display screen is compatible with the rotation state of the current display can be determined by the aspect ratio of the display screen. If the aspect ratio is greater than 1, it means that the video is a wider video. At this time, if the display 275 is in a landscape state, it is not necessary to drive the display 275 to rotate. If the display 275 is in a portrait state, it is necessary to rotate the display 275 to landscape; if The aspect ratio is less than 1, indicating that the video is a higher video. If the display 275 is in a landscape state, the display 275 needs to be rotated, and if the display 275 is in a portrait state, it is not necessary to drive the display 275 to rotate.
进一步地,在检测所述旋转组件的开关状态的步骤后,所述控制器250还被进一步配置为:Further, after the step of detecting the on-off state of the rotating component, the controller 250 is further configured to:
S173:如果所述开关状态为关闭,控制所述显示器呈现设置画面。S173: If the switch state is off, control the display to present a setting screen.
当检测到旋转组件276的开关状态为关闭时,旋转组件276不能直接被控制以完成旋转操作,因此需要通知用户开启旋转组件276的开关。例如,在显示器275上显示设置画面,即“设置”对应的UI界面,以供用户开启旋转组件276。When it is detected that the switch state of the rotating component 276 is closed, the rotating component 276 cannot be directly controlled to complete the rotating operation, so the user needs to be notified to turn on the switch of the rotating component 276. For example, a setting screen, that is, a UI interface corresponding to “settings”, is displayed on the display 275 for the user to turn on the rotating component 276.
还可以通过对显示设备200上启动的应用进行判断,确定显示画面比例与旋转状态是否匹配。通常,显示设备200上安装的应用可以包括三类,其一,仅支持横屏状态的应用,如云视听、小电视、爱奇艺等电影电视类app,如果在竖屏状态打开此类应用,则控制显示器275旋转至横屏状态;其二,仅支持竖屏状态的应用,如快手、抖音等短视频app,如果在横屏状态打开此类应用,则控制显示器275旋转至竖屏状态;其三,既支持横屏状态又支持竖屏状态的应用,如应用商店、视频通话、游戏等app,这类应用在打开时可以无需旋转显示器275,但需要根据显示器275的旋转状态调整应用界面显示布局。It is also possible to determine whether the scale of the display screen matches the rotation state by judging the application launched on the display device 200. Generally, the applications installed on the display device 200 can include three types. One is the applications that only support the horizontal screen state, such as cloud audio-visual, small TV, iQiyi and other movies and TV apps. If you open this type of application in the vertical screen state , Then control the display 275 to rotate to the horizontal screen state; secondly, only support the applications in the vertical screen state, such as short video apps such as Kuaishou, Douyin, etc., if you open such applications in the horizontal screen state, control the display 275 to rotate to the vertical screen Status; third, applications that support both horizontal and vertical screen states, such as app stores, video calls, games and other apps, can be opened without rotating the display 275, but need to be adjusted according to the rotation state of the display 275 The application interface display layout.
在一种实现方式中,如图18所示,控制器250还被配置为执行以下程序步骤:In an implementation manner, as shown in FIG. 18, the controller 250 is further configured to execute the following program steps:
S181:接收用户输入的用于旋转所述显示器的旋转指令。S181: Receive a rotation instruction input by the user for rotating the display.
所述旋转指令是指用于触发旋转操作的指令,可以是由用户主动发起,也可以由控制器250通过判断当前显示状态自动发起。需要说明的是,旋转指令旨在触发旋转操作,在实际应用中可能并不存在相应的指令,例如,控制器250在判断当前播放的画面为竖向媒资,而当前显示器275为横屏状态时,可以自动触发旋转操作,无需额外生成一个旋转指令。因此,对于本领域的技术人员而言,是否只要触发旋转操作,都属于本申请的保护范围。The rotation instruction refers to an instruction used to trigger a rotation operation, which may be initiated by the user actively, or may be automatically initiated by the controller 250 by judging the current display state. It should be noted that the rotation command is intended to trigger a rotation operation, and there may not be a corresponding command in actual applications. For example, the controller 250 judges that the currently playing screen is a vertical media resource, and the current display 275 is in a horizontal screen state. When, the rotation operation can be triggered automatically without generating an additional rotation instruction. Therefore, for those skilled in the art, whether or not to trigger the rotation operation is within the protection scope of the present application.
用户通过控制装置100,可以通过实施不同操作,以生成触发旋转组件276进行旋转的控制指令。用户所执行的操作,可以直接在UI界面上以控件的形式进行展示,也可以在UI界面动态进行显示。即,控制器250可以通过检测播放视频的宽高比与当前显示器275的旋转状态,实时调整UI界面上的控件显示情况。Through the control device 100, the user can perform different operations to generate a control instruction that triggers the rotation component 276 to rotate. The operation performed by the user can be displayed directly on the UI interface in the form of a control, or it can be displayed dynamically on the UI interface. That is, the controller 250 can adjust the display of the controls on the UI interface in real time by detecting the aspect ratio of the played video and the current rotation state of the display 275.
例如,用户在选择“短视频”应用中的一个视频资源进行播放时,控制器250检测播放视频的宽高比为竖向媒资,与当前显示器275的横屏状态不一致,则在UI界面中显示诸如以下提示文字及控件“检测到当前视频资源更适合竖屏观看,是否自动切换到竖屏状态”、“是/否”。当用户选择“是”时,即生成对应的用户输入,并将用户输入发送给控制器250。For example, when the user selects a video resource in the "short video" application to play, the controller 250 detects that the aspect ratio of the played video is a vertical media resource, which is inconsistent with the current horizontal screen state of the display 275, and then it is displayed in the UI interface The following prompt text and controls are displayed such as "It is detected that the current video resource is more suitable for viewing in portrait mode, whether to automatically switch to portrait mode", "Yes/No". When the user selects “Yes”, the corresponding user input is generated and sent to the controller 250.
S182:将所述旋转指令发送至所述旋转组件,以控制所述旋转组件启动转动。S182: Send the rotation instruction to the rotation component to control the rotation component to start rotation.
对于用户主动发送的旋转指令,控制器250需要对用户的输入进行解析,确定显示器275的旋转策略。例如,当用户想要将显示器275从横屏状态调节为竖屏状态时,旋转指令可以控制旋转组件276顺时针转动90度;当用户想要将显示器275从竖屏状态调节为横屏状态时,旋转指令可以控制旋转组件276逆时针转动90度。For the rotation instruction actively sent by the user, the controller 250 needs to analyze the user's input to determine the rotation strategy of the display 275. For example, when the user wants to adjust the display 275 from the landscape state to the portrait state, the rotation instruction can control the rotation component 276 to rotate 90 degrees clockwise; when the user wants to adjust the display 275 from the portrait state to the landscape state , The rotation command can control the rotation component 276 to rotate 90 degrees counterclockwise.
在一种实现方式中,如果所述视频媒体资源的画面比例与所述当前旋转状态不匹配,所述控制器250被进一步配置为:In an implementation manner, if the aspect ratio of the video media resource does not match the current rotation state, the controller 250 is further configured to:
根据所述当前旋转状态和所述视频媒体资源的画面比例,计算旋转参数。Calculate the rotation parameter according to the current rotation state and the aspect ratio of the video media resource.
控制器250可以根据当前旋转状态和视频媒体资源的画面比例确定控制对显示器275进行旋转。例如,当前显示器275的旋转状态为横屏状态,视频媒体资源的画面比例为竖向时,可指定需要将显示器275旋转至竖屏状态,即显示器275顺时针转动90度的指令。The controller 250 may determine and control the rotation of the display 275 according to the current rotation state and the aspect ratio of the video media resource. For example, when the current rotation state of the display 275 is the horizontal screen state and the aspect ratio of the video media resource is vertical, it can be specified that the display 275 needs to be rotated to the vertical screen state, that is, an instruction to rotate the display 275 clockwise by 90 degrees.
按照所述旋转参数调整显示所述视频媒体资源对应的画面。Adjust and display the screen corresponding to the video media resource according to the rotation parameter.
为了在旋转显示器275时,获得更好的观看体验。控制器250可以使显示的画面与显示器275同时转动,以使显示画面始终保持在正向状态,因此所述旋转参数包括显示画面缩放比例,和/或旋转角度。控制器250需要对显示画面进行调整,例如,在显示器275顺时针转动90度的过程中,控制显示画面逆时针转动90度,且保持显示器275与显示画面转动过程同步运行,达到始终正向显示画面的目的。In order to obtain a better viewing experience when rotating the display 275. The controller 250 can rotate the displayed picture and the display 275 at the same time, so that the display picture is always maintained in a forward state, so the rotation parameters include the display picture zoom ratio and/or the rotation angle. The controller 250 needs to adjust the display image. For example, when the display 275 rotates 90 degrees clockwise, it controls the display image to rotate 90 degrees counterclockwise, and keeps the display 275 running in synchronization with the rotation process of the display image, so as to achieve a positive display at all times. The purpose of the screen.
本申请中,通过在画质层对显示画面进行调整,即仅对视频播放画面进行调整,因此调节的灵活性和效率会大大增加。画质层上的调整对于显示画面的调整不受所播放视频资源文件的来源限制,可以对本地磁盘里的视频文件进行调节,也可以对DLNA推送到显示设备200的视频文件,以及对DMS共享出来的视频文件进行调节。此外,画质层上的调节还可以在不影响UI层画面的基础上,对显示画面进行更进一步的调节。In this application, the display screen is adjusted at the image quality layer, that is, only the video playback screen is adjusted, so the flexibility and efficiency of adjustment will be greatly increased. The adjustment on the image quality layer The adjustment of the display screen is not restricted by the source of the video resource file being played. It can adjust the video file in the local disk, and can also adjust the video file pushed to the display device 200 by DLNA, and share it with DMS Adjust the output video file. In addition, the adjustment on the image quality layer can also further adjust the display screen without affecting the UI layer screen.
例如,控制器250还可以对显示画面进行更细致的调整,包括旋转操作、缩放操作等。其中,旋转操作是为了适应显示器275的旋转而进行的调整,缩放操作是为了适应显示器275在旋转过程中宽高变化而进行的调整。实际应用中,旋转操作和缩放操作可以同时进行,也可以先进行旋转操作,后进行缩放操作。For example, the controller 250 can also perform more detailed adjustments to the display screen, including rotation operations, zoom operations, and so on. Among them, the rotation operation is an adjustment made to adapt to the rotation of the display 275, and the zoom operation is an adjustment made to adapt to the change in width and height of the display 275 during the rotation. In practical applications, the rotation operation and the zoom operation can be performed at the same time, or the rotation operation can be performed first, and then the zoom operation can be performed.
在一种实现方式中,如图19所示,对于显示画面的缩放操作,所述控制器250被进一步配置为执行以下步骤:In an implementation manner, as shown in FIG. 19, for the zooming operation of the display screen, the controller 250 is further configured to perform the following steps:
S191:获取所述视频媒体资源对应的当前显示窗口位置。S191: Acquire the current display window position corresponding to the video media resource.
S192:结合当前旋转状态,确定目标显示窗口位置;S192: Determine the position of the target display window in combination with the current rotation state;
S193:比对所述目标显示窗口位置与所述当前显示窗口位置,生成宽高变形量;S193: Compare the position of the target display window with the position of the current display window to generate a width and height deformation amount;
S194:生成缩放步长,所述缩放步长为根据所述宽高变形量与所述旋转组件的转动速度计算获得的单位时间宽高缩放量;S194: Generate a zoom step length, where the zoom step length is a width and height zoom amount per unit time calculated according to the width and height deformation amount and the rotation speed of the rotating component;
S195:按照所述缩放步长调整显示画面窗口的宽高数值。S195: Adjust the width and height values of the display screen window according to the zoom step.
本申请提供的技术方案中,所述当前显示窗口位置和目标显示窗口位置是指对应于显示器275旋转状态,显示器275旋转前后的画面显示窗口位置。例如,显示器275需要从横屏状态旋转到竖屏状态的过程中,横屏状态下对应画质层显示播放视频的画面位置即为当前显示窗口位置;而在旋转后显示器275竖屏状态下对应画质层显示播放视频的画面位置即为目标窗口位置。同理,在显示器275需要从竖屏状态旋转到横屏状态的过程中,竖屏状态下对应画质层显示播放视频的画面位置即为当前显示窗口位置;而在旋转后显示器275横屏状态下对应画质层显示播放视频的画面位置即为目标窗口位置。In the technical solution provided in this application, the current display window position and the target display window position refer to the position of the screen display window before and after the rotation of the display 275 corresponding to the rotation state of the display 275. For example, when the display 275 needs to be rotated from the horizontal screen state to the vertical screen state, in the horizontal screen state, the corresponding image quality layer displays the picture position of the playing video is the current display window position; and the display 275 corresponds to the vertical screen state after rotation The image quality layer shows the screen position of the playing video as the target window position. In the same way, when the display 275 needs to be rotated from the vertical screen state to the horizontal screen state, in the vertical screen state, the corresponding image quality layer displays the picture position of the playing video is the current display window position; and the display 275 is in the horizontal screen state after rotation The corresponding image quality layer below shows the screen position of the playing video is the target window position.
本实施例中,为了使得显示画面在显示器275的旋转过程中,始终能够较多地填充显示器275的显示区域,保证显示画面的质量,可以在对显示画面进行旋转的过程 中,同时对显示画面进行等比例缩放。In this embodiment, in order to ensure that the display screen is always able to fill the display area of the display 275 during the rotation of the display 275, and to ensure the quality of the display screen, the display screen can be rotated at the same time. Perform equal scaling.
具体的,可以在播放媒资画面后,根据旋转角度以及显示器275的屏幕尺寸特点,确定目标显示窗口位置。例如,需要从横屏状态切换至竖屏状态,则提取的旋转角度为顺时针90度,从而确定预定目标窗口位置为竖屏状态下播放区域对应的位置。Specifically, after the media asset screen is played, the target display window position can be determined according to the rotation angle and the screen size characteristics of the display 275. For example, if it is necessary to switch from the horizontal screen state to the vertical screen state, the extracted rotation angle is 90 degrees clockwise, so as to determine that the predetermined target window position is the position corresponding to the playback area in the vertical screen state.
在确定目标显示窗口位置后,可以通过比对目标显示窗口位置与当前显示窗口位置,确定显示窗口的宽高变形量。例如,65寸的显示器尺寸为1440:810,在横屏状态下显示竖向媒资,则显示画面的高度小于或等于显示器275的高度,即小于或等于810mm,而在竖屏状态下显示竖向媒资则可以小于或等于1440mm的高度(横屏状态下显示器的宽度),因此可以确定显示画面高度变形量为1440-810=630mm。同理,按照竖向媒资的宽高比可以计算出宽度变形量。After the target display window position is determined, the width and height deformation amount of the display window can be determined by comparing the target display window position with the current display window position. For example, the size of a 65-inch monitor is 1440:810, and the vertical media is displayed in the landscape mode, the height of the display screen is less than or equal to the height of the monitor 275, that is, less than or equal to 810mm, and the vertical screen is displayed in the portrait mode. Xiangmedia resources can be less than or equal to 1440mm in height (the width of the display in the landscape mode), so it can be determined that the display screen height deformation is 1440-810=630mm. In the same way, the amount of width deformation can be calculated according to the aspect ratio of the vertical media assets.
在确定宽高变形量后,可以根据宽高变形量与旋转组件276的转动速度计算获得的单位时间宽高缩放量,即生成缩放步长。例如,显示器275要在15s从横屏状态旋转到竖屏状态,则高度缩放步长为630/15=42mm/s。同样,根据宽度的变形量,也可以计算出宽度的缩放步长。After the width and height deformation amount is determined, the width and height zoom amount per unit time can be calculated according to the width and height deformation amount and the rotation speed of the rotating component 276, that is, the zoom step size is generated. For example, if the display 275 is to be rotated from the horizontal screen state to the vertical screen state in 15s, the height zoom step is 630/15=42mm/s. Similarly, according to the amount of deformation of the width, the zoom step of the width can also be calculated.
分别确定显示画面高度和宽度的缩放步长后,可以按照缩放步长同时调整显示画面窗口的宽高数值。从而在显示器275旋转至目标状态时,显示画面恰好充满显示器275的显示区域,提高用户体验。After determining the zoom step for the height and width of the display screen respectively, the width and height values of the display screen window can be adjusted at the same time according to the zoom step. Therefore, when the display 275 rotates to the target state, the display screen just fills the display area of the display 275, which improves the user experience.
为了获得更好的显示效果,在按照缩放步长同时调整显示画面窗口的宽高数值的步骤中,控制器250还可以被配置为以下程序步骤:在当前显示窗口中定位缩放基点坐标;并且以所述缩放基点坐标为基准,按照所述缩放步长同步调整显示画面窗口的宽高数值。In order to obtain a better display effect, in the step of simultaneously adjusting the width and height values of the display window according to the zoom step, the controller 250 may also be configured as the following program steps: locate the zoom base point coordinates in the current display window; and The zoom base point coordinates are used as a reference, and the width and height values of the display screen window are synchronously adjusted according to the zoom step length.
其中,缩放基点可以根据显示窗口的形状和调节方式进行定位,例如可以选择显示窗口的中心点作为缩放基点,这样,在显示画面旋转前后,基点的位置是固定不变的。还可以窗口边界四个顶点中的一个作为缩放基点,例如左上顶点等。The zoom base point can be positioned according to the shape and adjustment mode of the display window. For example, the center point of the display window can be selected as the zoom base point, so that the position of the base point is fixed before and after the display screen is rotated. One of the four vertices of the window boundary can also be used as the zoom base point, such as the upper left vertex.
在一种实现方式中,如图20所示,对于显示画面的旋转操作,所述控制器250被进一步配置为执行以下步骤:In an implementation manner, as shown in FIG. 20, for the rotation operation of the display screen, the controller 250 is further configured to perform the following steps:
S201:生成画面旋转方向;S201: Generate the screen rotation direction;
可以根据显示器275的旋转方向,确定显示画面的旋转方向,其中,所述画面旋转方向与所述显示器的旋转方向相反。例如,显示器275需要顺时针旋转90度,以从横屏状态切换到竖屏状态。相应的画面旋转方向为逆时针旋转。The rotation direction of the display screen can be determined according to the rotation direction of the display 275, wherein the screen rotation direction is opposite to the rotation direction of the display. For example, the display 275 needs to be rotated 90 degrees clockwise to switch from the horizontal screen state to the vertical screen state. The corresponding screen rotation direction is counterclockwise.
S202:比对所述目标显示窗口位置与所述当前显示窗口位置,生成角度变形量。S202: Compare the position of the target display window with the position of the current display window to generate an angular deformation amount.
在确定旋转方向后,可以根据目标显示窗口位置与当前显示窗口位置,生成角度变形量。例如,目标显示窗口位置为竖屏状态下的显示位置;当前显示窗口位置为横屏状态下的显示位置,则角度变形量为90度。After determining the rotation direction, the angular deformation can be generated according to the target display window position and the current display window position. For example, the target display window position is the display position in the portrait state; the current display window position is the display position in the landscape state, and the angular deformation is 90 degrees.
S203:生成旋转步长。S203: Generate a rotation step size.
在生成角度形变量后,同样结合显示器275的转动速度,计算旋转步长。所述旋转步长为根据所述角度变形量与所述旋转组件的转动速度计算获得的单位时间角度转动量。例如,旋转过程从横屏状态切换到竖屏状态消耗时间为15s,则旋转步长为90/15=6度/s,即在旋转过程中,每秒显示画面转动6度,以使得显示器275和显示画面保持同步旋转。After the angular deformation is generated, the rotation speed of the display 275 is also combined to calculate the rotation step length. The rotation step length is an angular rotation amount per unit time calculated according to the angular deformation amount and the rotation speed of the rotating component. For example, it takes 15s for the rotation process to switch from the horizontal screen state to the vertical screen state, and the rotation step is 90/15=6 degrees/s, that is, during the rotation process, the display screen rotates 6 degrees per second to make the display 275 Rotate synchronously with the display screen.
S204:按照所述旋转步长以及画面旋转方向,调整显示画面窗口的显示方向。S204: Adjust the display direction of the display screen window according to the rotation step size and the screen rotation direction.
在计算旋转步长后,则可以按照所述旋转步长以及画面旋转方向,调整显示画面窗口的显示方向。例如,显示器275每秒顺时针转动6度,同时显示画面逆时针旋转6度,从而使显示画面始终保持正向的状态。After calculating the rotation step length, the display direction of the display screen window can be adjusted according to the rotation step length and the screen rotation direction. For example, the display 275 rotates 6 degrees clockwise every second, while the display screen rotates 6 degrees counterclockwise, so that the display screen always maintains a positive state.
需要说明的是,为了适应多种不同的视频资源,显示器275的状态可能不仅限于横屏状态和竖屏状态两种,还有可能根据播放需要保持在多种倾斜状态等。因此,所述当前显示窗口位置和目标显示窗口位置并不局限于上述两种情况,还可能是任意两个倾斜角度下的旋转过程。因此,根据上述旋转方式所能够联想到的横竖屏旋转、横斜屏旋转、竖斜屏旋转以及斜屏旋转都属于本申请的保护范围。It should be noted that, in order to adapt to a variety of different video resources, the state of the display 275 may not be limited to the horizontal screen state and the vertical screen state, and may also be maintained in a variety of inclined states according to playback needs. Therefore, the current display window position and the target display window position are not limited to the above two situations, and may also be a rotation process at any two tilt angles. Therefore, the horizontal and vertical screen rotation, horizontal and vertical screen rotation, vertical and inclined screen rotation, and inclined screen rotation that can be thought of according to the above-mentioned rotation method all fall within the scope of protection of the present application.
在上述实施例中,可以根据旋转组件276驱动显示器275转动的速度,对显示画面的旋转操作进行控制。由于一个显示设备200在初始调试后,旋转组件276的转动速度由驱动电机确定,可以是保持不变的,因此对于所有旋转过程,都可以通过固定的旋转速度确定旋转参数。因此,上述计算旋转参数的过程最简单,也最便于对旋转操作进行控制。In the above embodiment, the rotation operation of the display screen can be controlled according to the rotation speed of the rotation component 276 driving the display 275. After the initial commissioning of a display device 200, the rotation speed of the rotating assembly 276 is determined by the drive motor and may remain unchanged. Therefore, for all rotation processes, the rotation parameters can be determined by a fixed rotation speed. Therefore, the above process of calculating the rotation parameters is the simplest and the most convenient to control the rotation operation.
但在个别情况下,例如旋转组件276随使用时间的延长,出现累积误差时,旋转组件276的旋转速度会发生变化,为了适应旋转速度的变化,在一种实现方式中,所述旋转组件276上设置有角度回调接口,角度回调接口可以通过角度传感器实时检测所述旋转组件276所转动的角度,从而确定显示器275旋转的过程中,任意时刻对应的姿态。还可以通过显示器275上设置重力加速度传感器,在显示器275旋转的过程中,通过检测重力传感器在空间坐标系(x,y,z)3个方向上的信息,获取显示器275任意时刻对应的姿态。再根据检测的数据实时调整显示画面,即如图21所示,所述控制器被进一步配置为:However, in individual cases, for example, when the rotating assembly 276 has a cumulative error with the extension of use time, the rotating speed of the rotating assembly 276 will change. In order to adapt to the change of the rotating speed, in one implementation, the rotating assembly 276 An angle callback interface is provided on the interface, and the angle callback interface can detect the rotation angle of the rotation component 276 in real time through an angle sensor, so as to determine the corresponding posture at any time during the rotation of the display 275. It is also possible to set a gravity acceleration sensor on the display 275. During the rotation of the display 275, by detecting the information of the gravity sensor in the three directions of the spatial coordinate system (x, y, z), the posture corresponding to the display 275 at any time can be obtained. Then adjust the display screen in real time according to the detected data, that is, as shown in FIG. 21, the controller is further configured to:
S211:监听所述旋转组件的角度传感器和/或所述重力加速度传感器,实时获取显示器的角度数据;S211: Monitor the angle sensor of the rotating component and/or the gravity acceleration sensor, and obtain the angle data of the display in real time;
S212:根据所述角度数据同步计算显示画面的旋转参数。S212: Calculate the rotation parameter of the display screen synchronously according to the angle data.
实际应用中,如图22所示,控制器250可以在控制显示器275旋转的过程中,通过监听android标准的角度回调接口,启动Orientation Event Listener程序获得显示器275的旋转角度,从而实时计算目标窗口的位置和需要旋转角度,实现跟随显示器275进行旋转的效果。In actual applications, as shown in FIG. 22, the controller 250 can monitor the Android standard angle callback interface during the rotation of the display 275, and start the Orientation Event Listener program to obtain the rotation angle of the display 275, so as to calculate the rotation angle of the target window in real time. The position and the required rotation angle achieve the effect of following the display 275 to rotate.
上述实施例中,监听的角度回调接口不仅局限于Android标准的角度回调接口,实际应用时可以依据显示设备200的操作系统调用相对应的其他角度回调接口。还可以为控制器250根据重力加速度传感器等sensor的x,y,z方向信息,按照设定的规则生成的角度回调接口。In the above embodiment, the monitoring angle callback interface is not limited to the Android standard angle callback interface, and other corresponding angle callback interfaces can be called according to the operating system of the display device 200 in actual applications. It may also be an angle callback interface generated by the controller 250 according to the x, y, and z direction information of sensors such as a gravity acceleration sensor according to a set rule.
示例的,在实时计算目标窗口的位置和需要旋转角度的步骤如下:For example, the steps to calculate the position of the target window and the required rotation angle in real time are as follows:
如图23所示,视频显示区域Rect是由4个点组成的长方形区域,每个点的坐标是该点在屏幕上的坐标。以屏幕左上角为原点,Rect指定点1和点4即可确定位置,点1是(左,顶)(left,top),点4是(右,底)(right,bottom)。As shown in Figure 23, the video display area Rect is a rectangular area composed of 4 points, and the coordinates of each point are the coordinates of the point on the screen. Taking the upper left corner of the screen as the origin, Rect can specify point 1 and point 4 to determine the position. Point 1 is (left, top) (left, top), and point 4 is (right, bottom) (right, bottom).
设置给画质层Surface View的参数包括缩放比例scale X和scale Y以及旋转角度rotate。其中,scale X,scale Y可以使用Rect的right和bottom位置,记录视频窗口的宽和高,分别计算视频窗口的当前位置oldRect和目标位置newRect,根据等步长原理 逐步增加显示区域的宽高,直到目标位置。其具体算法如下:The parameters set to the image quality layer Surface View include the zoom ratio scale X and scale Y and the rotation angle rotate. Among them, scale X and scale Y can use the right and bottom positions of Rect to record the width and height of the video window, calculate the current position of the video window oldRect and the target position newRect respectively, and gradually increase the width and height of the display area according to the principle of equal steps. Until the target location. The specific algorithm is as follows:
Rect oldRect=new Rect(0,0,oldWidth,oldHeight);Rect oldRect=new Rect(0,0,oldWidth,oldHeight);
Rect newRect=new Rect(0,0,newWidth,newHeight);Rect newRect=new Rect(0,0,newWidth,newHeight);
float defWidth=(newWidth–oldWidth)/90;float defWidth=(newWidth-oldWidth)/90;
float defWidth=(newWidth–oldWidth)/90;float defWidth=(newWidth-oldWidth)/90;
float tempWidth=oldWidth+defWidth×rotate;float tempWidth=oldWidth+defWidth×rotate;
float tempHeight=ildHeight+defHeight×rotate;float tempHeight=ildHeight+defHeight×rotate;
flocat scaleX=tempWidth/mBaseWidth;flocat scaleX=tempWidth/mBaseWidth;
flocat scaleY=tempHeight/mBaseHeight;flocat scaleY=tempHeight/mBaseHeight;
其中,mBaseWidth和mBaseHeight是基准宽高,用来计算scale X和scale Y。Among them, mBaseWidth and mBaseHeight are the base width and height, which are used to calculate scale X and scale Y.
由以上技术方案可知,本申请提供的显示设备能够在画质层对视频播放画面进行调整,从而实现自动旋转显示器275,并且在显示器275旋转的过程中,显示画面也实时进行旋转,因此可以使显示画面始终保持正向的状态,降低电视旋转过程对观影体验的影响。It can be seen from the above technical solutions that the display device provided by the present application can adjust the video playback screen at the image quality layer, thereby realizing automatic rotation of the display 275, and during the rotation of the display 275, the display screen is also rotated in real time, so The display picture always maintains a positive state, reducing the influence of the TV rotation process on the viewing experience.
基于上述显示设备200,本申请还提供一种显示画面旋转适配方法,所述显示画面旋转适配方法被配置在控制器250中,用于对旋转过程进行控制,具体包括:Based on the above-mentioned display device 200, the present application also provides a display screen rotation adaptation method. The display screen rotation adaptation method is configured in the controller 250 for controlling the rotation process, which specifically includes:
S161:响应于显示设备的视频媒体资源播放动作,检测所述显示器的当前旋转状态;S161: In response to the video media resource playing action of the display device, detect the current rotation state of the display;
S162:如果所述视频媒体资源的画面比例与所述当前旋转状态匹配,控制所述显示器显示所述视频媒体资源对应的画面;S162: If the screen ratio of the video media resource matches the current rotation state, control the display to display the screen corresponding to the video media resource;
S163:如果所述视频媒体资源的画面比例与所述当前旋转状态不匹配,控制所述旋转组件旋转所述显示器,以使所述显示器适应所述视频媒体资源的画面比例以及播放所述视频媒体资源对应的画面。S163: If the aspect ratio of the video media resource does not match the current rotation state, control the rotation component to rotate the display so that the display adapts to the aspect ratio of the video media resource and plays the video media The screen corresponding to the resource.
由以上技术方案可知,本申请提供一种显示设备及显示画面旋转适配方法,实际应用中,可通过响应于显示设备的视频媒体资源播放动作,检测所述显示器的当前旋转状态。如果所述视频媒体资源的画面比例与所述当前旋转状态不匹配,控制所述旋转组件旋转所述显示器,以使所述显示器适应所述视频媒体资源的画面比例以及播放所述视频媒体资源对应的画面。所述显示设备在检测到当前播放的视频宽高,与显示器当前旋转状态不符时自动驱动电视的电机旋转,且在旋转过程中同步缩放和旋转显示器上的画面,避免用户需要长时间观看方向倾斜的视频画面,提高用户体验。It can be seen from the above technical solutions that the present application provides a display device and a display screen rotation adaptation method. In actual applications, the current rotation state of the display can be detected by responding to the video media resource playback action of the display device. If the aspect ratio of the video media resource does not match the current rotation state, control the rotation component to rotate the display so that the display adapts to the aspect ratio of the video media resource and the corresponding video media resource is played Picture. The display device automatically drives the motor of the TV to rotate when it detects that the width and height of the currently played video does not match the current rotation state of the display, and synchronously zooms and rotates the picture on the display during the rotation, so as to prevent the user from needing to watch the direction tilt for a long time The video screen improves the user experience.
在一种实现方式中,如图24所示,本申请还提供一种显示设备200,包括显示器、旋转组件以及控制器。In an implementation manner, as shown in FIG. 24, the present application also provides a display device 200, which includes a display, a rotating component, and a controller.
其中,所述旋转组件连接所述显示器,被配置为驱动所述显示器转动,以使所述显示器处于横屏状态或竖屏状态中的一种旋转状态;Wherein, the rotating component is connected to the display, and is configured to drive the display to rotate so that the display is in one of a horizontal screen state or a vertical screen state;
所述控制器连接所述旋转组件和显示器,被配置为:The controller is connected to the rotating assembly and the display, and is configured to:
响应于显示设备的视频媒体资源播放动作,检测所述显示器的当前旋转状态;In response to the video media resource playing action of the display device, detecting the current rotation state of the display;
如果所述视频媒体资源为竖向媒资,所述显示器的当前旋转状态为横屏状态,控制所述旋转组件将所述显示器旋转至竖屏状态。If the video media resource is a vertical media resource, the current rotation state of the display is a horizontal screen state, and the rotation component is controlled to rotate the display to a vertical screen state.
在一种实现方式中,如图24所示,本申请还提供一种显示设备200,包括显示器、旋转组件以及控制器。In an implementation manner, as shown in FIG. 24, the present application also provides a display device 200, which includes a display, a rotating component, and a controller.
其中,所述旋转组件连接所述显示器,被配置为驱动所述显示器转动,以使所述显示器处于横屏状态或竖屏状态中的一种旋转状态;Wherein, the rotating component is connected to the display, and is configured to drive the display to rotate so that the display is in one of a horizontal screen state or a vertical screen state;
所述控制器连接所述旋转组件和显示器,被配置为:The controller is connected to the rotating assembly and the display, and is configured to:
响应于显示设备的视频媒体资源播放动作,检测所述显示器的当前旋转状态;In response to the video media resource playing action of the display device, detecting the current rotation state of the display;
如果所述视频媒体资源为横向媒资,所述显示器的当前旋转状态为竖屏状态,控制所述旋转组件将所述显示器旋转至横屏状态。If the video media resource is a horizontal media resource, the current rotation state of the display is a vertical screen state, and the rotation component is controlled to rotate the display to a horizontal screen state.
由以上技术方案可知,本申请提供一种显示设备200及显示画面旋转适配方法,实际应用中,可通过响应于显示设备200的视频媒体资源播放动作,检测所述显示器275的当前旋转状态。如果所述视频媒体资源为竖向媒资,所述显示器275的当前旋转状态为横屏状态,可以控制旋转组件276将显示器275旋转至横屏状态;或者,如果所述视频媒体资源为横向媒资,所述显示器275的当前旋转状态为竖屏状态,可以控制旋转组件276将显示器275旋转至竖屏状态,通过对显示器275的自动旋转,以适应视频媒体资源对应的画面比例。It can be seen from the above technical solutions that the present application provides a display device 200 and a display screen rotation adaptation method. In actual applications, the current rotation state of the display 275 can be detected by responding to the video media resource playback action of the display device 200. If the video media resource is a vertical media resource and the current rotation state of the display 275 is a horizontal screen state, the rotation component 276 can be controlled to rotate the display 275 to a horizontal screen state; or, if the video media resource is a horizontal media resource The current rotation state of the display 275 is the vertical screen state, and the rotation component 276 can be controlled to rotate the display 275 to the vertical screen state, and the display 275 is automatically rotated to adapt to the aspect ratio corresponding to the video media resource.
本申请提供的实施例之间的相似部分相互参见即可,以上提供的具体实施方式只是本申请总的构思下的几个示例,并不构成本申请保护范围的限定。对于本领域的技术人员而言,在不付出创造性劳动的前提下依据本申请方案所扩展出的任何其他实施方式都属于本申请的保护范围。The similar parts between the embodiments provided in this application can be referred to each other. The specific implementations provided above are only a few examples under the general concept of this application, and do not constitute a limitation of the protection scope of this application. For those skilled in the art, any other implementation manners expanded according to the scheme of this application without creative work shall fall within the protection scope of this application.

Claims (10)

  1. 一种显示方法,其特征在于,包括:A display method, characterized in that it comprises:
    获取待显示视频画面;Obtain the to-be-displayed video screen;
    通过视频层对所述待显示视频画面进行画质处理;Performing image quality processing on the to-be-displayed video picture through the video layer;
    生成中间图像;所述中间图像为在所述待显示视频画面经过画质处理输出图像后,通过截取输出图像获得的视频帧数据;Generating an intermediate image; the intermediate image is the video frame data obtained by intercepting the output image after the image to be displayed is output through image quality processing;
    通过OSD层旋转所述中间图像,生成旋转图像;Rotate the intermediate image through the OSD layer to generate a rotated image;
    逐帧显示所述旋转图像。The rotated image is displayed frame by frame.
  2. 根据权利要求1所述的显示方法,其特征在于,获取待显示视频画面的步骤,所述方法还包括:The display method according to claim 1, wherein the step of obtaining a video image to be displayed, the method further comprises:
    创建视频层服务和播放器;Create video layer services and players;
    将所述视频层服务的句柄下发给所述播放器;Deliver the handle of the video layer service to the player;
    调用所述播放器对所述待显示视频画面进行解码,以及将解码后的所述待显示视频画面发送所述视频层服务。Invoke the player to decode the to-be-displayed video image, and send the decoded, to-be-displayed video image to the video layer service.
  3. 根据权利要求1所述的显示方法,其特征在于,生成中间图像的步骤,包括:The display method according to claim 1, wherein the step of generating an intermediate image comprises:
    创建截取服务,所述截取服务用于截取视频帧数据;Creating an interception service, where the interception service is used to intercept video frame data;
    获取输出图像,所述输出图像为所述待显示视频画面经过画质处理后,获得的图像数据;Acquiring an output image, where the output image is image data obtained after the image quality processing of the to-be-displayed video screen is performed;
    调用所述截取服务截取所述输出图像,获得所述中间图像。Invoke the interception service to intercept the output image to obtain the intermediate image.
  4. 根据权利要求1所述的显示方法,其特征在于,通过OSD层旋转所述中间图像,生成旋转图像的步骤,还包括:The display method according to claim 1, wherein the step of rotating the intermediate image through the OSD layer to generate a rotated image further comprises:
    获取显示器旋转信息;所述显示器旋转信息包括显示器旋转方向和显示器旋转角度;Acquiring display rotation information; the display rotation information includes the display rotation direction and the display rotation angle;
    设置画面旋转方向和画面旋转角度;所述画面旋转方向与所述显示器旋转方向相反,所述画面旋转角度等于所述显示器旋转角度;Setting the screen rotation direction and the screen rotation angle; the screen rotation direction is opposite to the display rotation direction, and the screen rotation angle is equal to the display rotation angle;
    按照所述画面旋转方向和画面旋转角度旋转所述中间图像。Rotate the intermediate image according to the screen rotation direction and the screen rotation angle.
  5. 根据权利要求4所述的显示方法,其特征在于,所述方法还包括:The display method according to claim 4, wherein the method further comprises:
    创建旋转服务,所述旋转服务用于对显示画面进行旋转;Creating a rotation service, where the rotation service is used to rotate the display screen;
    获取用户输入的旋转指令;所述旋转指令用于驱动旋转组件带动显示器进行旋转,以使所述显示器处于多种旋转状态中的一种;Acquire a rotation instruction input by the user; the rotation instruction is used to drive the rotation component to drive the display to rotate, so that the display is in one of a variety of rotation states;
    如果获取到所述旋转指令,调用所述旋转服务获取显示器旋转信息。If the rotation instruction is obtained, call the rotation service to obtain display rotation information.
  6. 根据权利要求4所述的显示方法,其特征在于,获取显示器旋转信息的步骤,包括:The display method according to claim 4, wherein the step of obtaining display rotation information comprises:
    监听旋转组件的角度回调接口;Monitor the angle callback interface of the rotating component;
    通过所述角度回调接口获取显示器当前旋转的角度,生成所述显示器旋转信息。Obtain the current rotation angle of the display through the angle callback interface, and generate the display rotation information.
  7. 根据权利要求4所述的显示方法,其特征在于,通过OSD层旋转所述中间图像,生成旋转图像的步骤后,所述方法还包括:The display method according to claim 4, wherein after the step of rotating the intermediate image through the OSD layer to generate the rotated image, the method further comprises:
    根据显示器旋转信息定位显示器当前边界位置;Locate the current boundary position of the display according to the rotation information of the display;
    根据所述当前边界位置对所述旋转图像进行裁切;Crop the rotated image according to the current boundary position;
    或者,根据所述当前边界位置对所述旋转图像进行缩放。Or, scaling the rotated image according to the current boundary position.
  8. 根据权利要求7所述的显示方法,其特征在于,根据所述当前边界位置对所述旋转图像进行缩放的步骤,包括:8. The display method according to claim 7, wherein the step of scaling the rotated image according to the current boundary position comprises:
    根据显示器旋转信息,定位当前显示窗口位置和目标显示窗口位置;According to the monitor rotation information, locate the current display window position and the target display window position;
    比对所述目标显示窗口位置与所述当前显示窗口位置,生成宽高变形量;Comparing the position of the target display window with the position of the current display window to generate a width and height deformation amount;
    生成缩放步长,所述缩放步长为根据所述宽高变形量与旋转组件的转动速度计算获得的单位时间宽高缩放量;Generating a zoom step length, where the zoom step length is a width and height zoom amount per unit time calculated according to the width and height deformation amount and the rotation speed of the rotating component;
    按照所述缩放步长调整所述旋转图像的宽高数值。Adjust the width and height values of the rotated image according to the zoom step.
  9. 根据权利要求8所述的显示方法,其特征在于,按照所述缩放步长调整所述旋转图像的宽高数值的步骤,包括:8. The display method according to claim 8, wherein the step of adjusting the width and height values of the rotated image according to the zoom step size comprises:
    在当前显示窗口中定位缩放基点坐标;Position the zoom base point coordinates in the current display window;
    以所述缩放基点坐标为基准,按照所述缩放步长同步调整显示画面窗口的宽高数值。Using the zoom base point coordinates as a reference, synchronously adjust the width and height values of the display screen window according to the zoom step length.
  10. 一种显示设备,其特征在于,包括:A display device, characterized in that it comprises:
    显示器;monitor;
    旋转组件,被配置为带动所述显示器旋转,以使所述显示器处于多种旋转状态中的一种;The rotating component is configured to drive the display to rotate, so that the display is in one of a variety of rotating states;
    控制器,被配置为:The controller is configured as:
    获取待显示视频画面;Obtain the to-be-displayed video screen;
    通过视频层对所述待显示视频画面进行画质处理;Performing image quality processing on the to-be-displayed video picture through the video layer;
    生成中间图像;所述中间图像为在所述待显示视频画面经过画质处理输出图像后,通过截取输出图像获得的视频帧数据;Generating an intermediate image; the intermediate image is the video frame data obtained by intercepting the output image after the image to be displayed is output through image quality processing;
    通过OSD层旋转所述中间图像,生成旋转图像;Rotate the intermediate image through the OSD layer to generate a rotated image;
    控制所述显示器逐帧显示所述旋转图像。Controlling the display to display the rotated image frame by frame.
PCT/CN2021/080552 2020-03-13 2021-03-12 Display method and display device WO2021180223A1 (en)

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
CN202010176794.2 2020-03-13
CN202010176794.2A CN113395558B (en) 2020-03-13 2020-03-13 Display equipment and display picture rotation adaptation method
CN202010350580.2 2020-04-28
CN202010350580.2A CN113573118B (en) 2020-04-28 2020-04-28 Video picture rotating method and display equipment
CN202010693749.4 2020-07-17
CN202010693749.4A CN111866590B (en) 2020-07-17 2020-07-17 Display device
CN202011036180.0A CN112165644B (en) 2020-09-27 2020-09-27 Display device and video playing method in vertical screen state
CN202011036180.0 2020-09-27

Publications (1)

Publication Number Publication Date
WO2021180223A1 true WO2021180223A1 (en) 2021-09-16

Family

ID=77671206

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2021/080552 WO2021180223A1 (en) 2020-03-13 2021-03-12 Display method and display device
PCT/CN2021/080553 WO2021180224A1 (en) 2020-03-13 2021-03-12 Display device

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/080553 WO2021180224A1 (en) 2020-03-13 2021-03-12 Display device

Country Status (1)

Country Link
WO (2) WO2021180223A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245177A (en) * 2021-12-17 2022-03-25 智道网联科技(北京)有限公司 Smooth display method and device of high-precision map, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101057211A (en) * 2004-11-15 2007-10-17 三星电子株式会社 Display apparatus, control method thereof, and display system
WO2013105443A1 (en) * 2012-01-13 2013-07-18 ソニー株式会社 Information processing device and information processing method, as well as computer program
CN104065999A (en) * 2014-06-11 2014-09-24 四川政企网络信息服务有限公司 Image processing assembly and method capable of achieving image rotation
CN104581405A (en) * 2013-10-21 2015-04-29 中国移动通信集团公司 Display content processing method and equipment
CN106658175A (en) * 2016-11-15 2017-05-10 Tcl集团股份有限公司 Video display method and system for television terminal
US20180060015A1 (en) * 2016-08-30 2018-03-01 Samsung Electronics Co., Ltd. Image display apparatus and operating method of the same
WO2019199502A1 (en) * 2018-04-13 2019-10-17 Microsoft Technology Licensing, Llc Systems and methods of providing a multipositional display
CN111866590A (en) * 2020-07-17 2020-10-30 海信视像科技股份有限公司 Display device
CN112165644A (en) * 2020-09-27 2021-01-01 海信视像科技股份有限公司 Display device and video playing method in vertical screen state

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465999A (en) * 2007-12-21 2009-06-24 康佳集团股份有限公司 Liquid crystal television capable of exchanging longitudinal and horizontal picture as well as exchanging method thereof
KR20110122556A (en) * 2010-05-04 2011-11-10 엘지전자 주식회사 Apparatus for displaying image and method for operating the same
US8896533B2 (en) * 2012-10-29 2014-11-25 Lenova (Singapore) Pte. Ltd. Display directional sensing
CN105306997B (en) * 2014-05-30 2018-12-14 广州市动景计算机科技有限公司 Mobile terminal playing mode switching method and device
CN104615418B (en) * 2014-07-25 2019-04-16 腾讯科技(北京)有限公司 A kind of implementation method and device of slidably broadcast window
CN104461437B (en) * 2014-12-29 2019-01-04 中科创达软件股份有限公司 A kind of data display method and device
CN110737336B (en) * 2019-10-12 2022-05-13 Oppo广东移动通信有限公司 Video display direction adjusting method and device and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101057211A (en) * 2004-11-15 2007-10-17 三星电子株式会社 Display apparatus, control method thereof, and display system
WO2013105443A1 (en) * 2012-01-13 2013-07-18 ソニー株式会社 Information processing device and information processing method, as well as computer program
CN104581405A (en) * 2013-10-21 2015-04-29 中国移动通信集团公司 Display content processing method and equipment
CN104065999A (en) * 2014-06-11 2014-09-24 四川政企网络信息服务有限公司 Image processing assembly and method capable of achieving image rotation
US20180060015A1 (en) * 2016-08-30 2018-03-01 Samsung Electronics Co., Ltd. Image display apparatus and operating method of the same
CN106658175A (en) * 2016-11-15 2017-05-10 Tcl集团股份有限公司 Video display method and system for television terminal
WO2019199502A1 (en) * 2018-04-13 2019-10-17 Microsoft Technology Licensing, Llc Systems and methods of providing a multipositional display
CN111866590A (en) * 2020-07-17 2020-10-30 海信视像科技股份有限公司 Display device
CN112165644A (en) * 2020-09-27 2021-01-01 海信视像科技股份有限公司 Display device and video playing method in vertical screen state

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245177A (en) * 2021-12-17 2022-03-25 智道网联科技(北京)有限公司 Smooth display method and device of high-precision map, electronic equipment and storage medium
CN114245177B (en) * 2021-12-17 2024-01-23 智道网联科技(北京)有限公司 Smooth display method and device of high-precision map, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2021180224A1 (en) 2021-09-16

Similar Documents

Publication Publication Date Title
WO2021179359A1 (en) Display device and display picture rotation adaptation method
CN112165644B (en) Display device and video playing method in vertical screen state
CN111787388B (en) Display device
WO2021212463A1 (en) Display device and screen projection method
CN111866593B (en) Display device and startup interface display method
WO2021179363A1 (en) Display device and boot animation display method
WO2021189708A1 (en) Method for turning on screen protection for display device, and display device
WO2021189712A1 (en) Method for switching webpage video from full-screen playing to small-window playing, and display device
CN112565861A (en) Display device
WO2021213097A1 (en) Display apparatus and screen projection method
CN113395600B (en) Interface switching method of display equipment and display equipment
WO2021180223A1 (en) Display method and display device
CN113556591A (en) Display equipment and projection screen image rotation display method
CN113573118B (en) Video picture rotating method and display equipment
WO2021212470A1 (en) Display device and projected-screen image display method
CN113395554B (en) Display device
CN113542824B (en) Display equipment and display method of application interface
CN112565915A (en) Display apparatus and display method
WO2021208016A1 (en) Display device and display method for application interface
WO2021195919A1 (en) Display device, and power-on signal source display adaption method
CN113473192B (en) Display device and starting signal source display adaptation method
WO2021184387A1 (en) Animation configuration method and display device
CN113015006B (en) Display apparatus and display method
CN113542823B (en) Display equipment and application page display method
CN113473193B (en) Display equipment and locked-rotor state recovery method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21767663

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21767663

Country of ref document: EP

Kind code of ref document: A1