CN104486625A - Video coding method used for SVAC standard - Google Patents

Video coding method used for SVAC standard Download PDF

Info

Publication number
CN104486625A
CN104486625A CN201410841060.6A CN201410841060A CN104486625A CN 104486625 A CN104486625 A CN 104486625A CN 201410841060 A CN201410841060 A CN 201410841060A CN 104486625 A CN104486625 A CN 104486625A
Authority
CN
China
Prior art keywords
code stream
area
interested
interest
code
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
Application number
CN201410841060.6A
Other languages
Chinese (zh)
Other versions
CN104486625B (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
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 Vimicro Corp filed Critical Vimicro Corp
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 video coding method used for an SVAC standard. The video coding method used for the SVAC standard solves the problem that in the prior art, code stream of each ROI area and code stream of each background area in coding code stream are discontinuous. The video coding method used for the SVAC standard includes the steps that pixels in each RIO and background pixels in an image to be coded are recognized; entropy coding is carried out on the different pixels in each RIO and the different background pixels in sequence respectively, and then different data of code stream in each RIO and background code stream data are generated respectively, wherein each piece of data of the code stream in each RIO corresponds to one RIO; marks of RIO areas are added to the different data of the code stream in each RIO; marks of background areas are added to the background code stream data; according to the serial number marks of the RIOs and the background areas, the code stream to be processed is rearranged, and then rearranged code stream is generated.

Description

A kind of method for video coding for SVAC standard
Technical field
The present invention relates to field of video encoding, particularly a kind of method for video coding for SVAC standard.
Technical background
In current SVAC (Surveillance video and audio coding, the encoding and decoding of safety precaution monitoring digital video-audio) standard, the coding of a two field picture is carried out line by line according to pixel.Owing to may there is multiple ROI region (Region Of Interest in a two field picture simultaneously, area-of-interest) and a background area, therefore, in the encoding code stream of a two field picture, background area and each ROI region code stream are separately discontinuous.So just need each several part code stream of each ROI region to be grouped together in order, and the number order of whole encoding code stream according to ROI region is reset, follow-up respectively to the video intelligent analysis of ROI region to facilitate.But the technical scheme of being carried out by encoding code stream resetting is not provided in prior art.
Summary of the invention
In view of this, embodiments provide a kind of method for video coding for SVAC standard, solve each ROI region of encoding code stream in prior art and the discontinuous problem of respective code stream of background area.
A kind of method for video coding for SVAC standard that the embodiment of the present invention provides comprises:
Identify the interested pixel in image to be encoded and background pixel;
Respectively entropy code is carried out in order to different interested pixels and background pixel, generates different bit stream datas interested and context code flow data respectively; Wherein, all corresponding area-of-interest of each bit stream data interested;
Different bit stream datas interested is increased to the mark of area-of-interest; Background area mark is increased to context code flow data;
Numbering according to described area-of-interest and background area marks, and resets described pending code stream, generates code stream after resetting.
A kind of method for video coding for SVAC standard that the embodiment of the present invention provides, by the area-of-interest in code stream and background area being marked, makes in code stream and all packets of each region of interest together can be extracted and combine; Again whole code stream is pressed the marker number order rearrangement of region of interest, the complete code stream of each area-of-interest can be located very soon in video analysis.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of method for video coding for SVAC standard that one embodiment of the invention provides.
Figure 2 shows that the internal structure schematic diagram of a packet of the encoding code stream that one embodiment of the invention provides.
Figure 3 shows that the rearrangement process schematic diagram of the pending code stream of the two field picture that one embodiment of the invention provides.
Figure 4 shows that code stream schematic diagram after the rearrangement of the two field picture that one embodiment of the invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is the schematic flow sheet of a kind of method for video coding for SVAC standard that the embodiment of the present invention provides.As shown in Figure 1, the method comprises:
Step 101: identify the interested pixel in image to be encoded and background pixel.Detailed process can be: by row scan sequence from first pixel of image to be encoded, travels through each pixel of image to be encoded successively, identifies the interested pixel in image to be encoded and background pixel.
Step 102: carry out entropy code respectively in order to different interested pixels and background pixel, generates different bit stream datas interested and context code flow data respectively.Wherein, all corresponding area-of-interest (ROI) of each bit stream data interested.
Step 103: according to entropy code order, increases the mark of area-of-interest to different bit stream datas interested; Background area mark is increased to context code flow data.
In an embodiment of the present invention, can be by the bit stream data bag that belongs to same area-of-interest and the interested pixel connected successively is encoded of certain number; A designator drawn together by this bit stream data handbag, is used to indicate the numbering mark of the area-of-interest of the bit stream data interested that current data packet comprises.Meanwhile, by certain number and the background pixel connected successively is also encoded to a bit stream data bag, this packet also comprises a designator, indicates current bit stream data bag to be background area.Be described in detail below by Fig. 2.
Figure 2 shows that the internal structure schematic diagram of a packet of the encoding code stream that one embodiment of the invention provides.As shown in Figure 2, the size of this packet is 64bit.Wherein, the size of designator (Flag) is 4bit, and in order to indicate current encoded data bag to be background area or ROI region, the size of bit stream data is 60bit; Specifically, with " 0000 ", a Flag can represent that current data packet belongs to background area, represent that current data packet belongs to ROI region 1 to ROI region 15 respectively with " 0001 " to " 1111 ".The bit number taken due to the coding of each pixel is 8, then each packet can comprise the amount of information of 7.5 (=60/8) individual pixel.
When being encoded to bit stream data bag interested to interested pixel, same area-of-interest may be belonged to and the interested pixel connected successively do not reach a packet preset certain number, namely this bit stream data bag interested is not filled up, now can with the coding of this packet of null value polishing.Such as when all interested pixels belonging to same area-of-interest are carried out coding packing after, last packet also has 5bit not to be filled, now can this packet of " 00000 " polishing to ensure the integrality of packet.In like manner, when the feature number that the inadequate packet of the background pixel connected successively is preset, also can use the coding of this packet of null value polishing.
But the bit stream data interested that each ROI region now in this pending code stream is corresponding and background area bit stream data are discontinuous, therefore need to be reset by the carrying out of later step 104.
Step 104: according to the numbering mark of described area-of-interest and the mark of background area, reset described pending bit stream data, generate code stream after resetting.
Figure 3 shows that the rearrangement process schematic diagram of the pending code stream of the two field picture that one embodiment of the invention provides.As shown in Figure 3, step 104 specifically can be: read pending code stream again according to the reiteration of ROI region numbering, extract successively ROI region 1, ROI region 2 ... all bit stream datas of ROI region N (N maximum is ROI quantity, can not more than 15), background area; And according to ROI region 1, ROI region 2 ... code stream rearranges by the order of ROI region N (N maximum is ROI quantity, can not more than 15), background area.
Specifically, first from the beginning read a code stream, extract all packets relevant to ROI region 1, the Flag of these packets is removed, arranges in order; And then from the beginning read a code stream, extract all code streams relevant to ROI region 2, the Flag of these code streams is removed, arranges in order; By repeatedly repeating to read code stream, finally extracting all packets relevant to background area, the Flag of these packets being removed, arranges in order.Finally obtain code stream after the rearrangement in an example as shown in Figure 4.
It will be understood by those skilled in the art that the mark of ROI region and background area is removed also can unification carry out after rearrangement, the mark removal of the present invention to ROI region and background area does not limit opportunity.
The code stream that those skilled in the art are appreciated that due to background area is equally not the object of video analysis, therefore formed reset after code stream process in, also can not extract the packet belonging to background area, and only extract the packet of area-of-interest.
But rearranged form as above needs to read repeatedly pending code stream again, namely there are how many ROI region just to need to read how many all over code streams, there is the problem of the excessive and code flow rearrangement overlong time of bandwidth occupancy like this.
In order to solve the problem of the Video coding rearrangement method in above embodiment, one embodiment of the invention additionally provides another kind of Video coding rearrangement method, and now step 104 comprises:
First, internal memory is carried out piecemeal division according to the length of all code streams of each area-of-interest in pending code stream and background area.Specifically can be: after encoder completes the coding of piece image, the code stream length of all ROI region and background area can obtain, now carry out piecemeal division to internal memory according to the code stream length in each region in advance, stripe sequence can be: ROI region 1, ROI region 2 ... ROI region N (N maximum is 15), background area.
Next, read once described pending code stream again according to row scan sequence, and all code streams extracting each area-of-interest and background area put into the rear code stream of corresponding sub-block output generation rearrangement of described internal memory.Because coding carries out according to the mode of line scanning, so the code stream order in each region can not be made mistakes, this rearrangement method can't upset code stream order.
Pending code stream in such Fig. 3 is code stream after directly can become rearrangement as shown in Figure 4 after internal memory output, and need not repeatedly read again.This rearrangement method only can once read the rearrangement that can realize whole code stream again, effectively improves code flow rearrangement speed.Solve the problem that bandwidth increases and the time is oversize of repeatedly repeatedly reading again and carrying out code flow rearrangement and bringing, final code stream is in strict conformity with SVAC standard simultaneously.
In an embodiment of the present invention, by after the Flag of all packets removes in code stream after resetting, code stream after the rearrangement of removing designator is repacked transmission.Such as, transmission is repacked according to ICP/IP protocol.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement etc., all should be included within protection scope of the present invention.

Claims (9)

1. for a method for video coding for SVAC standard, it is characterized in that, comprising:
Identify the interested pixel in image to be encoded and background pixel;
Respectively entropy code is carried out in order to different interested pixels and background pixel, generates different bit stream datas interested and context code flow data respectively; Wherein, all corresponding area-of-interest of each bit stream data interested;
Different bit stream datas interested is increased to the mark of area-of-interest; Background area mark is increased to context code flow data;
Numbering according to described area-of-interest and background area marks, and resets described pending code stream, generates code stream after resetting.
2. method according to claim 1, is characterized in that, carries out entropy code respectively in order to different interested pixels and background pixel, generates different bit stream datas interested respectively and context code flow data comprises:
By certain number belong to same area-of-interest and the interested pixel connected successively is encoded to a bit stream data bag interested; A designator drawn together by described bit stream data handbag interested, the numbering mark of the area-of-interest corresponding to instruction current interest bit stream data bag; And/or,
By certain number and the background pixel connected successively is encoded to a context code stream packets, described context code stream packets comprises a designator, and instruction current data packet is background area.
3. method according to claim 2, is characterized in that, comprises further:
When the background pixel connected successively or belong to same area-of-interest and the interested pixel connected successively not described certain number time, with the coding of bit stream data bag interested described in null value polishing and/or context code stream packets.
4., according to described method arbitrary in claims 1 to 3, it is characterized in that, after generation is reset before code stream, described method comprises further:
Remove the designator of all bit stream data bags interested and/or context code stream packets.
5. method according to claim 4, is characterized in that, after the designator removing all bit stream data bags interested and/or context code stream packets, comprises further:
Code stream after the rearrangement of removing designator is repacked transmission.
6. method according to claim 2, is characterized in that, the size of described bit stream data bag interested and/or context code stream packets is 64bit, and wherein, the size of described designator is 4bit.
7. according to the method that claim 1 is stated, it is characterized in that, according to the numbering mark of described area-of-interest and the mark of background area, reset described pending code stream, generate code stream after resetting and comprise:
By the marker number order of described area-of-interest and the mark of described background area, read described pending code stream again successively; Each stressed all code streams extracting current interest region or background area, and code stream after putting into rearrangement successively.
8. method according to claim 1, is characterized in that, according to the numbering mark of described area-of-interest and the mark of background area, resets described pending code stream, generates code stream after resetting and comprise:
Internal memory is carried out piecemeal division according to the length of the code stream of each area-of-interest in pending code stream and background area;
Read once described pending code stream again, all code streams extracting each area-of-interest and/or background area put into the rear code stream of corresponding sub-block output generation rearrangement of described internal memory.
9. the method according to claim 7 or 8, is characterized in that, reads described pending code stream again according to line 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 true CN104486625A (en) 2015-04-01
CN104486625B 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)

