CN110248243B - Multimedia file display method, terminal and medium - Google Patents

Multimedia file display method, terminal and medium Download PDF

Info

Publication number
CN110248243B
CN110248243B CN201910675157.7A CN201910675157A CN110248243B CN 110248243 B CN110248243 B CN 110248243B CN 201910675157 A CN201910675157 A CN 201910675157A CN 110248243 B CN110248243 B CN 110248243B
Authority
CN
China
Prior art keywords
image frame
terminal
change information
angle change
multimedia file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910675157.7A
Other languages
Chinese (zh)
Other versions
CN110248243A (en
Inventor
王玮
靳太明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910675157.7A priority Critical patent/CN110248243B/en
Publication of CN110248243A publication Critical patent/CN110248243A/en
Application granted granted Critical
Publication of CN110248243B publication Critical patent/CN110248243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/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/44008Processing 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 operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data

Abstract

The invention provides a display method and a terminal of a multimedia file, which solve the problem that when a user watches a mobile phone video in a bumpy environment, the eyes of the user are required to focus a screen picture all the time, and the watching fatigue is easily caused for a long time. The method comprises the following steps: under the condition that a terminal displays a multimedia file, acquiring a first image frame corresponding to the multimedia file and first angle change information of the terminal; correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame; and displaying the target image frame. According to the angle change information in the display process of the current image frame, the first image frame behind the current image frame is corrected, so that the shaking of the image frame is reduced, and the fatigue of a user watching a multimedia file in a bumpy environment is relieved.

Description

Multimedia file display method, terminal and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a terminal for displaying a multimedia file.
Background
With the popularization of networks, the reduction of traffic charges, the increase of the speed of mobile terminals and the continuous increase of memories, the demand of users for watching videos by using the mobile terminals is higher and higher.
When a user watches a video file on a mobile terminal, the watching experience is poor under the condition of large environmental jitter (such as a bumpy environment). Under the condition, the relative relation between the eyes of the user and the screen of the mobile phone can be changed all the time, the eyes focus on the screen picture all the time, people feel fatigue for a long time, and the user cannot obtain better video watching experience in a bumpy scene.
Disclosure of Invention
The invention aims to provide a method and a terminal for displaying a multimedia file, which are used for solving the problems that when a user watches a mobile phone video in a bumpy environment, the user needs to focus a screen image all the time, and visual fatigue is easily generated for a long time.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, the present invention provides a method for displaying a multimedia file, including:
under the condition that a terminal displays a multimedia file, acquiring a first image frame corresponding to the multimedia file and first angle change information of the terminal; the first angle change information is angle change information of the terminal in the display process of a current image frame, and the first image frame is an image frame positioned behind the current image frame;
correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame;
and displaying the target image frame.
In a second aspect, an embodiment of the present invention further provides a terminal, including:
the terminal comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first image frame corresponding to a multimedia file and first angle change information of the terminal under the condition that the terminal displays the multimedia file; the first angle change information is angle change information of the terminal in the display process of a current image frame, and the first image frame is an image frame positioned behind the current image frame;
the correction module is used for correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame;
and the display module is used for displaying the target image frame.
In a third aspect, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the method for displaying a multimedia file as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for displaying a multimedia file as described above.
In the embodiment of the invention, under the condition that a terminal displays a multimedia file, a first image frame corresponding to the multimedia file and first angle change information of the terminal are acquired; correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame; and displaying the target image frame. According to the embodiment of the invention, the first image frame behind the current image frame is corrected according to the angle change information in the display process of the current image frame, so that the jitter of the image frame is reduced, and the fatigue of a user watching a multimedia file in a bumpy environment is reduced.
Drawings
FIG. 1 is a flowchart illustration of a method for displaying a multimedia file according to an embodiment of the present invention;
FIG. 2 is a block diagram of a target image frame according to an embodiment of the present invention;
fig. 3 is one of block diagrams of a terminal according to an embodiment of the present invention;
fig. 4 is a second schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a method for displaying a multimedia file provided in an embodiment of the present invention is applied to a terminal, and the method includes:
step 101: under the condition that a terminal displays a multimedia file, acquiring a first image frame corresponding to the multimedia file and first angle change information of the terminal; the first angle change information is angle change information of the terminal in a current image frame display process, and the first image frame is an image frame located behind the current image frame.
Specifically, the first angle change information is change information between first angle information and second angle information of the terminal, the first angle information is angle information of the terminal at a first time, the second angle information is angle information of the terminal at a second time, the first time is a start display time of a current image frame, and the second time is an end display time of the current image frame.
The step 101 may specifically include: and under the condition that a terminal displays a multimedia file and meets the anti-shake mode triggering condition, acquiring a target image frame corresponding to the multimedia file and first angle change information of the terminal.
The anti-shake mode triggering condition may be whether the second angle change information of the terminal in a preset time period conforms to a preset angle change rule, and the preset rule may be an angle change rule which is counted in advance by a user according to a bumpy environment.
The first image frame may be specifically an image frame located after and adjacent to the current image frame.
The first angle change information may be specifically obtained by a gyroscope inside the terminal, and the multimedia file may be specifically a video file.
Step 102: and correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame.
Here, the positions of pixels in the first image frame are rectified in order to reduce the jitter of the video frame according to the first angle change information of the terminal.
Step 103: and displaying the target image frame.
In an embodiment of the present invention, each corrected image frame may be output and displayed in a time-sequence splicing manner.
According to the method for displaying the multimedia file, under the condition that the terminal displays the multimedia file, a first image frame corresponding to the multimedia file and first angle change information of the terminal are obtained; correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame; and displaying the target image frame. According to the embodiment of the invention, the first image frame behind the current image frame is corrected according to the angle change information in the display process of the current image frame, so that the jitter of the image frame is reduced, and the fatigue of a user watching a multimedia file in a bumpy environment is reduced.
Further, in a case that a terminal displays a multimedia file, acquiring a first image frame corresponding to the multimedia file and first angle change information of the terminal may include:
under the condition that a terminal displays a multimedia file, determining whether the terminal meets an anti-shake mode triggering condition or not according to second angle change information of the terminal in a preset time period;
and under the condition that the terminal meets the anti-shake mode triggering condition, acquiring a first image frame corresponding to the multimedia file and first angle change information of the terminal.
For example, under the condition that the terminal displays the multimedia file, the angle change information of the terminal within 10ms is counted, and whether the angle change information within 10ms meets the anti-shake mode triggering condition is judged, that is, whether the angle change information within 10ms meets a preset angle change rule is judged, wherein the preset rule can be an angle change rule which is counted in advance by a user according to a bumpy environment. And if the anti-shake mode triggering condition is met, popping up a prompt box to prompt a user whether to trigger the anti-shake mode, and acquiring a first image frame corresponding to the multimedia file and first angle change information of the terminal when receiving an instruction for triggering the anti-shake mode, which is input by the user.
Here, when the terminal satisfies an anti-shake mode trigger condition, a first image frame corresponding to the multimedia file and first angle change information of the terminal are acquired, so that the first image frame is corrected subsequently.
Further, before the correcting the first image frame according to the first angle change information of the terminal to obtain the target image frame, the method may further include:
and determining a rotation matrix R according to the first angle change information.
In an embodiment of the present invention, the first angle variation information is obtained by a gyroscope of the terminal, and the first angle variation information is converted into a 3 × 3 rotation matrix R. The specific conversion process is the same as the implementation manner of converting the data of the gyroscope into the rotation matrix in the prior art, and is not described here again.
And determining an internal reference matrix K according to the focal length value set by the user.
In a specific embodiment of the present invention, a focal length selection interval of the focal length value is preset, and a user may select a corresponding focal length value in the focal length selection interval according to a correction requirement for the image frame, for example, if the user wants to achieve a higher anti-shake sensitivity, a smaller focal length value is selected, and if the user wants to achieve a lower anti-shake sensitivity, a larger focal length value is selected.
Different focal length values are set for selection of a user, so that the user can conveniently correct the image frames in different degrees, and different correction sensitivities can be achieved.
Based on this, the correcting the first image frame according to the first angle change information of the terminal to obtain the target image frame specifically includes:
and correcting the first image frame according to the rotation matrix R and the internal reference matrix K to obtain a target image frame.
Specifically, by the formula: x ═ KRK-1Correcting the first image frame by Hx to obtain a target image frame;
wherein the content of the first and second substances,
Figure BDA0002143033320000051
x denotes the x-th pixel in the first image frame, x0Representing the abscissa, y, of the x-th pixel in said first image frame0Representing the ordinate of the x-th pixel in the first image frame;
Figure BDA0002143033320000052
x' represents the x-th pixel in the target image frame, x0' represents the abscissa, y, of the x-th pixel in the target image frame0' represents the ordinate of the x-th pixel in the target image frame; r represents a rotation matrix, K represents an internal reference matrix, K-1An inverse matrix of the reference matrix is represented,
Figure BDA0002143033320000053
f denotes a focal length value set by a user, w denotes a width of the first image frame, H denotes a height of the first image frame, and H denotes a homography matrix.
In the embodiment of the invention, the positions of the pixels in the first image frame are adjusted according to the rotation matrix R and the internal reference matrix K, so that the shaking of the image frame can be reduced, and the fatigue of a user watching a multimedia file in a bumpy environment is further reduced.
As an optional implementation manner, the correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame specifically includes: the first image frame is subjected to blocking processing to obtain at least two image frames;
constructing at least two thread pools, each thread pool comprising at least one processor CPU;
and controlling the at least two thread pools to correct the at least two image frames in parallel according to the first angle change information of the terminal.
In the specific embodiment of the present invention, video playing needs to be corrected frame by frame, time consumption for correcting the whole image is large, and since the position correction operation of each pixel point in the image is independent, as shown in fig. 2, the image frame may be divided into N blocks (for example, N is 8 × 8); and then, by constructing a thread pool for parallel processing, the position correction processing is carried out on the N image frames in parallel. Each thread pool may include, among other things, a large Core (CPU) and/or a small Core (CPU). Because the correction processing process is matrix multiplication operation, the correction processing speed can be accelerated to the maximum extent by combining assembly instructions.
As another optional implementation manner, the correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame specifically includes: and according to the first angle change information of the terminal, calling a GPU thread to correct the first image frame to obtain a target image frame.
Specifically, the GPU engine may be started when the multimedia file is displayed, and may be closed when the multimedia file is stopped being displayed. The rectification process can be accelerated by GPU thread parallel and hardware interpolation calculation.
Further, the first image frame comprises a first image and a first subtitle; the correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame specifically includes:
correcting the first caption according to the first angle change information of the terminal to obtain a target caption;
and obtaining a target image frame according to the first image and the target caption.
Here, only the subtitles in the first image frame are corrected, and correction processing is not required to be performed on each pixel in the first image frame, thereby reducing power consumption of the terminal. Specifically, after the anti-shake mode is triggered, only the subtitles (e.g., the barrage) in the image frame are corrected according to the first angle change information, and the corrected target subtitles are merged into the video played in each frame for output.
Of course, the first image and the first subtitle in the first image frame may also be rectified simultaneously, i.e. each pixel in the first image frame is rectified.
According to the method for displaying the multimedia file, under the condition that the terminal displays the multimedia file, a first image frame corresponding to the multimedia file and first angle change information of the terminal are obtained; correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame; and displaying the target image frame. According to the embodiment of the invention, the first image frame behind the current image frame is corrected according to the angle change information in the display process of the current image frame, so that the jitter of the image frame is reduced, and the fatigue of a user watching a multimedia file in a bumpy environment is reduced.
As shown in fig. 3, an embodiment of the present invention further provides a terminal 300, including:
an obtaining module 301, configured to obtain, when a terminal displays a multimedia file, a first image frame corresponding to the multimedia file and first angle change information of the terminal; the first angle change information is angle change information of the terminal in the display process of a current image frame, and the first image frame is an image frame positioned behind the current image frame;
a correction module 302, configured to correct the first image frame according to the first angle change information of the terminal, so as to obtain a target image frame;
and a display module 303, configured to display the target image frame.
Optionally, as shown in fig. 4, the terminal further includes:
a first determining module 304, configured to determine a rotation matrix R according to first angle change information before the correcting module corrects the first image frame according to the first angle change information of the terminal to obtain a target image frame;
a second determining module 305, configured to determine an internal reference matrix K according to a focal length value set by a user;
the correcting module 302 is specifically configured to correct the first image frame according to the rotation matrix R and the internal reference matrix K to obtain a target image frame.
Optionally, the corrective module 302 includes:
a first obtaining submodule 3021, configured to perform blocking processing on the first image frame to obtain at least two image frames;
a construction submodule 3022, configured to construct at least two thread pools, each thread pool including at least one processor CPU;
the processing submodule 3023 is configured to control the at least two thread pools to correct the at least two image frames in parallel according to the first angle change information of the terminal.
Optionally, the first image frame includes a first image and a first subtitle; the orthotic module 302 comprises:
the correction submodule 3024 is configured to correct the first subtitle according to the first angle change information of the terminal, so as to obtain a target subtitle;
the second obtaining sub-module 3025 is configured to obtain a target image frame according to the first image and the target subtitle.
According to the terminal provided by the embodiment of the invention, under the condition that the terminal displays the multimedia file, a first image frame corresponding to the multimedia file and first angle change information of the terminal are obtained; correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame; and displaying the target image frame. According to the embodiment of the invention, the first image frame behind the current image frame is corrected according to the angle change information in the display process of the current image frame, so that the jitter of the image frame is reduced, and the fatigue of a user watching a multimedia file in a bumpy environment is reduced.
It should be noted that the terminal is a terminal corresponding to the above method embodiment, and all implementation manners in the above method embodiment are applicable to the embodiment of the terminal, and the same technical effect can be achieved.
Fig. 5 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the terminal configuration shown in fig. 5 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to, when a terminal displays a multimedia file, obtain a first image frame corresponding to the multimedia file and first angle change information of the terminal; the first angle change information is angle change information of the terminal in the display process of a current image frame, and the first image frame is an image frame positioned behind the current image frame; correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame; controls the display unit 506 to display the target image frame.
According to the technical scheme of the embodiment of the invention, under the condition that a terminal displays a multimedia file, a first image frame corresponding to the multimedia file and first angle change information of the terminal are obtained; correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame; and displaying the target image frame. According to the embodiment of the invention, the first image frame behind the current image frame is corrected according to the angle change information in the display process of the current image frame, so that the jitter of the image frame is reduced, and the fatigue of a user watching a multimedia file in a bumpy environment is reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 502, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The terminal 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the terminal 500 or may be used to transmit data between the terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, so that functions of managing charging, discharging, and power consumption are performed through the power management system.
In addition, the terminal 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned embodiment of the method for displaying a multimedia file, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the method for displaying a multimedia file, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. A method for displaying multimedia files is applied to a terminal and is characterized by comprising the following steps:
under the condition that a terminal displays a multimedia file, acquiring a first image frame corresponding to the multimedia file and first angle change information of the terminal; the first angle change information is angle change information of the terminal in the display process of a current image frame, and the first image frame is an image frame positioned behind the current image frame;
correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame;
displaying the target image frame;
the correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame specifically includes:
the first image frame is subjected to blocking processing to obtain at least two image frames;
constructing at least two thread pools, each thread pool comprising at least one processor CPU;
controlling the at least two thread pools to correct the at least two image frames in parallel according to the first angle change information of the terminal;
the first image frame comprises a first image and a first subtitle; the correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame specifically includes:
correcting the first caption according to the first angle change information of the terminal to obtain a target caption;
and obtaining a target image frame according to the first image and the target caption.
2. The method according to claim 1, wherein before the rectifying the first image frame according to the first angle change information of the terminal to obtain the target image frame, the method further comprises:
determining a rotation matrix R according to the first angle change information;
determining an internal reference matrix K according to a focal length value set by a user;
the correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame specifically includes: and correcting the first image frame according to the rotation matrix R and the internal reference matrix K to obtain a target image frame.
3. A terminal, comprising:
the terminal comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first image frame corresponding to a multimedia file and first angle change information of the terminal under the condition that the terminal displays the multimedia file; the first angle change information is angle change information of the terminal in the display process of a current image frame, and the first image frame is an image frame positioned behind the current image frame;
the correction module is used for correcting the first image frame according to the first angle change information of the terminal to obtain a target image frame;
the display module is used for displaying the target image frame;
the orthotic module comprises:
the first obtaining submodule is used for carrying out blocking processing on the first image frame to obtain at least two image frames;
a construction submodule for constructing at least two thread pools, each of said thread pools comprising at least one processor CPU;
the processing submodule is used for controlling the at least two thread pools to correct the at least two image frames in parallel according to the first angle change information of the terminal;
the first image frame comprises a first image and a first subtitle; the orthotic module comprises:
the correction submodule is used for correcting the first subtitle according to the first angle change information of the terminal to obtain a target subtitle;
and the second obtaining sub-module is used for obtaining a target image frame according to the first image and the target caption.
4. The terminal of claim 3, further comprising:
the first determining module is used for determining a rotation matrix R according to first angle change information before the correcting module corrects the first image frame according to the first angle change information of the terminal to obtain a target image frame;
the second determination module is used for determining the internal parameter matrix K according to the focal length value set by the user;
the correction module is specifically configured to correct the first image frame according to the rotation matrix R and the internal reference matrix K to obtain a target image frame.
5. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method for displaying a multimedia file according to any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of displaying a multimedia file according to any one of claims 1 to 2.
CN201910675157.7A 2019-07-25 2019-07-25 Multimedia file display method, terminal and medium Active CN110248243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910675157.7A CN110248243B (en) 2019-07-25 2019-07-25 Multimedia file display method, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910675157.7A CN110248243B (en) 2019-07-25 2019-07-25 Multimedia file display method, terminal and medium

Publications (2)

Publication Number Publication Date
CN110248243A CN110248243A (en) 2019-09-17
CN110248243B true CN110248243B (en) 2022-02-18

Family

ID=67893434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910675157.7A Active CN110248243B (en) 2019-07-25 2019-07-25 Multimedia file display method, terminal and medium

Country Status (1)

Country Link
CN (1) CN110248243B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925658A (en) * 2005-08-31 2007-03-07 三星电子株式会社 Method and device for controlling display according to tilt of mobile terminal
CN101911678A (en) * 2008-01-25 2010-12-08 Nec显示器解决方案株式会社 Projection display device and caption display method
CN102142245A (en) * 2011-03-28 2011-08-03 北京思比科微电子技术股份有限公司 Anti-shaking method and device for portable equipment
CN103414844A (en) * 2013-08-27 2013-11-27 北京奇艺世纪科技有限公司 Video dithering correction method and device
CN103714530A (en) * 2012-09-28 2014-04-09 深圳先进技术研究院 Vanishing point detection and image correction method
CN103902196A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Screen display system and method and electronic display equipment
WO2017173583A1 (en) * 2016-04-05 2017-10-12 华为技术有限公司 Terminal display anti-shake method and apparatus
CN107783704A (en) * 2017-09-27 2018-03-09 北京小米移动软件有限公司 Method of adjustment, device and the terminal of picture effect
CN109495779A (en) * 2018-10-15 2019-03-19 咪咕音乐有限公司 A kind of method, apparatus and computer readable storage medium of barrage adjusting
CN109885368A (en) * 2019-01-31 2019-06-14 维沃移动通信有限公司 A kind of interface display anti-fluttering method and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4815962B2 (en) * 2005-09-12 2011-11-16 ソニー株式会社 REPRODUCTION DEVICE AND REPRODUCTION METHOD, PROGRAM, AND PROGRAM STORAGE MEDIUM
JP5061778B2 (en) * 2007-08-08 2012-10-31 株式会社Jvcケンウッド Subtitle correction display method
TW201027978A (en) * 2008-09-30 2010-07-16 Panasonic Corp Recording medium on which 3D video is recorded, playback apparatus for playing back 3D video, and system LSI
CN105721739B (en) * 2014-12-04 2020-04-10 富泰华工业(深圳)有限公司 Anti-shaking system and method for screen image
CN108234873A (en) * 2018-01-10 2018-06-29 北京小米移动软件有限公司 A kind of method and apparatus for obtaining image

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925658A (en) * 2005-08-31 2007-03-07 三星电子株式会社 Method and device for controlling display according to tilt of mobile terminal
CN101911678A (en) * 2008-01-25 2010-12-08 Nec显示器解决方案株式会社 Projection display device and caption display method
CN102142245A (en) * 2011-03-28 2011-08-03 北京思比科微电子技术股份有限公司 Anti-shaking method and device for portable equipment
CN103714530A (en) * 2012-09-28 2014-04-09 深圳先进技术研究院 Vanishing point detection and image correction method
CN103902196A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Screen display system and method and electronic display equipment
CN103414844A (en) * 2013-08-27 2013-11-27 北京奇艺世纪科技有限公司 Video dithering correction method and device
WO2017173583A1 (en) * 2016-04-05 2017-10-12 华为技术有限公司 Terminal display anti-shake method and apparatus
CN107783704A (en) * 2017-09-27 2018-03-09 北京小米移动软件有限公司 Method of adjustment, device and the terminal of picture effect
CN109495779A (en) * 2018-10-15 2019-03-19 咪咕音乐有限公司 A kind of method, apparatus and computer readable storage medium of barrage adjusting
CN109885368A (en) * 2019-01-31 2019-06-14 维沃移动通信有限公司 A kind of interface display anti-fluttering method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高逼真度3D实时成像与显示系统;吴新良等;《电视技术》;20170317(第3期);15-21 *

Also Published As

Publication number Publication date
CN110248243A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN107957839B (en) Display control method and mobile terminal
CN108182043B (en) Information display method and mobile terminal
CN107817939B (en) Image processing method and mobile terminal
CN108495029B (en) Photographing method and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN110602401A (en) Photographing method and terminal
CN108174103B (en) Shooting prompting method and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
CN108449541B (en) Panoramic image shooting method and mobile terminal
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN111290810B (en) Image display method and electronic equipment
CN110213485B (en) Image processing method and terminal
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN109005355B (en) Shooting method and mobile terminal
CN107153500B (en) Method and equipment for realizing image display
CN108174110B (en) Photographing method and flexible screen terminal
CN110933494A (en) Picture sharing method and electronic equipment
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN110636225B (en) Photographing method and electronic equipment
CN110602387B (en) Shooting method and electronic equipment
CN110290263B (en) Image display method and mobile terminal
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN109005337B (en) Photographing method and terminal

Legal Events

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