CN114615548A - Video data processing method and device and computer equipment - Google Patents
Video data processing method and device and computer equipment Download PDFInfo
- Publication number
- CN114615548A CN114615548A CN202210319778.3A CN202210319778A CN114615548A CN 114615548 A CN114615548 A CN 114615548A CN 202210319778 A CN202210319778 A CN 202210319778A CN 114615548 A CN114615548 A CN 114615548A
- Authority
- CN
- China
- Prior art keywords
- video data
- width
- preset
- processing
- adjacent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 48
- 239000000872 buffer Substances 0.000 claims abstract description 29
- 238000002156 mixing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 11
- 238000009499 grossing Methods 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 14
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000001914 filtration Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440263—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
- H04N21/440272—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA for performing aspect ratio conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The application provides a video data processing method and device and computer equipment. The video data processing method comprises the following steps: splitting source video data with the width exceeding a preset threshold into at least two pieces of basic video data according to a preset sequence, wherein the tail part of the previous basic video data in the two adjacent basic video data is partially overlapped with the head part of the next basic video data; respectively carrying out data processing of a preset type on each basic video data to obtain corresponding reference video data; cutting edge data segments at two ends of each reference video data to obtain cut video data; and splicing the cut video data based on a preset sequence to obtain target video data. By splitting the source video data into at least two pieces of basic video data with the length not exceeding a preset threshold value and partially overlapping the two adjacent pieces of basic video data, the data cannot be lost in the subsequent data processing process, the processing effect of the video data is improved, and the limit of the length of a line buffer area is reduced.
Description
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for processing video data, and a computer device.
Background
In the field of multimedia-related data processing, the code stream resolution has been developed from Full High Definition (FHD), 4K to 8K, and the length or width of a line buffer area for processing video data in a processing chip needs to be increased in the same proportion due to the increase of resolution, which leads to a significant increase of hardware cost.
In order to solve the above technical problems, a general processing method in the prior art is to reduce data in the processing process to a supportable size at the front end and the rear end of a processing path, and to enlarge the data to an initial size or output a required size after the processing is completed. However, in the processing method, due to a certain data loss in the reduction processing, the difficulty of the algorithm is increased, and the final image is poor in effect due to the fact that the image is reduced and then enlarged, for example, jaggies are generated.
Therefore, a new video processing method is needed to solve the existing technical problem, reduce the length or width of the line buffer and improve the video processing effect.
Disclosure of Invention
In order to solve the above technical problem, the present invention provides a method, an apparatus and a computer device for processing video data, and the specific scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for processing video data, where the method for processing video data includes:
if source video data with the width exceeding a preset threshold value is received, splitting the source video data into at least two pieces of basic video data according to a preset sequence, wherein the tail part of the previous basic video data in the two adjacent basic video data is partially overlapped with the head part of the next basic video data;
respectively carrying out data processing of a preset type on each basic video data to obtain corresponding reference video data;
cutting edge data segments at two ends of each reference video data to obtain cut video data;
and splicing the cut video data based on the preset sequence to obtain target video data.
According to a specific embodiment disclosed in the present application, the step of cropping the edge data segments at both ends of each of the reference video data includes:
acquiring a preset cutting proportion;
calculating according to the preset cutting proportion to obtain a cutting width;
and cutting off edge data sections at two ends of each reference video data based on the cutting width, wherein the cutting width is less than or equal to the coincidence width corresponding to the coincidence part between two adjacent reference video data.
According to a specific embodiment disclosed in the present application, the step of calculating the clipping width according to the preset clipping ratio includes:
acquiring the superposition width of each reference video data;
and determining the cutting width according to the product of the superposition width and the preset cutting proportion.
According to a specific embodiment of the present disclosure, the step of splicing the clipped video data based on the preset order includes:
judging whether the clipping width is equal to the coincidence width corresponding to the coincidence part between two adjacent reference video data or not;
and if the cropping width is equal to the coincidence width corresponding to the coincidence part between two adjacent reference video data, splicing the non-coincidence part in the two adjacent cropping video data into target video data based on the preset sequence.
According to a specific embodiment of the disclosure, after the step of determining whether the cropping width is equal to a coincidence width corresponding to a coincidence portion between two adjacent reference video data, the method for processing video data further includes:
if the clipping width is smaller than the corresponding overlapping width of the overlapping part between two adjacent reference video data, performing transparent mixing processing on the overlapping part between two adjacent clipping video data to obtain mixed video data;
and splicing non-overlapped parts in two adjacent cutting video data and the mixed video data into target video data in sequence based on the preset sequence.
According to a specific embodiment disclosed in the present application, the step of performing transparent blending processing on the overlapped portion between two adjacent cropped video data to obtain blended video data includes:
based on the formula Outbuffer ═ alpha ═ buffer1+(1-alpha)*buffer2Performing transparent mixing processing on the overlapped part between two adjacent cut video data in the preset sequence, wherein Outbuffer is the mixed video data, alpha is a mixing parameter, alpha is more than or equal to 0 and less than or equal to 1, and buffer1And buffer2The video data is cropped for two adjacent ones.
According to a specific embodiment disclosed in the present application, the step of splicing the respective cropped video data based on the preset order to obtain target video data includes:
smoothing each of the cut video data;
and splicing the cut video data after the smoothing processing into target video data based on the preset sequence.
In a second aspect, an embodiment of the present application provides an apparatus for processing video data, where the apparatus for processing video data includes:
the splitting module is used for splitting source video data into at least two pieces of basic video data according to a preset sequence if the source video data with the width exceeding a preset threshold value is received, wherein the tail part of the previous basic video data in the two adjacent basic video data is partially overlapped with the head part of the next basic video data;
the processing module is used for respectively carrying out data processing of a preset type on each basic video data to obtain corresponding reference video data;
the cutting module is used for cutting the edge data sections at the two ends of each reference video data to obtain cut video data;
and the splicing module is used for splicing the cut video data based on the preset sequence to obtain target video data.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the computer program, when executed on the processor, implements the method for processing video data according to any one of the embodiments of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed on a processor, the computer program implements the processing method for video data described in any one of the embodiments of the first aspect.
Compared with the prior art, the method has the following beneficial effects:
if source video data with the width exceeding a preset threshold value is received, splitting the source video data into at least two pieces of basic video data according to a preset sequence, wherein the tail part of the previous basic video data in the two adjacent basic video data is partially overlapped with the head part of the next basic video data; respectively carrying out data processing of preset types on each basic video data to obtain corresponding reference video data; cutting edge data segments at two ends of each reference video data to obtain cut video data; and splicing the cut video data based on a preset sequence to obtain target video data. According to the method and the device, the source video data are split into the at least two pieces of basic video data, the lengths of the basic video data are not more than the preset threshold value, and the adjacent two pieces of basic video data are partially overlapped, so that the data cannot be lost in the subsequent data processing process, the processing effect of the video data is improved, and the limitation of the length or the width of a line buffer area is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flowchart illustrating a method for processing video data according to an embodiment of the present disclosure;
fig. 2 is a block diagram of a video data processing apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for processing video data according to an embodiment of the present disclosure. As shown in fig. 1, the processing method of the video data mainly includes:
step S101, if source video data with a width exceeding a preset threshold value is received, splitting the source video data into at least two pieces of basic video data according to a preset sequence, wherein the tail part of the previous basic video data in the two adjacent basic video data is partially overlapped with the head part of the next basic video data.
The line buffer is a Static Random Access Memory (SRAM) that is fixed inside an Integrated Circuit (IC). In practical application, video processing is limited by a line buffer, and in order to solve the technical problem, source video data is firstly split into basic video data. The preset threshold may be set by the user according to the maximum width of the video data that can be processed by the line buffer, or may be set according to the actual needs of the user, specific application scenarios, and historical experience values, which is not further limited herein.
In specific implementation, after source video data is received, whether the width of the source video data exceeds a preset threshold value is judged. And if the width of the source video data exceeds the preset threshold, executing a step of splitting the source video data into at least two pieces of basic video data according to a preset sequence. In the following, a process of splitting source video data into two base video data with a width smaller than or equal to a preset threshold is described by an example:
if the width W of the source video data exceeds the preset threshold Q, 60% of the source length W may be defined as a preset splitting ratio P, that is, the source video data is split into two basic video data buffers1And buffer2. Wherein, 60% W is less than or equal to Q, buffer1Can be 0-60% W, buffer2May be 40% W-W. Therefore, two adjacent base video data buffers1And buffer2The area corresponding to 10% W in the middle is the multiplexed part of the two elementary video data. The source video data with the width exceeding the preset threshold value is split into two basic video data with the width smaller than or equal to the preset threshold value, and the two basic video data with the width smaller than or equal to the preset threshold value are respectively read and written through the two basic video data with a certain overlapping part of 60% W, so that the video data processing can be avoided by enlarging the size of a line buffer, and the hardware circuit cost is saved.
During specific implementation, the preset splitting ratio can be customized or adjusted according to the actual use requirements of the user or specific application scenes, and the user can configure the preset splitting ratio through the register.
Step S102, performing data processing of a preset type on each basic video data to obtain corresponding reference video data.
After splitting the source video data into at least two pieces of basic video data with widths smaller than or equal to a preset threshold, the basic video data may be sequentially sent to a "processing path" for a preset type of data processing. The width of data that the processing path can support corresponds to the maximum width of video data that the line buffer can process. Specifically, the preset type of data processing is mainly used for image enhancement of an image corresponding to each video data, and the preset type includes, but is not limited to, color adjustment, brightness adjustment, high dynamic range, and sharpening.
It should be noted that, for an ideal case that one source video data whose width exceeds the preset threshold directly undergoes one preset type of data processing, after splitting the source video data into two base video data whose width is less than or equal to the preset threshold in the present application, the two base video data need to undergo two preset type of data processing respectively, and there are duplicate data. In this process, the time consumption of the intermediate timing sequence and the repeated data need to be increased by the clock. Therefore, in step S102, the clock multiplication process is required.
Step S103, clipping the edge data segments at the two ends of each reference video data to obtain clipped video data.
In specific implementation, a preset cutting proportion can be obtained, a cutting width is obtained through calculation according to the preset cutting proportion, and edge data segments at two ends of each reference video data are cut off based on the cutting width. Wherein the cropping width may be less than or equal to a coincidence width corresponding to a coincidence portion between two adjacent reference video data. Specifically, the overlapping width of each reference video data may be obtained first, and the cropping width may be determined according to a product of the overlapping width and a preset cropping ratio.
The preset cutting proportion can be a cutting proportion configuration value configured by a user through a register, the cutting proportion can be adjusted through the configuration register, and a specific numerical value of the preset cutting proportion can be self-defined according to the actual use requirement and the specific application scene of the user, and is not further limited here.
The following explains the cropping modes corresponding to different size relationships between the cropping width and the overlapping width of two adjacent reference video data:
1. the cropping width is equal to a coincidence width corresponding to a coincidence portion between two adjacent reference video data.
The preset type of data processing flow in step S102 usually cannot process the boundary of the basic video data well, and the edge of the reference video data obtained by data processing of each basic video data usually has a certain loss, i.e., data loss. In step S101, two adjacent pieces of base video data obtained by splitting the source video data partially overlap with each other. Therefore, by reserving a certain width of overlapping area in the splicing area of two adjacent basic video data, even if a certain amount of data is lost in the data processing process, the influence of data loss on the video data processing process can be counteracted as long as the amount of the lost data does not exceed the amount of data corresponding to the overlapping part. And the overlapping area is completely cut out, so that the influence of data loss on the integrity of subsequent target video data can be reduced to the maximum extent.
2. The cropping width is smaller than a coincidence width corresponding to a coincidence portion between two adjacent reference video data.
When each reference video data is clipped, a problem such as a burr is also generated at the edge of the clipped video data. If the edge data segments with the first width at the two ends of each reference video data are cut out through the first mode, the adjacent two cut video data cannot be well spliced, so that the splicing effect is poor. In order to further solve the technical problem of poor splicing effect, when two adjacent basic video data are cut, a superposition area with a certain width can be reserved. The reserved overlapped area is processed through the subsequent splicing process, so that the splicing effect can be optimized while the problem of reference video data edge burrs is solved.
And step S104, splicing all the cut video data based on the preset sequence to obtain target video data.
Specifically, step S104 may be subdivided into the following sub-steps:
judging whether the clipping width is equal to the coincidence width corresponding to the coincidence part between two adjacent reference video data or not;
if the clipping width is equal to the overlapping width corresponding to the overlapping part between two adjacent reference video data, splicing the non-overlapping parts in the two adjacent clipping video data into target video data based on the preset sequence;
if the clipping width is smaller than the corresponding overlapping width of the overlapping part between two adjacent reference video data, performing transparent mixing processing on the overlapping part between two adjacent clipping video data to obtain mixed video data; and splicing non-overlapped parts in two adjacent cutting video data and the mixed video data into target video data in sequence based on the preset sequence.
While the problem of edge glitch of the reference video data is solved in step S103, a new technical problem arises, namely, an unnecessary overlapping portion exists between two adjacent reference video data. If the cut video data are spliced directly, the finally obtained target video data are transmitted to generate repeated parts, and the splicing effect is poor.
Therefore, the overlapped part between two adjacent clipping video data corresponding to two adjacent basic video data can be subjected to transparent mixing processing, and mixed video data can be obtained. And then splicing the non-overlapped parts in the two adjacent cutting video data corresponding to the two adjacent basic video data and the mixed video data into target video data according to the preset sequence corresponding to each basic video data.
In specific implementation, the overlapped parts in two adjacent cropping video data can be fused through alpha fusion. alpha transparency blending is a technique for creating a sense of transparency to an object, such as a blurred transparent scene that is physically seen through water, glass, or the like. In the field of image processing, an alpha transparent blending processing technique is used to combine any two images into one image.
May be based on the formula Outbuffer ═ alpha ═ buffer1+(1-alpha)*buffer2And carrying out transparent mixing processing on the overlapped part between two adjacent clipping video data corresponding to two adjacent basic video data in a preset sequence. Wherein Outbuffer is the mixed video data, alpha is an adjustable mixing parameter, alpha is more than or equal to 0 and less than or equal to 1, and buffer1And buffer2The video data is cropped for two adjacent ones.
Generally, for the completely same overlapped part in two adjacent cropping video data in the application, the blending parameter alpha may be any data from 0 to 1, and the specific data may be customized according to the actual use requirement of the user and the specific application scenario, which is not further limited herein.
In particular, the cropped video data may be smoothed, and the smoothing process includes, but is not limited to, low-pass filtering. The smoothing process can solve the problem that the process of splicing or alpha fusion may have burrs. And then splicing the cut video data after the smoothing processing into target video data according to the sequence of the corresponding basic video data in a preset sequence.
After splicing each cut video data into target video data according to the sequence in the preset sequence, "post-splicing processing" can be performed according to the actual splicing effect and the selection instruction input by the user. For example, if the low-pass filtering process is too strong, which may cause a problem of blurred images of images formed by target video data, at this time, a post-stitching process such as sharpening may be used to enhance the images, so as to improve the stitching effect.
According to the video data processing method, the source video data with the width exceeding the preset threshold value are divided into the plurality of basic video data, and each basic video data is subjected to preset type data processing independently to obtain the reference video data. And the clipping processing and splicing can be carried out on the reference video data by adopting different clipping modes. The effect of saving the row buffer is obvious, no data is lost in the processing process, and the splicing effect is good.
Corresponding to the above method embodiment, referring to fig. 2, the present invention further provides a video data processing apparatus 200, where the video data processing apparatus 200 includes:
the splitting module 201 is configured to, if source video data with a width exceeding a preset threshold is received, split the source video data into at least two pieces of basic video data according to a preset order, where a part of a tail of a previous piece of basic video data in two adjacent pieces of basic video data overlaps with a part of a head of a next piece of basic video data;
a processing module 202, configured to perform preset type data processing on each piece of basic video data to obtain corresponding reference video data;
a clipping module 203, configured to clip edge data segments at two ends of each reference video data to obtain clipped video data;
and a splicing module 204, configured to splice the clipped video data based on the preset order to obtain target video data.
Furthermore, a computer device is provided, the computer device comprising a processor and a memory, the memory storing a computer program, the computer program, when executed on the processor, implementing the above-mentioned video data processing method.
Furthermore, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed on a processor, implements the above-described method of processing video data.
For specific implementation processes of the video data processing apparatus, the computer device, and the computer-readable storage medium provided in the present application, reference may be made to the specific implementation processes of the video data processing method provided in the foregoing embodiments, and details are not repeated here.
According to the video data processing device, the computer equipment and the computer readable storage medium, the source video data with the width exceeding the preset threshold value are split into the plurality of basic video data, and each basic video data is subjected to data processing of the preset type independently to obtain the reference video data. And the clipping processing and splicing can be carried out on the reference video data by adopting different clipping modes. The effect of saving the row buffer is obvious, no data is lost in the processing process, and the splicing effect is good.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.
Claims (10)
1. A method for processing video data, the method comprising:
if source video data with the width exceeding a preset threshold value is received, splitting the source video data into at least two pieces of basic video data according to a preset sequence, wherein the tail part of the previous basic video data in the two adjacent basic video data is partially overlapped with the head part of the next basic video data;
respectively carrying out data processing of a preset type on each basic video data to obtain corresponding reference video data;
cutting edge data segments at two ends of each reference video data to obtain cut video data;
and splicing the cut video data based on the preset sequence to obtain target video data.
2. The method of claim 1, wherein the step of cropping the edge data segments at the two ends of each reference video data comprises:
acquiring a preset cutting proportion;
calculating according to the preset cutting proportion to obtain a cutting width;
and cutting off edge data sections at two ends of each reference video data based on the cutting width, wherein the cutting width is less than or equal to the superposition width corresponding to the superposition part between two adjacent reference video data.
3. The method of claim 2, wherein the step of calculating the cropping width according to the preset cropping ratio comprises:
acquiring the superposition width of each reference video data;
and determining the cutting width according to the product of the superposition width and the preset cutting proportion.
4. The method of claim 2, wherein the step of splicing the cropped video data based on the predetermined order comprises:
judging whether the clipping width is equal to the coincidence width corresponding to the coincidence part between two adjacent reference video data or not;
and if the cropping width is equal to the coincidence width corresponding to the coincidence part between two adjacent reference video data, splicing the non-coincidence part in the two adjacent cropping video data into target video data based on the preset sequence.
5. The method according to claim 4, wherein after the step of determining whether the cropping width is equal to a coincidence width corresponding to a coincidence between two adjacent reference video data, the method further comprises:
if the clipping width is smaller than the coincidence width corresponding to the coincidence part between two adjacent reference video data, performing transparent mixing processing on the coincidence part between two adjacent clipping video data to obtain mixed video data;
and splicing non-overlapped parts in two adjacent cutting video data and the mixed video data into target video data in sequence based on the preset sequence.
6. The method for processing video data according to claim 5, wherein the step of performing transparent blending processing on the overlapped portion between two adjacent cropped video data to obtain blended video data comprises:
based on the formula Outbuffer ═ alpha ═ buffer1+(1-alpha)*buffer2Performing transparent mixing processing on the overlapped part between two adjacent cut video data in the preset sequence, wherein Outbuffer is the mixed video data, alpha is a mixing parameter, alpha is more than or equal to 0 and less than or equal to 1, and buffer1And buffer2The video data is cropped for two adjacent ones.
7. The method for processing video data according to claim 1, wherein the step of splicing the respective cropped video data based on the preset order to obtain the target video data comprises:
smoothing each of the cut video data;
and splicing the cut video data after the smoothing processing into target video data based on the preset sequence.
8. An apparatus for processing video data, the apparatus comprising:
the splitting module is used for splitting source video data into at least two pieces of basic video data according to a preset sequence if the source video data with the width exceeding a preset threshold value is received, wherein the tail part of the previous basic video data in the two adjacent basic video data is partially overlapped with the head part of the next basic video data;
the processing module is used for respectively carrying out data processing of a preset type on each basic video data to obtain corresponding reference video data;
the cutting module is used for cutting the edge data sections at the two ends of each reference video data to obtain cut video data;
and the splicing module is used for splicing the cut video data based on the preset sequence to obtain target video data.
9. A computer device, characterized in that it comprises a processor and a memory, said memory storing a computer program which, when executed on said processor, implements the method of processing video data according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed on a processor, implements the method of processing video data of any of claims 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210319778.3A CN114615548B (en) | 2022-03-29 | 2022-03-29 | Video data processing method and device and computer equipment |
PCT/CN2023/078404 WO2023185347A1 (en) | 2022-03-29 | 2023-02-27 | Video data processing method and apparatus, and computer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210319778.3A CN114615548B (en) | 2022-03-29 | 2022-03-29 | Video data processing method and device and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114615548A true CN114615548A (en) | 2022-06-10 |
CN114615548B CN114615548B (en) | 2023-12-26 |
Family
ID=81867094
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210319778.3A Active CN114615548B (en) | 2022-03-29 | 2022-03-29 | Video data processing method and device and computer equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114615548B (en) |
WO (1) | WO2023185347A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023185347A1 (en) * | 2022-03-29 | 2023-10-05 | 湖南国科微电子股份有限公司 | Video data processing method and apparatus, and computer device |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016040833A1 (en) * | 2014-09-12 | 2016-03-17 | Kiswe Mobile Inc. | Methods and apparatus for content interaction |
US20160291917A1 (en) * | 2013-11-18 | 2016-10-06 | Hangzhou Hikvision Digital Technology Co., Ltd. | Screen splicing system and video data stream processing method |
CN109120877A (en) * | 2018-10-23 | 2019-01-01 | 努比亚技术有限公司 | Video recording method, device, equipment and readable storage medium storing program for executing |
CN109672897A (en) * | 2018-12-26 | 2019-04-23 | 北京数码视讯软件技术发展有限公司 | Panorama video code method and device |
CN110446062A (en) * | 2019-07-18 | 2019-11-12 | 平安科技(深圳)有限公司 | Receiving handling method, electronic device and the storage medium of large data files transmission |
CN110611841A (en) * | 2019-09-06 | 2019-12-24 | Oppo广东移动通信有限公司 | Integration method, terminal and readable storage medium |
CN110784750A (en) * | 2019-08-13 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Video playing method and device and computer equipment |
WO2020094089A1 (en) * | 2018-11-08 | 2020-05-14 | 北京字节跳动网络技术有限公司 | Video picture adjustment method and apparatus, and computer device and storage medium |
CN111935542A (en) * | 2020-08-21 | 2020-11-13 | 广州酷狗计算机科技有限公司 | Video processing method, video playing method, device, equipment and storage medium |
CN112367481A (en) * | 2020-10-28 | 2021-02-12 | 郑州阿帕斯科技有限公司 | Video clip processing method and device |
US20210067836A1 (en) * | 2019-08-29 | 2021-03-04 | Snap Inc. | Subtitle splitter |
CN113689440A (en) * | 2021-08-23 | 2021-11-23 | 腾讯音乐娱乐科技(深圳)有限公司 | Video processing method and device, computer equipment and storage medium |
CN113891113A (en) * | 2021-09-29 | 2022-01-04 | 阿里巴巴(中国)有限公司 | Video clip synthesis method and electronic equipment |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2348758B (en) * | 1999-04-08 | 2003-10-29 | Ibm | Digital image processing |
US7602974B2 (en) * | 2005-10-21 | 2009-10-13 | Mobilic Technology (Cayman) Corp. | Universal fixed-pixel-size ISP scheme |
US20070091379A1 (en) * | 2005-10-21 | 2007-04-26 | Mobilic Technology Corp. | Universal fixed-pixel-size ISP scheme |
CN104318517A (en) * | 2014-11-19 | 2015-01-28 | 北京奇虎科技有限公司 | Image splicing method and device and client terminal |
CN108495089A (en) * | 2018-04-02 | 2018-09-04 | 北京京东尚科信息技术有限公司 | vehicle monitoring method, device, system and computer readable storage medium |
CN109302632B (en) * | 2018-10-18 | 2021-09-28 | 广州酷狗计算机科技有限公司 | Method, device, terminal and storage medium for acquiring live video picture |
CN114004840A (en) * | 2021-10-29 | 2022-02-01 | 北京百度网讯科技有限公司 | Image processing method, training method, detection method, device, equipment and medium |
CN114615548B (en) * | 2022-03-29 | 2023-12-26 | 湖南国科微电子股份有限公司 | Video data processing method and device and computer equipment |
-
2022
- 2022-03-29 CN CN202210319778.3A patent/CN114615548B/en active Active
-
2023
- 2023-02-27 WO PCT/CN2023/078404 patent/WO2023185347A1/en unknown
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160291917A1 (en) * | 2013-11-18 | 2016-10-06 | Hangzhou Hikvision Digital Technology Co., Ltd. | Screen splicing system and video data stream processing method |
WO2016040833A1 (en) * | 2014-09-12 | 2016-03-17 | Kiswe Mobile Inc. | Methods and apparatus for content interaction |
CN109120877A (en) * | 2018-10-23 | 2019-01-01 | 努比亚技术有限公司 | Video recording method, device, equipment and readable storage medium storing program for executing |
WO2020094089A1 (en) * | 2018-11-08 | 2020-05-14 | 北京字节跳动网络技术有限公司 | Video picture adjustment method and apparatus, and computer device and storage medium |
CN109672897A (en) * | 2018-12-26 | 2019-04-23 | 北京数码视讯软件技术发展有限公司 | Panorama video code method and device |
CN110446062A (en) * | 2019-07-18 | 2019-11-12 | 平安科技(深圳)有限公司 | Receiving handling method, electronic device and the storage medium of large data files transmission |
CN110784750A (en) * | 2019-08-13 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Video playing method and device and computer equipment |
US20210067836A1 (en) * | 2019-08-29 | 2021-03-04 | Snap Inc. | Subtitle splitter |
CN110611841A (en) * | 2019-09-06 | 2019-12-24 | Oppo广东移动通信有限公司 | Integration method, terminal and readable storage medium |
CN111935542A (en) * | 2020-08-21 | 2020-11-13 | 广州酷狗计算机科技有限公司 | Video processing method, video playing method, device, equipment and storage medium |
CN112367481A (en) * | 2020-10-28 | 2021-02-12 | 郑州阿帕斯科技有限公司 | Video clip processing method and device |
CN113689440A (en) * | 2021-08-23 | 2021-11-23 | 腾讯音乐娱乐科技(深圳)有限公司 | Video processing method and device, computer equipment and storage medium |
CN113891113A (en) * | 2021-09-29 | 2022-01-04 | 阿里巴巴(中国)有限公司 | Video clip synthesis method and electronic equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023185347A1 (en) * | 2022-03-29 | 2023-10-05 | 湖南国科微电子股份有限公司 | Video data processing method and apparatus, and computer device |
Also Published As
Publication number | Publication date |
---|---|
CN114615548B (en) | 2023-12-26 |
WO2023185347A1 (en) | 2023-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4621733B2 (en) | Method and system for viewing and enhancing images | |
AU2016203365B2 (en) | Controlling smoothness of a transition between images | |
EP1748389A1 (en) | Image blending | |
CN108961170B (en) | Image processing method, device and system | |
CN105763768B (en) | Image processing method, device and system | |
CN110689492B (en) | Image edge smoothing method and device | |
CN114615548B (en) | Video data processing method and device and computer equipment | |
CN105447815A (en) | Method and device for processing image of mobile terminal equipment | |
US10573277B2 (en) | Display device, display system, and non-transitory recording medium, to adjust position of second image in accordance with adjusted zoom ratio of first image | |
JP2004334852A (en) | Image processing by pixel types | |
CN111179369A (en) | GPU rendering method and device based on android system | |
CN112399095A (en) | Video processing method, device and system | |
US6342882B1 (en) | Image processing apparatus and method and transmission medium | |
EP3206387A1 (en) | Image dynamic range adjustment method, terminal, and storage media | |
CN110751603A (en) | Method and system for enhancing image contrast and terminal equipment | |
CN111045576A (en) | Display control method, display control device, terminal device and electronic device | |
KR20050006489A (en) | Image processing method and apparatus in image forming system | |
CN115035006A (en) | Image processing method, image processing apparatus, and readable storage medium | |
CN114648444A (en) | Vector up-sampling calculation method and device applied to neural network data processing | |
CN114219812A (en) | Label avoiding method and device, electronic equipment and storage medium | |
CN113808011A (en) | Feature fusion based style migration method and device and related components thereof | |
CN113379768A (en) | Image processing method, image processing device, storage medium and computer equipment | |
US8279240B2 (en) | Video scaling techniques | |
AU2011202508B2 (en) | Method, apparatus and system for rendering an object on a page | |
CN114092925A (en) | Video subtitle detection method and device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |