[go: up one dir, main page]

CN101577823B - Video encoding method and encoding system, and camera device with video encoding function - Google Patents

Video encoding method and encoding system, and camera device with video encoding function Download PDF

Info

Publication number
CN101577823B
CN101577823B CN 200810097034 CN200810097034A CN101577823B CN 101577823 B CN101577823 B CN 101577823B CN 200810097034 CN200810097034 CN 200810097034 CN 200810097034 A CN200810097034 A CN 200810097034A CN 101577823 B CN101577823 B CN 101577823B
Authority
CN
China
Prior art keywords
original image
frame
current
histogram
threshold value
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.)
Expired - Fee Related
Application number
CN 200810097034
Other languages
Chinese (zh)
Other versions
CN101577823A (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.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN 200810097034 priority Critical patent/CN101577823B/en
Publication of CN101577823A publication Critical patent/CN101577823A/en
Application granted granted Critical
Publication of CN101577823B publication Critical patent/CN101577823B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to a video coding method, a video coding system and a camera with video coding function. The video coding method comprises the following steps: a reference pixel data and a reference histogram data are generated. Then, a current pixel data and a current histogram data are generated. Then, a normalized pixel difference value is calculated, whether the pixel difference value is larger than or equal to a first threshold value is judged, and if yes, the in-frame coding is carried out. Then, a normalized histogram difference value is calculated, whether the histogram difference value is larger than or equal to a second threshold value is judged, and if yes, the intra-frame coding is carried out. Then, whether the number of macro blocks is greater than a third threshold is calculated. Then, when the number of macro blocks is larger than the third threshold, the intra-frame coding is performed, and conversely, the inter-frame coding is performed. The invention determines each current original image to be compressed into I or P frame in advance, which can effectively reduce the system operation load, especially when the scene conversion between the reference original image and the current original image is included.

Description

视讯编码方法及编码系统与具有视讯编码功能的摄影装置 Video coding method and coding system and camera device with video coding function

技术领域technical field

本发明涉及一种视讯编码方法及其编码系统与具有视讯编码功能的摄影装置,特别是涉及一种可有效减少系统运算负荷,适用于大量分镜转换的视讯编码方法及编码系统与具有视讯编码功能的摄影装置。 The present invention relates to a video coding method and its coding system and a photographing device with video coding function, in particular to a video coding method and coding system which can effectively reduce system computing load and is suitable for a large number of split-mirror conversions and has video coding functional photographic device. the

背景技术Background technique

视讯编码在嵌式系统(Embedded System,又称嵌入式系统)中,和一般的电脑系统相较下,在影像压缩时所需的能量非常惊人,尤其是在一执行运动估计(Motion Estimation)的计算模组。所谓的运动估计,是为了影像压缩的目的,将连续的原始影像(Raw Image)进行处理以去除时间上的冗余性(Temporal Redundancy)。执行运动估计的计算模组可以分析每一个原始影像,决定原始影像要利用框内编码(Intra Frame Encoding)压缩成I讯框(IFrame)或者是利用框间编码(Inter Frame Encoding)压缩成P讯框(PFrame),其中I讯框是由原始影像单独压缩而成,而P讯框则是舍弃对应的原始影像,改以预测的方式重新编码,如此,连续的I讯框及P讯框重制出和连续原始影像极为相似的视讯,可以大幅去除连续原始影像在时间上的冗余性,达到影像压缩的功效。 Video coding in an embedded system (Embedded System, also known as an embedded system), compared with a general computer system, the energy required for image compression is amazing, especially in a motion estimation (Motion Estimation) Calculation module. The so-called motion estimation is to process the continuous original image (Raw Image) to remove temporal redundancy (Temporal Redundancy) for the purpose of image compression. The calculation module that performs motion estimation can analyze each original image and decide whether the original image should be compressed into an I frame (IFrame) using intra frame encoding (Intra Frame Encoding) or compressed into a P frame using inter frame encoding (Inter Frame Encoding) Frame (PFrame), where the I frame is compressed from the original image alone, and the P frame is to discard the corresponding original image and re-encode it in a predictive way. In this way, the continuous I frame and P frame Creating a video that is very similar to the continuous original image can greatly remove the temporal redundancy of the continuous original image and achieve the effect of image compression. the

利用上述现有的运动估计的计算模组,虽然可有效地压缩连续影像,但是当其中一原始影像及下一原始影像间发生分镜转换(Shot Change)时,执行运动估计的计算模组,仍需完整地分析原始影像的内容,以决定原始影像要压缩成I讯框或P讯框,而无法有效率地依据下一原始影像与上一原始影像的差异性而快速地认定下一原始影像应该压缩为I讯框。 Using the above-mentioned existing calculation module for motion estimation, although continuous images can be effectively compressed, when a shot change occurs between one original image and the next original image, the calculation module for motion estimation is executed, It is still necessary to fully analyze the content of the original image to determine whether the original image should be compressed into an I frame or a P frame, and it is impossible to efficiently identify the next original image based on the difference between the next original image and the previous original image. Images should be compressed into I-frames. the

如上所述,为避免嵌式系统执行大量的运动估计,以提升嵌式系统整体的运作效能,因此有必要寻求解决的方法。 As mentioned above, in order to prevent the embedded system from performing a large amount of motion estimation and improve the overall operating performance of the embedded system, it is necessary to find a solution. the

有鉴于上述现有技术存在的问题,本发明人基于从事此类产品设计制造多年丰富的实务经验及专业知识,并配合学理的运用,积极加以研究创新,以期创设一种新的视讯编码方法及编码系统与具有视讯编码功能的摄影装置,使其更具有实用性。经过不断的研究、设计,并经反复试作及改进后,终于创设出确具实用价值的本发明。 In view of the problems existing in the above-mentioned prior art, the present inventor, based on years of rich practical experience and professional knowledge engaged in the design and manufacture of such products, combined with the application of academic theory, actively researched and innovated, in order to create a new video encoding method and The encoding system and the camera device with video encoding function make it more practical. Through continuous research, design, and after repeated trials and improvements, the present invention with practical value is finally created. the

发明内容Contents of the invention

本发明的主要目的在于,提供一种视讯编码方法。 The main purpose of the present invention is to provide a video coding method. the

本发明的另一目的在于,提供一种视讯编码系统。 Another object of the present invention is to provide a video encoding system. the

本发明的再一目的在于,提供一种具有视讯编码功能的摄影装置。 Another object of the present invention is to provide a photographing device with a video encoding function. the

本发明的目的及解决其技术问题是采用以下技术方案来实现的。依据本发明提出的一种视讯编码方法,其包含以下步骤:(a).提取一参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料;(b).提取一现行原始影像的多数条扫描线的多数个像素,产生一现行像素资料及一现行直方图资料;(c).依据该现行像素资料及该参考像素资料计算出一正规化的像素差值,再判断该像素差值是否大于等于一第一门限值,若是,则设定对该现行原始影像进行框内编码;(d).若该像素差值小于该第一门限值,则依据该现行直方图资料及该参考直方图资料计算出一正规化的直方图差值,再判断该直方图差值是否大于等于一第二门限值,若是,则设定对该现行原始影像进行框内编码;(e).若该直方图差值小于该第二门限值,则计算该现行原始影像的多数个巨集块预定进行框内编码的数量为一巨集块数量,并在计算该巨集块数量的同时,即时地判断该巨集块数量是否大于一第三门限值;以及(f).当该巨集块数量大于该第三门限值时,则设定对该现行原始影像进行框内编码,相反地,则设定对该现行原始影像进行框间编码。 The purpose of the present invention and the solution to its technical problems are achieved by adopting the following technical solutions. According to a video encoding method proposed by the present invention, it includes the following steps: (a). Extracting a plurality of pixels of a plurality of scanning lines of a reference original image to generate a reference pixel data and a reference histogram data; (b) .Extract a plurality of pixels of a plurality of scanning lines of a current original image to generate a current pixel data and a current histogram data; (c). Calculate a normalized pixel difference based on the current pixel data and the reference pixel data Value, and then judge whether the pixel difference is greater than or equal to a first threshold value, if so, set the frame encoding of the current original image; (d). If the pixel difference is less than the first threshold value, Calculate a normalized histogram difference based on the current histogram data and the reference histogram data, and then determine whether the histogram difference is greater than or equal to a second threshold value, and if so, set the current original The image is encoded in the frame; (e). If the histogram difference is less than the second threshold value, then calculate the number of macroblocks scheduled to be encoded in the frame of the current original image as the number of macroblocks, And while calculating the number of the macroblocks, judge whether the number of the macroblocks is greater than a third threshold value in real time; and (f). When the number of the macroblocks is greater than the third threshold value, set Intra-frame encoding is performed on the current original image, and on the contrary, inter-frame encoding is performed on the current original image. the

本发明的目的及解决其技术问题还可采用以下技术措施进一步实现。 The purpose of the present invention and its technical problems can also be further realized by adopting the following technical measures. the

前述的视讯编码方法,其中所述的(a)步骤及(b)步骤中,该参考原始影像中被提取的扫描线的数量为3至8条,且该现行原始影像中被提取的扫描线的数量依据该参考原始影像中被提取的扫描线的数量,对应地设为3至8条。 In the aforementioned video coding method, in the (a) step and (b) step, the number of scanned lines extracted in the reference original image is 3 to 8, and the extracted scan lines in the current original image The number of is set to 3 to 8 correspondingly according to the number of scanned lines extracted in the reference original image. the

前述的视讯编码方法,其中所述的(c)步骤中,该第一门限值设为0.4至0.6。 In the aforementioned video coding method, in the step (c), the first threshold is set to 0.4 to 0.6. the

前述的视讯编码方法,其中所述的(d)步骤中,该第二门限值设为0.7至0.9。 In the aforementioned video coding method, in the step (d), the second threshold is set to 0.7 to 0.9. the

前述的视讯编码方法,其中所述的(e)步骤中,该第三门限值=所述巨集块的总数-(一基本巨集块的数量+该基本巨集块的数量×该正规化的直方图差值)。 The aforementioned video coding method, wherein in the (e) step, the third threshold value=the total number of the macro blocks-(the number of a basic macro block+the number of the basic macro blocks×the regular histogram difference). the

本发明的目的及解决其技术问题还采用以下技术方案来实现。依据本发明提出的一种视讯编码系统,用以压缩多数个连续的原始影像,并包含一输入单元,该输入单元依序接收其中一原始影像为一参考原始影像,及连续的下一原始影像为一现行原始影像,该视讯编码系统还包含:一判断单元,用以决定该现行原始影像应以框内编码或框间编码压缩,该判断单元包括:一提取模组,是用以提取该参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料,另外,提取该现行原始影像 的多数条扫描线的多数个像素,是产生一现行像素资料及一现行直方图资料;一像素差值判别模组,用以将该现行像素资料减去该参考像素资料产生一像素差值并正规化,再判断该像素差值是否大于等于一第一门限值,若是,则设定对该现行原始影像进行框内编码;一直方图差值判别模组,用以将该现行直方图资料减去该参考直方图资料产生一直方图差值并且正规化,再判断该直方图差值是否大于等于一第二门限值,若是,则设定对该现行原始影像进行框内编码;及一运动估计判别模组,计算该现行原始影像的多数个巨集块预定进行框内编码的数量为一巨集块数量,并在计算该巨集块数量的同时,即时地判断该巨集块数量是否大于一第三门限值,当该巨集块数量大于该第三门限值时,则设定对该现行原始影像进行框内编码,相反地,则设定对该现行原始影像进行框间编码;一框内编码单元,用以压缩该设定为进行框内编码的现行原始影像为一I讯框;一框间编码单元,用以计算该设定为进行框间编码的现行原始影像为一P讯框;以及一输出单元,用以将压缩为I讯框及P讯框的原始影像顺序地输出为一视讯的位元流。 The purpose of the present invention and the solution to its technical problem also adopt the following technical solutions to achieve. A video coding system proposed according to the present invention is used to compress a plurality of continuous original images, and includes an input unit, which sequentially receives one of the original images as a reference original image, and the next continuous original image For a current original image, the video encoding system also includes: a judging unit, used to determine whether the current original image should be compressed by intra-frame coding or inter-frame coding, and the judging unit includes: an extraction module, used to extract the Referring to multiple pixels of multiple scan lines of the original image to generate a reference pixel data and a reference histogram data, in addition, extracting multiple pixels of multiple scan lines of the current original image is to generate a current pixel data and a Current histogram data; a pixel difference judgment module, used to subtract the reference pixel data from the current pixel data to generate a pixel difference and normalize it, and then judge whether the pixel difference is greater than or equal to a first threshold value , if so, set the current original image to be encoded in the frame; the histogram difference discrimination module is used to subtract the reference histogram data from the current histogram data to generate a histogram difference value and normalize it, Then judge whether the histogram difference value is greater than or equal to a second threshold value, if so, then set the frame encoding of the current original image; and a motion estimation discrimination module to calculate a plurality of macros of the current original image The number of blocks scheduled to be encoded in the frame is the number of a macroblock, and while calculating the number of macroblocks, it is judged in real time whether the number of macroblocks is greater than a third threshold value, when the number of macroblocks is greater than When the third threshold value is reached, it is set to perform intra-frame encoding on the current original image, and on the contrary, it is set to perform inter-frame encoding on the current original image; an intra-frame encoding unit is used to compress the set as The current original image for intra-frame encoding is an I frame; an inter-frame encoding unit is used to calculate the current original image set for inter-frame encoding as a P frame; and an output unit is used for compressing The raw images of the I frame and the P frame are sequentially output as a video bit stream. the

本发明的目的及解决其技术问题还可采用以下技术措施进一步实现。 The purpose of the present invention and its technical problems can also be further realized by adopting the following technical measures. the

前述的视讯编码系统,其中所述的判断单元的提取模组设定该参考原始影像中被提取的扫描线的数量为3至8条,且该现行原始影像中被提取的扫描线的数量依据该参考原始影像中被提取的扫描线的数量,对应地设为3至8条。 In the aforementioned video coding system, the extraction module of the judging unit sets the number of extracted scan lines in the reference original image to 3 to 8, and the number of extracted scan lines in the current original image is based on The number of scanned lines extracted from the reference original image is correspondingly set to 3 to 8. the

前述的视讯编码系统,其中所述的判断单元的像素差值判别模组设定该第一门限值设为0.4至0.6。 In the aforementioned video coding system, the pixel difference judging module of the judging unit sets the first threshold to 0.4 to 0.6. the

前述的视讯编码系统,其中所述的判断单元的直方图差值判别模组设定该第二门限值设为0.7至0.9。 In the aforementioned video coding system, the histogram difference judging module of the judging unit sets the second threshold to 0.7 to 0.9. the

前述的视讯编码系统,其中所述的判断单元的运动估计判别模组设定该第三门限值=所述巨集块的总数-(一基本巨集块的数量+该基本巨集块的数量×该正规化的直方图差值)。 The aforementioned video coding system, wherein the motion estimation judgment module of the judging unit sets the third threshold value=the total number of the macroblocks-(the number of a basic macroblock+the number of the basic macroblock amount × the normalized histogram difference). the

本发明的目的及解决其技术问题另外还采用以下技术方案来实现。依据本发明提出的一种具有视讯编码功能的摄影装置,包含一摄像单元及一输入单元,该摄像单元是用以记录多数个连续的原始影像,该输入单元依序接收其中一原始影像为一参考原始影像,及连续的下一原始影像为一现行原始影像,该具有视讯编码功能的摄影装置还包含:一判断单元,用以决定该现行原始影像应以框内编码或框间编码压缩,该判断单元包括:一提取模组,用以提取该参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料,另外,提取该现行原始影像的多数条扫描线的多数个像素,产生一现行像素资料及一现行直方图资料;一像素差 值判别模组,用以将该现行像素资料减去该参考像素资料产生一像素差值并正规化,再判断该像素差值是否大于等于一第一门限值,若是,则设定对该现行原始影像进行框内编码;一直方图差值判别模组,用以将该现行直方图资料减去该参考直方图资料产生一直方图差值并正规化,再判断该直方图差值是否大于等于一第二门限值,若是,则设定对该现行原始影像进行框内编码;及一运动估计判别模组,计算该现行原始影像的多数个巨集块预定进行框内编码的数量为一巨集块数量,并在计算该巨集块数量的同时,即时地判断该巨集块数量是否大于一第三门限值,当该巨集块数量大于该第三门限值时,则设定对该现行原始影像进行框内编码,相反地,则设定对该现行原始影像进行框间编码;一框内编码单元,用以压缩该设定为进行框内编码的现行原始影像为一I讯框;一框间编码单元,用以计算该设定为进行框间编码的现行原始影像为一P讯框;一输出单元,用以将压缩为I讯框及P讯框的原始影像顺序地输出为一视讯的位元流;以及一储存单元,用以储存该视讯的位元流。 The purpose of the present invention and the solution to its technical problems are also achieved by the following technical solutions. According to the present invention, a camera device with video encoding function includes a camera unit and an input unit, the camera unit is used to record a plurality of continuous original images, and the input unit receives one of the original images sequentially as a Referring to the original image, and the next continuous original image is a current original image, the photography device with video coding function also includes: a judging unit for determining whether the current original image should be compressed by intra-frame coding or inter-frame coding, The judging unit includes: an extraction module for extracting a plurality of pixels of a plurality of scan lines of the reference original image, generating a reference pixel data and a reference histogram data, and extracting a plurality of scan lines of the current original image A plurality of pixels of the line to generate a current pixel data and a current histogram data; a pixel difference judgment module, used to subtract the reference pixel data from the current pixel data to generate a pixel difference and normalize it, and then judge Whether the pixel difference value is greater than or equal to a first threshold value, if so, set the current original image to be encoded in the frame; a histogram difference value judgment module is used to subtract the reference from the current histogram data The histogram data generates a histogram difference and normalizes it, and then judges whether the histogram difference is greater than or equal to a second threshold value, and if so, sets the current original image to be encoded in a frame; and a motion estimation judgment A module that calculates the number of macroblocks scheduled to be encoded in the frame of the current original image as the number of macroblocks, and while calculating the number of macroblocks, immediately judges whether the number of macroblocks is greater than one A third threshold value, when the number of macroblocks is greater than the third threshold value, it is set to perform intra-frame coding on the current original image, and on the contrary, it is set to perform inter-frame coding on the current original image; An intra-frame coding unit is used to compress the current original image set for intra-frame coding into an I frame; an inter-frame coding unit is used to calculate the current original image set for inter-frame coding as an I frame P frame; an output unit for sequentially outputting the original image compressed into I frame and P frame as a video bit stream; and a storage unit for storing the video bit stream. the

本发明的目的及解决其技术问题还可采用以下技术措施进一步实现。 The purpose of the present invention and its technical problems can also be further realized by adopting the following technical measures. the

前述的具有视讯编码功能的摄影装置,其中所述的判断单元的提取模组设定该参考原始影像中被提取的扫描线的数量为3至8条,且该现行原始影像中被提取的扫描线的数量依据该参考原始影像中被提取的扫描线的数量,对应地设为3至8条。 In the aforementioned camera device with video coding function, the extraction module of the judging unit sets the number of extracted scan lines in the reference original image to 3 to 8, and the extracted scan lines in the current original image The number of lines is correspondingly set to 3 to 8 according to the number of scanned lines extracted from the reference original image. the

前述的具有视讯编码功能的摄影装置,其中所述的判断单元的像素差值判别模组设定该第一门限值设为0.4至0.6。 In the aforementioned camera device with video coding function, the pixel difference judgment module of the judging unit sets the first threshold to 0.4 to 0.6. the

前述的具有视讯编码功能的摄影装置,其中所述的判断单元的直方图差值判别模组设定该第二门限值设为0.7至0.9。 In the aforementioned camera device with video encoding function, wherein the histogram difference judgment module of the judging unit sets the second threshold to 0.7 to 0.9. the

前述的具有视讯编码功能的摄影装置,其中所述的判断单元的运动估计判别模组设定该第三门限值=所述巨集块的总数-(一基本巨集块的数量+该基本巨集块的数量×该正规化的直方图差值)。 The aforementioned camera device with video coding function, wherein the motion estimation judgment module of the judging unit sets the third threshold value=the total number of the macroblocks-(the number of a basic macroblock+the basic The number of macro blocks × the normalized histogram difference). the

本发明与现有技术相比具有明显的优点和有益效果。由以上技术方案可知,本发明的主要技术内容如下: Compared with the prior art, the present invention has obvious advantages and beneficial effects. As can be seen from above technical scheme, main technical contents of the present invention are as follows:

本发明的一种视讯编码方法,包含下列的步骤:提取一参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料。然后,提取一现行原始影像的多数条扫描线的多数个像素,产生一现行像素资料及一现行直方图资料。接着,依据该现行像素资料及该参考像素资料计算出一正规化的像素差值,再判断像素差值是否大于等于一第一门限值,若是,则设定对现行原始影像进行框内编码。若该像素差值小于该第一门限值,则依据该现行直方图资料及该参考直方图资料计算出一正规化的直方图差值,再判断直方图差值是否大于等于一第二门限值,若是,则设定对现 行原始影像进行框内编码。若该直方图差值小于该第二门限值,则计算现行原始影像的多数个巨集块预定进行框内编码的数量为一巨集块数量,并在计算巨集块数量的同时,即时地判断巨集块数量是否大于一第三门限值。然后,当巨集块数量大于第三门限值时,则设定对现行原始影像进行框内编码,相反地,则设定对现行原始影像进行框间编码。 A video encoding method of the present invention includes the following steps: extracting a plurality of pixels of a plurality of scanning lines of a reference original image, and generating a reference pixel data and a reference histogram data. Then, a plurality of pixels of a plurality of scanning lines of a current original image are extracted to generate a current pixel data and a current histogram data. Next, calculate a normalized pixel difference value based on the current pixel data and the reference pixel data, and then determine whether the pixel difference value is greater than or equal to a first threshold value, and if so, set the current original image to perform in-frame coding . If the pixel difference is less than the first threshold value, calculate a normalized histogram difference based on the current histogram data and the reference histogram data, and then determine whether the histogram difference is greater than or equal to a second threshold If it is the limit value, it is set to perform in-frame encoding on the current original image. If the histogram difference is less than the second threshold value, calculate the number of macroblocks scheduled to be frame-coded in the current original image as the number of macroblocks, and while calculating the number of macroblocks, immediately It is judged whether the number of macroblocks is greater than a third threshold. Then, when the number of macroblocks is greater than the third threshold, it is set to perform intra-frame encoding on the current original image, and on the contrary, it is set to perform inter-frame encoding on the current original image. the

本发明的一种视讯编码系统,用以压缩多数个连续的原始影像,其包含:一输入单元、一判断单元、一框内编码单元、一框间编码单元,以及一输出单元。输入单元依序接收其中一原始影像为一参考原始影像,及连续的下一原始影像为一现行原始影像。判断单元用以决定现行原始影像应以框内编码或框间编码压缩,并包括:一提取模组、一像素差值判别模组、一直方图差值判别模组及一运动估计判别模组。提取模组用以提取参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料,另外,提取现行原始影像的多数条扫描线的多数个像素,产生一现行像素资料及一现行直方图资料。像素差值判别模组用以将现行像素资料减去参考像素资料产生一像素差值并正规化,再判断像素差值是否大于等于一第一门限值,若是,则设定对现行原始影像进行框内编码。直方图差值判别模组用以将现行直方图资料减去参考直方图资料产生一直方图差值并正规化,再判断直方图差值是否大于等于一第二门限值,若是,则设定对现行原始影像进行框内编码。运动估计判别模组计算现行原始影像的多数个巨集块预定进行框内编码的数量为一巨集块数量,并在计算巨集块数量的同时,即时地判断巨集块数量是否大于一第三门限值,当巨集块数量大于第三门限值时,则设定对现行原始影像进行框内编码,相反地,则设定对现行原始影像进行框间编码。框内编码单元用以压缩该设定为进行框内编码的现行原始影像为一I讯框。框间编码单元用以计算该设定为进行框间编码的现行原始影像为一P讯框。输出单元用以将压缩为I讯框及P讯框的原始影像顺序地输出为一视讯的位元流。 A video encoding system of the present invention is used to compress a plurality of continuous original images, which includes: an input unit, a judging unit, an intra-frame encoding unit, an inter-frame encoding unit, and an output unit. The input unit sequentially receives one of the original images as a reference original image, and the next consecutive original image as a current original image. The judgment unit is used to determine whether the current original image should be compressed by intra-frame coding or inter-frame coding, and includes: an extraction module, a pixel difference judgment module, a histogram difference judgment module and a motion estimation judgment module . The extracting module is used to extract a plurality of pixels of a plurality of scanning lines of the reference original image to generate a reference pixel data and a reference histogram data; in addition, extract a plurality of pixels of a plurality of scanning lines of the current original image to generate a current Pixel data and a current histogram data. The pixel difference judgment module is used to subtract the current pixel data from the reference pixel data to generate a pixel difference and normalize it, and then judge whether the pixel difference is greater than or equal to a first threshold value, and if so, set the current original image In-frame encoding. The histogram difference discrimination module is used to subtract the reference histogram data from the current histogram data to generate a histogram difference value and normalize it, and then judge whether the histogram difference value is greater than or equal to a second threshold value, and if so, set It is specified to perform in-frame encoding on the current original image. The motion estimation and discrimination module calculates the number of macroblocks scheduled to be encoded in the frame of the current original image as a macroblock number, and while calculating the macroblock number, it immediately judges whether the macroblock number is greater than a first Three thresholds, when the number of macroblocks is greater than the third threshold, it is set to perform intra-frame coding on the current original image, otherwise, it is set to perform inter-frame coding on the current original image. The intra-frame coding unit is used for compressing the current original image set for intra-frame coding into an I frame. The inter-frame coding unit is used to calculate the current original image set for inter-frame coding as a P frame. The output unit is used for sequentially outputting the original images compressed into I frame and P frame into a video bit stream. the

本发明的一种具有视讯编码功能的摄影装置,包含:一摄像单元、一输入单元、一判断单元、一框内编码单元、一框间编码单元、一输出单元及一储存单元。摄像单元用以记录多数个连续的原始影像。输入单元依序接收其中一原始影像为一参考原始影像,及连续的下一原始影像为一现行原始影像。判断单元用以决定现行原始影像应以框内编码或框间编码压缩,该判断单元包括:一提取模组、一像素差值判别模组、一直方图差值判别模组及一运动估计判别模组。提取模组用以提取参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料,另外,提取现行原始影像的多数条扫描线的多数个像素,产生一现行像素资料及一现行直方图资料。像素差值判别模组用以将现行像素资料减去参考像素资料产 生一像素差值并正规化,再判断像素差值是否大于等于一第一门限值,若是,则设定对现行原始影像进行框内编码。直方图差值判别模组用以将现行直方图资料减去参考直方图资料产生一直方图差值并正规化,再判断直方图差值是否大于等于一第二门限值,若是,则设定对现行原始影像进行框内编码。运动估计判别模组计算现行原始影像的多数个巨集块预定进行框内编码的数量为一巨集块数量,并于计算巨集块数量的同时,即时地判断巨集块数量是否大于一第三门限值,当巨集块数量大于第三门限值时,则设定对现行原始影像进行框内编码,相反地,则设定对现行原始影像进行框间编码。框内编码单元用以压缩该设定为进行框内编码的现行原始影像为一I讯框。框间编码单元用以计算该设定为进行框间编码的现行原始影像为一P讯框。输出单元用以将压缩为I讯框及P讯框的原始影像顺序地输出为一视讯的位元流。储存单元用以储存该视讯的位元流。 A camera device with video encoding function of the present invention includes: a camera unit, an input unit, a judgment unit, an intra-frame encoding unit, an inter-frame encoding unit, an output unit and a storage unit. The camera unit is used for recording a plurality of continuous original images. The input unit sequentially receives one of the original images as a reference original image, and the next consecutive original image as a current original image. The judging unit is used to determine whether the current original image should be compressed by intra-frame coding or inter-frame coding. The judging unit includes: an extraction module, a pixel difference judgment module, a histogram difference judgment module and a motion estimation judgment module mod. The extracting module is used to extract a plurality of pixels of a plurality of scanning lines of the reference original image to generate a reference pixel data and a reference histogram data; in addition, extract a plurality of pixels of a plurality of scanning lines of the current original image to generate a current Pixel data and a current histogram data. The pixel difference discrimination module is used to subtract the current pixel data from the reference pixel data to generate a pixel difference and normalize it, and then judge whether the pixel difference is greater than or equal to a first threshold value, and if so, set the current original The image is frame coded. The histogram difference discrimination module is used to subtract the reference histogram data from the current histogram data to generate a histogram difference value and normalize it, and then judge whether the histogram difference value is greater than or equal to a second threshold value, and if so, set It is specified to perform in-frame encoding on the current original image. The motion estimation and discrimination module calculates the number of macroblocks scheduled to be encoded in the frame of the current original image as a macroblock number, and while calculating the macroblock number, it immediately judges whether the macroblock number is greater than a first Three thresholds, when the number of macroblocks is greater than the third threshold, it is set to perform intra-frame coding on the current original image, otherwise, it is set to perform inter-frame coding on the current original image. The intra-frame coding unit is used for compressing the current original image set for intra-frame coding into an I frame. The inter-frame coding unit is used to calculate the current original image set for inter-frame coding as a P frame. The output unit is used for sequentially outputting the original images compressed into I frame and P frame into a video bit stream. The storage unit is used for storing the bit stream of the video. the

借由上述技术方案,本发明视讯编码方法及编码系统与具有视讯编码功能的摄影装置至少具有下列优点及有益效果:本发明提早决定每一现行原始影像应压缩为I讯框或P讯框,可以有效的减少系统的运算负荷,特别是当参考原始影像及现行原始影像间包括场景转换时,其效果更为显著。 By means of the above-mentioned technical solution, the video coding method and coding system of the present invention and the camera device with video coding function have at least the following advantages and beneficial effects: the present invention determines in advance that each current original image should be compressed into an I frame or a P frame, It can effectively reduce the computing load of the system, especially when the scene transition is included between the reference original image and the current original image, the effect is more remarkable. the

综上所述,本发明是有关于一种视讯编码方法及其编码系统与具有视讯编码功能的摄影装置。该视讯编码方法,包含步骤:产生一参考像素资料与一参考直方图资料。然后,产生一现行像素资料及一现行直方图资料。接着,计算出一正规化的像素差值,再判断像素差值是否大于等于一第一门限值,若是,则进行框内编码。然后,计算出一正规化的直方图差值,再判断直方图差值是否大于等于一第二门限值,若是,则进行框内编码。接着,计算一巨集块数量是否大于一第三门限值。然后,当巨集块数量大于该第三门限值时,则进行框内编码,相反地,则进行框间编码。本发明确能提供一种适于实用的视讯编码方法,在执行运动估计前,利用本发明的视讯编码方法提早判断每一现行原始影像应压缩为I讯框或P讯框,确能有效减少嵌式系统的运算负荷,特别是当参考原始影像及现行原始影像间包括大量的场景转换时效果更为明显。本发明具有上述诸多优点及实用价值,其不论在方法、产品结构或功能上皆有较大改进,在技术上有显著的进步,并产生了好用及实用的效果,从而更加适于实用,诚为一新颖、进步、实用的新设计。 To sum up, the present invention relates to a video encoding method, its encoding system, and a photographing device with video encoding function. The video coding method includes the steps of: generating a reference pixel data and a reference histogram data. Then, generate a current pixel data and a current histogram data. Next, a normalized pixel difference is calculated, and then it is judged whether the pixel difference is greater than or equal to a first threshold value, and if so, intra-frame encoding is performed. Then, calculate a normalized histogram difference, and then judge whether the histogram difference is greater than or equal to a second threshold value, and if so, perform intra-frame coding. Next, it is calculated whether the number of a macro block is greater than a third threshold. Then, when the number of macroblocks is greater than the third threshold, intra-frame coding is performed, and on the contrary, inter-frame coding is performed. The present invention can clearly provide a suitable and practical video coding method. Before performing motion estimation, the video coding method of the present invention can be used to judge in advance that each current original image should be compressed into an I frame or a P frame, which can effectively reduce the The computational load of the embedded system is especially significant when the reference original image and the current original image involve a large number of scene transitions. The present invention has the above-mentioned many advantages and practical value, it has great improvement no matter in method, product structure or function, has significant progress in technology, and has produced easy-to-use and practical effect, thus is more suitable for practical use, Honesty is a novel, progressive and practical new design. the

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。 The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the following preferred embodiments are specifically cited below, and are described in detail as follows in conjunction with the accompanying drawings. the

附图说明Description of drawings

图1是说明本发明的具有视讯编码功能的摄影装置较佳实施例的系统方块图。 FIG. 1 is a system block diagram illustrating a preferred embodiment of a photographing device with a video encoding function of the present invention. the

图2是说明较佳实施例的多数条扫描线的画面示意图。 FIG. 2 is a schematic diagram illustrating a plurality of scan lines in a preferred embodiment. the

图3是说明较佳实施例的运作流程的流程图。 Fig. 3 is a flowchart illustrating the operation flow of the preferred embodiment. the

图4是说明本发明的视讯编码方法较佳实施例的流程图。 FIG. 4 is a flowchart illustrating a preferred embodiment of the video encoding method of the present invention. the

具体实施方式Detailed ways

为了更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明提出的视讯编码方法及编码系统与具有视讯编码功能的摄影装置其具体实施方式、方法、步骤、结构特征及其功效,详细说明如后。 In order to further explain the technical means and effects of the present invention to achieve the intended purpose of the invention, below in conjunction with the accompanying drawings and preferred embodiments, the video coding method and coding system proposed according to the present invention and the photographing device with video coding function are described below. Specific embodiments, methods, steps, structural features and effects thereof are described in detail below. the

有关本发明的前述及其他技术内容、特点及功效,在以下配合参考图式的较佳实施例的详细说明中将可清楚呈现。通过具体实施方式的说明,当可对本发明为达成预定目的所采取的技术手段及功效得一更加深入且具体的了解,然而所附图式仅是提供参考与说明之用,并非用来对本发明加以限制。 The aforementioned and other technical contents, features and effects of the present invention will be clearly presented in the following detailed description of preferred embodiments with reference to the drawings. Through the description of the specific implementation mode, when the technical means and functions adopted by the present invention to achieve the predetermined purpose can be obtained a deeper and more specific understanding, but the accompanying drawings are only for reference and description, and are not used to explain the present invention be restricted. the

请参阅图1所示,是说明本发明的具有视讯编码功能的摄影装置较佳实施例的系统方块图。本发明较佳实施例的视讯编码系统1,是以一集成电路(Integrated Circuit,IC)晶片实施,适用于装置在一需要具备视讯编码功能的摄影装置上,但是并不限于此,也可以应用于任何需视讯编码功能的电子装置上。其中,摄影装置包含一摄像单元2及一储存单元3,摄像单元2在本较佳实施例中包括一镜头模组(图未示),用以在拍摄后取得多数个连续的原始影像(Raw Image),而储存单元3用以储存一经过编码系统1处理后的视讯的位元流(Bit Stream)。若摄影装置为一具有记录性质的摄影机,则储存单元3可长时间记录视讯的位元流。若摄影装置为一具有传输性质,如应用于视讯会议的视讯伺服装置,则储存单元3可暂时记录视讯的位元流,再通过一网际网路将位元流传送至至少一接收用的视讯终端装置。 Please refer to FIG. 1 , which is a system block diagram illustrating a preferred embodiment of the camera device with video encoding function of the present invention. The video coding system 1 of the preferred embodiment of the present invention is implemented with an integrated circuit (Integrated Circuit, IC) chip, and is suitable for installation on a camera device that needs to have a video coding function, but it is not limited to this, and can also be used On any electronic device that requires video encoding capabilities. Wherein, the photography device includes a camera unit 2 and a storage unit 3, and the camera unit 2 includes a lens module (not shown in the figure) in this preferred embodiment to obtain a plurality of continuous original images (Raw Image), and the storage unit 3 is used to store a video bit stream (Bit Stream) processed by the coding system 1. If the photographing device is a recording camera, the storage unit 3 can record the video bit stream for a long time. If the camera device is a transmission device, such as a video server device used in a video conference, the storage unit 3 can temporarily record the bit stream of the video, and then transmit the bit stream to at least one receiving video through an Internet. terminal device. the

本发明较佳实施例的视讯编码系统1,包含一输入单元11、一判断单元12、一框内编码单元13、一框间编码单元14,以及一输出单元15,并都以电子电路设计制作。 The video coding system 1 of the preferred embodiment of the present invention includes an input unit 11, a judging unit 12, an intra-frame coding unit 13, an inter-frame coding unit 14, and an output unit 15, all of which are designed and manufactured with electronic circuits . the

上述的输入单元11,接收原始影像,并将其中一原始影像设为一参考原始影像,在该参考原始影像后的另一原始影像设为一现行原始影像。 The above-mentioned input unit 11 receives original images, and sets one of the original images as a reference original image, and another original image after the reference original image as a current original image. the

上述的判断单元12,判断每一现行原始影像应该以框内编码压缩成I讯框,或是以框间编码压缩成P讯框。判断单元12包括一提取模组121、一像 素差值判别模组122、一直方图差值判别模组123,及一运动估计判别模组124。 The above-mentioned judging unit 12 judges that each current original image should be compressed into an I frame by intra-frame coding, or be compressed into a P frame by inter-frame coding. The judgment unit 12 includes an extraction module 121, a pixel difference judgment module 122, a histogram difference judgment module 123, and a motion estimation judgment module 124. the

请参阅图1、图2以及图3所示,图2是说明本发明较佳实施例的多数条扫描线的画面示意图,图3是说明本发明较佳实施例的运作流程的流程图。该提取模组121,可提取(Fetch)参考原始影像4的多数条扫描线(ScanLine)41的多数个像素(Pixel),在本较佳实施例中且如图2所示,参考原始影像4的解析度为320像素×240像素,而被提取的扫描线为五条彼此相间隔的水平扫描线41。不提取全部扫描线41的原因是可以大幅节省运算能量并加速判断的效率。提取模组121提取像素后产生一参考像素资料与一参考直方图资料。必须说明的是,参考像素资料是指参考原始影像4的五条扫描线41中,每一像素的三原色:红、绿、蓝(Red、Green、Blue,RGB)的彩色值。而参考直方图资料是指参考原始影像4的五条扫描线41的图形颜色或亮度特征分布的统计直方图。 Please refer to FIG. 1 , FIG. 2 and FIG. 3 . FIG. 2 is a schematic diagram illustrating a plurality of scanning lines in a preferred embodiment of the present invention, and FIG. 3 is a flow chart illustrating the operation process of a preferred embodiment of the present invention. The extracting module 121 can extract (Fetch) a plurality of pixels (Pixel) of a plurality of scanning lines (ScanLine) 41 of the reference original image 4. In this preferred embodiment and as shown in FIG. 2, the reference original image 4 The resolution is 320 pixels×240 pixels, and the extracted scan lines are five horizontal scan lines 41 spaced apart from each other. The reason for not extracting all the scan lines 41 is that the calculation energy can be greatly saved and the efficiency of judgment can be accelerated. The extraction module 121 generates a reference pixel data and a reference histogram data after extracting pixels. It must be noted that the reference pixel data refers to the color values of the three primary colors of each pixel: red, green, blue (Red, Green, Blue, RGB) in the five scan lines 41 of the original image 4 . The reference histogram data refers to the statistical histogram of the graphic color or brightness feature distribution of the five scan lines 41 of the reference original image 4 . the

同理,该提取模组121提取现行原始影像的多数条扫描线的多数个像素,而现行原始影像中被提取的扫描线与上述如图2所示的参考原始影像4的五条水平扫描线41是相互对应的。特别需要说明的是,参考原始影像4的参考像素资料与参考直方图资料,及现行原始影像的现行像素资料与现行直方图资料的提取方式为现有的影像压缩技术,故此不再赘述。 Similarly, the extraction module 121 extracts a plurality of pixels of a plurality of scan lines of the current original image, and the extracted scan lines in the current original image are identical to the five horizontal scan lines 41 of the reference original image 4 as shown in FIG. 2 . are mutually corresponding. It should be noted that the extraction methods of the reference pixel data and the reference histogram data of the reference original image 4 and the current pixel data and current histogram data of the current original image are existing image compression techniques, so details are not repeated here. the

请参阅图1所示,该像素差值判别模组122,依据现行像素资料及参考像素资料计算出一正规化的像素差值(Pixel Difference),其中像素差值正规化后的数值范围是0~1。计算像素差值为现有侦测影像画面变化相关研究中常见的判断方法,并非本发明的重点,故此不再赘述。像素差值判别模组122再判断像素差值是否大于等于一第一门限值,在本较佳实施例中,第一门限值设为0.5。若是,则代表现行原始影像及参考原始影像间的差异性较大,因此判断单元12设定对现行原始影像进行框内编码。若像素差值小于0.5,则像素差值判别模组122将现行原始影像交由直方图差值判别模组123继续处理。 Please refer to FIG. 1, the pixel difference discrimination module 122 calculates a normalized pixel difference (Pixel Difference) based on the current pixel data and reference pixel data, wherein the normalized value range of the pixel difference is 0 ~1. The calculation of the pixel difference value is a common judging method in existing researches related to the detection of image frame change, which is not the focus of the present invention, so it will not be repeated here. The pixel difference judging module 122 then judges whether the pixel difference is greater than or equal to a first threshold. In this preferred embodiment, the first threshold is set to 0.5. If yes, it means that there is a large difference between the current original image and the reference original image, so the judging unit 12 sets to perform intra-frame encoding on the current original image. If the pixel difference is less than 0.5, the pixel difference judging module 122 hands over the current original image to the histogram difference judging module 123 for further processing. the

该直方图差值判别模组123,处理上述像素差值小于0.5的现行原始影像。直方图差值判别模组123依据现行直方图资料及参考直方图资料计算出一正规化的直方图差值(Histogram Difference),其中直方图差值正规化后的数值范围都是0~1。和像素差值相同,计算直方图差值为现有侦测影像画面变化相关研究中常见的判断方法,也非本发明的重点,故此不再赘述。直方图差值判别模组123再判断直方图差值是否大于等于一第二门限值,在本较佳实施例中,第二门限值设为0.8。若是,则代表现行原始影像及参考原始影像间的差异性较大,因此判断单元12设定对现行原始影像进行框内编码。若直方图差值小于0.8,则直方图差值判别模组123将现行原始影像交由运动估计判别模组124继续处理。 The histogram difference discrimination module 123 processes the current original image whose pixel difference is less than 0.5. The histogram difference discrimination module 123 calculates a normalized histogram difference (Histogram Difference) according to the current histogram data and the reference histogram data, wherein the normalized value range of the histogram difference is 0-1. Same as the pixel difference value, the calculation of the histogram difference value is a common judgment method in the existing research on detecting image frame changes, and it is not the focus of the present invention, so it will not be repeated here. The histogram difference judging module 123 then judges whether the histogram difference is greater than or equal to a second threshold. In this preferred embodiment, the second threshold is set to 0.8. If yes, it means that there is a large difference between the current original image and the reference original image, so the judging unit 12 sets to perform intra-frame encoding on the current original image. If the histogram difference is less than 0.8, the histogram difference judging module 123 hands over the current original image to the motion estimation judging module 124 for further processing. the

该运动估计判别模组124,接收上述直方图差值小于0.8的现行原始影像,并计算现行原始影像的多数个巨集块(Macro Block)预定进行框内编码的数量为一巨集块数量,并在计算巨集块数量的同时,即时地判断巨集块数量是否大于等于一第三门限值。举例来说,现行原始影像的巨集块的数量为300,而第三门限值设为200,当运动估计判别模组124计算到现行原始影像的巨集块中第200个预定进行框内编码的巨集块时,则判断单元12设定对现行原始影像预设进行框内编码,相反地,则判断单元12设定对现行原始影像进行框间编码。 The motion estimation discrimination module 124 receives the current original image whose histogram difference value is less than 0.8, and calculates the number of macro blocks (Macro Blocks) of the current original image that are scheduled to be coded in the frame as the number of macro blocks, And while calculating the number of macro blocks, it is judged in real time whether the number of macro blocks is greater than or equal to a third threshold value. For example, the number of macroblocks in the current original image is 300, and the third threshold is set to 200. When the motion estimation determination module 124 calculates the 200th macroblock in the current original image, it is scheduled to be in the frame If the coded macro block is used, the judging unit 12 sets to perform intra-frame encoding on the current original image, and on the contrary, the judging unit 12 sets to perform inter-frame encoding on the current original image. the

必须注意的是,为了达到最佳的运算效能,第三门限值并不限定预设为常数,而可以依据上述直方图差值弹性调整。在本较佳实施例中,第三门限值=巨集块的总数-(一基本巨集块的数量+基本巨集块的数量×该正规化的直方图差值)。例如,巨集块的总数为300个,基本巨集块的数量为100个,而现行原始影像和参考原始影像的正规化的直方图差值为0.6,则第三门限值=300-(100+100×0.6)=140个。其原理在于,若现行原始影像和参考原始影像的直方图差值越高,则代表现行原始影像与参考原始影像的差异性越大,并应该进行框内编码。上述第三门限值的计算方式可以提升运动估计判别模组124判断现行原始影像进行框内编码的效率,大幅增加运算的效能。 It should be noted that, in order to achieve the best computing performance, the third threshold is not limited to be preset as a constant, but can be flexibly adjusted according to the above-mentioned histogram difference. In this preferred embodiment, the third threshold value=the total number of macroblocks-(the number of basic macroblocks+the number of basic macroblocks×the normalized histogram difference). For example, the total number of macroblocks is 300, the number of basic macroblocks is 100, and the normalized histogram difference between the current original image and the reference original image is 0.6, then the third threshold=300-( 100+100×0.6)=140 pieces. The principle is that if the histogram difference between the current original image and the reference original image is higher, it means that the difference between the current original image and the reference original image is greater, and frame encoding should be performed. The above-mentioned calculation method of the third threshold can improve the efficiency of the motion estimation and determination module 124 in determining the current original image for intra-frame coding, and greatly increase the efficiency of calculation. the

上述的框内编码单元13,对判断单元12处理后,且设定为框内编码的现行原始影像施以框内编码的处理。被框内编码的现行原始影像称为I讯框,是一独立压缩的影像讯框。 The above-mentioned intra-frame coding unit 13 performs intra-frame coding on the current original image set as intra-frame coding after processing by the judging unit 12 . The current original image encoded in the frame is called an I frame, which is an independently compressed image frame. the

上述的框间编码单元14,对判断单元12处理后,且设定为框间编码的现行原始影像施以框间编码的处理。被框间编码的现行原始影像称为P讯框,是一利用参考原始影像模拟出的影像讯框,和现行原始影像相比,P讯框所占用的位元数极少。 The above-mentioned inter-frame coding unit 14 performs inter-frame coding on the current original image set as inter-frame coding after processing by the judging unit 12 . The current original image coded between frames is called a P frame, which is an image frame simulated by using a reference original image. Compared with the current original image, the P frame occupies very few bits. the

上述的输出单元15,将已进行框内编码及框间编码的现行原始影像,也就是一连串的I讯框及P讯框顺序地输出为视讯的位元流,以供储存单元3记录。 The above-mentioned output unit 15 sequentially outputs the current original image that has undergone intra-frame coding and inter-frame coding, that is, a series of I frames and P frames, as a video bit stream for storage unit 3 to record. the

请参阅图1、图3所示,本发明较佳实施例的视讯编码方法,适用于安装上述编码系统1的摄影装置上,并包含下列的步骤: Please refer to Fig. 1, shown in Fig. 3, the video coding method of the preferred embodiment of the present invention is applicable to the photography device that above-mentioned coding system 1 is installed, and comprises the following steps:

如步骤51所示,摄像单元2通过镜头模组记录包括连续的原始影像的原始视讯。 As shown in step 51 , the camera unit 2 records the original video including continuous original images through the lens module. the

然后,如步骤52所示,输入单元11依序接收其中一原始影像为参考原始影像,及连续的下一原始影像为现行原始影像。 Then, as shown in step 52 , the input unit 11 sequentially receives one of the original images as the reference original image, and the next continuous original image as the current original image. the

接着,如步骤53所示,判断单元12判断现行原始影像应以框内编码压缩为I讯框,或以框间编码压缩为P讯框,其包括下列子步骤: Next, as shown in step 53, the judging unit 12 judges that the current original image should be compressed into an I frame with intra-frame coding, or compressed into a P frame with inter-frame coding, which includes the following sub-steps:

请参阅图1、图4所示,图4是说明本发明的视讯编码方法较佳实施例的流程图。如子步骤531所示,提取模组121提取参考原始影像的扫描线的像素,产生参考像素资料与参考直方图资料。 Please refer to FIG. 1 and FIG. 4 . FIG. 4 is a flowchart illustrating a preferred embodiment of the video encoding method of the present invention. As shown in sub-step 531 , the extraction module 121 extracts the pixels of the scan line of the reference original image to generate reference pixel data and reference histogram data. the

然后,如子步骤532所示,提取模组121提取现行原始影像的扫描线的像素,产生现行像素资料及现行直方图资料。 Then, as shown in sub-step 532 , the extraction module 121 extracts the pixels of the scan line of the current original image to generate current pixel data and current histogram data. the

接着,如子步骤533所示,依据现行像素资料及参考像素资料计算出正规化的像素差值,再判断像素差值是否大于等于第一门限值(本较佳实施例中设为0.5)。若是,则如子步骤534所示,判断单元12设定对现行原始影像进行框内编码。 Next, as shown in sub-step 533, the normalized pixel difference value is calculated according to the current pixel data and the reference pixel data, and then it is judged whether the pixel difference value is greater than or equal to the first threshold value (set to 0.5 in this preferred embodiment) . If yes, as shown in sub-step 534 , the judging unit 12 sets to perform intra-frame encoding on the current original image. the

若像素差值小于第一门限值,则如子步骤535所示,直方图差值判别模组123依据现行直方图资料及参考直方图资料计算出正规化的直方图差值,再判断直方图差值是否大于等于第二门限值(在本较佳实施例中设为0.8)。若是,则如子步骤534所示,判断单元12设定对现行原始影像进行框内编码。 If the pixel difference is less than the first threshold value, as shown in sub-step 535, the histogram difference discrimination module 123 calculates the normalized histogram difference based on the current histogram data and the reference histogram data, and then judges the histogram Whether the map difference is greater than or equal to the second threshold (set to 0.8 in this preferred embodiment). If yes, as shown in sub-step 534 , the judging unit 12 sets to perform intra-frame encoding on the current original image. the

若直方图差值小于第二门限值,则如子步骤536所示,运动估计判别模组124计算现行原始影像的所有巨集块中预定进行框内编码的数量为巨集块数量,并在计算巨集块数量的同时,即时地判断巨集块数量是否大于第三门限值。若巨集块数量大于第三门限值,则如子步骤534所示,编码单元设定对该现行原始影像进行框内编码。相反地,若现行原始影像的所有巨集块都计算完毕,而巨集块数量小于等于第三门限值,则如子步骤537所示,对判断单元12设定对现行原始影像进行框间编码。如前所述,第三门限值并不限于设定为常数,也可以依据正规化的直方图差值弹性地调整。 If the histogram difference is less than the second threshold value, then as shown in sub-step 536, the motion estimation discrimination module 124 calculates the number of scheduled intra-frame coding in all macroblocks of the current original image as the number of macroblocks, and While calculating the number of macro blocks, it is judged immediately whether the number of macro blocks is greater than the third threshold. If the number of macroblocks is greater than the third threshold, then as shown in sub-step 534 , the coding unit sets to perform intra-frame coding on the current original image. Conversely, if all the macroblocks of the current original image have been calculated, and the number of macroblocks is less than or equal to the third threshold value, then as shown in sub-step 537, the judging unit 12 is set to perform frame-to-frame interpolation on the current original image. coding. As mentioned above, the third threshold is not limited to be set as a constant, and can also be flexibly adjusted according to the normalized histogram difference. the

请参阅图1、图3所示,若判断单元12设定对现行原始影像进行框内编码,则如步骤54所示,框内编码单元13对现行原始影像进行框内编码,以压缩为I讯框。若判断单元12设定对现行原始影像进行框间编码,则如步骤55所示,框间编码单元14对现行原始影像进行框间编码,以压缩为P讯框。 Please refer to Fig. 1, shown in Fig. 3, if judging unit 12 sets and carries out intra-frame encoding to current original image, then as shown in step 54, intra-frame encoding unit 13 carries out intra-frame encoding to current original image, to compress as I frame. If the judging unit 12 sets to perform inter-frame coding on the current original image, then as shown in step 55 , the inter-frame coding unit 14 performs inter-frame coding on the current original image to compress it into a P frame. the

接着,如步骤56所示,输出单元15将I讯框及P讯框顺序地输出为视讯的位元流,以取代原本的连续原始影像。 Next, as shown in step 56 , the output unit 15 sequentially outputs the I frame and the P frame as a video bit stream to replace the original continuous original image. the

然后,如步骤57所示,储存单元3储存视讯的位元流。若摄影装置为摄影机,则储存单元3可长时间记录视讯的位元流。若摄影装置为应用于视讯会议的视讯伺服装置,则储存单元3可暂时记录视讯的位元流,再通过网际网路将位元流传送至接收用的视讯终端装置。 Then, as shown in step 57, the storage unit 3 stores the video bit stream. If the photographing device is a video camera, the storage unit 3 can record the video bit stream for a long time. If the photographing device is a video server device used in video conferencing, the storage unit 3 can temporarily record the video bit stream, and then transmit the bit stream to the receiving video terminal device through the Internet. the

利用本发明及现有技术对下列四段测试影片进行了影片编码实验,其中前三段测试影片为包括较少场景转换(Shot Change)的影片,而档名为 High_Motion_and_Shot_Change.yuv的测试影片中则是包括大量的场景转换。在实验后,可在编码时间上取得如下面的表1所示的结果。 Utilize the present invention and prior art to carry out film coding experiment to following four sections of test films, wherein first three sections of test films are the films that comprise less scene conversion (Shot Change), and in the test film of file name High_Motion_and_Shot_Change.yuv Yes includes a lot of scene transitions. After experimentation, the results shown in Table 1 below can be obtained in terms of encoding time. the

表1 Table 1

  测试影片的档名The file name of the test video   编码时间   (先前现有技术)Encoding Time (Prior State of the Art)   编码时间   (本发明)Encoding time (this invention)   Video_Conference1.yuvVideo_Conference1.yuv   31313ms31313ms   31251ms31251ms   Webcam_moving.YuvWebcam_moving. Yuv   27110ms27110ms   26985ms26985ms   Video_Conference2.yuvVideo_Conference2.yuv   39469ms39469ms   39251ms39251ms   High_Motion_and_Shot_Change.yuvHigh_Motion_and_Shot_Change.yuv   45016ms45016ms   39454ms39454ms

由本发明和先前现有技术的编码时间的比较可以发现,本发明在一般的测试影片中和现有技术相比具有同等功效,而在包括大量场景转换的影片中,则本发明比现有技术更能大幅地减少编码时间,非常适于实用。 By the comparison of the coding time of the present invention and the previous prior art, it can be found that the present invention has the same efficacy compared with the prior art in general test films, and in the films comprising a large number of scene transitions, the present invention is more efficient than the prior art. It can greatly reduce the coding time and is very suitable for practical use. the

综观上述,本发明的特征,确能提供一种实用的视讯编码方法。在执行运动估计前,利用本发明的视讯编码方法提早判断每一现行原始影像应压缩为I讯框或P讯框,确实能够有效的减少嵌式系统的运算负荷。特别是,当参考原始影像及现行原始影像间包括大量的场景转换时,其效果更为显著。 In view of the above, the features of the present invention can indeed provide a practical video encoding method. Before performing motion estimation, using the video coding method of the present invention to determine in advance that each current original image should be compressed into an I frame or a P frame can indeed effectively reduce the computing load of the embedded system. In particular, the effect is more pronounced when a large number of scene transitions are involved between the reference original image and the current original image. the

以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容作出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。 The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with this field Those skilled in the art, without departing from the scope of the technical solution of the present invention, may use the technical content disclosed above to make some changes or modify them into equivalent embodiments with equivalent changes, but as long as they do not depart from the technical solution of the present invention, the Technical Essence Any simple modifications, equivalent changes and modifications made to the above embodiments still fall within the scope of the technical solution of the present invention. the

Claims (15)

1.一种视讯编码方法,其特征在于其包含以下步骤:1. A video encoding method, characterized in that it comprises the following steps: (a).提取一参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料;(a). Extracting a plurality of pixels of a plurality of scanning lines of a reference original image to generate a reference pixel data and a reference histogram data; (b).提取一现行原始影像的多数条扫描线的多数个像素,产生一现行像素资料及一现行直方图资料;(b). Extracting a plurality of pixels of a plurality of scanning lines of a current original image to generate a current pixel data and a current histogram data; (c).依据该现行像素资料及该参考像素资料计算出一正规化的像素差值,再判断该像素差值是否大于等于一第一门限值,若是,则设定对该现行原始影像进行框内编码;(c). Calculate a normalized pixel difference value based on the current pixel data and the reference pixel data, and then determine whether the pixel difference value is greater than or equal to a first threshold value, and if so, set the current original image In-frame coding; (d).若该像素差值小于该第一门限值,则依据该现行直方图资料及该参考直方图资料计算出一正规化的直方图差值,再判断该直方图差值是否大于等于一第二门限值,若是,则设定对该现行原始影像进行框内编码;(d). If the pixel difference is less than the first threshold value, calculate a normalized histogram difference based on the current histogram data and the reference histogram data, and then determine whether the histogram difference is greater than Equal to a second threshold value, if so, then set the current original image to be encoded in the frame; (e).若该直方图差值小于该第二门限值,则计算该现行原始影像的所有巨集块中预定进行框内编码的巨集块的数量为一巨集块数量,并在计算该巨集块数量的同时,即时地判断该巨集块数量是否大于一第三门限值;以及(e). If the histogram difference is less than the second threshold value, then calculate the number of macroblocks scheduled to be frame-coded in all macroblocks of the current original image as a macroblock quantity, and While calculating the number of macro blocks, it is judged in real time whether the number of macro blocks is greater than a third threshold; and (f).当该巨集块数量大于该第三门限值时,则设定对该现行原始影像进行框内编码,相反地,则设定对该现行原始影像进行框间编码,以压缩为P讯框。(f). When the number of macroblocks is greater than the third threshold value, it is set to perform intra-frame encoding on the current original image; on the contrary, it is set to perform inter-frame encoding on the current original image to compress is a P frame. 2.如权利要求1所述的视讯编码方法,其特征在于其中所述的(a)步骤及(b)步骤中,该参考原始影像中被提取的扫描线的数量为3至8条,且该现行原始影像中被提取的扫描线的数量依据该参考原始影像中被提取的扫描线的数量,对应地设为3至8条。2. The video encoding method according to claim 1, wherein in the (a) step and (b) step, the number of scanned lines extracted in the reference original image is 3 to 8, and The number of extracted scan lines in the current original image is correspondingly set to 3 to 8 according to the number of extracted scan lines in the reference original image. 3.如权利要求1所述的视讯编码方法,其特征在于其中所述的(c)步骤中,该第一门限值设为0.4至0.6。3. The video encoding method according to claim 1, wherein in the step (c), the first threshold is set to 0.4 to 0.6. 4.如权利要求1所述的视讯编码方法,其特征在于其中所述的(d)步骤中,该第二门限值设为0.7至0.9。4. The video coding method according to claim 1, wherein in the step (d), the second threshold is set to 0.7 to 0.9. 5.如权利要求1所述的视讯编码方法,其特征在于其中所述的(e)步骤中,该第三门限值=所述巨集块的总数-(一基本巨集块的数量+该基本巨集块的数量×该正规化的直方图差值)。5. The video coding method as claimed in claim 1, wherein in the (e) step, the third threshold value=the total number of the macroblocks-(the number of basic macroblocks+ The number of basic macroblocks x the normalized histogram difference). 6.一种视讯编码系统,用以压缩多数个连续的原始影像,并包含一输入单元,该输入单元依序接收其中一原始影像为一参考原始影像,及连续的下一原始影像为一现行原始影像,其特征在于该视讯编码系统还包含:6. A video encoding system for compressing a plurality of continuous original images, and comprising an input unit which sequentially receives one of the original images as a reference original image, and the next consecutive original image as a current The original image is characterized in that the video coding system also includes: 一判断单元,用以决定该现行原始影像应以框内编码或框间编码压缩,该判断单元包括:A judging unit, used to determine that the current original image should be compressed by intra-frame coding or inter-frame coding, the judging unit includes: 一提取模组,用以提取该参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料,另外,提取该现行原始影像的多数条扫描线的多数个像素,产生一现行像素资料及一现行直方图资料;An extraction module, used to extract a plurality of pixels of a plurality of scanning lines of the reference original image, generate a reference pixel data and a reference histogram data, in addition, extract a plurality of pixels of a plurality of scanning lines of the current original image , generating a current pixel data and a current histogram data; 一像素差值判别模组,用以将该现行像素资料减去该参考像素资料产生一像素差值并正规化,再判断该像素差值是否大于等于一第一门限值,若是,则设定对该现行原始影像进行框内编码;A pixel difference judgment module, used to subtract the reference pixel data from the current pixel data to generate a pixel difference and normalize it, and then judge whether the pixel difference is greater than or equal to a first threshold value, if so, set It is determined to perform in-frame encoding on the current original image; 一直方图差值判别模组,用以将该现行直方图资料减去该参考直方图资料产生一直方图差值并正规化,再判断该直方图差值是否大于等于一第二门限值,若是,则设定对该现行原始影像进行框内编码;及A histogram difference discrimination module, used to subtract the reference histogram data from the current histogram data to generate a histogram difference value and normalize it, and then determine whether the histogram difference value is greater than or equal to a second threshold value , if so, set the current original image to be frame-encoded; and 一运动估计判别模组,计算该现行原始影像的所有巨集块中预定进行框内编码的巨集块的数量为一巨集块数量,并在计算该巨集块数量的同时,即时地判断该巨集块数量是否大于一第三门限值,当该巨集块数量大于该第三门限值时,则设定对该现行原始影像进行框内编码,相反地,则设定对该现行原始影像进行框间编码;A motion estimation and discrimination module, which calculates the number of macroblocks scheduled to be encoded in the frame in all macroblocks of the current original image as a macroblock quantity, and judges in real time while calculating the macroblock quantity Whether the number of macroblocks is greater than a third threshold value, when the number of macroblocks is greater than the third threshold value, then set the frame encoding of the current original image, otherwise, set the The current original image is encoded between frames; 一框内编码单元,用以压缩该设定为进行框内编码的现行原始影像为一I讯框;An intra-frame coding unit, used to compress the current original image set for intra-frame coding into an I frame; 一框间编码单元,用以压缩该设定为进行框间编码的现行原始影像为一P讯框;以及an inter-frame coding unit, used to compress the current original image set for inter-frame coding into a P frame; and 一输出单元,用以将压缩为I讯框及P讯框的原始影像顺序地输出为一视讯的位元流。An output unit is used for sequentially outputting the original images compressed into I frame and P frame into a video bit stream. 7.如权利要求6所述的视讯编码系统,其特征在于其中所述的判断单元的提取模组设定该参考原始影像中被提取的扫描线的数量为3至8条,且该现行原始影像中被提取的扫描线的数量依据该参考原始影像中被提取的扫描线的数量,对应地设为3至8条。7. The video coding system as claimed in claim 6, wherein the extraction module of the judging unit sets the number of scanned lines extracted in the reference original image to be 3 to 8, and the current original image The number of extracted scan lines in the image is correspondingly set to 3 to 8 according to the number of extracted scan lines in the reference original image. 8.如权利要求6所述的视讯编码系统,其特征在于其中所述的判断单元的像素差值判别模组设定该第一门限值为0.4至0.6。8. The video coding system as claimed in claim 6, wherein the pixel difference judging module of the judging unit sets the first threshold to 0.4 to 0.6. 9.如权利要求6所述的视讯编码系统,其特征在于其中所述的判断单元的直方图差值判别模组设定该第二门限值为0.7至0.9。9. The video coding system as claimed in claim 6, wherein the histogram difference judging module of the judging unit sets the second threshold to 0.7 to 0.9. 10.如权利要求6所述的视讯编码系统,其特征在于其中所述的判断单元的运动估计判别模组设定该第三门限值=所述巨集块的总数-(一基本巨集块的数量+该基本巨集块的数量×该正规化的直方图差值)。10. The video coding system as claimed in claim 6, wherein the motion estimation judgment module of the judging unit sets the third threshold value=the total number of the macro blocks-(a basic macro The number of blocks + the number of basic macro blocks × the normalized histogram difference). 11.一种具有视讯编码功能的摄影装置,包含一摄像单元及一输入单元,该摄像单元是用以记录多数个连续的原始影像,该输入单元依序接收其中一原始影像为一参考原始影像,及连续的下一原始影像为一现行原始影像,其特征在于该具有视讯编码功能的摄影装置还包含:11. A camera device with video encoding function, comprising a camera unit and an input unit, the camera unit is used to record a plurality of continuous original images, and the input unit sequentially receives one of the original images as a reference original image , and the next continuous original image is a current original image, characterized in that the camera device with video coding function also includes: 一判断单元,用以决定该现行原始影像应以框内编码或框间编码压缩,该判断单元包括:A judging unit, used to determine that the current original image should be compressed by intra-frame coding or inter-frame coding, the judging unit includes: 一提取模组,用以提取该参考原始影像的多数条扫描线的多数个像素,产生一参考像素资料与一参考直方图资料,另外,提取该现行原始影像的多数条扫描线的多数个像素,产生一现行像素资料及一现行直方图资料;An extraction module, used to extract a plurality of pixels of a plurality of scanning lines of the reference original image, generate a reference pixel data and a reference histogram data, in addition, extract a plurality of pixels of a plurality of scanning lines of the current original image , generating a current pixel data and a current histogram data; 一像素差值判别模组,用以将该现行像素资料减去该参考像素资料产生一像素差值并正规化,再判断该像素差值是否大于等于一第一门限值,若是,则设定对该现行原始影像进行框内编码;A pixel difference judgment module, used to subtract the reference pixel data from the current pixel data to generate a pixel difference and normalize it, and then judge whether the pixel difference is greater than or equal to a first threshold value, if so, set It is determined to perform in-frame encoding on the current original image; 一直方图差值判别模组,用以将该现行直方图资料减去该参考直方图资料产生一直方图差值并正规化,再判断该直方图差值是否大于等于一第二门限值,若是,则设定对该现行原始影像进行框内编码;及A histogram difference discrimination module, used to subtract the reference histogram data from the current histogram data to generate a histogram difference value and normalize it, and then determine whether the histogram difference value is greater than or equal to a second threshold value , if so, set the current original image to be frame-encoded; and 一运动估计判别模组,计算该现行原始影像的所有巨集块中预定进行框内编码的巨集块的数量为一巨集块数量,并在计算该巨集块数量的同时,即时地判断该巨集块数量是否大于一第三门限值,当该巨集块数量大于该第三门限值时,则设定对该现行原始影像进行框内编码,相反地,则设定对该现行原始影像进行框间编码;A motion estimation and discrimination module, which calculates the number of macroblocks scheduled to be encoded in the frame in all macroblocks of the current original image as a macroblock quantity, and judges in real time while calculating the macroblock quantity Whether the number of macroblocks is greater than a third threshold value, when the number of macroblocks is greater than the third threshold value, then set the frame encoding of the current original image, otherwise, set the The current original image is encoded between frames; 一框内编码单元,用以压缩该设定为进行框内编码的现行原始影像为一I讯框;An intra-frame coding unit, used to compress the current original image set for intra-frame coding into an I frame; 一框间编码单元,用以压缩该设定为进行框间编码的现行原始影像为一P讯框;An inter-frame coding unit, used to compress the current original image set for inter-frame coding into a P frame; 一输出单元,用以将压缩为I讯框及P讯框的原始影像顺序地输出为一视讯的位元流;以及an output unit for sequentially outputting the original images compressed into I frame and P frame into a video bit stream; and 一储存单元,用以储存该视讯的位元流。A storage unit is used for storing the bit stream of the video. 12.如权利要求11所述的具有视讯编码功能的摄影装置,其特征在于其中所述的判断单元的提取模组设定该参考原始影像中被提取的扫描线的数量为3至8条,且该现行原始影像中被提取的扫描线的数量依据该参考原始影像中被提取的扫描线的数量,对应地设为3至8条。12. The camera device with video coding function as claimed in claim 11, wherein the extraction module of the judgment unit sets the number of scanned lines extracted in the reference original image to be 3 to 8, And the number of extracted scan lines in the current original image is correspondingly set to 3 to 8 according to the number of extracted scan lines in the reference original image. 13.如权利要求11所述的具有视讯编码功能的摄影装置,其特征在于其中所述的判断单元的像素差值判别模组设定该第一门限值为0.4至0.6。13. The camera device with video coding function as claimed in claim 11, wherein the pixel difference judgment module of the judging unit sets the first threshold value to 0.4 to 0.6. 14.如权利要求11所述的具有视讯编码功能的摄影装置,其特征在于其中所述的判断单元的直方图差值判别模组设定该第二门限值为0.7至0.9。14. The camera device with video coding function as claimed in claim 11, wherein the histogram difference judgment module of the judging unit sets the second threshold value to 0.7 to 0.9. 15.如权利要求11所述的具有视讯编码功能的摄影装置,其特征在于其中所述的判断单元的运动估计判别模组设定该第三门限值=所述巨集块的总数-(一基本巨集块的数量+该基本巨集块的数量×该正规化的直方图差值)。15. The camera device with video coding function as claimed in claim 11, wherein the motion estimation and judgment module of the judging unit sets the third threshold value=the total number of macroblocks-( - the number of basic macro blocks + the number of basic macro blocks × the normalized histogram difference).
CN 200810097034 2008-05-08 2008-05-08 Video encoding method and encoding system, and camera device with video encoding function Expired - Fee Related CN101577823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810097034 CN101577823B (en) 2008-05-08 2008-05-08 Video encoding method and encoding system, and camera device with video encoding function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810097034 CN101577823B (en) 2008-05-08 2008-05-08 Video encoding method and encoding system, and camera device with video encoding function

Publications (2)

Publication Number Publication Date
CN101577823A CN101577823A (en) 2009-11-11
CN101577823B true CN101577823B (en) 2011-05-25

Family

ID=41272583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810097034 Expired - Fee Related CN101577823B (en) 2008-05-08 2008-05-08 Video encoding method and encoding system, and camera device with video encoding function

Country Status (1)

Country Link
CN (1) CN101577823B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5832121A (en) * 1994-09-27 1998-11-03 Sony Corporation Method and apparatus for video data compression
CN1610407A (en) * 2003-10-23 2005-04-27 致伸科技股份有限公司 A Video Compression Method Adaptable to Scene Changes
US7110454B1 (en) * 1999-12-21 2006-09-19 Siemens Corporate Research, Inc. Integrated method for scene change detection
CN1949875A (en) * 2006-11-02 2007-04-18 中山大学 Image compression encoding method for streaming media
CN101072342A (en) * 2006-07-01 2007-11-14 腾讯科技(深圳)有限公司 Situation switching detection method and its detection system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5832121A (en) * 1994-09-27 1998-11-03 Sony Corporation Method and apparatus for video data compression
US7110454B1 (en) * 1999-12-21 2006-09-19 Siemens Corporate Research, Inc. Integrated method for scene change detection
CN1610407A (en) * 2003-10-23 2005-04-27 致伸科技股份有限公司 A Video Compression Method Adaptable to Scene Changes
CN101072342A (en) * 2006-07-01 2007-11-14 腾讯科技(深圳)有限公司 Situation switching detection method and its detection system
CN1949875A (en) * 2006-11-02 2007-04-18 中山大学 Image compression encoding method for streaming media

Also Published As

Publication number Publication date
CN101577823A (en) 2009-11-11

Similar Documents

Publication Publication Date Title
CN107147911B (en) Method and device for fast inter-frame coding mode selection based on local luminance compensation LIC
CN108495135B (en) Quick coding method for screen content video coding
US20220058775A1 (en) Video denoising method and apparatus, and storage medium
KR100739790B1 (en) Method and apparatus for determining intra prediction mode
CN105472205B (en) Real-time video noise reduction method and device in encoding process
CN102986211B (en) Speed control in Video coding
CN109391846B (en) Video scrambling method and device for self-adaptive mode selection
CN101115208A (en) image coding device
CN112188196A (en) Method for rapid intra-frame prediction of general video coding based on texture
CN101984665A (en) Method and system for evaluating video transmission quality
US20120027091A1 (en) Method and System for Encoding Video Frames Using a Plurality of Processors
CN111182310A (en) Video processing method and device, computer readable medium and electronic equipment
CN100426868C (en) Frame image brightness predictive coding method
WO2020227911A1 (en) Method for accelerating coding/decoding of hevc video sequence
WO2022116119A1 (en) Inter-frame predication method, encoder, decoder and storage medium
CN111212288B (en) Video data encoding and decoding method and device, computer equipment and storage medium
JP2010258576A (en) Scene change detector, and video recorder
TWI421798B (en) Method and apparatus for image compression bit rate control
CN101577823B (en) Video encoding method and encoding system, and camera device with video encoding function
CN102098505A (en) Monitoring video compression method and equipment
JP2001076166A (en) Encoding method of animation dynamic image
TWI355855B (en) Method for video encoding and the application ther
CN115589486A (en) Video coding method and device, computer readable storage medium and terminal equipment
CN102238382B (en) Bit rate control method and device for image compression
CN102196257B (en) Method and device for pre-judging macro block coding mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110525

CF01 Termination of patent right due to non-payment of annual fee