CN101026760A - Output Buffering Method for Pixel Data of Joint Photographic Experts Group Imagery - Google Patents
Output Buffering Method for Pixel Data of Joint Photographic Experts Group Imagery Download PDFInfo
- Publication number
- CN101026760A CN101026760A CN 200710098210 CN200710098210A CN101026760A CN 101026760 A CN101026760 A CN 101026760A CN 200710098210 CN200710098210 CN 200710098210 CN 200710098210 A CN200710098210 A CN 200710098210A CN 101026760 A CN101026760 A CN 101026760A
- Authority
- CN
- China
- Prior art keywords
- memory
- pixel data
- coding unit
- minimum coding
- experts group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000003139 buffering effect Effects 0.000 title claims description 20
- 230000015654 memory Effects 0.000 claims abstract description 256
- 238000010586 diagram Methods 0.000 description 8
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000005055 memory storage Effects 0.000 description 3
- 238000010187 selection method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 2
- 241000023320 Luma <angiosperm> Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
技术领域technical field
本发明是有关于影像处理,特别是有关于联合图像专家组(Joint Photographic Experts Group,JPEG)影像的处理模块及方法。The present invention relates to image processing, in particular to a processing module and method for Joint Photographic Experts Group (JPEG) images.
背景技术Background technique
联合图像专家组(JPEG)影像标准是由国际标准化组织(International Standard Organization,ISO)及国际电报电话咨询委员会(Consultative Committee of International Telegraph&Telephone,CCITT)所制定,为常用的影像压缩格式。JPEG影像目前分为多种格式,包括420、422V、411、422H以及444。由于JPEG为影像压缩后的储存格式,因此当欲展现一JPEG影像于屏幕上时,JPEG影像必须先经译码以还原为原本的影像,才能展示于屏幕上。The Joint Photographic Experts Group (JPEG) image standard is formulated by the International Standard Organization (ISO) and the Consultative Committee of International Telegraph & Telephone (CCITT), and is a commonly used image compression format. JPEG images are currently divided into several formats, including 420, 422V, 411, 422H, and 444. Since JPEG is a compressed image storage format, when a JPEG image is to be displayed on the screen, the JPEG image must first be decoded to restore the original image before being displayed on the screen.
无论哪一种JPEG格式,JPEG影像皆是以最小编码单元(Minimum Coded Unit,MCU)为单元进行译码。一最小编码单元包含多个像素区块(pixel block)。依据像素区块包含8列×8行(即64个)的像素数据,像素数据又可区分为亮度(intensity)分量与色差(color)分量,其中亮度分量表现像素数据的亮度,而色差分量则表现像素数据的颜色。因此,可将像素区块区分为储存亮度分量的像素区块以及储存色差分量的像素区块。Regardless of the JPEG format, JPEG images are decoded using the Minimum Coded Unit (MCU) as the unit. A minimum coding unit includes a plurality of pixel blocks. According to the fact that the pixel block contains 8 columns x 8 rows (that is, 64) pixel data, the pixel data can be further divided into brightness (intensity) component and color difference (color) component, wherein the brightness component represents the brightness of the pixel data, and the color difference component Represents the color of pixel data. Therefore, the pixel blocks can be divided into pixel blocks storing luminance components and pixel blocks storing color difference components.
图1A显示格式为420及422V的JPEG影像的最小编码单元。格式为420的JPEG影像100的像素数据可分为亮度分量102、蓝色色差分量104以及红色色差分量106,而JPEG影像100的一最小编码单元包含六个像素区块112~117,其中四个像素区块Y0~Y3储存亮度分量的像素数据,而两个像素区块Cb、Cr储存色差分量的像素数据。同样的,格式为422V的JPEG影像120的像素数据可分为亮度分量122、蓝色色差分量124以及红色色差分量126,而JPEG影像120的一最小编码单元包含四个像素区块132~135,其中二个像素区块Y0、Y2储存亮度分量的像素数据,而二个像素区块Cb、Cr储存色差分量的像素数据。FIG. 1A shows the minimum coding units of JPEG images in 420 and 422V formats. The pixel data of the
图1B显示格式为411、422H以及444的JPEG影像的最小编码单元。格式为411的JPEG影像140的像素数据可分为亮度分量142、蓝色色差分量144以及红色色差分量146,而JPEG影像140的一最小编码单元包含六个像素区块152~157,其中四个像素区块Y0、Y1储存亮度分量的像素数据,而两个像素区块Cb、Cr储存色差分量的像素数据。同样的,格式为422H的JPEG影像160的像素数据可分为亮度分量162、蓝色色差分量164以及红色色差分量166,而JPEG影像160的一最小编码单元包含四个像素区块172~175,其中二个像素区块Y0、Y1储存亮度分量的像素数据,而二个像素区块Cb、Cr储存色差分量的像素数据。另外,格式为444的JPEG影像180的像素数据可分为亮度分量182、蓝色色差分量184以及红色色差分量186,而JPEG影像180的一最小编码单元包含三个像素区块192~194,其中像素区块Y0储存亮度分量的像素数据,而二个像素区块Cb、Cr储存色差分量的像素数据。FIG. 1B shows minimum coding units of JPEG images with formats 411, 422H and 444. The pixel data of the
当JPEG影像经译码完毕时,由于译码后的JPEG影像大小与屏幕尺寸不见得相符合,因此JPEG影像需事先经过比例调整(scaling),以降低JPEG影像的分辨率或像素数据量至符合供屏幕展示的程度。接着,调整过的JPEG影像数据会先储存于一缓冲模块当中,以等待屏幕发出取得像素数据的要求后,再将影像的像素数据输出至屏幕的帧缓存器(frame buffer)。When the decoding of the JPEG image is completed, since the size of the decoded JPEG image does not necessarily match the screen size, the JPEG image needs to be scaled in advance to reduce the resolution or the amount of pixel data of the JPEG image to fit Extent for displaying on screen. Next, the adjusted JPEG image data is first stored in a buffer module to wait for the screen to issue a request for obtaining pixel data, and then output the pixel data of the image to the frame buffer of the screen.
影像数据由缓冲模块输出至屏幕的帧缓存器的输出模式分别有1字节单笔输出模式、8字节连发输出(8 bytes burst write out)模式以及16字节连发输出(16 bytes burst write out)模式。于1字节单笔输出模式下,每次缓冲模块仅输出1字节的像素数据至帧缓存器。于8字节或16字节连发输出模式下,每次缓冲模块分别可输出8字节及16字节的像素数据至帧缓存器。当JPEG影像包含的像素数据量大时,必须采用8字节或16字节连发输出模式,才能符合屏幕展示影像的数据需求量。The output modes of the image data output from the buffer module to the frame buffer of the screen are 1 byte single output mode, 8 bytes burst write out (8 bytes burst write out) mode and 16 bytes burst write out (16 bytes burst write out) mode. write out) mode. In the 1-byte single output mode, the buffer module only outputs 1-byte pixel data to the frame buffer each time. In the 8-byte or 16-byte burst output mode, the buffer module can output 8-byte and 16-byte pixel data to the frame buffer respectively. When the amount of pixel data contained in a JPEG image is large, an 8-byte or 16-byte burst output mode must be used to meet the data requirements of the screen display image.
例如,分辨率为800×600的移动式JPEG影像(motion JPEG)每秒需更换30张影像,所需传递的每秒数据量为21.6M(800×600×30×1.5=21.6M)bytes,其中参数1.5是因每一单位的亮度分量需配合0.5单位的色差分量,若系统以频率为125MHz的时脉信号进行运作,则每字节的数据需于5.787(125MHz/21.6M=5.787)个时脉周期内完成传递,对系统是极大的负荷。反之,若于8字节或16字节连发输出模式下,由于一次传递的数据量分别为8倍及16倍,每次传递数据分别可以等待46.296及92.252个时脉周期。因此,缓冲器应采用8字节或16字节连发输出模式,以进行像素数据的传送。For example, a motion JPEG image (motion JPEG) with a resolution of 800×600 needs to replace 30 images per second, and the amount of data to be transmitted per second is 21.6M (800×600×30×1.5=21.6M)bytes, Among them, the parameter 1.5 is because each unit of luminance component needs to cooperate with 0.5 unit of color difference component. If the system operates with a clock signal with a frequency of 125MHz, the data of each byte needs to be 5.787 (125MHz/21.6M=5.787) The completion of the transfer within the clock cycle is a great load on the system. Conversely, in the 8-byte or 16-byte burst output mode, since the amount of data transmitted at one time is 8 times and 16 times respectively, each transmission of data can wait for 46.296 and 92.252 clock cycles respectively. Therefore, the buffer should adopt 8-byte or 16-byte burst output mode to transmit pixel data.
此外,一般缓冲器为了完整储存显示于屏幕的像素数据,需要数万至百万字节的存储容量。缓冲器的存储容量愈大,所需耗费的生产成本愈高。若能运用较小存储容量的缓冲器,而缓冲器仍能发挥同样的功能以应付传递数据的需求数据量,则可降低生产成本。因此,若能提供同时拥有高速输出而存储容量有限的缓冲器,则可以同时降低生产成本且增进缓冲器的效能。In addition, in order to fully store the pixel data displayed on the screen, the general buffer requires a storage capacity of tens of thousands to megabytes. The larger the storage capacity of the buffer, the higher the production cost required. If a buffer with a smaller storage capacity can be used, and the buffer can still perform the same function to cope with the required data volume of the transmitted data, the production cost can be reduced. Therefore, if a buffer with high-speed output and limited storage capacity can be provided, the production cost can be reduced and the performance of the buffer can be improved at the same time.
发明内容Contents of the invention
有鉴于此,本发明提供一种联合图像专家组(JointPhotographic Experts Group,JPEG)影像的像素(pixel)数据的输出缓冲方法,以解决已知技术存在的问题。首先,接收该JPEG影像的一最小编码单元(Minimum Coded Unit,MCU),其中该最小编码单元包含多个像素数据。接着,对该最小编码单元进行比例调整(scaling),以得到一比例调整后(scaled)的最小编码单元。接着,依据该JPEG影像的格式,决定该比例调整后的最小编码单元于一存储器模块中的储存规则。接着,依据所决定的该储存规则,选取该存储器模块中包含的一存储器,以将该比例调整后的最小编码单元所包含的像素数据写入所选取的该存储器。接着,依据该JPEG影像的格式,决定将该比例调整后的最小编码单元输出的输出模式。最后,依据所决定的该输出模式,将该比例调整后的最小编码单元所包含的像素数据由该存储器模块输出至一帧缓存器(frame buffer)。In view of this, the present invention provides an output buffering method for pixel data of a Joint Photographic Experts Group (JPEG) image, so as to solve the problems existing in the known technology. First, a minimum coding unit (MCU) of the JPEG image is received, wherein the minimum coding unit includes a plurality of pixel data. Then, scaling is performed on the minimum coding unit to obtain a scaled minimum coding unit. Then, according to the format of the JPEG image, a storage rule of the scale-adjusted minimum coding unit in a memory module is determined. Then, according to the determined storage rule, a memory included in the memory module is selected, so as to write the pixel data included in the scale-adjusted minimum coding unit into the selected memory. Next, according to the format of the JPEG image, an output mode for outputting the scale-adjusted minimum coding unit is determined. Finally, according to the determined output mode, the pixel data included in the scale-adjusted minimum coding unit is output from the memory module to a frame buffer.
本发明更提供一种联合图像专家组(Joint PhotographicExperts Group,JPEG)影像的像素(pixel)数据的输出缓冲模块。该缓冲模块包括调整模块、存储器存取控制模块、存储器模块以及输出缓冲器控制模块。调整模块接收该JPEG影像的一最小编码单元(Minimum Coded Unit,MCU),并对该最小编码单元进行比例调整(scaling)以得到比例调整后(scaled)的最小编码单元,其中该最小编码单元包含多个像素数据。存储器模块存取控制模块依据该JPEG影像的格式,以决定该比例调整后的最小编码单元于一存储器模块中的储存规则。该存储器模块依据所决定的该储存规则,选取该存储器模块中包含的一存储器,以将该比例调整后的最小编码单元所包含的像素数据写入所选取的该存储器。输出缓冲器控制模块依据该JPEG影像的格式决定将该比例调整后的最小编码单元输出的输出模式,并依据所决定的该输出模式,将该比例调整后的最小编码单元所包含的像素数据由该存储器模块输出至一帧缓存器(frame buffer)。The present invention further provides an output buffer module for pixel data of a Joint Photographic Experts Group (JPEG) image. The buffer module includes an adjustment module, a memory access control module, a memory module and an output buffer control module. The adjustment module receives a Minimum Coded Unit (MCU) of the JPEG image, and performs scaling on the Minimum Coded Unit to obtain a scaled Minimum Coded Unit, wherein the Minimum Coded Unit includes multiple pixel data. The memory module access control module determines the storage rule of the scale-adjusted minimum coding unit in a memory module according to the format of the JPEG image. The memory module selects a memory included in the memory module according to the determined storage rule, and writes the pixel data contained in the scale-adjusted minimum coding unit into the selected memory. The output buffer control module determines the output mode of the scale-adjusted minimum coding unit according to the format of the JPEG image, and according to the determined output mode, the pixel data contained in the scale-adjusted minimum coding unit is determined by The memory module outputs to a frame buffer.
本发明所述的联合图像专家组影像的像素数据的输出缓冲方法,可以同时降低缓冲器的生产成本并增进缓冲器的效能。The output buffering method of the pixel data of the Joint Photographic Experts Group image described in the present invention can simultaneously reduce the production cost of the buffer and improve the performance of the buffer.
附图说明Description of drawings
图1A显示格式为420及422V的JPEG影像的最小编码单元;FIG. 1A shows the minimum coding unit of JPEG images with formats 420 and 422V;
图1B显示格式为411、422H以及444的JPEG影像的最小编码单元;FIG. 1B shows the minimum coding units of JPEG images with formats 411, 422H and 444;
图2为依据本发明的JPEG影像的像素数据的输出缓冲模块的区块图;2 is a block diagram of an output buffer module of pixel data of a JPEG image according to the present invention;
图3为根据本发明的JPEG影像的像素数据的输出缓冲方法的流程图;Fig. 3 is the flow chart of the output buffering method of the pixel data of JPEG image according to the present invention;
图4为依据本发明的输出模式的决定方法的流程图;4 is a flow chart of a method for determining an output mode according to the present invention;
图5为根据本发明的存储器储存规则的选择方法的流程图;5 is a flow chart of a method for selecting memory storage rules according to the present invention;
图6A显示第一存储器选取规则;FIG. 6A shows a first memory selection rule;
图6B显示第二存储器选取规则;FIG. 6B shows a second memory selection rule;
图7A为第一存储器选取规则于存储器模块中运作的示意图;FIG. 7A is a schematic diagram of a first memory selection rule operating in a memory module;
图7B为第二存储器选取规则于存储器模块中运作的示意图;7B is a schematic diagram of the operation of the second memory selection rule in the memory module;
图7C为第二存储器选取规则于存储器模块中运作的另一示意图。FIG. 7C is another schematic diagram of the operation of the second memory selection rule in the memory module.
具体实施方式Detailed ways
为了让本发明的上述和其他目的、特征和优点能更明显易懂,下文特举数较佳实施例,并配合所附图示,作详细说明如下。In order to make the above and other objects, features and advantages of the present invention more comprehensible, a few preferred embodiments are specifically cited below, together with the accompanying drawings, and are described in detail as follows.
图2为依据本发明的JPEG影像的输出像素数据(pixel data)的缓冲模块200的区块图。缓冲模块200包括调整模块202、存储器模块204、存储器存取控制模块206、输出缓冲器控制模块208。缓冲模块200可于存储器容量有限的情况下,仍旧能缓冲来自一反离散余弦转换(Inverse Discrete Cosine Transformation,IDCT)模块译码的像素数据,并以高数据速度将像素数据输出至屏幕的帧缓存器(frame buffer)。缓冲模块200的存储器模块204可包含六个存储器(未图示),分别为第一存储器至第六存储器。每一存储器刚好可储存一8列×8行的像素区块,亦即每一存储器的容量为64(8×8=64)字节,其中一像素占据一字节的存储容量。因此,于本发明特定的设计下,存储器模块204的六个存储器总共仅需384(64×6=384)个字节,就足以缓冲JPEG影像的需求数据量,而不需如已知技术中般需要大量的存储容量。FIG. 2 is a block diagram of a
图3为根据本发明的JPEG影像的像素数据的输出缓冲方法300的流程图。输出缓冲方法300可以用来说明图2的缓冲模块200的内部运作。如前所述,JPEG影像于输出至屏幕展示之前必须先依据屏幕的尺寸调整JPEG影像的分辨率及大小。因此,调整模块202首先于步骤302中接收JPEG影像的一最小编码单元(Minimum Coded Unit,MCU),其中该最小编码单元包含多个像素数据。此时必须根据影像与帧缓存器的尺寸是否符合,以决定是否对该最小编码单元进行比例调整(scaling),而调整影像的分辨率。若影像需调整,则调整模块202于步骤304中对该最小编码单元进行比例调整,以得到比例调整后(scaled)的最小编码单元。FIG. 3 is a flowchart of an
比例调整后的最小编码单元的像素数据接着被送至存储器模块204,以进行储存。于存储器模块204中,第一存储器至第三存储器用以储存比例调整后的最小编码单元的亮度分量(intensity)的像素数据,而第四存储器至第六存储器用以储存比例调整后的最小编码单元的色差分量(color)的像素数据。当然,若最小编码单元未经调整模块202的比例调整,亦储存于存储器模块204中。由于存储器模块204的容量仅有384个字节,因此需要由一存储器存取控制模块206决定输入的像素数据于存储器模块204中的储存位置,以妥善地完成缓冲像素数据的工作。首先由存储器存取控制模块206于步骤306中依据JPEG影像的格式而决定像素数据于存储器模块204中的特定储存规则。接着,存储器模块204便可于步骤308中依据所决定的储存规则,自存储器模块204中选取一存储器,以将像素数据写入所选取的该存储器中。关于存储器的储存规则会于后续段落中以图5、图6及图7A~图7C进行详细说明。The pixel data of the scale-adjusted LCU is then sent to the
接着,由输出缓冲器控制模块208负责自存储器模块204中撷取像素数据,而将像素数据输出至屏幕的帧缓存器,以进行影像的展示。输出缓冲器控制模块208于步骤310中依据JPEG影像的格式以决定输出像素数据的输出模式,此输出模式可为8字节或16字节连发输出模式。输出模式的决定方法将以图4进行说明。接着,输出缓冲器控制模块208并于步骤312中依据输出模式将像素数据由存储器模块204输出至帧缓存器。步骤302至312可重复执行,直至JPEG影像的像素数据均经输出完毕为止。Next, the output
图4为依据本发明的输出模式的决定方法400的流程图,输出缓冲器控制模块208可依此方法选择像素数据的输出模式。首先于步骤401中判断是否存储器模块204中储存的像素数据已经过调整模块202的比例调整处理。若未经比例调整处理,则直接于步骤408中决定以16字节连发输出模式进行像素数据的输出。若像素数据经过比例调整处理,则可依据影像格式以选择像素数据的输出模式。若JPEG影像的格式于步骤402中为图1B的411、422H或444,则储存亮度分量的像素数据将于步骤408中以16字节连发输出模式进行输出。若JPEG影像的格式于步骤402中为图1A的420或422V,则储存亮度分量的像素数据将于步骤406中以8字节连发输出模式进行输出。此外,无论JPEG影像为何格式,储存色差分量的像素数据若比例调整处理过,亦将于步骤406中以8字节连发输出模式进行输出(未图示)。FIG. 4 is a flowchart of a
图5为根据本发明的存储器储存规则的选择方法500的流程图,存储器存取控制模块206依据此方法以决定像素数据于存储器模块204中的储存规则。储存规则分为第一存储器选取规则与第二存储器选取规则,将以图6A~图6B及图7A~图7C说明其细节,目前段落则先对于储存规则的选择方法500进行说明。存储器存取控制模块206首先在步骤501辨别是否JPEG影像的像素数据经过调整模块202的比例调整处理。若输入影像的最小编码单元未经比例调整处理,则不论是最小编码单元的亮度分量像素区块或色差分量像素区块,皆于步骤510中决定以第二存储单元选取规则,以选取该最小编码单元的剩余像素所要写入的存储单元。FIG. 5 is a flow chart of a
若输入影像的最小编码单元已经过比例调整处理,则要于步骤502判别输入的像素区块是亮度分量或色差分量。若为色差分量,则依旧于步骤510中选取第二存储单元选取规则为储存规则。若为亮度分量,则进一步于步骤503中依据JPEG影像的格式而选取不同的储存规则。若在步骤504判别出JPEG影像格式为420或422V,且在步骤506判别出储存亮度分量的三个存储器非为已填满两个(例如,仅填满一个存储器的状况下),则于步骤508中选取第一存储单元选取规则为储存规则。否则,若在步骤504判别出JPEG影像格式为411、422H或444,或是在步骤504判别出JPEG影像格式为420或422V但在步骤506判别出储存亮度分量的三个存储器已填满两个,则于步骤510中选取第二存储单元选取规则为储存规则。If the minimum coding unit of the input image has been scaled, it is determined in
之前已述及,存储器模块204包含第一存储器至第六存储器,每一存储器可容纳(8×8)个像素的像素区块。其中第一至第三存储器储存亮度分量的像素数据,而第四至第六存储器储存色差分量的像素数据。由于影像的最小编码单元的像素区块于储存前已经过比例调整处理以减少分辨率,像素区块会由原本包含(8×8)个像素的像素区块缩减为包含(n×n)个像素的像素区块,其中n为自然数且小于等于8。因此,比例调整处理后的像素区块所需的存储容量会小于一个存储器的存储容量,此存储器的剩余存储容量则可用以储存其他像素区块。所以当像素区块依序储存于存储器中,部分像素区块会被切割为前后两部分,分别储存于两个不同的存储器中。当像素区块的前一部分已写入至目前写入的存储器边缘时,便需依据所决定的储存规则选取下一存储器,以储存像素区块的后一剩余部分。As mentioned above, the
图6A与图6B分别显示第一存储器选取规则600与第二存储器选取规则650,其中规则600与650仅以储存亮度分量的第一存储器、第二存储器、第三存储器举例说明。于图6A的第一存储器选取规则600下,当目前写入的存储器分别为第一存储器、第二存储器及第三存储器时,存储器存取控制模块206会分别依序选取第三存储器、第一存储器及第二存储器为下一存储器,以写入剩余像素。而于图6B的第二存储器选取规则650下,当目前写入的存储器分别为该第一存储器、第二存储器及第三存储器时,存储器存取控制模块206会分别依序选取该第二存储器、第三存储器及第一存储器为下一存储器,以写入剩余像素。同理,若第一存储器与第二存储器选取规则的实施对象为储存色差分量的第四存储器、第五存储器、第六存储器,则图6A与图6B中目前写入的第一存储器、第二存储器、第三存储器分别对应于第四存储器、第五存储器、第六存储器。6A and FIG. 6B show the first
接下来将以实例说明第一及第二存储器选取规则的实际运作情形。图7A为第一存储器选取规则600于存储器模块204中运作的示意图。假设输入的像素区块为JPEG影像格式为420的最小编码单元的亮度分量,如图1A的最小编码单元100的Y0~Y3,则存储器存取控制模块206依据选择方法500会选择第一存储器选取规则600为储存规则。首先将像素区块Y0储存于第一存储器中。由于第一存储器尚有剩余空间,因此亦将下一像素区块Y1的前一部分亦储存于第一存储器中。此时必须依据图6A的第一存储器选取规则600选择下一存储器,以储存像素区块Y1的后一部分像素。此时依据规则600选择第三存储器为下一存储器,因此像素区块Y1的后一部分储存于第三存储器中。Next, an example will be used to illustrate the actual operation of the first and second memory selection rules. FIG. 7A is a schematic diagram of the operation of the first
接着,由于目前的存储器为第三存储器,因此依据规则600选取第二存储器为下一存储器,以储存像素区块Y2。由于第二存储器尚有剩余空间,因此亦将下一像素区块Y3的前一部分储存于第二存储器中。此时由于第一存储器已填满,因此第一存储器储存的像素区块Y0及Y1前一部分已被输出至帧缓存器,因此第一存储器已可重新储存数据。因此依据规则600选择第一存储器为下一存储器,以储存像素区块Y3的后一部分。Next, since the current memory is the third memory, according to the
图7B为第二存储器选取规则650于存储器模块204中运作的示意图。假设存储器模块204继续接收上述格式为420的JPEG影像的下一最小编码单元的亮度分量像素区块。此时目前写入的存储器为第三存储器,仍依据规则600选择第二存储器为下一存储器,以储存像素区块Y1的前一部分。此时由于第三存储器与第二存储器的边缘均已填满,因此三个存储器中有两个已填满像素区块至其边缘,因而依据选择方法500必须变更储存规则为第二存储器选取规则650,如图6B所示。由于之前第三存储器已填满,因此第三存储器储存的像素区块Y0的前一部分及其他像素区块已被输出至帧缓存器,因此第三存储器已可重新储存数据。此时目前的存储器为第二存储器,因此依据规则650选取第三存储器为下一存储器,以储存像素区块Y1的剩余部分。FIG. 7B is a schematic diagram of the operation of the second
由于目前写入的存储器为第三存储器,因此依据规则650选择第一存储器为下一存储器,以储存下一像素区块Y2的前一部分。接着,依据规则650选择第二存储器为下一存储器,以储存像素区块Y2的后一部分,并继续填入下一像素区块Y3的前一部分。此时由于第一存储器已清除,因此三个存储器中仅剩第二存储器已填满像素区块至其边缘,因而依据选择方法500必须变更储存规则为第一存储器选取规则600。因此,依据规则600选择第一存储器为下一存储器,以储存像素区块Y3的后一部分。Since the currently written memory is the third memory, the first memory is selected as the next memory according to the
图7C为第二存储器选取规则650于存储器模块204中运作的另一示意图。假设输入的像素区块为JPEG影像格式为422H的最小编码单元的亮度分量,如图1B的最小编码单元160的Y0~Y1,则存储器存取控制模块206依据选择方法500会选择第二存储器选取规则650为储存规则。假设目前写入的存储器为第一存储器,则首先以第一存储器储存像素区块Y0的前一部分。接着依据规则650选择第二存储器为下一存储器,以储存像素区块Y0的后一部分,并继续填入下一像素区块Y1的前一部分。接着,依据规则650选择第三存储器为下一存储器,以储存像素区块Y1的后一部分。FIG. 7C is another schematic diagram of the operation of the second
本发明提供一种JPEG影像的像素数据的输出缓冲方法,以于有限的存储容量下,仍能发挥高的数据输出率,以满足数据需求速度愈来愈大的JPEG影像格式。依据不同的JPEG影像格式,本发明提供不同的数据输出模式及存储器储存规则,以在存储容量的限制之下,根据影像格式对像素数据进行不同的缓冲处理。因此,本发明可以同时降低缓冲器的生产成本并增进缓冲器的效能。The present invention provides an output buffering method of pixel data of JPEG image, which can still exert high data output rate under limited storage capacity, so as to satisfy the JPEG image format with increasing data demand speed. According to different JPEG image formats, the present invention provides different data output modes and memory storage rules, so as to perform different buffering processes on pixel data according to image formats under the limitation of storage capacity. Therefore, the present invention can simultaneously reduce the production cost of the buffer and improve the efficiency of the buffer.
以上所述仅为本发明较佳实施例,然其并非用以限定本发明的范围,任何熟悉本项技术的人员,在不脱离本发明的精神和范围内,可在此基础上做进一步的改进和变化,因此本发明的保护范围当以本申请的权利要求书所界定的范围为准。The above description is only a preferred embodiment of the present invention, but it is not intended to limit the scope of the present invention. Any person familiar with this technology can make further improvements on this basis without departing from the spirit and scope of the present invention. Improvements and changes, so the protection scope of the present invention should be defined by the claims of the present application.
附图中符号的简单说明如下:A brief description of the symbols in the drawings is as follows:
200:输出缓冲模块200: output buffer module
202:调整模块202: Adjustment module
204:存储器模块204: memory module
206:存储器存取控制模块206: memory access control module
208:输出缓冲器控制模块208: Output buffer control module
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710098210 CN100534187C (en) | 2007-04-13 | 2007-04-13 | Output buffer method of pixel data of joint image expert group image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710098210 CN100534187C (en) | 2007-04-13 | 2007-04-13 | Output buffer method of pixel data of joint image expert group image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101026760A true CN101026760A (en) | 2007-08-29 |
CN100534187C CN100534187C (en) | 2009-08-26 |
Family
ID=38744595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710098210 Active CN100534187C (en) | 2007-04-13 | 2007-04-13 | Output buffer method of pixel data of joint image expert group image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100534187C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970781A (en) * | 2013-01-30 | 2014-08-06 | 深圳市同洲电子股份有限公司 | Embedded browser picture decoding device and method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6563535B1 (en) * | 1998-05-19 | 2003-05-13 | Flashpoint Technology, Inc. | Image processing system for high performance digital imaging devices |
JP2006121343A (en) * | 2004-10-20 | 2006-05-11 | Olympus Corp | Image processor |
JP2006054584A (en) * | 2004-08-10 | 2006-02-23 | Olympus Corp | Image processing apparatus |
-
2007
- 2007-04-13 CN CN 200710098210 patent/CN100534187C/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970781A (en) * | 2013-01-30 | 2014-08-06 | 深圳市同洲电子股份有限公司 | Embedded browser picture decoding device and method |
Also Published As
Publication number | Publication date |
---|---|
CN100534187C (en) | 2009-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8989509B2 (en) | Streaming wavelet transform | |
US7421130B2 (en) | Method and apparatus for storing image data using an MCU buffer | |
CN104952088B (en) | A kind of method for being compressed and decompressing to display data | |
CN114428595A (en) | Image processing method, image processing device, computer equipment and storage medium | |
KR100818034B1 (en) | Data transmission method, circuit device and data transmission device | |
CN100534187C (en) | Output buffer method of pixel data of joint image expert group image | |
US20060023952A1 (en) | Method and apparatus for transforming the dimensions of an image | |
CN108881923B (en) | Method for reducing buffer capacity of JPEG coding and decoding line | |
JP2004509528A (en) | Data transfer between RGB color space and YCrCb color space for DCT interface | |
US7346220B2 (en) | Method and apparatus for reducing the bandwidth required to transmit image data | |
US8064709B2 (en) | Method and apparatus for buffering output pixel data of a joint photographic experts group image | |
JPH0488749A (en) | Picture processor | |
US11189006B2 (en) | Managing data for transportation | |
KR100353894B1 (en) | Memory architecture for buffering jpeg input data and addressing method thereof | |
CN114442983A (en) | Image display control method and device applied to industrial screen and computer equipment | |
US7469068B2 (en) | Method and apparatus for dimensionally transforming an image without a line buffer | |
JPH10341437A (en) | Image processing method and device therefor | |
US20100254618A1 (en) | Method for Accessing Image Data and Related Apparatus | |
US20060072840A1 (en) | Conversion device for performing a raster scan conversion between a JPEG decoder and an image memory | |
JP2005322233A (en) | Memory efficient method and apparatus for compression encoding large overlaid camera images | |
CN101247474A (en) | Image processing device and method | |
CN120224028A (en) | RAW image processing method, system, device and storage medium | |
JP3278149B2 (en) | Image processing device | |
CN119728871A (en) | CIF-to-D1 resolution image amplification method based on table look-up method | |
JP2006141001A (en) | Image processing apparatus and method with reduced power consumption |
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 |