CN104486625B - A kind of method for video coding for SVAC standard - Google Patents

A kind of method for video coding for SVAC standard Download PDF

Info

Publication number
CN104486625B
CN104486625B CN201410841060.6A CN201410841060A CN104486625B CN 104486625 B CN104486625 B CN 104486625B CN 201410841060 A CN201410841060 A CN 201410841060A CN 104486625 B CN104486625 B CN 104486625B
Authority
CN
China
Prior art keywords
area
interested
code stream
background
interest
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
CN201410841060.6A
Other languages
Chinese (zh)
Other versions
CN104486625A (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.)
Zhongxing Technology Co Ltd
Vimicro Corp
Original Assignee
Mid Star Technology Ltd By Share Ltd
Vimicro Corp
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 Mid Star Technology Ltd By Share Ltd, Vimicro Corp filed Critical Mid Star Technology Ltd By Share Ltd
Priority to CN201410841060.6A priority Critical patent/CN104486625B/en
Publication of CN104486625A publication Critical patent/CN104486625A/en
Application granted granted Critical
Publication of CN104486625B publication Critical patent/CN104486625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a kind of method for video coding for SVAC standard, solve the problems, such as that each ROI region of encoding code stream in the prior art and the respective code stream of background area are discontinuous.The method for video coding for being used for SVAC standard includes: the interested pixel and background pixel in identification image to be encoded;Entropy coding is carried out to different interested pixel and background pixel respectively in sequence, generates different bit stream data interested and background bit stream data respectively;Wherein, the corresponding area-of-interest of each bit stream data interested;Increase different bit stream datas interested the label of area-of-interest;Increase background bit stream data is that background area marks;It is marked according to the number of the area-of-interest and background area, resets the code stream to be processed, generate code stream after resetting.

Description