Cited By (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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040037357A1 (en) * 2002-06-11 2004-02-26 Stmicroelectronics S.R.I. Method and apparatus for variable bit-rate control in video encoding systems and computer program product therefor
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040037357A1 (en) * 2002-06-11 2004-02-26 Stmicroelectronics S.R.I. Method and apparatus for variable bit-rate control in video encoding systems and computer program product therefor
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

Cited By (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

Also Published As

Publication number Publication date
CN104486625B (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN107343220B (en) Data processing method and device and terminal equipment
CN104620235B (en) For the section boundary in adaptive crossfire and the system and method for identification
CN106791937B (en) Video image annotation method and system
JP2021518694A (en) Methods and devices for coding / decoding point clouds that represent 3D objects
CN104966115A (en) Method for filling two-dimensional code through image
TW411715B (en) Pixel colour value encoding and decoding
CN103632179B (en) Code And Decode method and the device of Three-Dimensional Bar Code
CN104837031B (en) A kind of method of high-speed adaptive extraction key frame of video
CN103702133A (en) Image compression display method and image compression display device
CN104243920A (en) Image stitching method and device based on basic stream video data packaging
CN105430534A (en) Intelligent device reporting data method and system
CN103632180A (en) Dynamic electronic bar code
CN106656195A (en) Data compression decompression method and data compression decompression system
US20160149667A1 (en) Information processing apparatus, information processing method, and program
CN104486625A (en) Video coding method used for SVAC standard
CN104159116A (en) Method of adding face recognition information into H264 video stream
CN106604032B (en) Method and device for compressing Chinese character blocks in image and method and device for compressing image
CN108184101B (en) Apparatus and method for processing video
CN104754341A (en) Video data encoding and decoding method and device
CN112672154A (en) Live video playing method and device, server and computer readable storage medium
CN110636334B (en) Data transmission method and system
CN104835185A (en) Method for encoding and decoding three-dimensional code and multimedia transmission system
CN111091178A (en) Porcelain bottle crack identification method based on convolutional neural network
CN114598834A (en) Video processing method and device, electronic equipment and readable storage medium
CN103118250B (en) A kind of decoding method and device of frame in division symbolizing

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

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.

TA01 Transfer of patent application right
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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant