Video generation circuit, method and electronic device
By using the display chip to insert frame processing in the video generation circuit, the problems of low efficiency and high power consumption of inserting files in the video are solved, the smoothness and real-time nature of the video picture are achieved, the power consumption of the main control chip is reduced, and the power consumption of the main control chip is improved. User experience.
Patent Information
- Application Number
- CN202111630118.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2041-12-28
AI Technical Summary
The existing video editing technology has low efficiency and high power consumption to insert images into videos, making it difficult to ensure the smoothness and real-timeness of the video picture.
A video generation circuit is designed, including an image processing chip, a main control chip and a display chip. The frame processing is performed through the display chip, and the insertion file is obtained and the target video is generated based on the original video and the insertion file. The independently set display chip to improve the insertion file. efficiency reduces power consumption of the main control chip.
It improves the efficiency of inserting files into video, ensures the smoothness and real-timeness of the video picture, reduces the power consumption of the main control chip, and improves the user experience.
Smart Images

Figure CN114338954B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of video processing technology, and specifically relates to a video generation circuit, method and electronic device. Background Art
[0002] With the development of electronic devices, the functions of electronic devices are becoming more and more abundant. For example, videos can be edited through electronic devices.
[0003] Specifically, in the related art, if a user needs to insert an image into a video, the user can trigger an electronic device to open a video saved in the electronic device through video editing software, and insert the image that the user needs to insert into the video through the video editing software.
[0004] However, the above-mentioned image insertion method has low insertion efficiency and high power consumption. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a video generation circuit, method and electronic device, which can improve the efficiency of inserting files into videos and reduce power consumption.
[0006] In a first aspect, an embodiment of the present application provides a video generation circuit, which includes an image processing chip, a main control chip and a display chip, wherein the main control chip is connected to the image processing chip and the display chip respectively; the image processing chip is used to obtain the original video captured by the camera; the main control chip is used to send the original video to the display chip; the display chip is used to obtain an inserted file and generate a target video based on the original video and the inserted file.
[0007] In a second aspect, an embodiment of the present application provides a video generation method, the method comprising: receiving a first input from a user when an original video is displayed in a first screen area and an inserted file is displayed in a second screen area; in response to the first input, generating a target video based on the original video and the inserted file through a display chip.
[0008] In the third aspect, an embodiment of the present application provides a video generation circuit, which includes: an image processing chip, a main control chip and a display chip, the image processing chip includes a first acquisition unit and a first interface; the main control chip includes a second interface and a third interface; the display chip includes a fourth interface, a second acquisition unit and a processing unit; the first acquisition unit is used to acquire the original video captured by the camera; the first acquisition unit is connected to the first interface, and the first interface is used to output the original video; the second interface is respectively connected to the first interface and the third interface, and the third interface is used to output the original video; the third interface is connected to the fourth interface, and the processing unit is respectively connected to the second acquisition unit and the fourth interface; the second acquisition unit is used to acquire an inserted file; the processing unit is used to generate a target video based on the original video and the inserted file.
[0009] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a display screen connected to a display chip; the display screen is used to display a target video generated by the display chip.
[0010] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a display screen connected to a processing unit; the display screen is used to display a target video generated by the processing unit.
[0011] In the embodiment of the present application, the video generation circuit includes an image processing chip, a main control chip and a display chip, and the main control chip is connected to the image processing chip and the display chip respectively; the image processing chip is used to obtain the original video collected by the camera; the main control chip is used to send the original video to the display chip; the display chip is used to obtain the inserted file and generate the target video based on the original video and the inserted file. Through this solution, the inserted file is obtained by the display chip, and the target video is generated based on the original video and the inserted file. The independently set display chip performs frame insertion processing, which can improve the efficiency of inserting files in the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 One of the structural schematic diagrams of the video generation circuit provided in the embodiment of the present application;
[0013] Figure 2 A schematic diagram of a flow chart of a video generation method provided in an embodiment of the present application;
[0014] Figure 3 A schematic diagram of an image processed by a display chip in a video generation method provided in an embodiment of the present application;
[0015] Figure 4 One of the interface schematic diagrams of the video shooting method application provided in the embodiment of the present application;
[0016] Figure 5 The second interface diagram of the video shooting method application provided in the embodiment of the present application;
[0017] Figure 6 The second structural diagram of the video generation circuit provided in the embodiment of the present application;
[0018] Figure 7 The third structural diagram of the video generation circuit provided in the embodiment of the present application;
[0019] Figure 8 A fourth structural diagram of a video generation circuit provided in an embodiment of the present application;
[0020] Fig. 9A fifth structural diagram of a video generation circuit provided in an embodiment of the present application;
[0021] Fig.10 The sixth structural diagram of the video generation circuit provided in the embodiment of the present application;
[0022] Fig.11 A schematic diagram of an electronic device provided in an embodiment of the present application;
[0023] Fig.12 A hardware schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0026] The video generation circuit, method and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0027] The video generation circuit provided in the embodiment of the present application can be applied to the scenario of inserting files (such as images, texts, etc.) into the currently captured video.
[0028] For example, when a user needs to insert an image (such as an insert file in the embodiment of the present application) into the currently captured video, the original video captured by the camera can be obtained through the image processing chip, and the main control chip sends the original video to the display chip. The display chip can obtain the image that the user needs to insert, and the display chip can generate a target video based on the original video and the image, for example, inserting the image into the original video to generate the target video. The frame insertion processing by the independently set display chip can improve the efficiency of inserting files into the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip.
[0029] Example 1
[0030] The embodiment of the present application provides a video generation circuit. Figure 1 A schematic diagram of the structure of a video generation circuit provided in an embodiment of the present application is shown. Figure 1 As shown, the video generation circuit may include: an image processing chip 11 , a main control chip 12 and a display chip 13 .
[0031] In an embodiment of the present application, the main control chip 12 is connected to the image processing chip 11 and the display chip 13 respectively; the image processing chip 11 is used to obtain the original video captured by the camera; the main control chip 12 is used to send the original video to the display chip 13; the display chip 13 is used to obtain the inserted file and generate the target video based on the original video and the inserted file.
[0032] It can be understood that in the embodiment of the present application, the image processing chip first obtains the original video captured by the camera (i.e., the video screen captured by the camera in real time), and then the image processing chip sends the obtained original video to the main control chip, so that the main control chip can send the original video to the display chip.
[0033] In the embodiment of the present application, the order in which the original video is received by the display chip and the display chip obtains the inserted file is not limited, that is, the display chip can obtain the inserted file after receiving the original file, or the display chip can first obtain the inserted file and then receive the original video.
[0034] Optionally, in an embodiment of the present application, the image processing chip can obtain the original video when the electronic device captures the original video through a camera.
[0035] In the embodiment of the present application, the display chip is a chip with frame insertion, noise reduction and picture effect processing functions; through the display chip, files can be inserted into the original video in real time (i.e., frame insertion), and the smoothness of video playback is guaranteed to avoid freezes.
[0036] Optionally, in the embodiment of the present application, the inserted file may be at least one of the following: an image, text, video / video clip, symbol, document, etc., which may be determined according to actual needs and is not limited in the embodiment of the present application.
[0037] Optionally, in the embodiment of the present application, the number of inserted files can be one or more, which can be determined according to actual needs and is not limited in the embodiment of the present application.
[0038] Optionally, in an embodiment of the present application, when the inserted file is an image, the image may be a user-defined image, or may be a default image of the electronic device, which may be determined based on actual needs and is not limited in the embodiment of the present application.
[0039] Optionally, in the embodiment of the present application, when the image is a user-defined image, the image may be an image manually drawn by the user, an image downloaded by the electronic device from the network, or an image stored in the electronic device.
[0040] Optionally, in an embodiment of the present application, in a possible implementation method, the display chip can be specifically used to: insert the insert file between the Nth video frame and the N+1th video frame of the original video to generate a target video, where N can be a positive integer.
[0041] Optionally, in the embodiment of the present application, N may be a user-defined value, or may be a system default value, which may be determined based on actual usage requirements and is not limited in the embodiment of the present application.
[0042] In the embodiment of the present application, since the display chip can insert the inserted file in the form of a separate video clip / video frame between any two video frames of the original video to generate a target video, it can not only improve the flexibility of the electronic device in inserting files into the video, but also retain all the elements of each video frame in the original video.
[0043] Optionally, in an embodiment of the present application, in another possible implementation method, the display chip can be specifically used to: fuse the inserted file with at least one video frame of the original video to obtain at least one fused image; and generate a target video based on the at least one fused image and the video frames in the original video that have not been fused.
[0044] Optionally, in an embodiment of the present application, each video frame in the at least one video frame corresponds to a fused image, and different video frames correspond to different fused images.
[0045] In an embodiment of the present application, for each video frame in at least one video frame, the display chip can fuse one video frame with the inserted file to obtain a fused image. After the display chip fuses at least one video frame with the inserted file respectively, the above-mentioned at least one fused image can be obtained.
[0046] It can be understood that in an embodiment of the present application, the display chip generates a target video based on the above-mentioned at least one fused image and the video frames in the original video that have not been fused, including: the display chip is used to replace the above-mentioned at least one video frame in the original video with the at least one fused image to generate the target video.
[0047] For example, suppose that the display chip fuses pattern 1 (i.e., the inserted file) with the second video frame in the original video (i.e., the at least one video frame mentioned above) to obtain a fused image, and then replaces the second video frame in the original video with the fused image to generate a target video, i.e., the frame number of the fused image in the target video is the same as the frame number 2 of the second frame image in the original video.
[0048] In the embodiment of the present application, since the display chip can first fuse the inserted file with at least one video of the original video to obtain at least one fused image, and then generate a target video based on the at least one fused image and the video frames in the original video that have not been fused, compared to the original video, at least some of the video frames in the target video include newly added elements (such as the inserted file), which not only improves the flexibility of the electronic device in inserting files into the original video, but also maintains the continuity of the video images taken by the camera on the basis of enriching the elements of at least some of the video frames in the original video.
[0049] In the video generation circuit provided in the embodiment of the present application, the inserted file is obtained through the display chip, and the target video is generated based on the original video and the inserted file. The frame insertion processing is performed by an independently set display chip, which can improve the efficiency of inserting files in the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip.
[0050] Example 2
[0051] The present application embodiment provides a video generation method. Figure 2 FIG. 1 is a flow chart of a video generation method provided in an embodiment of the present application. The video generation method can be applied to the video generation circuit in the above-mentioned embodiment 1. Figure 2 As shown, the video generation method provided in the embodiment of the present application may include the following steps 201 and 202. The following is an example of an electronic device including the video generation circuit in the above embodiment 1 executing the method.
[0052] Step 201: The electronic device receives a first input from a user when the first screen area displays an original video and the second screen area displays an inserted file.
[0053] In the embodiment of the present application, the original video may be the video currently captured by a camera in the electronic device.
[0054] Optionally, in an embodiment of the present application, the video frame currently displayed in the first screen area may be a video frame captured most recently in the original video.
[0055] Optionally, in an embodiment of the present application, during the process of shooting a video, the electronic device may display a shooting interface (i.e., the original video) and display the video frames captured by the camera in the shooting interface. If the user needs to change the captured video screen, the user may trigger the electronic device to open the fun drawing board function through an input (hereinafter referred to as the target input), so that the electronic device may display the original video in the first screen area and the drawing board interface in the second screen area; wherein the drawing board interface may be used to display / draw the above-mentioned inserted file.
[0056] Optionally, in an embodiment of the present application, after the electronic device displays a sketchboard interface based on the target input, the sketchboard interface may be a blank interface, that is, no files are displayed in the sketchboard interface; or, the sketchboard interface may include files retained when the user last used the sketchboard interface, for example, a file most recently drawn by the user on the sketchboard interface or a file most recently loaded by the electronic device through the sketchboard interface. The specific details can be determined based on actual usage requirements and are not limited in the embodiments of the present application.
[0057] Optionally, in an embodiment of the present application, the above-mentioned inserted file can be: a file manually drawn by the user in the drawing board interface, a file loaded by the electronic device through the drawing board interface, or a file retained when the user last used the drawing board interface. The specific file can be determined based on actual usage requirements and is not limited in the embodiment of the present application.
[0058] Optionally, in an embodiment of the present application, the first screen area and the second screen area can be different areas of the same display screen in the electronic device, or can be areas in different display screens in the electronic device. The specific area can be determined based on actual usage requirements and is not limited in the embodiment of the present application.
[0059] Optionally, in the embodiment of the present application, the first input may be a touch input, a floating input, a preset gesture input, or a voice input, etc., which may be determined according to actual usage requirements and is not limited in the embodiment of the present application.
[0060] For example, the first input is a drag input in which the user drags the insert file from the second screen area to the first screen area.
[0061] Step 202: In response to a first input, the electronic device generates a target video based on an original video and an inserted file through a display chip.
[0062] Optionally, in an embodiment of the present application, the display chip generates a target video based on the original video and the inserted file, which can be any one of the following methods 1 to 3: Implementation method 1, the display chip inserts the inserted file between any two video frames of the original video to generate the target video; Implementation method 2, the display chip fuses the inserted file with at least one video frame in the original video to obtain at least one fused image, and replaces the at least one video frame in the original video with the at least one fused image frame to generate the target video; Implementation method 3, the display chip replaces at least one video frame in the original video with the inserted file to generate the target video.
[0063] Optionally, in an embodiment of the present application, in the above implementation mode 1, the above step 202 can be specifically implemented by the following step 202a.
[0064] Step 202a: In response to the first input, the electronic device inserts the insert file between the Nth video frame and the N+1th video frame of the original video through the display chip to generate a target video.
[0065] The Nth video frame may be determined based on user input, for example, the Mth video frame after the first input may be the Nth video frame, or may be a system default, and N may be a positive integer.
[0066] Optionally, in an embodiment of the present application, when the inserted file is an image, the display chip can process the image parameters of the image to obtain a target image, wherein the image parameters of the target image can match the image parameters of the video frame in the original video (the two are the same, or the matching degree of the two is greater than or equal to a first preset matching degree).
[0067] Optionally, in the embodiment of the present application, the image parameters may include at least one of the size and resolution of the image. It should be noted that in actual implementation, there may be a certain error between the processed image parameters and the image parameters of the video frame in the original video.
[0068] Optionally, in the embodiment of the present application, when the Nth video frame is determined based on user input, the second input and the first input for determining the Nth video frame may be two different inputs.
[0069] Optionally, in the embodiment of the present application, when the Nth video frame can be determined based on user input, the display chip can determine the Nth video frame in the following two ways (way 1 and way 2).
[0070] Method 1
[0071] Optionally, in the embodiment of the present application, the user can input a value N in the drawing board interface through the second input, and then the display chip can determine the video frame with the frame number N in the original video as the Nth video frame, and insert the insertion file between the Nth video frame and the N+1th video frame.
[0072] For example, assuming that the user inputs the number 6 in the drawing board interface through the second input, the display chip can insert the insert file between the 6th video frame and the 7th video frame in the original video.
[0073] Method 2
[0074] Optionally, in an embodiment of the present application, the display chip can determine the Nth video frame based on the frame number K of the video frame displayed in the first screen area when the electronic device receives the first input and the numerical value H corresponding to the second input, where K can be a positive integer and H can be an integer.
[0075] Specifically, assuming that when the electronic device receives the first input, the first screen area displays the Kth video frame of the original video, and the value corresponding to the second input is H, that is, the user enters the value H in the drawing board interface; then N=K+H.
[0076] When H is greater than 0, the display chip can insert the above-mentioned insertion file after the Hth video frame located after the Kth video frame; when H is less than 0, the display chip can insert the above-mentioned insertion file after the Pth video frame located before the Kth video frame, where P is the opposite of H.
[0077] For example, assuming that when the electronic device receives the first input, the first screen area displays the video frame a in the original video (i.e., the Kth video frame of the original video), and the user enters a value H in the drawing board interface through the second input, and H is an integer greater than 0, then: Figure 3 As shown, the display chip can insert the transition picture (ie, the insert file) between the Hth video frame and the H+1th video frame after the video frame a.
[0078] It should be noted that in the embodiments of the present application, the order of the first input and the second input may not be limited. For example, the first input may be executed first and then the second input, or the second input may be executed first and then the first input. The specific order may be determined based on actual usage requirements and is not limited in the embodiments of the present application.
[0079] In an embodiment of the present application, an insert file is inserted between any two video frames of the original video in the form of a separate video clip / video frame through a display chip to generate a target video. An independently set display chip performs frame insertion processing, which can improve the efficiency of inserting files into the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip.
[0080] Optionally, in the embodiment of the present application, in implementation mode 2, the above step 202 can be specifically implemented by the following steps 202b and 202c.
[0081] Step 202b: In response to the first input, the electronic device fuses the inserted file with at least one video frame of the original video through the display chip to obtain at least one fused image.
[0082] Step 202c: The electronic device generates a target video through a display chip based on at least one fused image and a video frame in the original video that has not been fused.
[0083] The at least one video frame is determined based on user input (hereinafter referred to as the third input).
[0084] Optionally, in an embodiment of the present application, the display chip may fuse the inserted file with the at least one video frame based on the image parameters of the at least one video frame to obtain at least one fused image.
[0085] It can be understood that in the embodiment of the present application, the image parameters of the above-mentioned at least one fused image match the image parameters of the above-mentioned at least one video frame (the two are the same, or the matching degree of the two is greater than or equal to the second preset matching degree).
[0086] Optionally, in the embodiment of the present application, a special fusion algorithm is provided in the display chip, so that after the display chip receives the above-mentioned insertion file, the above-mentioned insertion file can be fused with at least one video frame in the original file based on the fusion algorithm to obtain at least one fused image. In this way, the speed of image fusion can be improved.
[0087] In an embodiment of the present application, when the electronic device needs to merge the inserted file with the at least one video frame, since the electronic device can directly merge the inserted file with the at least one video frame through the fusion algorithm in the display chip, the time for merging the inserted file with the at least one video frame can be shortened and the power consumption of the electronic device can be saved.
[0088] Optionally, in an embodiment of the present application, the fused image may include all the contents in the inserted file, or may include part of the contents in the inserted file (i.e., part of the inserted file), which may be determined based on actual usage requirements and is not limited in the embodiment of the present application.
[0089] Optionally, in the embodiment of the present application, the electronic device may determine a fusion position of the insert in the at least one video frame according to an input end position of the first input.
[0090] In the embodiment of the present application, the input end position of the first input may be the position of the inserted file in the first screen area when the user drags the inserted file to the first screen area and ends dragging.
[0091] In the embodiment of the present application, since the electronic device can determine the fusion position of the inserted file on the at least one video frame based on the input end position of the first input, it can ensure that the fusion position of the inserted file in the at least one video frame meets the user's actual fusion requirements, thereby improving the user experience.
[0092] Optionally, in an embodiment of the present application, the at least one video frame may be determined by the following four methods (specifically: the following methods 1 to 4).
[0093] Method 1
[0094] Optionally, in an embodiment of the present application, the user can enter at least one numerical value (each numerical value is an integer) in the drawing board interface through a third input, and the display chip can determine the video frame in the original video whose frame number is the same as the numerical value entered by the user as the above-mentioned at least one video frame.
[0095] For example, the user inputs the values 3 and 5 in the drawing board interface through the third input, then: the display chip can determine the 3rd frame and the 5th frame of the original video as the at least one video frame.
[0096] Method 2
[0097] Optionally, in the embodiment of the present application, the user may input a fusion period M through a third input, so that the display chip may determine the at least one video frame from the original video according to the fusion period M.
[0098] Specifically, assuming that the user inputs a fusion period M, and when the electronic device receives the first input, the first screen area displays the i-th video frame in the original video, where M and i are both positive integers; then: (1) the display chip can determine the video frames in the original video whose frame numbers are multiples of M as the at least one video frame mentioned above. (2) the display chip can determine the video frames in the original video whose frame numbers are greater than or equal to i and are multiples of M as the at least one video frame mentioned above. (3) the display chip can determine the video frames in the original video whose frame numbers are less than i and are multiples of M as the at least one video frame mentioned above.
[0099] Exemplarily, taking the above (2) as an example, assuming M=3, i=7, the display chip can determine the video frames in the original video whose frame numbers are greater than or equal to 7 and are multiples of 3, such as the 9th video frame, the 12th video frame, the 15th video frame, etc. in the original video, as the above at least one video frame.
[0100] Method 3
[0101] Optionally, in the embodiment of the present application, the user can input a value (a positive integer) through the third input, and then the display chip can determine the video frame whose frame number in the original video is greater than or equal to the value as the at least one video frame; or the display chip can determine the video frame whose frame number in the original video is less than the value as the at least one video frame. The specific determination can be made according to actual usage requirements.
[0102] For example, if the user inputs a value of 6 and selects all video frames whose frame numbers are greater than or equal to 6, the display chip can determine all video frames whose frame numbers are greater than or equal to 6 in the original video as the at least one video frame.
[0103] Method 4
[0104] Optionally, in an embodiment of the present application, the user can input a numerical value H in the drawing board interface through a third input, and the electronic device receives the frame number K of the video frame displayed in the first screen area when the first input is received. Then: the display chip can determine the video frame with a frame number H+K in the original video as the at least one video frame mentioned above; wherein K can be a positive integer, H can be a positive number, and K+H can be a positive integer.
[0105] For example, the value input by the user is 4 (ie, H=4), and when the electronic device receives the first input, the first screen area displays the 5th (ie, K=5) video frame of the original video, then: the display chip can determine the 9th video frame of the original video as at least one of the above-mentioned video frames.
[0106] In the embodiment of the present application, since the display chip can fuse the inserted file with at least one frame of the original video to obtain at least one fused image, and then generate a target video based on the at least one fused image and the video frames in the original video that have not been fused, compared to the original video, at least some of the video frames in the target video include newly added elements (such as the inserted file), which not only improves the flexibility of the electronic device in inserting files into the original video, but also maintains the continuity of the video images taken by the camera on the basis of enriching the elements of at least some of the video frames in the original video.
[0107] The video generation method provided in the embodiment of the present application is exemplarily described below with reference to the accompanying drawings.
[0108] Example 1: In the above implementation 1, during the video shooting process, if Figure 4As shown in (a) in the figure, the electronic device displays a video shooting interface on the display screen 40, and displays the video frame (i.e., the original video) captured by the camera in the video shooting interface; at this time, if the user needs to change the captured video screen, that is, to insert an image into the currently captured video, then: the user can input the video shooting interface, for example, the user can trigger the electronic device to turn on the fun drawing board function of the electronic device by inputting the selection menu in the video shooting interface. Thus, Figure 4 As shown in (b) of FIG. 4 , the electronic device can display the currently captured video (i.e., the original video) in the first screen area 41 of the display screen 40, and display the drawing board interface in the second screen area 42 of the display screen 40. Figure 5 As shown in (a) in the figure, the user can manually draw a five-pointed star image 51 in the drawing board interface (i.e., insert a file), and then the user can drag the five-pointed star image 51 to the first screen area 41 (i.e., the video shooting interface) (i.e., the first input). If the frame number of the video frame displayed in the first screen area when the electronic device receives the first input is 41, and the value corresponding to the second input is 30, then: the electronic device can insert the five-pointed star image 51 between the 71st (i.e., 41+30) frame and the 72nd frame of the original video through the display chip to generate the target video. In addition, the electronic device can continue to display video frames with video numbers greater than 41 in the target video in the first screen area, and as shown in FIG. Figure 5 As shown in (b) in FIG. 1 , the electronic device may display a five-pointed star image 51 in the target video in the first screen area 41 after displaying the 71st video frame in the target video.
[0109] Example 2: In the above implementation 2, during the video shooting process, if Figure 4 As shown in (a) in the figure, the electronic device displays a video shooting interface on the display screen 40, and displays the video frame (i.e., the original video) captured by the camera in the video shooting interface; at this time, if the user needs to change the captured video screen, that is, to insert an image into the currently captured video, then: the user can input the video shooting interface, for example, the user can trigger the electronic device to turn on the fun drawing board function of the electronic device by inputting the selection menu in the video shooting interface. Thus, Figure 4 As shown in (b) of FIG. 4 , the electronic device can display the currently shot video / captured video frame (i.e., the original video) in the first screen area 41 of the display screen 40, and display the drawing board interface in the second screen area 42 of the display screen 40. Figure 5As shown in (a) in the figure, the user can manually draw a five-pointed star image 51 in the drawing board interface (i.e., insert a file), and then the user can drag the five-pointed star image 51 to the first screen area 41 (i.e., the video shooting interface) (i.e., the first input). If the frame number 41 of the video frame displayed in the first screen area when the electronic device receives the first input, and the value corresponding to the third input is 30, then: the electronic device can fuse the five-pointed star image 51 with the 71st frame (i.e., 41+30) of the original video through the display chip to obtain a fused image, and generate a target video based on the fused image and the unfused video frames in the original video through the display chip. In addition, the electronic device can continue to display video frames with video numbers greater than 41 in the target video in the first screen area, and as shown Figure 5 As shown in (c) in FIG. 1 , the electronic device may display the fused image in the target video in the first screen area 41 after displaying the 70th video frame in the target video.
[0110] For other descriptions in the embodiments of the present application, please refer to the relevant descriptions in the above-mentioned Embodiment 1. In order to avoid repetition, they will not be repeated here.
[0111] In the video generation method provided by the embodiment of the present application, when the electronic device displays the original video currently shot by the camera in the first screen area and the inserted file in the second screen area, if the user needs to insert the inserted file into the original video, the user can trigger the electronic device to generate a target video based on the original video and the inserted file through the display chip through a first input to the electronic device, obtain the inserted file through the display chip, and generate the target video based on the original video and the inserted file. The independently set display chip performs frame insertion processing, which can improve the efficiency of inserting files in the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip.
[0112] Example 3
[0113] The embodiment of the present application provides another video generation circuit. Figure 6 The schematic diagram of the structure of the video generation circuit provided by the embodiment of the present application is shown as follows: Figure 6 As shown, the video generation circuit provided in the embodiment of the present application includes: an image processing chip 60 , a main control chip 61 and a display chip 62 .
[0114] The image processing chip 60 may include a first acquisition unit 601 and a first interface 602 ; the main control chip 61 may include a second interface 611 and a third interface 612 ; the display chip 62 may include a fourth interface 621 , a second acquisition unit 622 and a processing unit 623 .
[0115] In an embodiment of the present application, the first acquisition unit 601 is used to acquire the original video captured by the camera; the first acquisition unit 601 is connected to the first interface 602, and the first interface 602 is used to output the original video; the second interface 611 is respectively connected to the first interface 602 and the third interface 612, and the third interface 612 is used to output the original video; the third interface 612 is connected to the fourth interface 621, and the processing unit 623 is respectively connected to the second acquisition unit 622 and the fourth interface 621; the second acquisition unit 622 is used to acquire the inserted file; the processing unit 623 is used to generate the target video based on the original video and the inserted file.
[0116] It should be noted that, in the embodiment of the present application, the image processing chip obtains the original video through the first acquisition unit, and outputs the original video through the first interface; thus, the main control chip can receive the original video through the second interface, and output the original video through the third interface; the display chip can receive the original video through the fourth interface, and obtain the inserted file through the second acquisition unit, and then generate the target video based on the original video and the inserted file through the processing unit.
[0117] Optionally, in an embodiment of the present application, the processing unit may be specifically used to: insert the insert file between the Nth video frame and the N+1th video frame of the original video to generate a target video, where N may be a positive integer.
[0118] In the embodiment of the present application, since the display chip can insert the inserted file in a separate form between the Nth video frame and the N+1th video frame of the original video to generate a target video, it can not only improve the flexibility of the electronic device in inserting files into the video, but also retain all the elements of each video frame in the original video.
[0119] Optionally, in the embodiment of the present application, combined with Figure 6 ,like Figure 7 As shown, the processing unit 623 may include: a fusion subunit A1 and a generation subunit A2.
[0120] In the embodiment of the present application, the fusion subunit A1 is connected to the fourth interface 621, the second acquisition unit 622 and the generation subunit A2 respectively. The fusion subunit A1 can be used to fuse the inserted file with at least one video frame of the original video to obtain at least one fused image; the generation subunit A2 can be used to generate a target video based on the at least one fused image and the video frame in the original video that has not been fused.
[0121] It should be noted that the fusion subunit may first determine at least one video frame in the original video, and then the fusion subunit may fuse the inserted file with the at least one video frame to obtain at least one fused image. Thus, the fusion subunit may send the at least one fused image and the unfused video frames in the original video / original file to the generation subunit, and the generation subunit may generate the target video based on the at least one fused image and the unfused video frames in the original video.
[0122] In the embodiment of the present application, since the fusion subunit can fuse the inserted file with at least one frame of the original video to obtain at least one fused image, and then the generation subunit generates a target video based on the at least one fused image and the video frames in the original video that have not been fused, compared to the original video, at least some of the video frames in the target video include newly added elements (such as the inserted file), which not only improves the flexibility of the electronic device in inserting files into the original video, but also maintains the continuity of the video images taken by the camera on the basis of enriching the elements of at least some of the video frames in the original video.
[0123] For other descriptions in the embodiments of the present application, please refer to the relevant descriptions in the above embodiments. In order to avoid repetition, they will not be repeated here.
[0124] In the video generation circuit provided in the embodiment of the present application, the inserted file is obtained through the display chip, and the target video is generated based on the original video and the inserted file. The frame insertion processing is performed by an independently set display chip, which can improve the efficiency of inserting files in the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip.
[0125] Example 4
[0126] The present application embodiment provides an electronic device, Figure 8 A schematic diagram showing the structure of an electronic device provided in an embodiment of the present application is shown. Figure 1 ,like Figure 8 As shown, the electronic device provided in the embodiment of the present application may include: a display screen 80 and the video generation circuit in the above-mentioned embodiment 1, and the display screen 80 is connected to the display chip 13.
[0127] The display screen 80 may be used to display the target video generated by the display chip 13 .
[0128] Optionally, in an embodiment of the present application, the display screen can also be used to display inserted files and original videos acquired by the image processing chip.
[0129] In an embodiment of the present application, the display chip can be used to obtain the inserted file through the display screen.
[0130] In the embodiment of the present application, since the electronic device can display the inserted file and the original video on the display screen at the same time, the richness of the content displayed by the electronic device can be improved.
[0131] Optionally, in an embodiment of the present application, the above-mentioned display screen may include a first screen area and a second screen area.
[0132] The first screen area can be used to display the original video, and the second screen area can be used to display the inserted file.
[0133] In the embodiment of the present application, since the electronic device can display the inserted file and the original video in different areas, the flexibility of the electronic device in displaying content can be improved.
[0134] Optionally, in the embodiment of the present application, in combination with the above Figure 8 ,like Fig. 9 As shown, the electronic device may further include: a memory 81 , and the memory 81 is connected to the display chip 13 .
[0135] The memory 81 is used to store the target video.
[0136] For other descriptions in the embodiments of the present application, please refer to the relevant descriptions in the above-mentioned Embodiment 1 and Embodiment 2. In order to avoid repetition, they will not be repeated here.
[0137] In the electronic device provided in the embodiment of the present application, after the electronic device generates a target video based on the original video and the inserted file, since the electronic device can display the target video through a display screen, it is convenient for the user to preview the insertion effect, thereby improving the user experience.
[0138] Example 5
[0139] The present application also provides an electronic device, Fig.10 The structure diagram of the electronic device provided by the embodiment of the present application is shown as follows: Fig.10 As shown, the electronic device provided in the embodiment of the present application may include a display screen 100 and the video generation circuit in the above-mentioned embodiment 3, and the display screen 100 is connected to the processing unit 623.
[0140] The display screen 100 may be used to display the target video generated by the processing unit 623 .
[0141] Optionally, in the embodiment of the present application, the display screen 100 may also be used to display the inserted file and the original video acquired by the first acquisition unit 601. The display chip 62 may be specifically used to acquire the inserted file through the display screen 100.
[0142] In the embodiment of the present application, since the electronic device can display the inserted file and the original video on the display screen at the same time, the richness of the content displayed by the electronic device can be improved.
[0143] Optionally, in an embodiment of the present application, the display screen may include a first screen area and a second screen area; the first screen area may be used to display the original video, and the second screen area may be used to display the inserted file.
[0144] In the embodiment of the present application, since the electronic device can display the inserted file and the original video in different areas, the flexibility of the electronic device in displaying content can be improved.
[0145] In the electronic device provided in the embodiment of the present application, after the insertion file is inserted into the original video and the target video is generated, since the electronic device displays the target video through a display screen, it is convenient for the user to preview the insertion effect, thereby improving the user experience.
[0146] like Fig.11 As shown, an embodiment of the present application also provides an electronic device 200, including a processor 202, a memory 201, and a program or instruction stored in the memory 201 and executable on the processor 202. When the program or instruction is executed by the processor 202, each process of the above-mentioned video shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0147] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0148] Fig.12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0149] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, a display chip 1011 and an image processing chip 1012 and other components.
[0150] The processor 1010 may also be referred to as a main control chip.
[0151] In one implementation
[0152] Optionally, in an embodiment of the present application, the processor 1010 can be connected to the image processing chip 1012 and the display chip 1011 respectively; the image processing chip 1012 can be used to obtain the original video captured by the camera; the processor 1010 can be used to send the original video to the display chip 1011; the display chip 1011 can be used to obtain the inserted file and generate the target video based on the original video and the inserted file.
[0153] Optionally, in an embodiment of the present application, the display chip 1011 can be specifically used to: insert the insert file between the Nth video frame and the N+1th video frame of the original video to generate a target video, where N is a positive integer.
[0154] Optionally, in an embodiment of the present application, the display chip 1011 can be specifically used to: fuse the inserted file with at least one video frame of the original video to obtain at least one fused image; and generate a target video based on at least one fused image and unfused video frames in the original video.
[0155] In the electronic device provided in the embodiment of the present application, the inserted file is obtained through the display chip, and the target video is generated based on the original video and the inserted file. The frame insertion processing is performed by an independently set display chip, which can improve the efficiency of inserting files in the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip.
[0156] In another implementation
[0157] Optionally, in an embodiment of the present application, the image processing chip 1012 includes a first acquisition unit and a first interface; the processor 1010 includes a second interface and a third interface; the display chip 1011 includes a fourth interface, a second acquisition unit and a processing unit; the first acquisition unit is used to acquire the original video captured by the camera; the first acquisition unit is connected to the first interface, and the first interface is used to output the original video; the second interface is respectively connected to the first interface and the third interface, and the third interface is used to output the original video; the third interface is connected to the fourth interface, and the processing unit is respectively connected to the second acquisition unit and the fourth interface; the second acquisition unit is used to acquire the inserted file; the processing unit is used to generate the target video based on the original video and the inserted file.
[0158] Optionally, in an embodiment of the present application, the processing unit may be specifically used to: insert the insert file between the Nth video frame and the N+1th video frame of the original video to generate a target video, where N is a positive integer.
[0159] Optionally, in an embodiment of the present application, the processing unit includes: a fusion subunit and a generation subunit, the fusion subunit is respectively connected to the fourth interface, the second acquisition unit and the generation subunit; the fusion subunit is used to fuse the inserted file with at least one video frame of the original video to obtain at least one fused image; the generation subunit is used to generate a target video based on at least one fused image and video frames in the original video that have not been fused.
[0160] In the electronic device provided in the embodiment of the present application, the inserted file is obtained through the display chip, and the target video is generated based on the original video and the inserted file. The frame insertion processing is performed by an independently set display chip, which can improve the efficiency of inserting files in the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip.
[0161] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0162] Among them, the user input unit 1007 can be used to receive the user's first input when the original video is displayed in the first screen area and the inserted file is displayed in the second screen area; the display chip can be used to generate a target video based on the original video and the inserted file in response to the first input.
[0163] Optionally, in an embodiment of the present application, the display chip is specifically used to insert the insert file between the Nth video frame and the N+1th video frame of the original video to generate a target video, and the Nth video frame is determined based on user input, where N is a positive integer.
[0164] Optionally, in an embodiment of the present application, the display chip is specifically used to fuse the inserted file with at least one video frame of the original video to obtain at least one fused image; and generate a target video based on the at least one fused image and the unfused video frames in the original video, wherein the at least one video frame is determined based on user input.
[0165] In the electronic device provided in the embodiment of the present application, when a user needs to insert a file into a currently shot video, the user can make a first input to the electronic device to trigger the electronic device to generate a target video based on the original video and the inserted file through a display chip, and an independently set display chip performs frame insertion processing, which can improve the efficiency of inserting files into the video, ensure the smoothness and real-time performance of the video picture, and reduce the power consumption of the main control chip.
[0166] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.
[0167] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0168] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned video shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0169] The processor is a processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0170] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0171] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0172] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0173] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0174] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A video generation circuit, wherein the video generation circuit is a video generation circuit in an electronic device, characterized in that: It includes an image processing chip, a main control chip and a display chip, wherein the main control chip is connected to the image processing chip and the display chip respectively; The image processing chip is used to obtain the original video collected by the camera, and the original video is the video captured in real time by the camera in the electronic device; The main control chip is used to send the original video to the display chip; The display chip is used to obtain an insert file, fuse the insert file with at least one video frame of the original video to obtain at least one fused image; generate a target video based on the at least one fused image and the video frame in the original video that has not been fused; or, the display chip is used to insert the insert file between the Nth video frame and the N+1th video frame of the original video to generate the target video, where N is a positive integer; The electronic device further comprises a display screen, wherein the display screen comprises a first screen area and a second screen area; The first screen area is used to display the original video; the second screen area is used to display the drawing board interface; The inserted file is: a file manually drawn by a user in the sketchpad interface, a file loaded by the electronic device through the sketchpad interface, or a file retained when the user last used the sketchpad interface.
2. A video generation method, characterized in that: Applied to the video generation circuit as claimed in claim 1, the method comprises: In a case where the original video is displayed in the first screen area and the inserted file is displayed in the drawing board interface in the second screen area, receiving a first input from the user, wherein the original video is a video captured in real time by a camera in the electronic device; In response to the first input, generating a target video based on the original video and the inserted file through the display chip; The inserted file is: a file manually drawn by a user in the sketchpad interface, a file loaded by the electronic device through the sketchpad interface, or a file retained when the user last used the sketchpad interface.
3. The video generation method according to claim 2, characterized in that: The step of generating a target video based on the original video and the inserted file by the display chip includes: The insertion file is inserted between the Nth video frame and the N+1th video frame of the original video through the display chip to generate the target video, wherein the Nth video frame is determined based on user input, where N is a positive integer.
4. The video generation method according to claim 2, characterized in that: The step of generating a target video based on the original video and the inserted file by the display chip includes: By means of the display chip, the inserted file is fused with at least one video frame of the original video to obtain at least one fused image, wherein the at least one video frame is determined based on user input; The target video is generated based on the at least one fused image and the video frames in the original video that have not been fused.
5. A video generation circuit, wherein the video generation circuit is a video generation circuit in an electronic device, characterized in that: It includes an image processing chip, a main control chip and a display chip, wherein the image processing chip includes a first acquisition unit and a first interface; the main control chip includes a second interface and a third interface; the display chip includes a fourth interface, a second acquisition unit and a processing unit; The first acquisition unit is used to acquire the original video captured by the camera, where the original video is the video captured in real time by the camera in the electronic device; The first acquisition unit is connected to the first interface, and the first interface is used to output the original video; The second interface is connected to the first interface and the third interface respectively, and the third interface is used to output the original video; The third interface is connected to the fourth interface, and the processing unit is connected to the second acquisition unit and the fourth interface respectively; The second acquisition unit is used to acquire the insertion file; The processing unit includes a fusion subunit and a generation subunit, and the fusion subunit is connected to the fourth interface, the second acquisition unit and the generation subunit respectively; The fusion subunit is used to fuse the inserted file with at least one video frame of the original video to obtain at least one fused image; the generation subunit is used to generate a target video based on the at least one fused image and the video frames in the original video that have not been fused; Alternatively, the processing unit is used to insert the insertion file between the Nth video frame and the N+1th video frame of the original video to generate the target video, where N is a positive integer; The electronic device further comprises a display screen, wherein the display screen comprises a first screen area and a second screen area; The first screen area is used to display the original video; the second screen area is used to display the drawing board interface; The inserted file is: a file manually drawn by a user in the sketchpad interface, a file loaded by the electronic device through the sketchpad interface, or a file retained when the user last used the sketchpad interface.
6. An electronic device, characterized in that: It comprises a display screen and the video generating circuit according to claim 1, wherein the display screen is connected to the display chip; The display screen is used to display the target video generated by the display chip; The display screen includes a first screen area and a second screen area; The first screen area is used to display the original video; the second screen area is used to display a drawing board interface, and the drawing board interface is used to display the inserted file; The inserted file is: a file manually drawn by a user in the sketchpad interface, a file loaded by the electronic device through the sketchpad interface, or a file retained when the user last used the sketchpad interface.
7. An electronic device, characterized in that: comprising a display screen and the video generating circuit according to claim 5, wherein the display screen is connected to the processing unit; The display screen is used to display the target video generated by the processing unit; The display screen includes a first screen area and a second screen area; The first screen area is used to display the original video; the second screen area is used to display a drawing board interface, and the drawing board interface is used to display the inserted file; The inserted file is: a file manually drawn by a user in the sketchpad interface, a file loaded by the electronic device through the sketchpad interface, or a file retained when the user last used the sketchpad interface.
Citation Information
Patent Citations
Information processing method and terminal
CN105791692A
Video processing method and mobile terminal
CN106303294A
Video making method and video making device
CN106373170A
Video communication method and device, terminal and computer readable storage medium
CN109391792A
A method and a device for adding special effects to a video
CN109729297A