A kind of method for video coding for SVAC standard
Technical field
The present invention relates to field of video encoding, in particular to a kind of method for video coding for SVAC standard.
Technical background
(Surveillance video and audio coding, safety precaution monitor digital video-audio to current SVAC Encoding and decoding) in standard, the coding to a frame image is carried out line by line according to pixel.Due to may be simultaneously present in a frame image Multiple ROI regions (Region Of Interest, area-of-interest) and a background area, therefore in the coding of a frame image In code stream, background area and the respective code stream of each ROI region are discontinuous.It thus needs each ROI region Each section code stream is grouped together in order, and entire encoding code stream is reset according to the number order of ROI region, with side Continue after an action of the bowels and the video intelligent of ROI region is analyzed respectively.However it is not provided with resets encoding code stream in the prior art Technical solution.
Summary of the invention
In view of this, being solved existing the embodiment of the invention provides a kind of method for video coding for SVAC standard The discontinuous problem of respective code stream of each ROI region and background area of encoding code stream in technology.
A kind of method for video coding for SVAC standard provided in an embodiment of the present invention includes:
Identify the interested pixel and background pixel in image to be encoded;
Entropy coding is carried out to different interested pixel and background pixel respectively in sequence, it is emerging to generate different senses respectively Interesting bit stream data and background bit stream data;Wherein, the corresponding area-of-interest of each bit stream data interested;
Increase different bit stream datas interested the label of area-of-interest;Increase background bit stream data is background area Field mark;
It is marked according to the number of the area-of-interest and background area, resets the code stream to be processed, generated after resetting Code stream.
A kind of method for video coding for SVAC standard provided in an embodiment of the present invention, by will be interested in code stream Region and background area are marked so that in code stream and all data packets of each region of interest can be extracted together simultaneously Combination;The marker number order rearrangement that entire code stream is pressed to region of interest again, so that the complete code stream of each area-of-interest It can be positioned quickly in video analysis.
Detailed description of the invention
Fig. 1 is a kind of process signal of the method for video coding for SVAC standard provided by one embodiment of the invention Figure.
Fig. 2 show the schematic diagram of internal structure of a data packet of encoding code stream provided by one embodiment of the invention.
Fig. 3 show the rearrangement process schematic diagram of the code stream to be processed of a frame image provided by one embodiment of the invention.
Fig. 4 show code stream schematic diagram after the rearrangement of a frame image provided by one embodiment of the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is made with reference to the accompanying drawing further Detailed description.
Fig. 1 is a kind of flow diagram of the method for video coding for SVAC standard provided by the embodiment of the present invention. As shown in Figure 1, this method comprises:
Step 101: identifying the interested pixel and background pixel in image to be encoded.Detailed process can are as follows: by row scanning Sequence successively traverses each pixel of image to be encoded, identifies to be encoded since first pixel of image to be encoded Interested pixel and background pixel in image.
Step 102: entropy coding being carried out to different interested pixel and background pixel respectively in sequence, is generated respectively not Same bit stream data interested and background bit stream data.Wherein, the corresponding region of interest of each bit stream data interested Domain (ROI).
Step 103: according to entropy coding sequence, increasing different bit stream datas interested the label of area-of-interest;It is right It is that background area marks that background bit stream data, which increases,.
In an embodiment of the present invention, it can be and certain number belonged into same area-of-interest and sequentially connected Interested pixel encodes a bit stream data packet;The bit stream data packet includes an indicator, is used to indicate current data packet institute The number of the area-of-interest for the bit stream data interested for including marks.Meanwhile by certain number and sequentially connected back Scene element is also encoded to a bit stream data packet, which also includes an indicator, indicates current bit stream data packet for back Scene area.It is described in detail below by Fig. 2.
Fig. 2 show the schematic diagram of internal structure of a data packet of encoding code stream provided by one embodiment of the invention. As shown in Fig. 2, the size of the data packet is 64bit.Wherein, the size of indicator (Flag) is 4bit, is currently compiled to indicate Code data packet is background area or ROI region, and the size of bit stream data is 60bit;Specifically, a Flag can be used " 0000 " indicates that current data packet belongs to background area, respectively indicates current data packet to " 1111 " with " 0001 " and belong to ROI region 1 is to ROI region 15.Since the bit number that the coding of each pixel occupies is 8, then each data packet can wrap Information content containing 7.5 (=60/8) a pixels.
When being encoded to bit stream data packet interested to interested pixel, may belong to same area-of-interest and according to The interested pixel of secondary connection does not reach the preset certain number of data packet, i.e., does not fill up the code stream number interested It, at this time can be with the coding of the zero polishing data packet according to packet.Such as when all interested of same area-of-interest will be belonged to After pixel carries out coding packing, there are also 5bit not to be filled for the last one data packet, at this time can " 00000 " polishing data packet To guarantee the integrality of data packet.Similarly, when the feature number that the inadequate data packet of sequentially connected background pixel is preset, The coding of the zero polishing data packet can also be used.
However, at this time the corresponding bit stream data interested of each ROI region in the code stream to be processed and background area code Flow data is discontinuous, it is therefore desirable to reset by later step 104.
Step 104: according to the label of the number label and background area of the area-of-interest, resetting the code to be processed Flow data generates code stream after resetting.
Fig. 3 show the rearrangement process schematic diagram of the code stream to be processed of a frame image provided by one embodiment of the invention. As shown in figure 3, step 104 is concretely: reading code stream to be processed again according to the reiteration that ROI region is numbered, successively extract ROI region 1, ROI region 2 ... ROI region N (N maximum value be ROI quantity, do not exceed 15), all codes of background area Flow data;And according to ROI region 1, ROI region 2 ... ROI region N (N maximum value be ROI quantity, do not exceed 15), background The sequence in region rearranges code stream.
Specifically, from the beginning reading a code stream first, all data packets relevant to ROI region 1 are extracted, these are counted Remove according to the Flag of packet, is arranged in order;Then a code stream is from the beginning read again, extracts all codes relevant to ROI region 2 Stream, the Flag of these code streams is removed, is arranged in order;Code stream is read by being repeated several times, is finally extracted and background area phase All data packets closed, the Flag of these data packets is removed, is arranged in order.It finally obtains in an example as shown in Figure 4 Rearrangement after code stream.
It will be understood by those skilled in the art that the label of ROI region and background area removal can also unify after rearrangement into Row, the present invention remove opportunity without limitation to the label of ROI region and background area.
Those skilled in the art it is also understood that since the code stream of background area is not the object of video analysis, because This can not also extract the data packet for belonging to background area during code stream after forming rearrangement, and only extract region of interest The data packet in domain.
However rearranged form as above needs to read again that repeatedly code stream to be processed, i.e. how many ROI region just need to read more It is few all over code stream, there are problems that bandwidth occupancy is excessive and code flow rearrangement overlong time in this way.
In order to solve the problems, such as the Video coding rearrangement method in above embodiments, one embodiment of the invention is additionally provided separately A kind of Video coding rearrangement method, at this time step 104 include:
Firstly, by memory according to the length of all code streams of each area-of-interest and background area in code stream to be processed Carry out piecemeal division.Concretely: after encoder completes the coding of piece image, the code stream of all ROI regions and background area Length can obtain, and carry out piecemeal division according to the code stream length in each region to memory in advance at this time, stripe sequence can are as follows: ROI region 1, ROI region 2 ... ROI region N (N maximum value is 15), background area.
Secondly, reading the primary code stream to be processed again according to row scan sequence, each area-of-interest and background area are extracted All code streams in domain are put into output in the corresponding sub-block of the memory and generate code stream after rearrangement.Since coding is scanned according to row Mode carries out, so the code stream sequence in each region will not malfunction, this rearrangement method can't upset code stream sequence.
Code stream to be processed in Fig. 3 in this way can be directly becoming code stream after rearrangement as shown in Figure 4 after exporting from memory, And do not have to read again repeatedly.This rearrangement method can only carry out the primary rearrangement read again and can be realized to entire code stream, effectively improve Code flow rearrangement speed.It solves repeatedly to read again repeatedly simultaneously and carries out that code flow rearrangement bring bandwidth increases and the time too long of asks Topic, final code stream is in strict conformity with SVAC standard.
In an embodiment of the present invention, after the Flag of all data packets is removed in code stream after it will reset, refer to having removed Code stream repacks transmission after showing the rearrangement of symbol.For example, repacking transmission according to ICP/IP protocol.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, made any modification, equivalent replacement etc. be should all be included in the protection scope of the present invention.

