CN103517027B - Video data processing method and electronic equipment - Google Patents

Video data processing method and electronic equipment Download PDF

Info

Publication number
CN103517027B
CN103517027B CN201210227019.0A CN201210227019A CN103517027B CN 103517027 B CN103517027 B CN 103517027B CN 201210227019 A CN201210227019 A CN 201210227019A CN 103517027 B CN103517027 B CN 103517027B
Authority
CN
China
Prior art keywords
byte
frame
frame head
processor
video data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210227019.0A
Other languages
Chinese (zh)
Other versions
CN103517027A (en
Inventor
洪乃波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210227019.0A priority Critical patent/CN103517027B/en
Publication of CN103517027A publication Critical patent/CN103517027A/en
Application granted granted Critical
Publication of CN103517027B publication Critical patent/CN103517027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a video data processing method and electronic equipment, and is applied to the field of electronic equipment application. The video data processing method and electronic equipment are used for framing video data flows. The method comprises the steps that a first processor obtains a coding and decoding type from a second processor end, and frame header identification information of the video data flows transmitted in a video calling process is defined in the coding and decoding type; the first processor carries out framing on the video data flows according to the frame header identification information; the first processor carries out decoding on framed data frames. The video data processing method and the electronic equipment are mainly used for decoding the video data flows.

Description

The processing method and electronic equipment of video data
Technical field
The present invention relates to electronic apparatus application field, more particularly to a kind of video data processing method and electronic equipment.
Background technology
With G mobile communication (3rd-generation, abbreviation 3G) development and smart mobile phone it is general And, increasing people starts to experience the new business enjoyment that 3G brings, and video calling is exactly one of business therein.Video calling Most crucial agreement is exactly 3G-H.324M protocol suites in technology, and the protocol suite defines a series of audio data streams and video data The agreement of streaming.
At present, the framework of video call technology mainly has two kinds:One is that 3G-H.324M protocol stacks operate in baseband chip (Modem) side, two is that 3G-H.324M protocol stacks are operated in using process chip (AP) side.Run for 3G-H.324M protocol stacks In the framework of Modem sides, AP sides obtain video data stream, then the video data are flowed into by device channels from Modem sides Row decoding is played.
During AP side joints receive Modem side-looking frequency data streams, AP sides cannot know the frame length of video data stream, because Without rule, the data frame being partitioned into is sometimes a part for a frame, a sometimes frame many for this segmentation to video data stream A little or two frames or three frames, thus cause data frame to decode error.
The content of the invention
Embodiments of the invention provide the processing method and electronic equipment of a kind of video data, can be to the video that receives Data flow carries out correct frame segmentation, so as to ensure to be correctly decoded data frame.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
A kind of processing method of video data, is applied to electronic equipment, and the electronic equipment at least includes first processor With second processing device, the electronic equipment can carry out video calling, and methods described includes:
The first processor obtains code/decode type from the second processing device end, defined in the code/decode type The frame head identification information of the video data stream transmitted in the video call process;
First processor video data stream according to the frame head identification information pair carries out framing;
The first processor is decoded to the data frame after framing.
A kind of electronic equipment, the electronic equipment includes first processor and second processing device, the first processor bag Include:
Acquiring unit, for obtaining code/decode type from the second processing device end, defined in the code/decode type The frame head identification information of the video data stream transmitted in the video call process;
The acquiring unit is additionally operable to obtain the video data stream;
Processing unit, the video data obtained for the acquiring unit according to the frame head identification information pair is flowed into Row framing;
Decoding unit, for being decoded to the data frame after the processing unit framing.
The processing method and electronic equipment of video data provided in an embodiment of the present invention, can be according to the frame header for receiving Knowledge information carries out correct frame segmentation to video data stream, so as to ensure to be correctly decoded data frame, it is to avoid mosaic or figure occur The phenomenon for reducing Consumer's Experience is waited as discontinuous.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the processing method of video data in the embodiment of the present invention;
Fig. 2 is the flow chart of the processing method of another video data in the embodiment of the present invention;
Fig. 3 is the schematic diagram of framing in the embodiment of the present invention;
Fig. 4 is the schematic diagram of another framing in the embodiment of the present invention;
Fig. 5 is the schematic diagram of another framing in the embodiment of the present invention;
Fig. 6 is the structural representation of electronic equipment in the embodiment of the present invention;
Fig. 7 is another structural representation of electronic equipment in the embodiment of the present invention;
Fig. 8 is the structural representation of electronic equipment in embodiment of the present invention application scenarios.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of data message for the framework that 3G-H.324M protocol stacks operate in Modem sides Processing method, can to obtain video data stream carry out correct framing.As shown in figure 1, methods described includes following step Suddenly:
101st, first processor obtains code/decode type from second processing device end.
Before first processor obtains video data stream from second processing device end, first processor is from second processing device end Obtain code/decode type.The frame header of the video data stream transmitted in video call process defined in the code/decode type Knowledge information.
102nd, first processor carries out framing according to frame head identification information pair video data stream.
First processor obtains video data stream from second processing device end, and with the frame head identification information in code/decode type It is foundation, searches the frame head byte in video data stream, a data is obtained according to former and later two frame head bytes for finding The frame length of frame, and framing is carried out to the data frame.
103rd, first processor is decoded to the data frame after framing.
First processor is decoded to the data frame after framing, is then played out over the display.Due to decoding Data frame is a data frame for complete frame length, so the image shown after decoding is not in discontinuous mosaic or picture Etc. phenomenon.
In actual applications, the processing method of video data provided in an embodiment of the present invention can apply to video calling skill In art, the first processor can be that the second processing device can be baseband chip using treatment (AP) chip (Modem), the application process chip and the baseband chip can be placed within an electronic equipment and video data is flowed into Row treatment, it is also possible to be respectively placed within two electronic equipments and perform respective function respectively each other with data interaction energy Power.In embodiments of the present invention, the application process chip and the baseband chip are based on 3G-H.324M protocol stacks to video counts Processed according to stream, accessible data type include but are not limited to H.263, MPEG4 and H264, meanwhile, in practical application The protocol stack that treatment video data stream can be based on is also not limited to 3G-H.324M.
In the prior art, because 3G-H.324M protocol stacks operate in baseband chip side, so cannot be obtained using process chip Know the frame length of each data frame, data frame cannot be decoded according to frame length during decoding.Thereby resulting in application process chip will A part for one frame or a few frames are decoded as a data frame, cause decoding error influence display effect.Frequently occur Mosaic and the discontinuous phenomenon of picture are for the requirement of real-time such as Video chat video data service higher can not Receive.
The processing method of video data provided in an embodiment of the present invention, can obtain the code/decode type of baseband chip side simultaneously Therefrom obtain frame header and know information, the frame head byte in information searching video data stream is identified according to the frame head, in this, as Framing carries out framing according to the video data stream for receiving, and video data stream is decoded according to correct frame length then, The situation for avoiding the occurrence of reduction service quality such as mosaic (Quality of Service, abbreviation QoS) occurs.
Further, the embodiment of the present invention additionally provides a kind of processing method of video data, and methods described is to Fig. 1 institutes Show further expanding for method, as shown in Fig. 2 methods described comprises the following steps:
201st, first processor obtains code/decode type from second processing device end.
This step is identical with the implementation of step 101 shown in Fig. 1, and here is omitted.
Additionally, first processor can also obtain decoding configuration information (Decoder when code/decode type is obtained Configuration Information abbreviation DCI), the DCI is used for the decoding of subsequent data frame.It should be noted that It is related to the DCI in the decoding process of MPEG4 types and H264 types, and is not H.263 related in the decoding process of type described DCI.For the data flow of MPEG4 types, the DCI includes:Virtual objects VO, virtual objects sequence VOS, video object layer VOL and object video group layer GVOP;For the data flow of H264 types, the DCI includes:Sequence parameter set SPS and image Parameter set PPS.
202nd, the standard frame header that first processor is obtained in frame header knowledge information is known.
First processor obtains the knowledge of standard frame header from the frame head identification information defined in the code/decode type, described Standard frame header is known for identifying frame head byte.
203rd, first processor knows the traversal frame head mark in video data stream according to standard frame header.
First processor obtains video data stream from second processing device end, and according to the order for receiving video data stream one by one Each byte is traveled through, frame head byte is obtained according to traversing result.Specifically:Whether first processor judges taken in byte Band frame head mark, if not carrying frame head mark, the byte is not frame head byte;If carrying frame head mark, will The frame head mark is compared with standard frame header knowledge, if frame head mark is known not with the standard frame header Together, then the byte is not frame head byte, if frame head mark is sensible with the standard frame header same, the byte is frame head Byte.
204th, first processor is split between frame head byte and postamble byte.
After frame head byte is found, first processor is split between frame head byte and postamble byte, the frame Trail byte is the previous byte adjacent with the frame head byte, and before the frame head byte to the frame head byte is adjacent At least one byte before frame head byte constitutes a data frame.It should be noted that the frame head byte is next data The start byte of frame, the postamble byte is the last bit byte of a upper data frame.
As shown in figure 3, first processor order is traveled through to ten bytes of numbering 1 to 10, wherein ten bytes Frame head mark is followed successively by G1, S2, NF3, A1, H475, D8, E48, G23, A1 and KJ78.The standard frame head that first processor is obtained A1 is designated, then when first processor traverses No. 4 bytes, the frame head mark of No. 4 bytes is sensible with standard frame header same, 4 Number byte is frame head byte.First processor is split between No. 3 bytes and No. 4 bytes, if by data where No. 4 bytes Frame identification is 1 number frame, then No. 3 bytes are the postamble byte of 0 number frame, and No. 4 bytes are the frame head word of 1 number frame Section.When first processor traverses No. 9 bytes, No. 9 bytes are similarly frame head byte, and first processor is in No. 8 bytes and No. 9 Split between byte, No. 8 bytes are the postamble byte of 1 number frame, No. 9 bytes are the frame head byte of 2 number frames.By This completes the framing to 1 number frame, then proceeds framing to subsequent byte according to identical traversal and partitioning scheme.
It should be noted that the standard frame header that is used of different type video data stream framing knows different, thus framing Result it is also different.Additionally, the length of data frame determines that same type is regarded by the byte position that carrying standard frame header is known The length of multiple data frames that frequency data stream framing goes out is not exactly the same.
205th, first processor is decoded to the data frame after framing.
First processor is decoded according to the order of framing to data frame, such as the framing situation shown in Fig. 3, the One processor order is decoded to 0 number frame, 1 number frame, 2 number frames.Optionally, in the decoding to data frame Cheng Zhong, the DCI information auxiliary decoders that first processor can be to obtain in step 201, specific implementation does not do excessive introduction.
Decoded data frame is converted to corresponding picture signal and is displayed on screen, such as HDTV, can be with Signal is simultaneously to be converted to HDMI (High Definition Multimedia Interface, abbreviation HDMI) It is displayed on the screen of HDTV.Because first processor is the decoding that is carried out to data frame according to correct frame length, so Situations such as being not in discontinuous picture or mosaic.And in the prior art, by taking screen 20 frames of display per second as an example:Show per frame The when a length of 0.05s for showing, if it is 0s to set the initial time for starting to show the first frame.If first processor is by the 4th frame and the 5th frame Decoded as a frame, then screen (can show the time of the 4th frame) by the 4th frame and the 5th frame during 0.15s to 0.20s Shown as a frame, and do not show any frame during it should show the 0.20s to 0.25s of the 5th frame, thus caused Occurs mosaic during 0.15s to 0.20s, the phenomenon for occurring picture stagnation during 0.20s to 0.25s.
Optionally, after first processor often travels through a byte, frame length counter can be added 1, when frame length counter When numerical value reaches default frame length maximum (such as 6), then first processor reaches default frame length maximum in frame length counter The byte of last traversal is defined postamble byte before, and the latter byte adjacent with quasi- postamble byte is defined frame head byte, first Processor is split between quasi- frame head byte and quasi- postamble byte, at least one byte composition one before quasi- frame head byte Individual data frame.
Above-mentioned quasi- frame head byte only exists dividing for statement with foregoing frame head byte, and frame head byte is to be known according to standard frame header The frame head byte for finding, and quasi- frame head byte is the frame head byte found according to frame length counter, both are substantially identical, all It is frame head byte.Only for ease of statement, both should not have different in practical application for above-mentioned differentiation.
Due to the reason such as loss in transmitting procedure, frame head mark may not be carried in video data stream byte, now needed Frame length maximum rule carries out framing to video data stream.The length of each frame is frame length maximum (such as 6).Specifically, such as Shown in Fig. 4,15 bytes of numbering 1 to 15 do not carry frame head mark, first processor frame length meter when No. 1 byte is traveled through Number device is 0.Time frame long counter just plus 1 by first processor after often traveling through 1 byte.When first processor has traveled through No. 6 words After section, frame length counter reaches maximum 6, then No. 6 bytes are the quasi- postamble byte of 1 number frame, and No. 7 bytes are 2 numbers The quasi- frame head byte of frame.First processor is split between No. 6 bytes and No. 7 bytes, and by frame length counter O reset.So Proceed traversal since No. 7 bytes afterwards, thus constitute 2 number frames, 3 number frames, 4 number frames ...
Compared with the framing mode shown in Fig. 3, framing mode group shown in Fig. 4 data frame frame length fixing phase out Together, it is the maximum of frame length counter.
Further, can be combined with the technical scheme shown in Fig. 3 and Fig. 4 carries out framing to video data stream.Such as Fig. 5 institutes Show, first processor receives 15 bytes of numbering 1 to 15 successively, wherein the frame head mark that No. 2 bytes and No. 9 bytes are carried It is sensible with standard frame header same, frame head byte is all, remaining byte does not carry frame head mark, and default frame length maximum is 6. First processor traverses No. 2 bytes for frame head byte, between No. 1 byte and No. 2 bytes split and obtains 0 number frame Afterwards, by frame length counter O reset, then begun stepping through (No. 2 bytes are traversed 2 times) from No. 2 bytes.When first processor traversal After complete No. 7 bytes, frame length counter reaches maximum, first processor using No. 7 bytes as 1 number frame quasi- postamble word Section, is split between No. 7 bytes and No. 8 bytes, obtains 1 number frame, and by frame length counter O reset.Then from No. 8 Byte begins stepping through.When first processor traverses No. 9 bytes, it is found that No. 9 bytes are frame head byte, then in No. 8 bytes and 9 Split between number byte, obtained only No. 82 number frames of bytes composition, by that analogy it.
In the implementation shown in Fig. 5, after first processor is split between postamble byte and frame head byte, and It is required for frame length counter O reset after splitting between quasi- postamble byte and quasi- frame head byte, as long as that is, first processor is carried out Segmentation, just by frame length counter O reset.Although do so can produce indivedual ultrashort data frames (such as 2 number frames), can Ultra-long data frame is avoided the occurrence of with the basis of framing is known according to standard frame header.From from the point of view of Consumer's Experience, ultrashort number According to the picture caused by frame accelerate the utilities cost that is caused to user much smaller than the picture caused by ultra-long data frame stop to The utilities cost that family is caused, so the appearance of indivedual ultrashort data frames can be received in practical application.
Frame head mark packet described in the embodiment of the present invention is included but is not limited to code/decode type.
The processing method of video data provided in an embodiment of the present invention, can obtain the code/decode type of baseband chip side simultaneously Therefrom obtain frame header and know information, the frame head byte in information searching video data stream is identified according to the frame head, in this, as Framing carries out framing according to the video data stream for receiving, and video data stream is decoded according to correct frame length then, The situation for avoiding the occurrence of the reduction such as mosaic QoS occurs.
Additionally, when frame head mark is not carried in video data stream byte, video data provided in an embodiment of the present invention Processing method, additionally it is possible to framing is carried out to video data stream byte according to frame length maximum rule, it is to avoid ultra-long data frame occur, The QoS mass of video playback can further be improved.
A kind of electronic equipment is the embodiment of the invention provides, as shown in fig. 6, the electronic equipment includes:First processor 61 and second processing device 62, wherein, the first processor 61 is further included:
Acquiring unit 611, for obtaining code/decode type from the end of second processing device 62.It is fixed in the code/decode type The frame head identification information of the video data stream transmitted in justice video call process.
The acquiring unit 611 is additionally operable to obtain video data stream.
Processing unit 612, for the video data stream that the acquiring unit 611 according to the frame head identification information pair is obtained Carry out framing.The processing unit 612 with the frame head identification information in code/decode type as foundation, search video data stream in Frame head byte, obtain a frame length for data frame according to former and later two frame head bytes for finding, and the data frame is carried out Framing.
Decoding unit 613, for being decoded to the data frame after the framing of the processing unit 612.
Further, the acquiring unit 611 from the end of second processing device 62 specifically for obtaining the second processing The code/decode type that device 62 is consulted to obtain with originator according to 3G-H.324M protocol stacks.
Further, as shown in fig. 7, the processing unit 612 also includes:
Subelement 6121 is obtained, for the standard frame head in the frame head identification information for obtaining the acquisition of the acquiring unit 611 Mark.The acquisition subelement 6121 obtains standard frame header from the frame head identification information defined in the code/decode type Know, the standard frame header is known for identifying frame head byte.
Traversal subelement 6122, for traveling through frame head mark in the video data stream that the acquiring unit 611 is obtained.
Judgment sub-unit 6123, for judging that the frame head mark that the traversal subelement 6122 is traversed obtains son with described Whether the standard frame header that unit 6121 gets is known identical.
The traversal subelement 6122 is traveled through to each byte one by one according to the order for receiving video data stream, described Judgment sub-unit 6123 obtains frame head byte according to traversing result.Specifically, the judgment sub-unit 6123 judge be in byte No carrying frame head mark, if not carrying frame head mark, the byte is not frame head byte;If carrying frame head mark, Then frame head mark is known with the standard frame header and is compared, if frame head mark is known with the standard frame header Difference, then the byte is not frame head byte, if frame head mark is sensible with the standard frame header same, the byte is frame Head byte.
Segmentation subelement 6124, for judging what the traversal subelement 6122 was traversed when the judgment sub-unit 6123 The standard frame header that frame head is identified with the acquisition subelement 6121 is obtained is sensible simultaneously, between frame head byte and postamble byte Split.
After frame head byte is found, the segmentation subelement 6124 is divided between frame head byte and postamble byte Cut, the frame head byte be when the judgment sub-unit 6123 judge it is described traversal subelement 6122 traverse frame head mark with The standard frame header for obtaining the acquisition of subelement 6121 is sensible simultaneously, the byte that the traversal subelement 6122 is currently traveled through. The postamble byte is the previous byte adjacent with the frame head byte, before the frame head byte to the frame head byte one At least one byte before individual adjacent frame head byte constitutes a data frame.It should be noted that under the frame head byte is The start byte of one data frame, the postamble byte is the last bit byte of a upper data frame.
Count sub-element 6125, for after the traversal subelement 6122 often travels through a byte, by frame length counter Plus one.
The segmentation subelement 6124 is additionally operable to, when the numerical value of the frame length counter reaches default frame length maximum When, split between quasi- frame head byte and quasi- postamble byte.The traversal subelement 6122 reaches pre- in frame length counter If the byte of last traversal is defined postamble byte before frame length maximum, the latter byte adjacent with quasi- postamble byte is defined frame Head byte, the segmentation subelement 6124 is split between quasi- frame head byte and quasi- postamble byte, before quasi- frame head byte At least one byte constitute a data frame.
Further, the count sub-element 6125 is additionally operable to:
After the segmentation subelement 6124 is split between frame head byte and postamble byte, or, when described point Cut after subelement 6124 split between quasi- frame head byte and quasi- postamble byte, by frame length counter O reset.
Further, the acquiring unit 611 is additionally operable to obtain decoding configuration information from the end of second processing device 62 DCI, the DCI include virtual objects VO, virtual objects sequence VOS, video object layer VOL and object video group layer GVOP, Or the DCI includes that sequence parameter set SPS and picture parameter set PPS, the DCI are used for 613 pairs of institutes of the decoding unit Data frame is stated to be decoded.
Electronic equipment provided in an embodiment of the present invention, can obtain the code/decode type and therefrom getting frame of baseband chip side Head identification information, identifies the frame head byte in information searching video data stream, in this, as framing according to right according to the frame head The video data stream for receiving carries out framing, video data stream is decoded according to correct frame length then, it is to avoid horse occur The situation of the reduction such as Sai Ke QoS occurs.
Additionally, when frame head mark is not carried in video data stream byte, electronic equipment provided in an embodiment of the present invention, also Framing can be carried out to video data stream byte according to frame length maximum rule, it is to avoid ultra-long data frame occur, can be further Improve the QoS mass of video playback.
Electronic equipment provided in an embodiment of the present invention, includes but are not limited to video data stream process and display function Mobile phone and computer, in can apply to the video call technology based on 3G-H.324M protocol stacks, in can realizing Fig. 1 to Fig. 5 Embodiment of the method shown in any one width.
In an application scenarios of the embodiment of the present invention, as shown in figure 8, electronic equipment includes application process chip 81 With baseband chip 82, function of the application process chip 81 with first processor 61 shown in Fig. 6 or Fig. 7, the base band Chip 82 has the function of second processing device 62 shown in Fig. 6 or Fig. 7.
The baseband chip 82 includes:
Agreement stack memory 821, for storing 3G-H.324M protocol stacks;
The data storage 822 being connected with the agreement stack memory 821, for being sent to the application process chip 81 Video data stream;
The control memory 823 being connected with the agreement stack memory 821, for being sent to the application process chip 81 Code/decode type and/or DCI information.
The application process chip 81 includes:
The data sink 811 being connected with data storage 822 described in the baseband chip 82 is (equivalent to acquiring unit 611), for receiving the video data stream that the data storage 822 sends;
The control receiver 812 being connected with control memory 823 described in the baseband chip 82 is (equivalent to acquiring unit 611), for receiving code/decode type and/or the DCI information that the control memory 823 sends;
The resolver 813 being connected with the control receiver 812, for parsing the volume that the control receiver 812 is received Coding type and/or DCI information;
The framer 814 being connected with the data sink 811 and the resolver 813 respectively is (single equivalent to treatment 612), the standard frame header knowledge for being parsed according to the resolver 813 is regarded to the reception of the data receipt unit 811 for unit Frequency data stream is traveled through and split;
The decoder 815 being connected with the framer 814 and the resolver 813 respectively is (equivalent to decoding unit 613) data frame after the framing of the framer 814 is decoded for the DCI information parsed according to the resolver 813,;
The display 816 being connected with the decoder 815, for showing that the decoded data frame of the decoder 815 is believed Number.
The structure of electronic equipment is not limited to the structure shown in Fig. 8 in practical application.
It is apparent to those skilled in the art that, for convenience and simplicity of description, only with above-mentioned each function The division of module is carried out for example, in practical application, as needed can distribute by different function moulds above-mentioned functions Block is completed, will the internal structure of device be divided into different functional modules, to complete all or part of work(described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to corresponding in preceding method embodiment Journey, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the module or The division of unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units Or component can be combined or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute Display or the coupling each other for discussing or direct-coupling or communication connection can be by some interfaces, device or unit INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention each The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. it is various can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of processing method of video data, is applied to electronic equipment, the electronic equipment at least include first processor and Second processing device, the electronic equipment can carry out video calling, it is characterised in that methods described includes:
The first processor obtains code/decode type from the second processing device end, described defined in the code/decode type The frame head identification information of the video data stream transmitted in video call process;
First processor video data stream according to the frame head identification information pair carries out framing;Including:Described first The standard frame header that processor is obtained in the frame head identification information is known;The first processor is in the video data stream time Go through frame head mark;When the frame head that the first processor is traversed identifies, the frame head sensible simultaneously with the standard frame header Byte where mark is frame head byte, and the previous byte adjacent with the frame head byte is postamble byte, at described first Reason device is split between the frame head byte and the postamble byte, at least one byte group before the frame head byte Into a data frame;
The first processor is decoded to the data frame after framing.
2. method according to claim 1, it is characterised in that the first processor is obtained from the second processing device end Code/decode type, including:
The first processor obtains the second processing device with originator according to 3G-H.324M agreements from the second processing device end Stack consults the code/decode type for obtaining.
3. method according to claim 1, it is characterised in that in the first processor in the video data stream time When going through frame head mark, methods described is further included:
Frame length counter is added one by the first processor after one byte of every traversal;
When the numerical value of the frame length counter reaches default frame length maximum, the first processor is counted in the frame length Device before reaching the default frame length maximum byte of last traversal be defined postamble byte, it is adjacent with the quasi- postamble byte Latter byte be defined frame head byte, the first processor enters between the quasi- frame head byte and the quasi- postamble byte Row segmentation, at least one byte before the quasi- frame head byte constitutes a data frame.
4. method according to claim 3, it is characterised in that in the first processor in the video data stream time When going through frame head mark, methods described is further included:
After the first processor is split between the frame head byte and the postamble byte, or, when described After one processor is split between the quasi- frame head byte and the quasi- postamble byte, the first processor is by the frame Long counter resets.
5. method as claimed in any of claims 1 to 4, it is characterised in that in the first processor from described During second processing device end obtains code/decode type, methods described is further included:
The first processor obtains decoding configuration information DCI, the DCI from the second processing device end includes virtual objects VO, virtual objects sequence VOS, video object layer VOL and object video group layer GVOP, or the DCI include sequential parameter Collection SPS and picture parameter set PPS, the DCI are decoded for application chip to the data frame.
6. a kind of electronic equipment, the electronic equipment includes first processor and second processing device, it is characterised in that described first Processor includes:
Acquiring unit, for obtaining code/decode type from the second processing device end, video defined in the code/decode type The frame head identification information of the video data stream transmitted in communication process;
The acquiring unit is additionally operable to obtain the video data stream;
Processing unit, the video data stream obtained for the acquiring unit according to the frame head identification information pair carries out group Frame;The processing unit includes:
Subelement is obtained, is known for obtaining the standard frame header in the frame head identification information that the acquiring unit is obtained;
Traversal subelement, for traveling through frame head mark in the video data stream that the acquiring unit is obtained;
Judgment sub-unit, for judging that the frame head mark that the traversal subelement is traversed obtains what subelement got with described Whether the standard frame header is known identical;
Segmentation subelement, for judging that the frame head mark that the traversal subelement is traversed is obtained with described when the judgment sub-unit The standard frame header for taking subelement acquisition is sensible simultaneously, is split between frame head byte and postamble byte, wherein, institute Byte where stating frame head mark is the frame head byte, and the previous byte adjacent with the frame head byte is the postamble word Section, at least one byte before the frame head byte constitutes a data frame;
Decoding unit, for being decoded to the data frame after the processing unit framing.
7. electronic equipment according to claim 6, it is characterised in that the acquiring unit is specifically for from described second Reason device end obtains the code/decode type that the second processing device is consulted to obtain with originator according to 3G-H.324M protocol stacks.
8. electronic equipment according to claim 6, it is characterised in that the processor also includes:
Count sub-element, for after the traversal subelement often travels through a byte, adding one by frame length counter;
The segmentation subelement is additionally operable to, when the numerical value of the frame length counter reaches default frame length maximum, in quasi- frame Split between head byte and quasi- postamble byte, the frame length counter is last before reaching the default frame length maximum The byte of traversal is the quasi- postamble byte, and the latter byte adjacent with the quasi- postamble byte is the quasi- frame head byte, At least one byte before the quasi- frame head byte constitutes a data frame.
9. electronic equipment according to claim 8, it is characterised in that the count sub-element is additionally operable to:
After the segmentation subelement is split between the frame head byte and the postamble byte, or, when described point Cut after subelement split between the quasi- frame head byte and the quasi- postamble byte, by the frame length counter O reset.
10. the electronic equipment according to any one in claim 6 to 9, it is characterised in that the acquiring unit is additionally operable to Obtain decoding configuration information DCI from the second processing device end, the DCI include virtual objects VO, virtual objects sequence VOS, Video object layer VOL and object video group layer GVOP, or the DCI includes sequence parameter set SPS and picture parameter set PPS, the DCI are decoded for the decoding unit to the data frame.
CN201210227019.0A 2012-06-29 2012-06-29 Video data processing method and electronic equipment Active CN103517027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210227019.0A CN103517027B (en) 2012-06-29 2012-06-29 Video data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210227019.0A CN103517027B (en) 2012-06-29 2012-06-29 Video data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103517027A CN103517027A (en) 2014-01-15
CN103517027B true CN103517027B (en) 2017-05-24

Family

ID=49898955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210227019.0A Active CN103517027B (en) 2012-06-29 2012-06-29 Video data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103517027B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883623B (en) * 2015-04-30 2018-12-18 北京小鸟看看科技有限公司 A kind of head-mounted display video control method and circuit
CN114338828A (en) * 2020-09-30 2022-04-12 中国电子科技集团公司第五十四研究所 Communication method, communication equipment and computer storage medium
CN115334180B (en) * 2022-10-11 2022-12-20 成都利普芯微电子有限公司 Data transmission circuit, constant current drive chip and display system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780197A (en) * 2004-11-25 2006-05-31 中国传媒大学信息工程学院 Self-adaptive mixed channel coding-decoder and method thereof
CN101986388A (en) * 2010-09-06 2011-03-16 建荣集成电路科技(珠海)有限公司 MP3 intelligent error detection method
CN102301730A (en) * 2011-07-18 2011-12-28 华为技术有限公司 Method, device and system for transmitting and processing multichannel AV
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780197A (en) * 2004-11-25 2006-05-31 中国传媒大学信息工程学院 Self-adaptive mixed channel coding-decoder and method thereof
CN101986388A (en) * 2010-09-06 2011-03-16 建荣集成电路科技(珠海)有限公司 MP3 intelligent error detection method
CN102301730A (en) * 2011-07-18 2011-12-28 华为技术有限公司 Method, device and system for transmitting and processing multichannel AV
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data

Also Published As

Publication number Publication date
CN103517027A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
CN107872422B (en) Data transmission method and device and electronic equipment
CN103188522B (en) Method and system for providing and delivering a composite condensed stream
US9787999B2 (en) Method for decreasing the bit rate needed to transmit videos over a network by dropping video frames
CN106162235A (en) Method and apparatus for Switch Video stream
CN102480618B (en) Realize H264 video code model and play the method and system optimized
CN101867796B (en) Method and device for monitoring video
US8499058B2 (en) File transfer system and file transfer method
CN101202901B (en) Method, device and system for processing package identifier of program transmission package
US11956159B2 (en) Transmission device, transmission method, reception device, and reception method
WO2013064112A1 (en) Method and device of video image filtering process
CN103517027B (en) Video data processing method and electronic equipment
CN106303682A (en) The method and device of channel switch
CN108419041A (en) A kind of method and apparatus of video data processing
CN102595215B (en) Method, device and communication system for program information communication
EP2453652B1 (en) Transmission method, receiving method and device for scalable video coding files
CN109217980B (en) Encoding and decoding capacity configuration method, device and computer storage medium
US9936266B2 (en) Video encoding method and apparatus
CN101784053B (en) Wireless home gateway and television access realizing method thereof
CN102412921A (en) Realization method of multimedia broadcasting service and data card
CN113141520B (en) Video stream transmission method and device, electronic equipment and storage medium
CN102256161A (en) Transmission method and equipment for OSD (On Screen Display) information
CN1829324A (en) Signal processing device and stream processing method
CN103139528B (en) The processing method of a kind of audio, video data and device
CN105578287B (en) A kind of transmission method, device and the digital TV in high resolution of high code rate transport stream
KR101671311B1 (en) Cloud stream service system, apparatus and cloud streaming service method thereof

Legal Events

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