WO2019024387A1 - Method and apparatus for transmitting image during file transmission, terminal, and storage medium - Google Patents

Method and apparatus for transmitting image during file transmission, terminal, and storage medium Download PDF

Info

Publication number
WO2019024387A1
WO2019024387A1 PCT/CN2017/116634 CN2017116634W WO2019024387A1 WO 2019024387 A1 WO2019024387 A1 WO 2019024387A1 CN 2017116634 W CN2017116634 W CN 2017116634W WO 2019024387 A1 WO2019024387 A1 WO 2019024387A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
picture frame
frame
terminal
transmitting
Prior art date
Application number
PCT/CN2017/116634
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
Application filed by 广州视源电子科技股份有限公司, 广州视臻信息科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2019024387A1 publication Critical patent/WO2019024387A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems

Definitions

  • the present invention relates to the field of data transmission, and in particular, to a method, system, and terminal for transmitting a picture when transmitting a file.
  • Teleconferencing refers broadly to video conferencing, which allows remote sharing of voice and video images.
  • the primary consideration is whether the transmission of language and video images is timely and whether the display of video images is clear and smooth.
  • data file transmission is often required. In the process of data file transmission, the bandwidth of the picture transmission is occupied, which causes the picture to be stuck, the picture quality to be degraded, or the file transmission to be intermittent.
  • an object of the present invention is to provide a method, an apparatus, a terminal, and a computer readable storage medium for transmitting a picture when transferring a file, which can implement a file without affecting picture quality, picture transmission speed, and file transmission speed. Transfer at the same time as the picture.
  • the present invention provides a method for transmitting a picture when transferring a file, including:
  • the first terminal Transmitting the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the first padding content and the The second picture frame generates a third picture frame for display.
  • the size of the first clipping region is determined by the current network condition, the size of the transmitted file, and the clarity of the transmitted picture.
  • the method for transmitting a picture when transferring a file further includes:
  • the second padding content is a pop-up window having the same shape shape as the second clipping region of the fourth picture frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, and a progress of the transmission. , remaining transmission time.
  • the second trimming area of the fourth picture frame is filled according to the second padding content, and a fifth picture frame for displaying is generated, specifically:
  • the present invention also provides a method for transmitting a picture when transferring a file, comprising:
  • the third padding content is a pop-up window having the same shape shape as the third clipping region of the sixth picture frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, and a progress of the transmission. , remaining transmission time.
  • the third trimming area of the sixth picture frame is filled according to the third padding content, Generate an eighth frame for display, specifically:
  • the location information of the third clipping area is obtained by reading the default location information stored locally; or the location information of the third clipping area is obtained by parsing the sixth picture frame;
  • the method for transmitting a picture when transferring a file further includes:
  • the fourth terminal Transmitting the ninth picture frame to the fourth terminal, so that after receiving the ninth picture frame, the fourth terminal reads the locally pre-stored fourth padding content, according to the fourth padding content and the The ninth picture frame generates a tenth picture frame for display.
  • the present invention also provides a method for transmitting a picture when transferring a file, comprising:
  • the locally pre-stored padding content is read, and a thirteenth frame frame for display is generated according to the padding content and the twelfth frame frame.
  • the padding content is a pop-up window having the same shape shape as the trimming area of the eleventh picture frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, a progress of the transmission, and a remaining transmission. time.
  • the present invention also provides an apparatus for transmitting a picture when transmitting a file, comprising:
  • a first picture frame acquiring unit configured to detect the direction in the process of transmitting the picture to the first terminal Obtaining, by the first terminal, a process of transmitting a file, acquiring a first picture frame currently transmitted to the first terminal;
  • a screen clipping unit configured to clip a predetermined first clipping area on the first picture frame to generate a second picture frame
  • a picture sending unit configured to send the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the first The padding content and the second picture frame generate a third picture frame for display.
  • the present invention also provides an apparatus for transmitting a picture when transmitting a file, comprising:
  • a picture extracting unit configured to: when receiving the picture and the file from the third terminal at the same time, extract the currently received sixth picture frame from the third terminal; wherein the sixth picture frame has the third cut that is clipped region;
  • a padding unit configured to fill the third trimming area of the sixth picture frame according to the third padding content, and generate a seventh picture frame for display.
  • the present invention also provides a terminal comprising a processor, a memory, and a computer program stored in the memory; wherein the computer program is executable by the processor to implement a transfer of a file as described above when transferring a file Methods.
  • the present invention also provides a computer readable storage medium comprising a stored computer program, wherein, when the computer program is running, controlling a device in which the computer readable storage medium is executed performs as described above The method of transferring pictures when transferring files.
  • the method, the device, the terminal, and the computer readable storage medium for transmitting a picture when transmitting a file when performing screen transmission and file transmission at the same time, trimming the first picture frame transmitted as one end of the transmission, generating The second picture frame is sent to the receiving terminal, which reduces the bandwidth resources required for transmitting the picture frame, and thus can use the part of the bandwidth resource for file transmission.
  • the receiving end is rendered according to the second picture frame and the locally filled content, and a complete third picture frame is generated.
  • the picture transmission quality, the picture transmission speed, the file transmission speed and the user visual experience can be balanced to meet the user's use requirements.
  • FIG. 1 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to the first embodiment of the present invention.
  • FIG. 2 is a schematic diagram of trimming a first picture frame according to the first embodiment of the present invention.
  • FIG. 3 is a schematic diagram of rendering a third picture frame according to a second picture frame and padding content.
  • FIG. 4 is a schematic diagram of a first padding content according to a first embodiment of the present invention.
  • FIG. 5 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a second embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a third embodiment of the present invention.
  • FIG. 7 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a fourth embodiment of the present invention.
  • FIG. 8 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a fifth embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an apparatus for transmitting a picture when a file is transmitted according to a sixth embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an apparatus for transmitting a picture when a file is transmitted according to a seventh embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal according to an eighth embodiment of the present invention.
  • the present invention provides a method, an apparatus, a terminal, and a computer readable storage medium for transmitting a picture when transferring a file, for cutting a transmitted picture frame at the same time for performing picture transmission and file transmission, so as to reduce the transmission picture.
  • the required bandwidth taking into account both picture transfer and file transfer. The details are described below separately.
  • FIG. 1 is a schematic flowchart of a method for transmitting a picture when a file is transmitted according to a first embodiment of the present invention, which may be executed by a device that transmits a picture when transmitting a file, and includes the following steps:
  • the device (hereinafter referred to as the device) for transmitting a file when the file is transmitted may be a notebook computer, a desktop computer, a smart phone, a smart tablet computer, etc., and the present invention is not specifically limited.
  • the first terminal may also be a notebook computer, a desktop computer, a smart phone, a smart tablet computer, etc., and the invention is not specifically limited.
  • a user of the device performs a video chat or a video conference with a user of the first terminal, and at this time, the device collects related images in real time (such as a user's personal image or conference).
  • a document screen or the like is sent to the first terminal through a network, and the first terminal receives the screen and performs display.
  • the user of the device may also need to send some files to the user of the first terminal, such as conference related materials, etc., at this time, when the device detects that the screen and the file are simultaneously sent to the first terminal. Get the first picture frame of the current transmission.
  • the number of the first terminals may be one or more, that is, the device is allowed to simultaneously transmit pictures to and simultaneously transmit files to multiple first terminals, and the present invention does not Specifically limited.
  • the device when detecting the process of transmitting a file during the screen transmission process, acquires the first picture frame A currently transmitted to the first terminal, and the first picture frame is The first trimming area C of the frame A is trimmed to generate a second picture frame B.
  • the first trimming area C may be preset, such as located in the lower right corner of the first picture frame A.
  • the A clipping region C may also be other positions, such as an upper left corner, a lower left corner, an upper right corner, or upper, lower, left, and right sides, and the like, which is not specifically limited.
  • the first trimming area C may also be determined according to useful information of each area of the first picture frame A.
  • the transmitting terminal 100 may perform image extraction on the first picture frame A, acquire non-critical areas of the first picture frame A (such as some background environment areas), and set the non-key areas as the clipping area.
  • the size of the first cropping area C may be predefined, or may be determined according to current network conditions, the size of the file to be transmitted, and the resolution of the transmitted picture. For example, When the current network condition is good, the size of the first cropping area C may be set smaller. When the current network condition is relatively poor, the size of the first cropping area C may be set to be larger. When the transmitted file is relatively small, the size of the first cropping area C may be set smaller, and when the file to be transferred is relatively large, the size of the first cropping area C may be set to be larger.
  • the size of the first cropping area C may be set smaller, and when the resolution of the transmitted picture is high, the size of the first cropping area C may be set larger.
  • S103 Send the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the first padding content and the The second picture frame generates a third picture frame for display.
  • the first pre-stored first padding content D is read, and according to the first padding content.
  • D and the second picture frame B generate a third picture frame E and display it.
  • the first padding content D may be a static picture, a prompt in loading, or a pop-up window associated with the file, and its size and shape are completely consistent with the first clipping area C.
  • the first padding content D may be a pop-up window having the same shape shape as the first trimming region C of the first screen frame A, and the pop-up window displays at least the following content. One: the name of the file being transferred, the progress of the transfer, and the remaining transfer time.
  • the generating, by the first terminal, the third picture frame E according to the first padding content D and the second picture frame B is: first, the first terminal acquires the first picture
  • the position information of the clipping area C of the frame A is then rendered according to the filling content D, the position information of the first clipping area C, and the second picture frame B, to generate a third picture frame E.
  • the location information of the first clipping area C may be sent by the device to the first terminal, or may be obtained by reading the locally stored default location information by the first terminal, or may be
  • the second picture frame is obtained by parsing, and is not specifically limited in the present invention.
  • adding the first padding content D has two advantages, one is to maintain the integrity of the picture frame displayed on the first terminal, and does not generate a bad user visual experience;
  • the information of the file transmission is displayed on the content D, so that the user of the first terminal can obtain the progress information of the file transmission in time, such as the name of the file being transmitted, the progress of the transmission, and the remaining transmission time.
  • the first padding content D is stored locally on the first terminal, its rendering process does not occupy network bandwidth.
  • the method for transmitting a picture when transmitting a file when performing screen transmission and file transmission at the same time, by performing clipping on the transmitted first picture frame, generates a second The picture frame is sent to the first terminal, which reduces the bandwidth resources required for transmitting the picture frame, and thus can use the part of the bandwidth resource for file transmission.
  • the screen transmission quality, the screen transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
  • FIG. 5 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a second embodiment of the present invention.
  • the embodiment further includes the following steps:
  • the device serves as a transmitting end of a picture and a file, and in some cases, the device can also serve as a receiving end of a picture and a file.
  • the device when the user of the device and the user of the second terminal perform a video chat and a video conference, if the user of the second terminal sends a corresponding data file to the user of the device, At this time, the second terminal clips the currently transmitted picture to obtain a fourth picture frame, and sends the clipped fourth picture frame to the device, where the device obtains that the fourth picture frame is clipped.
  • the second trimming area is then read, and the second pre-stored second filling content is read, and the second clipping area of the fourth picture frame is filled according to the second filling content to generate a fifth picture frame for display.
  • the second terminal in this embodiment may be the same terminal as the first terminal in the first embodiment, and may be different, and these solutions are all within the protection scope of the present invention, and details are not described herein.
  • the method for transmitting a picture when transmitting a file according to the second embodiment of the present invention when receiving a picture and a file at the same time, filling and rendering the received fourth picture frame according to the locally stored second padding content to generate a complete fifth picture. frame.
  • the screen transmission quality, the screen transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
  • FIG. 6 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a third embodiment of the present invention. It can be executed by a device (hereinafter referred to as a device) that transmits a picture when transferring a file. And includes the following steps:
  • the device may be a notebook computer, a desktop computer, a smart phone, a smart tablet, etc., and the invention is not specifically limited.
  • the third terminal may also be a notebook computer, a desktop computer, a smart phone, a smart tablet computer, etc., and the invention is not specifically limited.
  • the third terminal when the third terminal simultaneously sends a picture and a file to the device, the third terminal clips the third clipping area of the currently transmitted picture frame to obtain a sixth picture frame.
  • the third padding content may be a pop-up window having the same shape shape as the third trimming region of the sixth screen frame, and the pop-up window displays at least one of the following contents: the name of the file being transmitted, and the progress of the transmission. , remaining transmission time.
  • the location information of the third clipping area of the sixth picture frame is obtained, and the location information of the third clipping area may be synchronously sent by the third terminal when sending the sixth picture frame. It can also be obtained by reading the default location information stored locally by the device, and can also be obtained by parsing the sixth frame frame, which is not specifically limited by the present invention.
  • the device may perform rendering according to the third padding content, the location information of the third clipping region, and the sixth frame frame to generate a seventh frame frame for display.
  • the method for transmitting a picture when transmitting a file according to the third embodiment of the present invention when receiving a picture and a file at the same time, filling and rendering the received sixth picture frame according to the locally stored third padding content to generate a complete seventh picture. frame.
  • the screen transmission quality, the screen transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
  • FIG. 7 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a fourth embodiment of the present invention.
  • the embodiment further includes the following steps:
  • the ninth picture frame is sent to the fourth terminal, so that after receiving the ninth picture frame, the fourth terminal reads the locally pre-stored fourth padding content, according to the fourth padding content. And the ninth picture frame generates a tenth picture frame for display.
  • the fourth padding content is a pop-up window having the same shape shape as the fourth trimming region, and the pop-up window displays at least one of the following contents: a name of a file being transmitted, a progress of transmission, and a remaining transmission time.
  • the device is used as a receiving end.
  • the device may also serve as a transmitting end.
  • the specific implementation principle is similar to that described in the first embodiment of the present invention, and the present invention does not Make specific limits.
  • FIG. 8 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a fifth embodiment of the present invention. It includes:
  • S501 Acquire an eleventh picture frame that is currently transmitted when a process of transmitting a file to the receiving terminal is detected in a process of transmitting a picture to the receiving terminal;
  • the padding content is a pop-up window having the same shape shape as the trimming area of the eleventh picture frame, and the pop-up window displays at least one of the following contents: the name of the file being transmitted, the progress of the transmission, and the remaining transmission time. .
  • the method for transmitting a picture when transmitting a file generates a twelfth picture frame by trimming the transmitted eleventh picture frame while performing picture transmission and file transmission at the same time.
  • Sending to the receiving terminal reduces the bandwidth resources required for transmitting the picture frame, and thus can use the part of the bandwidth resource for file transmission.
  • the twelfth picture frame is filled with the padding content to generate a complete thirteenth picture frame.
  • FIG. 9 is a schematic structural diagram of an apparatus for transmitting a picture when a file is transmitted according to a sixth embodiment of the present invention.
  • the device 600 for transmitting a picture when transmitting a file includes:
  • the first picture frame obtaining unit 610 is configured to acquire a first picture frame that is currently transmitted when a process of transmitting a file to the first terminal is detected in a process of transmitting a picture to the first terminal.
  • the screen clipping unit 620 is configured to clip a predetermined first clipping area on the first picture frame to generate a second picture frame.
  • the picture sending unit 630 is configured to send the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the A padding content and the second frame frame generate a third frame frame for display.
  • the size of the first clipping area is determined by the current network condition, the size of the transmitted file, and the clarity of the transmitted picture.
  • the apparatus 600 for transmitting a picture when transmitting a file further includes:
  • a fourth picture frame receiving unit configured to: when receiving the picture and the file from the second terminal at the same time, extract the currently received fourth picture frame;
  • a second clipping area obtaining unit configured to obtain a second clipping area in which the fourth picture frame is clipped
  • a second padding content reading unit configured to read the locally pre-stored second padding content
  • a padding unit configured to fill the second clipping region of the fourth picture frame according to the second padding content, and generate a fifth frame frame for display.
  • the second padding content is a pop-up window having the same shape shape as the second clipping region of the fourth picture frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, and a progress of the transmission. , remaining transmission time.
  • the filling unit specifically includes:
  • a location information acquiring module configured to acquire location information of a second clipping area of the fourth picture frame, where location information of the second clipping area of the fourth picture frame is sent by the second terminal; or The location information of the second clipping area is obtained by reading the default location information stored locally; or the location information of the second clipping area is obtained by parsing the fourth picture frame;
  • a rendering module configured to generate, according to the second padding content, the location information of the second clipping region, and the fourth frame frame, to generate a fifth frame frame.
  • FIG. 10 is a schematic structural diagram of an apparatus for transmitting a picture when a file is transmitted according to a seventh embodiment of the present invention.
  • the apparatus 700 for transmitting a picture when transmitting a file includes:
  • the picture extracting unit 710 is configured to extract the currently received sixth picture frame when simultaneously receiving the picture and the file from the third terminal.
  • the sixth picture frame has a third trimmed area that is clipped.
  • the content reading unit 720 is configured to read the locally pre-stored third padding content.
  • the filling unit 730 is configured to fill the third trimming area of the sixth picture frame according to the third padding content, and generate a seventh picture frame for display.
  • the third padding content is a pop-up window having the same shape shape as the third trimming region of the sixth screen frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, a progress of the transmission, and a remaining transmission. time.
  • the filling unit 730 is configured to acquire location information of a third clipping area of the sixth picture frame, where location information of the third clipping area of the sixth picture frame is sent by the third terminal.
  • the sixth picture frame is synchronously transmitted; or the location information of the third clipping area is obtained by reading the locally stored default location information; or the location information of the third clipping area is passed to the sixth picture frame. Analytically obtained;
  • the method further comprises:
  • An eighth picture frame acquiring unit configured to acquire an eighth picture frame currently transmitted when a process of transmitting a file to the fourth terminal is detected in a process of transmitting a picture to the fourth terminal;
  • a fourth clipping area cropping unit configured to trim a predetermined fourth clipping area on the eighth picture frame to generate a ninth picture frame
  • a ninth picture frame sending unit configured to send the ninth picture frame to the fourth terminal, so that the fourth terminal reads the locally pre-stored fourth padding content after receiving the ninth picture frame, Generating a tenth picture frame for display according to the fourth padding content and the ninth picture frame.
  • an eighth embodiment of the present invention further provides a terminal, including a processor 801, a memory 802, and a computer program 803 stored in the memory 802.
  • the computer program 803 can be used by the processor.
  • 801 is executed to implement the methods described in the first to fourth embodiments described above.
  • an application software 804 having a screen transmission function and a file transmission function, such as QQ and the like, may be stored in the memory, and the computer program 803 may be used as a plug-in of the application software 804. presence.
  • the terminal may further include at least one network interface 807 or other user interface 806 at least one communication bus 805.
  • Communication bus 805 is used to implement connection communication between these components.
  • the user interface 806 can optionally include a USB interface and other standard interfaces and wired interfaces.
  • Network interface 807 can optionally include a Wi-Fi interface as well as other wireless interfaces.
  • the terminal provided in this embodiment cuts the transmitted picture frame when performing picture transmission and file transmission at the same time, which reduces the bandwidth resource required for transmitting the picture frame, and can further utilize the part of the bandwidth resource for file transmission.
  • the locally pre-stored padding content is read, and rendered according to the padding content and the currently received frame frame to generate a complete picture frame for display.
  • the picture transmission quality, the picture transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
  • a ninth embodiment of the present invention also provides a computer readable storage medium comprising a stored computer program, wherein a device in which the computer readable storage medium is located is executed while the computer program is running The method as described in the first to fourth embodiments above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed is a method for transmitting an image during file transmission, comprising: obtaining a currently transmitted first image frame when detecting a process of transmitting a file to a first terminal in the process of transmitting images to the first terminal; clipping a first clipping region predetermined on the first image frame, and generating a second image frame; sending the second image frame to the first terminal, to enable the first terminal to read a locally pre-stored first filling content after receiving the second image frame and generate a third image frame for displaying according to the first filling content and the second image frame. Also disclosed are an apparatus for transmitting an image during file transmission, a terminal, and a computer readable storage medium. Files and images can be transmitted simultaneously without affecting the quality of images, the speed for image transmission, and the speed for file transmission.

Description

在传输文件时传输画面的方法、装置、终端及存储介质Method, device, terminal and storage medium for transferring pictures when transferring files 技术领域Technical field
本发明涉及数据传输领域,尤其涉及一种在传输文件时传输画面的方法、系统及终端。The present invention relates to the field of data transmission, and in particular, to a method, system, and terminal for transmitting a picture when transmitting a file.
背景技术Background technique
互联网和网络技术的普及和发展给人们的生活和工作带来了革命性的变化,通过互联网和网络技术,人们可以在足不出户的情况下实现网络购物和网络办公,给人们的工作生活带来了极大的便利。例如,基于网络进行远程会议或者视频会议可以让位于不同地点的人们,通过通信设备和网络,进行面对面交谈的会议,实现跨区域召开会议的目的。The popularity and development of Internet and network technologies have brought revolutionary changes to people's lives and work. Through the Internet and network technologies, people can realize online shopping and network office without leaving their homes, giving people a working life. Brought great convenience. For example, remote conferences or video conferences based on the network can enable people in different locations to conduct face-to-face conversations through communication devices and networks to achieve cross-regional conferences.
远程会议泛指的是视像会议,将语音和视频图像远程交互共享。对于远程会议,其首要考虑的是语言和视频图像的传输是否及时、视频图像的显示是否清晰流畅。但在远程会议中,由于往往还需要进行数据文件的传输,在数据文件传输过程中,会占用画面传输的带宽,进而引起画面卡顿、画面质量下降或者文件传输断续的问题。Teleconferencing refers broadly to video conferencing, which allows remote sharing of voice and video images. For remote meetings, the primary consideration is whether the transmission of language and video images is timely and whether the display of video images is clear and smooth. However, in remote conferences, data file transmission is often required. In the process of data file transmission, the bandwidth of the picture transmission is occupied, which causes the picture to be stuck, the picture quality to be degraded, or the file transmission to be intermittent.
发明内容Summary of the invention
针对上述问题,本发明的目的在于提供一种在传输文件时传输画面的方法、装置、终端及计算机可读存储介质,可在不影响画面质量、画面传输速度及文件传输速度的同时,实现文件与画面的同时传输。In view of the above problems, an object of the present invention is to provide a method, an apparatus, a terminal, and a computer readable storage medium for transmitting a picture when transferring a file, which can implement a file without affecting picture quality, picture transmission speed, and file transmission speed. Transfer at the same time as the picture.
本发明提供了一种在传输文件时传输画面的方法,包括:The present invention provides a method for transmitting a picture when transferring a file, including:
当在向第一终端传输画面的过程中检测到向所述第一终端传输文件的进程时,获取当前传输给第一终端的第一画面帧;Obtaining a first picture frame currently transmitted to the first terminal when detecting a process of transmitting a file to the first terminal in a process of transmitting a picture to the first terminal;
对所述第一画面帧上的预定的第一剪裁区域进行剪裁,生成第二画面帧;Trimming a predetermined first clipping area on the first picture frame to generate a second picture frame;
发送所述第二画面帧至所述第一终端,以使得所述第一终端在接收所述第二画面帧后,读取本地预存的第一填充内容,根据所述第一填充内容及所述第二画面帧生成用于显示的第三画面帧。 Transmitting the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the first padding content and the The second picture frame generates a third picture frame for display.
优选地,所述第一剪裁区域的大小由当前网络状况、传输的文件的大小及传输的画面的清晰度决定。Preferably, the size of the first clipping region is determined by the current network condition, the size of the transmitted file, and the clarity of the transmitted picture.
优选地,所述在传输文件时传输画面的方法还包括:Preferably, the method for transmitting a picture when transferring a file further includes:
当在同时接收来自第二终端的画面和文件时,提取当前接收到的来自所述第二终端的第四画面帧;Extracting a currently received fourth picture frame from the second terminal when simultaneously receiving pictures and files from the second terminal;
获得所述第四画面帧被剪裁的第二剪裁区域;其中,所述第四画面帧具有被剪裁的第二剪裁区域;Obtaining a second clipping area in which the fourth picture frame is clipped; wherein the fourth picture frame has a second clipping area that is clipped;
根据所述第二填充内容填充所述第四画面帧的所述第二剪裁区域,生成用于显示的第五画面帧。Filling the second crop region of the fourth picture frame according to the second padding content to generate a fifth frame frame for display.
优选地,所述第二填充内容为与所述第四画面帧的第二剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。Preferably, the second padding content is a pop-up window having the same shape shape as the second clipping region of the fourth picture frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, and a progress of the transmission. , remaining transmission time.
优选地,所述根据所述第二填充内容填充所述第四画面帧的所述第二剪裁区域,生成用于显示的第五画面帧,具体为:Preferably, the second trimming area of the fourth picture frame is filled according to the second padding content, and a fifth picture frame for displaying is generated, specifically:
获取所述第四画面帧的第二剪裁区域的位置信息;其中,所述第四画面帧的第二剪裁区域的位置信息由第二终端发送;或者所述第二剪裁区域的位置信息通过读取本地存储的默认的位置信息获得;或者所述第二剪裁区域的位置信息通过对所述第四画面帧进行解析获得;And acquiring location information of the second clipping area of the fourth picture frame, where the location information of the second clipping area of the fourth picture frame is sent by the second terminal; or the location information of the second clipping area is read by Obtaining the locally stored default location information; or obtaining the location information of the second clipping region by parsing the fourth frame frame;
根据所述第二填充内容、所述第二剪裁区域的位置信息及所述第四画面帧进行渲染,生成第五画面帧。And rendering according to the second padding content, the location information of the second clipping region, and the fourth frame frame to generate a fifth frame frame.
本发明还提供了一种在传输文件时传输画面的方法,包括:The present invention also provides a method for transmitting a picture when transferring a file, comprising:
当在同时接收来自第三终端的画面和文件时,提取当前接收到的来自所述第三终端的第六画面帧;其中,所述第六画面帧具有被剪裁的第三剪裁区域;Extracting a currently received sixth picture frame from the third terminal when simultaneously receiving a picture and a file from the third terminal; wherein the sixth picture frame has a cropped third clipping area;
读取本地预存的第三填充内容;Reading the locally pre-stored third padding content;
根据所述第三填充内容填充所述第六画面帧的所述第三剪裁区域,生成用于显示的第七画面帧。Filling the third trimming area of the sixth picture frame according to the third padding content, and generating a seventh picture frame for display.
优选地,所述第三填充内容为与所述第六画面帧的第三剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。Preferably, the third padding content is a pop-up window having the same shape shape as the third clipping region of the sixth picture frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, and a progress of the transmission. , remaining transmission time.
优选地,所述根据所述第三填充内容填充所述第六画面帧的第三剪裁区域, 生成用于显示的第八画面帧,具体为:Preferably, the third trimming area of the sixth picture frame is filled according to the third padding content, Generate an eighth frame for display, specifically:
获取所述第六画面帧的第三剪裁区域的位置信息;其中,所述第六画面帧的第三剪裁区域的位置信息由第三终端在发送所述第六画面帧时同步发送;或者所述第三剪裁区域的位置信息通过读取本地存储的默认的位置信息获得;或者所述第三剪裁区域的位置信息通过对所述第六画面帧进行解析获得;Acquiring the location information of the third clipping area of the sixth picture frame; where the location information of the third clipping area of the sixth picture frame is synchronously sent by the third terminal when transmitting the sixth picture frame; The location information of the third clipping area is obtained by reading the default location information stored locally; or the location information of the third clipping area is obtained by parsing the sixth picture frame;
根据所述第三填充内容、所述第三剪裁区域的位置信息及所述第六画面帧进行渲染,生成用于显示的第七画面帧。And rendering according to the third padding content, the location information of the third clipping region, and the sixth frame frame to generate a seventh frame frame for display.
优选地,所述在传输文件时传输画面的方法还包括:Preferably, the method for transmitting a picture when transferring a file further includes:
当在向第四终端传输画面的过程中检测到向所述第四终端传输文件的进程时,获取当前传输给第四终端的第八画面帧;Obtaining an eighth picture frame currently transmitted to the fourth terminal when detecting a process of transmitting a file to the fourth terminal in a process of transmitting a picture to the fourth terminal;
对所述第八画面帧上的预定的第四剪裁区域进行剪裁,生成第九画面帧;And trimming a predetermined fourth clipping area on the eighth picture frame to generate a ninth picture frame;
发送所述第九画面帧至所述第四终端,以使得所述第四终端在接收所述第九画面帧后,读取本地预存的第四填充内容,根据所述第四填充内容及所述第九画面帧生成用于显示的第十画面帧。Transmitting the ninth picture frame to the fourth terminal, so that after receiving the ninth picture frame, the fourth terminal reads the locally pre-stored fourth padding content, according to the fourth padding content and the The ninth picture frame generates a tenth picture frame for display.
本发明还提供了一种在传输文件时传输画面的方法,包括:The present invention also provides a method for transmitting a picture when transferring a file, comprising:
在发送终端:At the sending terminal:
当在向接收终端传输画面的过程中检测到向所述接收终端传输文件的进程时,获取当前传输给所述接收终端的第十一画面帧;Obtaining an eleventh picture frame currently transmitted to the receiving terminal when detecting a process of transmitting a file to the receiving terminal in a process of transmitting a picture to the receiving terminal;
对所述第十一画面帧的第五剪裁区域进行剪裁,生成第十二画面帧;And cutting a fifth clipping area of the eleventh picture frame to generate a twelfth picture frame;
向所述接收终端发送所述第十二画面帧;Transmitting the twelfth picture frame to the receiving terminal;
在接收终端:At the receiving terminal:
接收所述发送终端发送的第十二画面帧;Receiving a twelfth picture frame sent by the sending terminal;
读取本地预存的填充内容,根据所述填充内容及所述第十二画面帧生成用于显示的第十三画面帧。The locally pre-stored padding content is read, and a thirteenth frame frame for display is generated according to the padding content and the twelfth frame frame.
优选地,所述填充内容为与所述第十一画面帧的剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。Preferably, the padding content is a pop-up window having the same shape shape as the trimming area of the eleventh picture frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, a progress of the transmission, and a remaining transmission. time.
本发明还提供了一种在传输文件时传输画面的装置,包括:The present invention also provides an apparatus for transmitting a picture when transmitting a file, comprising:
第一画面帧获取单元,用于当在向第一终端传输画面的过程中检测到向所 述第一终端传输文件的进程时,获取当前传输给第一终端的第一画面帧;a first picture frame acquiring unit, configured to detect the direction in the process of transmitting the picture to the first terminal Obtaining, by the first terminal, a process of transmitting a file, acquiring a first picture frame currently transmitted to the first terminal;
画面剪裁单元,用于对所述第一画面帧上的预定的第一剪裁区域进行剪裁,生成第二画面帧;a screen clipping unit, configured to clip a predetermined first clipping area on the first picture frame to generate a second picture frame;
画面发送单元,用于发送所述第二画面帧至第一终端,以使得所述第一终端在接收所述第二画面帧后,读取本地预存的第一填充内容,根据所述第一填充内容及所述第二画面帧生成用于显示的第三画面帧。a picture sending unit, configured to send the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the first The padding content and the second picture frame generate a third picture frame for display.
本发明还提供了一种在传输文件时传输画面的装置,包括:The present invention also provides an apparatus for transmitting a picture when transmitting a file, comprising:
画面提取单元,用于当在同时接收来自第三终端的画面和文件时,提取当前接收到的来自第三终端的第六画面帧;其中,所述第六画面帧具有被剪裁的第三剪裁区域;a picture extracting unit, configured to: when receiving the picture and the file from the third terminal at the same time, extract the currently received sixth picture frame from the third terminal; wherein the sixth picture frame has the third cut that is clipped region;
填充内容读取单元,用于读取本地预存的第三填充内容;Filling a content reading unit, configured to read the locally pre-stored third padding content;
填充单元,用于根据所述第三填充内容填充所述第六画面帧的所述第三剪裁区域,生成用于显示的第七画面帧。a padding unit, configured to fill the third trimming area of the sixth picture frame according to the third padding content, and generate a seventh picture frame for display.
本发明还提供了一种终端,包括处理器、存储器及存储于所述存储器内的计算机程序;其中,所述计算机程序能够被所述处理器执行,以实现如上述的在传输文件时传输画面的方法。The present invention also provides a terminal comprising a processor, a memory, and a computer program stored in the memory; wherein the computer program is executable by the processor to implement a transfer of a file as described above when transferring a file Methods.
本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上述的在传输文件时传输画面的方法。The present invention also provides a computer readable storage medium comprising a stored computer program, wherein, when the computer program is running, controlling a device in which the computer readable storage medium is executed performs as described above The method of transferring pictures when transferring files.
本发明实施例提供的在传输文件时传输画面的方法、装置、终端及计算机可读存储介质,在同时进行画面传输和文件传输时,作为发送的一端对传输的第一画面帧进行剪裁,生成第二画面帧发送给接收终端,减小了传输画面帧所需的带宽资源,进而可以利用这部分带宽资源进行文件传输。作为接收的一端根据所述第二画面帧及存储在本地的填充内容进行渲染,生成完整的第三画面帧。基于本发明,在同时进行画面传输和文件传输时,可以兼顾画面传输质量、画面传输速度、文件传输速度和用户视觉体验,满足用户的使用需求。The method, the device, the terminal, and the computer readable storage medium for transmitting a picture when transmitting a file according to an embodiment of the present invention, when performing screen transmission and file transmission at the same time, trimming the first picture frame transmitted as one end of the transmission, generating The second picture frame is sent to the receiving terminal, which reduces the bandwidth resources required for transmitting the picture frame, and thus can use the part of the bandwidth resource for file transmission. The receiving end is rendered according to the second picture frame and the locally filled content, and a complete third picture frame is generated. According to the invention, when the screen transmission and the file transmission are simultaneously performed, the picture transmission quality, the picture transmission speed, the file transmission speed and the user visual experience can be balanced to meet the user's use requirements.
附图说明DRAWINGS
为了更清楚地说明本发明的技术方案,下面将对实施方式中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以 根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, which are common in the art. For the technicians, without the creative work, Other figures are obtained from these figures.
图1是本发明第一实施例提供的在传输文件时传输画面的方法的流程示意图。FIG. 1 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to the first embodiment of the present invention.
图2是本发明第一实施例提供的对第一画面帧进行剪裁的示意图。FIG. 2 is a schematic diagram of trimming a first picture frame according to the first embodiment of the present invention.
图3是根据第二画面帧及填充内容进行渲染得到第三画面帧的示意图。FIG. 3 is a schematic diagram of rendering a third picture frame according to a second picture frame and padding content.
图4是本发明第一实施例提供的第一填充内容的一种示意图。FIG. 4 is a schematic diagram of a first padding content according to a first embodiment of the present invention.
图5是本发明第二实施例提供的在传输文件时传输画面的方法的流程示意图。FIG. 5 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a second embodiment of the present invention.
图6是本发明第三实施例提供的在传输文件时传输画面的方法的流程示意图。FIG. 6 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a third embodiment of the present invention.
图7是本发明第四实施例提供的在传输文件时传输画面的方法的流程示意图。FIG. 7 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a fourth embodiment of the present invention.
图8是本发明第五实施例提供的在传输文件时传输画面的方法的流程示意图。FIG. 8 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a fifth embodiment of the present invention.
图9是本发明第六实施例提供的在传输文件时传输画面的装置的结构示意图。FIG. 9 is a schematic structural diagram of an apparatus for transmitting a picture when a file is transmitted according to a sixth embodiment of the present invention.
图10是本发明第七实施例提供的在传输文件时传输画面的装置的结构示意图。FIG. 10 is a schematic structural diagram of an apparatus for transmitting a picture when a file is transmitted according to a seventh embodiment of the present invention.
图11是本发明第八实施例提供的终端的结构示意图。FIG. 11 is a schematic structural diagram of a terminal according to an eighth embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明提供了一种在传输文件时传输画面的方法、装置、终端及计算机可读存储介质,用于在同时进行画面传输和文件传输时,对传输的画面帧进行剪裁,以减小传输画面所需的带宽,从而兼顾画面传输和文件传输。以下分别进行详细描述。The present invention provides a method, an apparatus, a terminal, and a computer readable storage medium for transmitting a picture when transferring a file, for cutting a transmitted picture frame at the same time for performing picture transmission and file transmission, so as to reduce the transmission picture. The required bandwidth, taking into account both picture transfer and file transfer. The details are described below separately.
请参阅图1,图1是本发明第一实施例提供的在传输文件时传输画面的方法的流程示意图,其可由在传输文件时传输画面的装置来执行,并包括如下步骤: Referring to FIG. 1, FIG. 1 is a schematic flowchart of a method for transmitting a picture when a file is transmitted according to a first embodiment of the present invention, which may be executed by a device that transmits a picture when transmitting a file, and includes the following steps:
S101,当在向第一终端传输画面的过程中检测到向所述第一终端传输文件的进程时,获取当前传输给第一终端的第一画面帧。S101. Acquire a first picture frame currently transmitted to the first terminal when detecting a process of transmitting a file to the first terminal in a process of transmitting a picture to the first terminal.
在本实施例中,所述在传输文件时传输画面的装置(以下简称装置)可为笔记本电脑、台式电脑、智能手机、智能平板电脑等,本发明不做具体限定。In this embodiment, the device (hereinafter referred to as the device) for transmitting a file when the file is transmitted may be a notebook computer, a desktop computer, a smart phone, a smart tablet computer, etc., and the present invention is not specifically limited.
在本实施例中,所述第一终端同样可为笔记本电脑、台式电脑、智能手机、智能平板电脑等,本发明不做具体限定。In this embodiment, the first terminal may also be a notebook computer, a desktop computer, a smart phone, a smart tablet computer, etc., and the invention is not specifically limited.
在本实施例中,例如,所述装置的用户与所述第一终端的用户在进行视频聊天或者进行视频会议,此时,所述装置将实时采集相关的画面(如用户的个人图像或者会议文档画面等),并通过网络发给所述第一终端,所述第一终端接收所述画面并进行显示。In this embodiment, for example, a user of the device performs a video chat or a video conference with a user of the first terminal, and at this time, the device collects related images in real time (such as a user's personal image or conference). a document screen or the like is sent to the first terminal through a network, and the first terminal receives the screen and performs display.
在实际情况中,所述装置的用户还可能需要发送一些文件给第一终端的用户,例如会议相关资料等,则此时,当所述装置检测到同时向所述第一终端发送画面和文件时,获取当前传输的第一画面帧。In an actual situation, the user of the device may also need to send some files to the user of the first terminal, such as conference related materials, etc., at this time, when the device detects that the screen and the file are simultaneously sent to the first terminal. Get the first picture frame of the current transmission.
需要说明的是,在本实施例中,所述第一终端的数量可为一个或者更多个,即允许所述装置同时向多个第一终端同时传输画面和同时传输文件,本发明不做具体限定。It should be noted that, in this embodiment, the number of the first terminals may be one or more, that is, the device is allowed to simultaneously transmit pictures to and simultaneously transmit files to multiple first terminals, and the present invention does not Specifically limited.
S102,对所述第一画面帧上的预定的第一剪裁区域进行剪裁,生成第二画面帧。S102. Trim the predetermined first clipping area on the first picture frame to generate a second picture frame.
如图2所示,在本实施例中,所述装置在画面传输过程中检测到传输文件的进程时,会获取当前传输给第一终端的第一画面帧A,并对所述第一画面帧A的第一剪裁区域C进行剪裁,生成第二画面帧B。As shown in FIG. 2, in the embodiment, when detecting the process of transmitting a file during the screen transmission process, the device acquires the first picture frame A currently transmitted to the first terminal, and the first picture frame is The first trimming area C of the frame A is trimmed to generate a second picture frame B.
在本实施例中,所述第一剪裁区域C可为预先设定,如位于第一画面帧A的右下角位置,当然,需要说明的是,在本发明的其他实施例中,所述第一剪裁区域C还可以是其他位置,如左上角、左下角、右上角或者上、下、左、右侧边等位置,本发明不做具体限定。In this embodiment, the first trimming area C may be preset, such as located in the lower right corner of the first picture frame A. Of course, it should be noted that, in other embodiments of the present invention, the A clipping region C may also be other positions, such as an upper left corner, a lower left corner, an upper right corner, or upper, lower, left, and right sides, and the like, which is not specifically limited.
此外,所述第一剪裁区域C还可以是根据第一画面帧A的各个区域的有用信息来决定。例如,所述发送终端100可以对所述第一画面帧A进行图像提取,获取所述第一画面帧A的非关键区域(如一些背景环境区域),并将这些非关键区域设置为剪裁区域,这些方案都在本发明的保护范围之内,在此不做赘述。In addition, the first trimming area C may also be determined according to useful information of each area of the first picture frame A. For example, the transmitting terminal 100 may perform image extraction on the first picture frame A, acquire non-critical areas of the first picture frame A (such as some background environment areas), and set the non-key areas as the clipping area. These solutions are all within the scope of the present invention and will not be described herein.
在本实施例中,所述第一裁剪区域C的大小尺寸可以是预先定义的,也可以是根据当前网络状况、传输的文件的大小及传输的画面的清晰度决定,例如, 当前网络状况比较好的时候可以将所述第一裁剪区域C的大小设置得小一点,当前网络状况比较差的时候可以将所述第一裁剪区域C的大小设置得大一点。传输的文件比较小的时候可以将所述第一裁剪区域C的大小设置得小一点,传输的文件比较大的时候可以将所述第一裁剪区域C的大小设置得大一点。传输的画面的清晰度较低时可以将所述第一裁剪区域C的大小设置得小一点,传输的画面的清晰度较高时可以将所述第一裁剪区域C的大小设置得大一点,这些方案均在本发明的保护范围之内,在此不做赘述。In this embodiment, the size of the first cropping area C may be predefined, or may be determined according to current network conditions, the size of the file to be transmitted, and the resolution of the transmitted picture. For example, When the current network condition is good, the size of the first cropping area C may be set smaller. When the current network condition is relatively poor, the size of the first cropping area C may be set to be larger. When the transmitted file is relatively small, the size of the first cropping area C may be set smaller, and when the file to be transferred is relatively large, the size of the first cropping area C may be set to be larger. When the resolution of the transmitted picture is low, the size of the first cropping area C may be set smaller, and when the resolution of the transmitted picture is high, the size of the first cropping area C may be set larger. These solutions are all within the scope of the present invention and will not be described herein.
S103,发送所述第二画面帧至第一终端,以使得所述第一终端在接收所述第二画面帧后,读取本地预存的第一填充内容,根据所述第一填充内容及所述第二画面帧生成用于显示的第三画面帧。S103: Send the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the first padding content and the The second picture frame generates a third picture frame for display.
在本实施例中,如图3所示,对于第一终端,其在接收到所述第二画面帧B后,会读取本地预存的第一填充内容D,并根据所述第一填充内容D及所述第二画面帧B生成第三画面帧E,并进行显示。In this embodiment, as shown in FIG. 3, for the first terminal, after receiving the second picture frame B, the first pre-stored first padding content D is read, and according to the first padding content. D and the second picture frame B generate a third picture frame E and display it.
在本实施例中,所述第一填充内容D可以是一张静态图片,一个加载中的提示,也可以是与文件相关的弹窗,其大小形状与第一剪裁区域C完全一致。其中,优选地,如图4所示,所述第一填充内容D可以是一个与所述第一画面帧A的第一剪裁区域C形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。In this embodiment, the first padding content D may be a static picture, a prompt in loading, or a pop-up window associated with the file, and its size and shape are completely consistent with the first clipping area C. Preferably, as shown in FIG. 4, the first padding content D may be a pop-up window having the same shape shape as the first trimming region C of the first screen frame A, and the pop-up window displays at least the following content. One: the name of the file being transferred, the progress of the transfer, and the remaining transfer time.
在本发明实施例中,所述第一终端根据所述第一填充内容D及所述第二画面帧B生成第三画面帧E具体为:首先,所述第一终端获取所述第一画面帧A的剪裁区域C的位置信息,接着根据所述填充内容D、所述第一剪裁区域C的位置信息及所述第二画面帧B进行渲染,生成第三画面帧E。其中,所述第一剪裁区域C的位置信息可以是由所述装置发送给所述第一终端,也可以是所述第一终端通过读取本地存储的默认的位置信息获得,还可以通过对所述第二画面帧进行解析获得,本发明不做具体限定。In the embodiment of the present invention, the generating, by the first terminal, the third picture frame E according to the first padding content D and the second picture frame B is: first, the first terminal acquires the first picture The position information of the clipping area C of the frame A is then rendered according to the filling content D, the position information of the first clipping area C, and the second picture frame B, to generate a third picture frame E. The location information of the first clipping area C may be sent by the device to the first terminal, or may be obtained by reading the locally stored default location information by the first terminal, or may be The second picture frame is obtained by parsing, and is not specifically limited in the present invention.
在本实施例中,加入所述第一填充内容D有两个好处,一是保持在第一终端显示的画面帧的完整,不至于产生不好的用户视觉体验;二是通过在第一填充内容D上显示文件传输的信息,可以使得第一终端的用户及时获取文件传输的进度信息,如正在传输的文件的名称、传输的进度、剩余传输时间等。同时,由于所述第一填充内容D是存储在第一终端本地的,因而其渲染过程不会占用网络带宽。In this embodiment, adding the first padding content D has two advantages, one is to maintain the integrity of the picture frame displayed on the first terminal, and does not generate a bad user visual experience; The information of the file transmission is displayed on the content D, so that the user of the first terminal can obtain the progress information of the file transmission in time, such as the name of the file being transmitted, the progress of the transmission, and the remaining transmission time. At the same time, since the first padding content D is stored locally on the first terminal, its rendering process does not occupy network bandwidth.
综上所述,本发明第一实施例提供的在传输文件时传输画面的方法,在同时进行画面传输和文件传输时,通过对传输的第一画面帧进行剪裁,生成第二 画面帧发送给第一终端,减小了传输画面帧所需的带宽资源,进而可以利用这部分带宽资源进行文件传输。基于本实施例,在同时进行画面传输和文件传输时,可以兼顾画面传输质量、画面传输速度、文件传输速度和用户视觉体验,满足用户的使用需求。In summary, the method for transmitting a picture when transmitting a file according to the first embodiment of the present invention, when performing screen transmission and file transmission at the same time, by performing clipping on the transmitted first picture frame, generates a second The picture frame is sent to the first terminal, which reduces the bandwidth resources required for transmitting the picture frame, and thus can use the part of the bandwidth resource for file transmission. Based on the embodiment, when the screen transmission and the file transmission are simultaneously performed, the screen transmission quality, the screen transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
请参阅图5,图5是本发明第二实施例提供的在传输文件时传输画面的方法的流程示意图。Referring to FIG. 5, FIG. 5 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a second embodiment of the present invention.
在第一实施例的基础上,本实施例还进一步包括如下步骤:Based on the first embodiment, the embodiment further includes the following steps:
S201,当在同时接收来自第二终端的画面和文件时,提取当前接收到的第四画面帧;其中,所述第四画面帧具有被被剪裁的第二剪裁区域。S201: When receiving the picture and the file from the second terminal at the same time, extracting the currently received fourth picture frame; wherein the fourth picture frame has the second clipping area that is clipped.
S203,读取本地预存的第二填充内容。S203. Read locally stored second padding content.
S204,根据所述第二填充内容填充所述第四画面帧的所述第二剪裁区域,生成用于显示的第五画面帧。S204. Fill the second trimming area of the fourth picture frame according to the second padding content, and generate a fifth picture frame for display.
在第一实施例中,所述装置作为画面和文件的发送端,在一些情况下,所述装置也同样可以作为画面和文件的接收端。例如,本实施例中,在所述装置的用户与第二终端的用户在进行视频聊天及视频会议的过程中,若所述第二终端的用户向所述装置的用户发送相应的资料文件,此时,所述第二终端对当前传输的画面进行剪裁得到第四画面帧,并将剪裁后的第四画面帧发送给所述装置,所述装置获得所述第四画面帧被剪裁的第二剪裁区域,然后读取本地预存的第二填充内容,再根据所述第二填充内容填充所述第四画面帧的所述第二剪裁区域,生成用于显示的第五画面帧。In the first embodiment, the device serves as a transmitting end of a picture and a file, and in some cases, the device can also serve as a receiving end of a picture and a file. For example, in this embodiment, when the user of the device and the user of the second terminal perform a video chat and a video conference, if the user of the second terminal sends a corresponding data file to the user of the device, At this time, the second terminal clips the currently transmitted picture to obtain a fourth picture frame, and sends the clipped fourth picture frame to the device, where the device obtains that the fourth picture frame is clipped. The second trimming area is then read, and the second pre-stored second filling content is read, and the second clipping area of the fourth picture frame is filled according to the second filling content to generate a fifth picture frame for display.
需要说明的是,本实施例中的第二终端可以是与第一实施例的第一终端相同的终端,也可以不同,这些方案均在本发明的保护范围之内,在此不做赘述。It should be noted that the second terminal in this embodiment may be the same terminal as the first terminal in the first embodiment, and may be different, and these solutions are all within the protection scope of the present invention, and details are not described herein.
本发明第二实施例提供的在传输文件时传输画面的方法,在同时接收画面和文件时,根据本地存储的第二填充内容对接收的第四画面帧进行填充渲染,生成完整的第五画面帧。基于本实施例,在同时进行画面传输和文件传输时,可以兼顾画面传输质量、画面传输速度、文件传输速度和用户视觉体验,满足用户的使用需求。The method for transmitting a picture when transmitting a file according to the second embodiment of the present invention, when receiving a picture and a file at the same time, filling and rendering the received fourth picture frame according to the locally stored second padding content to generate a complete fifth picture. frame. Based on the embodiment, when the screen transmission and the file transmission are simultaneously performed, the screen transmission quality, the screen transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
请参阅图6,图6是本发明第三实施例提供的在传输文件时传输画面的方法的流程示意图。其可由在传输文件时传输画面的装置(以下简称装置)来执行, 并包括如下步骤:Referring to FIG. 6, FIG. 6 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a third embodiment of the present invention. It can be executed by a device (hereinafter referred to as a device) that transmits a picture when transferring a file. And includes the following steps:
S301,当在同时接收来自第三终端的画面和文件时,提取当前接收到的来自第三终端的第六画面帧。S301. When receiving the picture and the file from the third terminal at the same time, extracting the currently received sixth picture frame from the third terminal.
在本实施例中,所述装置可为笔记本电脑、台式电脑、智能手机、智能平板电脑等,本发明不做具体限定。In this embodiment, the device may be a notebook computer, a desktop computer, a smart phone, a smart tablet, etc., and the invention is not specifically limited.
在本实施例中,所述第三终端同样可为笔记本电脑、台式电脑、智能手机、智能平板电脑等,本发明不做具体限定。In this embodiment, the third terminal may also be a notebook computer, a desktop computer, a smart phone, a smart tablet computer, etc., and the invention is not specifically limited.
在本实施例中,当所述第三终端同时向所述装置发送画面和文件时,所述第三终端会对当前传输的画面帧的第三剪裁区域进行剪裁,得到第六画面帧。In this embodiment, when the third terminal simultaneously sends a picture and a file to the device, the third terminal clips the third clipping area of the currently transmitted picture frame to obtain a sixth picture frame.
S302,读取本地预存的第三填充内容。S302. Read locally stored third padding content.
其中,所述第三填充内容可以是与所述第六画面帧的第三剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。The third padding content may be a pop-up window having the same shape shape as the third trimming region of the sixth screen frame, and the pop-up window displays at least one of the following contents: the name of the file being transmitted, and the progress of the transmission. , remaining transmission time.
S303,根据所述第三填充内容填充所述第六画面帧的所述第三剪裁区域,生成用于显示的第七画面帧。S303. Fill the third trimming area of the sixth picture frame according to the third padding content, and generate a seventh picture frame for display.
其中,在填充时,需先获取所述第六画面帧的第三剪裁区域的位置信息,所述第三剪裁区域的位置信息可以是由第三终端在发送所述第六画面帧时同步发送,也可以通过读取所述装置本地存储的默认的位置信息获得;还可以通过对所述第六画面帧进行解析获得,本发明不做具体限定。The location information of the third clipping area of the sixth picture frame is obtained, and the location information of the third clipping area may be synchronously sent by the third terminal when sending the sixth picture frame. It can also be obtained by reading the default location information stored locally by the device, and can also be obtained by parsing the sixth frame frame, which is not specifically limited by the present invention.
在获得所述位置信息后,所述装置即可以根据所述第三填充内容、所述第三剪裁区域的位置信息及所述第六画面帧进行渲染,生成用于显示的第七画面帧。After obtaining the location information, the device may perform rendering according to the third padding content, the location information of the third clipping region, and the sixth frame frame to generate a seventh frame frame for display.
本发明第三实施例提供的在传输文件时传输画面的方法,在同时接收画面和文件时,根据本地存储的第三填充内容对接收的第六画面帧进行填充渲染,生成完整的第七画面帧。基于本实施例,在同时进行画面传输和文件传输时,可以兼顾画面传输质量、画面传输速度、文件传输速度和用户视觉体验,满足用户的使用需求。The method for transmitting a picture when transmitting a file according to the third embodiment of the present invention, when receiving a picture and a file at the same time, filling and rendering the received sixth picture frame according to the locally stored third padding content to generate a complete seventh picture. frame. Based on the embodiment, when the screen transmission and the file transmission are simultaneously performed, the screen transmission quality, the screen transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
请参阅图7,图7是本发明第四实施例提供的在传输文件时传输画面的方法的流程示意图。Referring to FIG. 7, FIG. 7 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a fourth embodiment of the present invention.
在第一实施例的基础上,本实施例还进一步包括如下步骤: Based on the first embodiment, the embodiment further includes the following steps:
S401,当在向第四终端传输画面的过程中检测到向所述第四终端传输文件的进程时,获取当前传输的第八画面帧。S401. Acquire an eighth picture frame that is currently transmitted when a process of transmitting a file to the fourth terminal is detected in a process of transmitting a picture to the fourth terminal.
S402,对所述第八画面帧上的预定的第四剪裁区域进行剪裁,生成第九画面帧。S402. Cut a predetermined fourth clipping area on the eighth picture frame to generate a ninth picture frame.
S403,发送所述第九画面帧至所述第四终端,以使得所述第四终端在接收所述第九画面帧后,读取本地预存的第四填充内容,根据所述第四填充内容及所述第九画面帧生成用于显示的第十画面帧。S403. The ninth picture frame is sent to the fourth terminal, so that after receiving the ninth picture frame, the fourth terminal reads the locally pre-stored fourth padding content, according to the fourth padding content. And the ninth picture frame generates a tenth picture frame for display.
其中,所述第四填充内容为与所述第第四剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。The fourth padding content is a pop-up window having the same shape shape as the fourth trimming region, and the pop-up window displays at least one of the following contents: a name of a file being transmitted, a progress of transmission, and a remaining transmission time.
上述第三实施例中,所述装置作为接收端,在一下情况下,所述装置也可以作为发送端,其具体实现原理与本发明第一实施例所记载的内容类似,本发明在此不做具体限定。In the foregoing third embodiment, the device is used as a receiving end. In the following case, the device may also serve as a transmitting end. The specific implementation principle is similar to that described in the first embodiment of the present invention, and the present invention does not Make specific limits.
请参阅图8,图8是本发明第五实施例提供的在传输文件时传输画面的方法的流程示意图。其包括:Referring to FIG. 8, FIG. 8 is a schematic flowchart diagram of a method for transmitting a picture when a file is transmitted according to a fifth embodiment of the present invention. It includes:
在发送终端:At the sending terminal:
S501,当在向接收终端传输画面的过程中检测到向所述接收终端传输文件的进程时,获取当前传输的第十一画面帧;S501: Acquire an eleventh picture frame that is currently transmitted when a process of transmitting a file to the receiving terminal is detected in a process of transmitting a picture to the receiving terminal;
S502,对所述第十一画面帧的第五剪裁区域进行剪裁,生成第十二画面帧;S502, trimming a fifth clipping area of the eleventh picture frame to generate a twelfth picture frame;
S503,向所述接收终端发送所述第十二画面帧;S503. Send the twelfth picture frame to the receiving terminal.
在接收终端:At the receiving terminal:
S504,接收所述发送终端发送的第十二画面帧;S504. Receive a twelfth picture frame sent by the sending terminal.
S505,读取本地预存的填充内容,根据所述填充内容及所述第十二画面帧生成用于显示的第十三画面帧。S505. Read the locally pre-stored padding content, and generate a thirteenth frame frame for display according to the padding content and the twelfth frame frame.
其中,所述填充内容为与所述第十一画面帧的剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。The padding content is a pop-up window having the same shape shape as the trimming area of the eleventh picture frame, and the pop-up window displays at least one of the following contents: the name of the file being transmitted, the progress of the transmission, and the remaining transmission time. .
本发明第五实施例提供的在传输文件时传输画面的方法,在同时进行画面传输和文件传输时,通过对传输的第十一画面帧进行剪裁,生成第十二画面帧 发送给接收终端,减小了传输画面帧所需的带宽资源,进而可以利用这部分带宽资源进行文件传输。同时,在接收终端处,利用填充内容对第十二画面帧进行填充,生成完整的第十三画面帧。基于本实施例,在同时进行画面传输和文件传输时,可以兼顾画面传输质量、画面传输速度、文件传输速度和用户视觉体验,满足用户的使用需求。The method for transmitting a picture when transmitting a file according to the fifth embodiment of the present invention generates a twelfth picture frame by trimming the transmitted eleventh picture frame while performing picture transmission and file transmission at the same time. Sending to the receiving terminal reduces the bandwidth resources required for transmitting the picture frame, and thus can use the part of the bandwidth resource for file transmission. At the same time, at the receiving terminal, the twelfth picture frame is filled with the padding content to generate a complete thirteenth picture frame. Based on the embodiment, when the screen transmission and the file transmission are simultaneously performed, the screen transmission quality, the screen transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
请参阅图9,图9是本发明第六实施例提供的在传输文件时传输画面的装置的结构示意图。所述在传输文件时传输画面的装置600包括:Referring to FIG. 9, FIG. 9 is a schematic structural diagram of an apparatus for transmitting a picture when a file is transmitted according to a sixth embodiment of the present invention. The device 600 for transmitting a picture when transmitting a file includes:
第一画面帧获取单元610,用于当在向第一终端传输画面的过程中检测到向所述第一终端传输文件的进程时,获取当前传输的第一画面帧。The first picture frame obtaining unit 610 is configured to acquire a first picture frame that is currently transmitted when a process of transmitting a file to the first terminal is detected in a process of transmitting a picture to the first terminal.
画面剪裁单元620,用于对所述第一画面帧上的预定的第一剪裁区域进行剪裁,生成第二画面帧。The screen clipping unit 620 is configured to clip a predetermined first clipping area on the first picture frame to generate a second picture frame.
画面发送单元630,用于发送所述第二画面帧至第一终端,以使得所述第一终端在接收所述第二画面帧后,读取本地预存的第一填充内容,根据所述第一填充内容及所述第二画面帧生成用于显示的第三画面帧。The picture sending unit 630 is configured to send the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the A padding content and the second frame frame generate a third frame frame for display.
其中,优选地,所述第一剪裁区域的大小由当前网络状况、传输的文件的大小及传输的画面的清晰度决定。Wherein, preferably, the size of the first clipping area is determined by the current network condition, the size of the transmitted file, and the clarity of the transmitted picture.
优选地,所述在传输文件时传输画面的装置600还包括:Preferably, the apparatus 600 for transmitting a picture when transmitting a file further includes:
第四画面帧接收单元,用于当在同时接收来自第二终端的画面和文件时,提取当前接收到的第四画面帧;a fourth picture frame receiving unit, configured to: when receiving the picture and the file from the second terminal at the same time, extract the currently received fourth picture frame;
第二剪裁区域获得单元,用于获得所述第四画面帧被剪裁的第二剪裁区域;a second clipping area obtaining unit, configured to obtain a second clipping area in which the fourth picture frame is clipped;
第二填充内容读取单元,用于读取本地预存的第二填充内容;a second padding content reading unit, configured to read the locally pre-stored second padding content;
填充单元,用于根据所述第二填充内容填充所述第四画面帧的所述第二剪裁区域,生成用于显示的第五画面帧。a padding unit, configured to fill the second clipping region of the fourth picture frame according to the second padding content, and generate a fifth frame frame for display.
优选地,所述第二填充内容为与所述第四画面帧的第二剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。Preferably, the second padding content is a pop-up window having the same shape shape as the second clipping region of the fourth picture frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, and a progress of the transmission. , remaining transmission time.
优选地,所述填充单元具体包括:Preferably, the filling unit specifically includes:
位置信息获取模块,用于获取所述第四画面帧的第二剪裁区域的位置信息;其中,所述第四画面帧的第二剪裁区域的位置信息由第二终端发送;或者所述 第二剪裁区域的位置信息通过读取本地存储的默认的位置信息获得;或者所述第二剪裁区域的位置信息通过对所述第四画面帧进行解析获得;a location information acquiring module, configured to acquire location information of a second clipping area of the fourth picture frame, where location information of the second clipping area of the fourth picture frame is sent by the second terminal; or The location information of the second clipping area is obtained by reading the default location information stored locally; or the location information of the second clipping area is obtained by parsing the fourth picture frame;
渲染模块,用于根据所述第二填充内容、所述第二剪裁区域的位置信息及所述第四画面帧进行渲染,生成第五画面帧。And a rendering module, configured to generate, according to the second padding content, the location information of the second clipping region, and the fourth frame frame, to generate a fifth frame frame.
请参阅图10,图10是本发明第七实施例提供的在传输文件时传输画面的装置的结构示意图。所述在传输文件时传输画面的装置700包括:Referring to FIG. 10, FIG. 10 is a schematic structural diagram of an apparatus for transmitting a picture when a file is transmitted according to a seventh embodiment of the present invention. The apparatus 700 for transmitting a picture when transmitting a file includes:
画面提取单元710,用于当在同时接收来自第三终端的画面和文件时,提取当前接收到的第六画面帧。其中,所述第六画面帧具有被剪裁的第三剪裁区域。The picture extracting unit 710 is configured to extract the currently received sixth picture frame when simultaneously receiving the picture and the file from the third terminal. The sixth picture frame has a third trimmed area that is clipped.
填充内容读取单元720,用于读取本地预存的第三填充内容。The content reading unit 720 is configured to read the locally pre-stored third padding content.
填充单元730,用于根据所述第三填充内容填充所述第六画面帧的所述第三剪裁区域,生成用于显示的第七画面帧。The filling unit 730 is configured to fill the third trimming area of the sixth picture frame according to the third padding content, and generate a seventh picture frame for display.
所述第三填充内容为与所述第六画面帧的第三剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。The third padding content is a pop-up window having the same shape shape as the third trimming region of the sixth screen frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, a progress of the transmission, and a remaining transmission. time.
优选地,所述填充单元730具体用于,获取所述第六画面帧的第三剪裁区域的位置信息;其中,所述第六画面帧的第三剪裁区域的位置信息由第三终端在发送所述第六画面帧时同步发送;或者所述第三剪裁区域的位置信息通过读取本地存储的默认的位置信息获得;或者所述第三剪裁区域的位置信息通过对所述第六画面帧进行解析获得;Preferably, the filling unit 730 is configured to acquire location information of a third clipping area of the sixth picture frame, where location information of the third clipping area of the sixth picture frame is sent by the third terminal. The sixth picture frame is synchronously transmitted; or the location information of the third clipping area is obtained by reading the locally stored default location information; or the location information of the third clipping area is passed to the sixth picture frame. Analytically obtained;
根据所述第三填充内容、所述第三剪裁区域的位置信息及所述第六画面帧进行渲染,生成用于显示的第七画面帧。And rendering according to the third padding content, the location information of the third clipping region, and the sixth frame frame to generate a seventh frame frame for display.
优选地,还包括:Preferably, the method further comprises:
第八画面帧获取单元,用于当在向第四终端传输画面的过程中检测到向所述第四终端传输文件的进程时,获取当前传输的第八画面帧;An eighth picture frame acquiring unit, configured to acquire an eighth picture frame currently transmitted when a process of transmitting a file to the fourth terminal is detected in a process of transmitting a picture to the fourth terminal;
第四剪裁区域裁剪单元,用于对所述第八画面帧上的预定的第四剪裁区域进行剪裁,生成第九画面帧;a fourth clipping area cropping unit, configured to trim a predetermined fourth clipping area on the eighth picture frame to generate a ninth picture frame;
第九画面帧发送单元,用于发送所述第九画面帧至所述第四终端,以使得所述第四终端在接收所述第九画面帧后,读取本地预存的第四填充内容,根据所述第四填充内容及所述第九画面帧生成用于显示的第十画面帧。 a ninth picture frame sending unit, configured to send the ninth picture frame to the fourth terminal, so that the fourth terminal reads the locally pre-stored fourth padding content after receiving the ninth picture frame, Generating a tenth picture frame for display according to the fourth padding content and the ninth picture frame.
请参阅图11,本发明第八实施例还提供了一种终端,包括处理器801、存储器802及存储于所述存储器802内计算机程序803;其中,所述计算机程序803能够被所述处理器801执行,以实现上述第一实施例至第四实施例所述的方法。Referring to FIG. 11, an eighth embodiment of the present invention further provides a terminal, including a processor 801, a memory 802, and a computer program 803 stored in the memory 802. The computer program 803 can be used by the processor. 801 is executed to implement the methods described in the first to fourth embodiments described above.
需要说明的是,在本实施例中,所述存储器内还可存储有具有画面传输功能和文件传输功能的应用软件804,如QQ等,所述计算机程序803可作为所述应用软件804的插件存在。It should be noted that, in this embodiment, an application software 804 having a screen transmission function and a file transmission function, such as QQ and the like, may be stored in the memory, and the computer program 803 may be used as a plug-in of the application software 804. presence.
在本实施例中,所述终端还可包括至少一个网络接口807或者其他用户接口806至少一个通信总线805。通信总线805用于实现这些组件之间的连接通信。其中,用户接口806可选的可以包括USB接口以及其他标准接口、有线接口。网络接口807可选的可以包括Wi-Fi接口以及其他无线接口。In this embodiment, the terminal may further include at least one network interface 807 or other user interface 806 at least one communication bus 805. Communication bus 805 is used to implement connection communication between these components. The user interface 806 can optionally include a USB interface and other standard interfaces and wired interfaces. Network interface 807 can optionally include a Wi-Fi interface as well as other wireless interfaces.
本实施例提供的终端,当在同时进行画面传输和文件传输时,对传输的画面帧进行剪裁,减小了传输画面帧所需的带宽资源,进而可以利用这部分带宽资源进行文件传输。在进行画面接收和文件接收时,读取本地预存的填充内容,并根据所述填充内容及当前接收的画面帧进行渲染,生成用于显示的完整画面帧。基于本发明实施例,在同时进行画面传输和文件传输时,可以兼顾画面传输质量、画面传输速度、文件传输速度和用户视觉体验,满足用户的使用需求。The terminal provided in this embodiment cuts the transmitted picture frame when performing picture transmission and file transmission at the same time, which reduces the bandwidth resource required for transmitting the picture frame, and can further utilize the part of the bandwidth resource for file transmission. When performing screen reception and file reception, the locally pre-stored padding content is read, and rendered according to the padding content and the currently received frame frame to generate a complete picture frame for display. According to the embodiment of the present invention, when the screen transmission and the file transmission are simultaneously performed, the picture transmission quality, the picture transmission speed, the file transmission speed, and the user visual experience can be balanced to meet the user's use requirements.
本发明第九实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上述第一至第四实施例所述的方法。A ninth embodiment of the present invention also provides a computer readable storage medium comprising a stored computer program, wherein a device in which the computer readable storage medium is located is executed while the computer program is running The method as described in the first to fourth embodiments above.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。The above disclosure is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。 One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Claims (15)

  1. 一种在传输文件时传输画面的方法,其特征在于,包括:A method for transmitting a picture when transferring a file, comprising:
    当在向第一终端传输画面的过程中检测到向所述第一终端传输文件的进程时,获取当前传输给第一终端的第一画面帧;Obtaining a first picture frame currently transmitted to the first terminal when detecting a process of transmitting a file to the first terminal in a process of transmitting a picture to the first terminal;
    对所述第一画面帧上的预定的第一剪裁区域进行剪裁,生成第二画面帧;Trimming a predetermined first clipping area on the first picture frame to generate a second picture frame;
    发送所述第二画面帧至所述第一终端,以使得所述第一终端在接收所述第二画面帧后,读取本地预存的第一填充内容,根据所述第一填充内容及所述第二画面帧生成用于显示的第三画面帧。Transmitting the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the first padding content and the The second picture frame generates a third picture frame for display.
  2. 根据权利要求1所述的在传输文件时传输画面的方法,其特征在于,所述第一剪裁区域的大小由当前网络状况、传输的文件的大小及传输的画面的清晰度决定。The method of transmitting a picture while transferring a file according to claim 1, wherein the size of the first clipping area is determined by a current network condition, a size of the transmitted file, and a sharpness of the transmitted picture.
  3. 根据权利要求1所述的在传输文件时传输画面的方法,其特征在于,所述在传输文件时传输画面的方法还包括:The method for transmitting a picture when transferring a file according to claim 1, wherein the method for transmitting a picture when transferring a file further comprises:
    当在同时接收来自第二终端的画面和文件时,提取当前接收到的来自所述第二终端的第四画面帧;其中,所述第四画面帧具有被剪裁的第二剪裁区域;Extracting a currently received fourth picture frame from the second terminal when simultaneously receiving a picture and a file from the second terminal; wherein the fourth picture frame has a second cropped area that is clipped;
    读取本地预存的第二填充内容;Reading the locally pre-stored second padding content;
    根据所述第二填充内容填充所述第四画面帧的所述第二剪裁区域,生成用于显示的第五画面帧。Filling the second crop region of the fourth picture frame according to the second padding content to generate a fifth frame frame for display.
  4. 根据权利要求3所述的在传输文件时传输画面的方法,其特征在于,A method of transmitting a picture while transmitting a file according to claim 3, wherein
    所述第二填充内容为与所述第四画面帧的第二剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。The second padding content is a pop-up window having the same shape shape as the second trimming region of the fourth picture frame, and the pop-up window displays at least one of the following contents: the name of the file being transmitted, the progress of the transmission, and the remaining transmission. time.
  5. 根据权利要求3所述的在传输文件时传输画面的方法,其特征在于,所述根据所述第二填充内容填充所述第四画面帧的所述第二剪裁区域,生成用于显示的第五画面帧,具体为: The method of transmitting a picture at the time of transferring a file according to claim 3, wherein the filling the second cropping area of the fourth picture frame according to the second padding content, generating a page for display Five-picture frame, specifically:
    获取所述第四画面帧的第二剪裁区域的位置信息;其中,所述第四画面帧的第二剪裁区域的位置信息由第二终端发送;或者所述第二剪裁区域的位置信息通过读取本地存储的默认的位置信息获得;或者所述第二剪裁区域的位置信息通过对所述第四画面帧进行解析获得;And acquiring location information of the second clipping area of the fourth picture frame, where the location information of the second clipping area of the fourth picture frame is sent by the second terminal; or the location information of the second clipping area is read by Obtaining the locally stored default location information; or obtaining the location information of the second clipping region by parsing the fourth frame frame;
    根据所述第二填充内容、所述第二剪裁区域的位置信息及所述第四画面帧进行渲染,生成第五画面帧。And rendering according to the second padding content, the location information of the second clipping region, and the fourth frame frame to generate a fifth frame frame.
  6. 一种在传输文件时传输画面的方法,其特征在于,包括:A method for transmitting a picture when transferring a file, comprising:
    当在同时接收来自第三终端的画面和文件时,提取当前接收到的来自所述第三终端的第六画面帧;其中,所述第六画面帧具有被剪裁的第三剪裁区域;Extracting a currently received sixth picture frame from the third terminal when simultaneously receiving a picture and a file from the third terminal; wherein the sixth picture frame has a cropped third clipping area;
    读取本地预存的第三填充内容;Reading the locally pre-stored third padding content;
    根据所述第三填充内容填充所述第六画面帧的所述第三剪裁区域,生成用于显示的第七画面帧。Filling the third trimming area of the sixth picture frame according to the third padding content, and generating a seventh picture frame for display.
  7. 根据权利要求6所述的在传输文件时传输画面的方法,其特征在于,A method of transmitting a picture when transferring a file according to claim 6, wherein
    所述第三填充内容为与所述第六画面帧的第三剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。The third padding content is a pop-up window having the same shape shape as the third trimming region of the sixth screen frame, and the pop-up window displays at least one of the following contents: a name of the file being transmitted, a progress of the transmission, and a remaining transmission. time.
  8. 根据权利要求7所述的在传输文件时传输画面的方法,其特征在于,所述根据所述第三填充内容填充所述第六画面帧的第三剪裁区域,生成用于显示的第八画面帧,具体为:The method for transmitting a picture when transferring a file according to claim 7, wherein the filling the third clipping area of the sixth picture frame according to the third padding content, generating an eighth picture for display Frame, specifically:
    获取所述第六画面帧的第三剪裁区域的位置信息;其中,所述第六画面帧的第三剪裁区域的位置信息由第三终端在发送所述第六画面帧时同步发送;或者所述第三剪裁区域的位置信息通过读取本地存储的默认的位置信息获得;或者所述第三剪裁区域的位置信息通过对所述第六画面帧进行解析获得;Acquiring the location information of the third clipping area of the sixth picture frame; where the location information of the third clipping area of the sixth picture frame is synchronously sent by the third terminal when transmitting the sixth picture frame; The location information of the third clipping area is obtained by reading the default location information stored locally; or the location information of the third clipping area is obtained by parsing the sixth picture frame;
    根据所述第三填充内容、所述第三剪裁区域的位置信息及所述第六画面帧进行渲染,生成用于显示的第七画面帧。And rendering according to the third padding content, the location information of the third clipping region, and the sixth frame frame to generate a seventh frame frame for display.
  9. 根据权利要求6所述的在传输文件时传输画面的方法,其特征在于,所 述在传输文件时传输画面的方法还包括:A method of transmitting a picture while transferring a file according to claim 6, wherein The method for transmitting a picture when transferring a file further includes:
    当在向第四终端传输画面的过程中检测到向所述第四终端传输文件的进程时,获取当前传输给第四终端的第八画面帧;Obtaining an eighth picture frame currently transmitted to the fourth terminal when detecting a process of transmitting a file to the fourth terminal in a process of transmitting a picture to the fourth terminal;
    对所述第八画面帧上的预定的第四剪裁区域进行剪裁,生成第九画面帧;And trimming a predetermined fourth clipping area on the eighth picture frame to generate a ninth picture frame;
    发送所述第九画面帧至所述第四终端,以使得所述第四终端在接收所述第九画面帧后,读取本地预存的第四填充内容,根据所述第四填充内容及所述第九画面帧生成用于显示的第十画面帧。Transmitting the ninth picture frame to the fourth terminal, so that after receiving the ninth picture frame, the fourth terminal reads the locally pre-stored fourth padding content, according to the fourth padding content and the The ninth picture frame generates a tenth picture frame for display.
  10. 一种在传输文件时传输画面的方法,其特征在于,包括:A method for transmitting a picture when transferring a file, comprising:
    在发送终端:At the sending terminal:
    当在向接收终端传输画面的过程中检测到向所述接收终端传输文件的进程时,获取当前传输给所述接收终端的第十一画面帧;Obtaining an eleventh picture frame currently transmitted to the receiving terminal when detecting a process of transmitting a file to the receiving terminal in a process of transmitting a picture to the receiving terminal;
    对所述第十一画面帧的第五剪裁区域进行剪裁,生成第十二画面帧;And cutting a fifth clipping area of the eleventh picture frame to generate a twelfth picture frame;
    向所述接收终端发送所述第十二画面帧;Transmitting the twelfth picture frame to the receiving terminal;
    在接收终端:At the receiving terminal:
    接收所述发送终端发送的第十二画面帧;Receiving a twelfth picture frame sent by the sending terminal;
    读取本地预存的填充内容,根据所述填充内容及所述第十二画面帧生成用于显示的第十三画面帧。The locally pre-stored padding content is read, and a thirteenth frame frame for display is generated according to the padding content and the twelfth frame frame.
  11. 根据权利要求10所述的在传输文件时传输画面的方法,其特征在于,A method of transmitting a picture when transferring a file according to claim 10, wherein
    所述填充内容为与所述第十一画面帧的剪裁区域形状大小相同的弹窗,所述弹窗至少显示以下内容之一:正在传输的文件的名称、传输的进度、剩余传输时间。The padding content is a pop-up window having the same shape shape as the trimming area of the eleventh picture frame, and the pop-up window displays at least one of the following contents: a name of a file being transmitted, a progress of transmission, and a remaining transmission time.
  12. 一种在传输文件时传输画面的装置,其特征在于,包括:An apparatus for transmitting a picture when transmitting a file, comprising:
    第一画面帧获取单元,用于当在向第一终端传输画面的过程中检测到向所述第一终端传输文件的进程时,获取当前传输给第一终端的第一画面帧; a first picture frame acquiring unit, configured to: when detecting a process of transmitting a file to the first terminal in a process of transmitting a picture to the first terminal, acquiring a first picture frame currently transmitted to the first terminal;
    画面剪裁单元,用于对所述第一画面帧上的预定的第一剪裁区域进行剪裁,生成第二画面帧;a screen clipping unit, configured to clip a predetermined first clipping area on the first picture frame to generate a second picture frame;
    画面发送单元,用于发送所述第二画面帧至第一终端,以使得所述第一终端在接收所述第二画面帧后,读取本地预存的第一填充内容,根据所述第一填充内容及所述第二画面帧生成用于显示的第三画面帧。a picture sending unit, configured to send the second picture frame to the first terminal, so that after receiving the second picture frame, the first terminal reads the locally pre-stored first padding content, according to the first The padding content and the second picture frame generate a third picture frame for display.
  13. 一种在传输文件时传输画面的装置,其特征在于,包括:An apparatus for transmitting a picture when transmitting a file, comprising:
    画面提取单元,用于当在同时接收来自第三终端的画面和文件时,提取当前接收到的来自第三终端的第六画面帧;其中,所述第六画面帧具有被剪裁的第三剪裁区域;a picture extracting unit, configured to: when receiving the picture and the file from the third terminal at the same time, extract the currently received sixth picture frame from the third terminal; wherein the sixth picture frame has the third cut that is clipped region;
    填充内容读取单元,用于读取本地预存的第三填充内容;Filling a content reading unit, configured to read the locally pre-stored third padding content;
    填充单元,用于根据所述第三填充内容填充所述第六画面帧的所述第三剪裁区域,生成用于显示的第七画面帧。a padding unit, configured to fill the third trimming area of the sixth picture frame according to the third padding content, and generate a seventh picture frame for display.
  14. 一种终端,其特征在于,包括处理器、存储器及存储于所述存储器内的计算机程序;其中,所述计算机程序能够被所述处理器执行,以实现如权利要求1至9任意一项所述的在传输文件时传输画面的方法。A terminal, comprising: a processor, a memory, and a computer program stored in the memory; wherein the computer program is executable by the processor to implement any of claims 1 to 9 The method of transmitting a picture when transferring a file.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如权利要求1至9任意一项所述在传输文件时传输画面的方法。 A computer readable storage medium, comprising: a stored computer program, wherein the computer readable storage medium is controlled to execute the apparatus as claimed in claim 1 A method of transmitting a picture when transferring a file as described in any of the preceding claims.
PCT/CN2017/116634 2017-08-01 2017-12-15 Method and apparatus for transmitting image during file transmission, terminal, and storage medium WO2019024387A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710650436.9 2017-08-01
CN201710650436.9A CN107612881B (en) 2017-08-01 2017-08-01 Method, device, terminal and storage medium for transmitting picture during file transmission

Publications (1)

Publication Number Publication Date
WO2019024387A1 true WO2019024387A1 (en) 2019-02-07

Family

ID=61064137

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/116634 WO2019024387A1 (en) 2017-08-01 2017-12-15 Method and apparatus for transmitting image during file transmission, terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN107612881B (en)
WO (1) WO2019024387A1 (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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866446A (en) * 2022-04-15 2022-08-05 西安广和通无线通信有限公司 Data transmission rate testing method, system, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767643A (en) * 2004-10-26 2006-05-03 大竑企业股份有限公司 Method for improving image and sound data imaging effect and transmission rate in Internet network
US7428000B2 (en) * 2003-06-26 2008-09-23 Microsoft Corp. System and method for distributed meetings
CN101309390A (en) * 2007-05-17 2008-11-19 华为技术有限公司 Visual communication system, apparatus and subtitle displaying method
CN102104766A (en) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 Privacy protecting system and method in video call
CN102123213A (en) * 2010-01-07 2011-07-13 彭凤琴 Videophone multimedia intelligent communication system
CN102595096A (en) * 2012-02-28 2012-07-18 律典(上海)信息技术有限公司 Cross-platform conference system based on graphic image synchronization

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5102552B2 (en) * 2007-07-25 2012-12-19 イーストマン コダック カンパニー Image processing system, imaging device, and output device
CN101547183A (en) * 2008-03-27 2009-09-30 田园 Method for online watching of multimedia files
CN101645880B (en) * 2008-08-06 2013-09-11 华为技术有限公司 Method and device for forwarding data frame based on line bundle
CN102368247B (en) * 2011-09-16 2015-03-18 杭州典能科技有限公司 Method for executing SWF (Small Web Format) file on handheld terminal
CN102546768A (en) * 2011-12-23 2012-07-04 深圳市同洲电子股份有限公司 Content sharing method, device and system
CN103313120B (en) * 2012-03-08 2018-07-17 深圳市腾讯计算机系统有限公司 Show method, mobile terminal, high in the clouds and the system of picture
CN103458220A (en) * 2012-06-04 2013-12-18 联想(北京)有限公司 Image processing method and electronic equipment
CN103036980B (en) * 2012-12-13 2016-09-28 北京奇虎科技有限公司 Data transmission set and method for remote service
CN104954812A (en) * 2014-03-27 2015-09-30 腾讯科技(深圳)有限公司 Video synchronized playing method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7428000B2 (en) * 2003-06-26 2008-09-23 Microsoft Corp. System and method for distributed meetings
CN1767643A (en) * 2004-10-26 2006-05-03 大竑企业股份有限公司 Method for improving image and sound data imaging effect and transmission rate in Internet network
CN101309390A (en) * 2007-05-17 2008-11-19 华为技术有限公司 Visual communication system, apparatus and subtitle displaying method
CN102104766A (en) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 Privacy protecting system and method in video call
CN102123213A (en) * 2010-01-07 2011-07-13 彭凤琴 Videophone multimedia intelligent communication system
CN102595096A (en) * 2012-02-28 2012-07-18 律典(上海)信息技术有限公司 Cross-platform conference system based on graphic image synchronization

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
CN107612881A (en) 2018-01-19
CN107612881B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US9124766B2 (en) Video conference apparatus, method, and storage medium
CN107534704B (en) Information processing method, device and medium connected via communication network
US9973829B2 (en) Method for video communications and terminal, server and system for video communications
WO2021262291A2 (en) Dynamic positioning of content views based on a camera position relative to a display screen
US20140372540A1 (en) Initializing chat sessions by pointing to content
US10135925B2 (en) Non-transitory computer-readable medium, terminal, and method
US9219765B2 (en) End user QoS selection
US10673911B2 (en) Displaying regions of user interest in sharing sessions
US20150012831A1 (en) Systems and methods for sharing graphical user interfaces between multiple computers
WO2017084325A1 (en) Information sharing method, terminal, and storage medium
TW201441931A (en) Method and apparatus for sending multiple images in instant communication application
US9270713B2 (en) Mechanism for compacting shared content in collaborative computing sessions
US9319468B2 (en) Information processing apparatus and information processing method
JP2015210569A (en) Image processing device, information sharing device, image processing method, and program
TW202147834A (en) Synchronizing local room and remote sharing
WO2019024387A1 (en) Method and apparatus for transmitting image during file transmission, terminal, and storage medium
CN113596571B (en) Screen sharing method, device, system, storage medium and computer equipment
US10120637B2 (en) Mirror display system having low data traffic and method thereof
US20180018398A1 (en) Positioning content in computer-generated displays based on available display space
CN113010135A (en) Data processing method and device, display terminal and storage medium
US8489688B2 (en) Managing delivery of electronic meeting content
JP6859743B2 (en) Terminal equipment, programs, data display method
CN110083321B (en) Content display method and device, intelligent screen projection terminal and readable storage medium
US20090183087A1 (en) Method and Apparatus for Real Time Image Transfer Between Two or More Computers
CN107181670B (en) Picture processing method and device and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC , EPO FORM 1205A DATED 12.06.2020.

122 Ep: pct application non-entry in european phase

Ref document number: 17919788

Country of ref document: EP

Kind code of ref document: A1