Claims (9)

1. a kind of method for video coding for SVAC standard characterized by comprising
Identify the interested pixel and background pixel in image to be encoded;
Entropy coding is carried out to different interested pixel and background pixel respectively in sequence, generates different codes interested respectively Flow data and background bit stream data;Wherein, the corresponding area-of-interest of each bit stream data interested;
According to entropy coding sequence, increase different bit stream datas interested the label of area-of-interest;To background bit stream data Increase is that background area marks;
It is marked according to the number of the area-of-interest and background area, resets code stream to be processed, generate code stream after resetting.
2. the method according to claim 1, wherein in sequence to different interested pixel and background pixel Entropy coding is carried out respectively, and generating different bit stream data interested and context code flow data respectively includes:
By certain number belong to same area-of-interest and sequentially connected interested pixel is encoded to a code interested Stream packets;The bit stream data packet interested includes an indicator, is indicated corresponding to current interest bit stream data packet The number of area-of-interest marks;And/or
Certain number and sequentially connected background pixel is encoded to a context code stream packets, the context code fluxion It include an indicator according to packet, instruction current data packet is background area.
3. according to the method described in claim 2, it is characterized in that, further comprising:
When sequentially connected background pixel or belong to same area-of-interest and sequentially connected interested pixel is not described enough When certain number, the coding of bit stream data packet interested and/or context code stream packets described in zero polishing.
4. method according to any one of claims 1 to 3, which is characterized in that after generating rearrangement before code stream, the side Method further comprises:
Remove the indicator of all bit stream data packets interested and/or context code stream packets.
5. according to the method described in claim 4, it is characterized in that, removing all bit stream data packets interested and/or background After the indicator of bit stream data packet, further comprise:
Code stream after the rearrangement for having removed indicator is repacked into transmission.
6. according to the method described in claim 2, it is characterized in that, the bit stream data packet interested and/or context code fluxion Size according to packet is 64bit, wherein the size of the indicator is 4bit.
7. the method stated according to claim 1, which is characterized in that according to the number of area-of-interest label and background area Label, reset the code stream to be processed, generating code stream after resetting includes:
By the label of the marker number sequence and the background area of the area-of-interest, the code to be processed is successively read again Stream;It reads all code streams for extracting current interest region or background area again every time, and is sequentially placed into code stream after rearrangement.
8. the method according to claim 1, wherein according to the number of area-of-interest label and background area The label in domain resets the code stream to be processed, generates code stream after resetting and includes:
Memory is subjected to piecemeal division according to the length of the code stream of each area-of-interest and background area in code stream to be processed;
Read the primary code stream to be processed again, extract each area-of-interest and/or background area all code streams be put into it is described Output generates code stream after rearrangement in the corresponding sub-block of memory.
9. method according to claim 7 or 8, which is characterized in that read the code stream to be processed again according to row scanning mode.
CN201410841060.6A 2014-12-30 2014-12-30 A kind of method for video coding for SVAC standard Active CN104486625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410841060.6A CN104486625B (en) 2014-12-30 2014-12-30 A kind of method for video coding for SVAC standard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410841060.6A CN104486625B (en) 2014-12-30 2014-12-30 A kind of method for video coding for SVAC standard

Publications (2)

Publication Number Publication Date
CN104486625A CN104486625A (en) 2015-04-01
CN104486625B true CN104486625B (en) 2019-08-02

Family

ID=52761117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410841060.6A Active CN104486625B (en) 2014-12-30 2014-12-30 A kind of method for video coding for SVAC standard

Country Status (1)

Country Link
CN (1) CN104486625B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120935A (en) * 2018-09-27 2019-01-01 贺禄元 A kind of coding method of video image and device
CN113965749A (en) * 2020-12-14 2022-01-21 深圳市云数链科技有限公司 Video transmission method and system for static camera

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102495A (en) * 2007-07-26 2008-01-09 武汉大学 A video image decoding and encoding method and device based on area
CN101420618A (en) * 2008-12-02 2009-04-29 西安交通大学 Adaptive telescopic video encoding and decoding construction design method based on interest zone
CN102348116A (en) * 2010-08-03 2012-02-08 株式会社理光 Video processing method, video processing device and video processing system
CN103402087A (en) * 2013-07-23 2013-11-20 北京大学 Video encoding and decoding method based on gradable bit streams

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60206738D1 (en) * 2002-06-11 2005-11-24 St Microelectronics Srl Variable bit rate video coding method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102495A (en) * 2007-07-26 2008-01-09 武汉大学 A video image decoding and encoding method and device based on area
CN101420618A (en) * 2008-12-02 2009-04-29 西安交通大学 Adaptive telescopic video encoding and decoding construction design method based on interest zone
CN102348116A (en) * 2010-08-03 2012-02-08 株式会社理光 Video processing method, video processing device and video processing system
CN103402087A (en) * 2013-07-23 2013-11-20 北京大学 Video encoding and decoding method based on gradable bit streams

Also Published As

Publication number Publication date
CN104486625A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
HRP20201803T1 (en) Methods, devices and systems for parallel video encoding and decoding
CN108377399B (en) Live video stream code-transferring method, device and computer readable storage medium
CN102388616B (en) Image signal decoding device, image signal decoding method, image signal encoding device, and image signal encoding method
CN107886560B (en) Animation resource processing method and device
CN106791937B (en) Video image annotation method and system
CN104837031B (en) A kind of method of high-speed adaptive extraction key frame of video
RU2016101176A (en) DEVICE AND METHOD FOR PROCESSING INFORMATION
CN103404140A (en) Indicating bit stream subsets
CN105898319A (en) Video transcoding method and device
CN104065964A (en) Coding-decoding method of region-of-interest information and video coding-decoding device
US20190098348A1 (en) Broadcast Streaming of Panoramic Video for Interactive Clients
CN104349074A (en) Method, device and system for producing a merged digital video sequence
CN104486625B (en) A kind of method for video coding for SVAC standard
RU2016112623A (en) TRANSMISSION DEVICE, TRANSMISSION METHOD AND RECEIVING DEVICE
CN110636294A (en) Video decoding method and device, and video encoding method and device
CN103632180A (en) Dynamic electronic bar code
CN105847752B (en) Information encoding-decoding method, equipment and video monitoring system
CN114697668A (en) Encoding and decoding method of point cloud media and related product
CN111147896A (en) Subtitle data processing method, device and equipment and computer storage medium
CN108184101B (en) Apparatus and method for processing video
CN107634928A (en) A kind of processing method and processing device of bit stream data
CN112672154A (en) Live video playing method and device, server and computer readable storage medium
CN114531528B (en) Method for video processing and image processing apparatus
CN111131808A (en) Video stuck fault analysis method and device and set top box
CN114598834A (en) Video processing method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171211

Address after: 519000 Guangdong city of Zhuhai province Hengqin Baohua Road No. 6, room 105, -23898 (central office)

Applicant after: Zhongxing Technology Co., Ltd.

Applicant after: Vimicro Electronics Co., Ltd.

Address before: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16

Applicant before: Beijing Vimicro Corporation

Applicant before: Vimicro Electronics Co., Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 519031 Guangdong city of Zhuhai province Hengqin Baohua Road No. 6, room 105, -23898 (central office)

Applicant after: Mid Star Technology Limited by Share Ltd

Applicant after: Vimicro Electronics Co., Ltd.

Address before: 519000 Guangdong city of Zhuhai province Hengqin Baohua Road No. 6, room 105, -23898 (central office)

Applicant before: Zhongxing Technology Co., Ltd.

Applicant before: Vimicro Electronics Co., Ltd.

GR01 Patent grant
GR01 Patent grant