📄 jpeg 编解码在 cell 上的优化.htm
字号:
src="JPEG 编解码在 Cell 上的优化.files/cl-bullet.gif" width=2></TD>
<TD><A class=left-nav-child
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#N1012D">性能分析</A></TD></TR>
<TR class=left-nav-child-highlight>
<TD><IMG height=8 alt=""
src="JPEG 编解码在 Cell 上的优化.files/cl-bullet.gif" width=2></TD>
<TD><A class=left-nav-child
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#N10145">SPU
上的优化</A></TD></TR>
<TR class=left-nav-child-highlight>
<TD><IMG height=8 alt=""
src="JPEG 编解码在 Cell 上的优化.files/cl-bullet.gif" width=2></TD>
<TD><A class=left-nav-child
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#N10227">结果分析</A></TD></TR>
<TR class=left-nav-child-highlight>
<TD><IMG height=8 alt=""
src="JPEG 编解码在 Cell 上的优化.files/cl-bullet.gif" width=2></TD>
<TD><A class=left-nav-child
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#N1027F">结束语</A></TD></TR>
<TR class=left-nav-child-highlight>
<TD><IMG height=8 alt=""
src="JPEG 编解码在 Cell 上的优化.files/cl-bullet.gif" width=2></TD>
<TD><A class=left-nav-child
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#resources">参考资料
</A></TD></TR>
<TR class=left-nav-child-highlight>
<TD><IMG height=8 alt=""
src="JPEG 编解码在 Cell 上的优化.files/cl-bullet.gif" width=2></TD>
<TD><A class=left-nav-child
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#author">作者简介</A></TD></TR>
<TR class=left-nav-child-highlight>
<TD><IMG height=8 alt=""
src="JPEG 编解码在 Cell 上的优化.files/cl-bullet.gif" width=2></TD>
<TD><A class=left-nav-child
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#rate">对本文的评价</A></TD></TR>
<TR class=left-nav-last>
<TD width=14><IMG class=display-img height=1 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=14></TD>
<TD width=136><IMG class=display-img height=19 alt=""
src="JPEG 编解码在 Cell 上的优化.files/left-nav-corner.gif"
width=136></TD></TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
<TBODY>
<TR>
<TD class=related colSpan=2><B class=related>相关链接:</B></TD></TR>
<TR class=rlinks>
<TD><IMG height=8 alt=""
src="JPEG 编解码在 Cell 上的优化.files/rl-bullet.gif" width=2></TD>
<TD><A class=rlinks
href="http://www.ibm.com/developerworks/cn/views/linux/articles.jsp">Linux
技术文档库</A></TD></TR><!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- No content currently --><!--END RESERVED FOR FUTURE USE INCLUDE FILES-->
<TR>
<TD width=14><IMG class=display-img height=1 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=14></TD>
<TD width=136><IMG class=display-img height=19 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=136></TD></TR></TBODY></TABLE><!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- Next Steps Area: Start --><!-- Commented out the include call in the dwmaster version of this file to prevent ajax calls
being made during article previews and testing. Live site has uncommented copy of this file (jpp) --><!-- Call Next Steps Servlet -->
<SCRIPT language=JavaScript type=text/javascript>
<!--
/*
* ajaxInclude makes a call to the url and render the results in the div tag specified in divId
*/
function ajaxInclude(url, divId) {
var req = newXMLHttpRequest();
if (req) {
req.onreadystatechange = getReadyStateHandler(req,
function (result) {
var contents = document.getElementById(divId);
if (result != null && result.length > 0 && contents != null) {
contents.innerHTML = result;
}
});
req.open("GET", url, true);
req.send("");
}
}
//-->
</SCRIPT>
<!-- Display Next Steps Result -->
<DIV id=nextsteps></DIV><!-- Initiate Next Steps Call -->
<SCRIPT language=JavaScript type=text/javascript>
<!--
ajaxInclude("/developerworks/niagara/jsp/getNiagaraContent.jsp?url="+window.location.href,"nextsteps");
//-->
</SCRIPT>
<!-- Next Steps Area: End --><!--END RESERVED FOR FUTURE USE INCLUDE FILES--></TD><!--LEFTNAV_END-->
<TD width="100%">
<TABLE id=content-table cellSpacing=0 cellPadding=0 width="100%"
border=0><TBODY>
<TR vAlign=top>
<TD width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD><A name=main><IMG height=1 alt=跳转到主要内容
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=592
border=0></A></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR vAlign=top>
<TD width=10 height=18><IMG height=18 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=10></TD>
<TD width="100%"><IMG height=6 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=1><BR><A
class=bctl
href="http://www.ibm.com/developerworks/cn/">developerWorks
中国</A><SPAN class=bct> > </SPAN><A
class=bctl
href="http://www.ibm.com/developerworks/cn/linux/">Linux</A><SPAN
class=bct> ></SPAN><IMG height=1 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=1><BR>
<H1>JPEG 编解码在 Cell 上的优化</H1><IMG class=display-img height=6
alt="" src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=1></TD>
<TD class=no-print width=192><IMG height=18 alt=developerWorks
src="JPEG 编解码在 Cell 上的优化.files/dw.gif"
width=192></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR vAlign=top>
<TD width=10><IMG height=1 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=10></TD>
<TD width="100%">
<TABLE class=no-print cellSpacing=0 cellPadding=0 width=160
align=right border=0>
<TBODY>
<TR>
<TD width=10><IMG height=1 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=10></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
<TBODY>
<TR>
<TD class=v14-header-1-small>文档选项</TD></TR></TBODY></TABLE>
<TABLE class=v14-gray-table-border cellSpacing=0 cellPadding=0
border=0>
<TBODY>
<TR>
<TD class=no-padding width=150>
<TABLE cellSpacing=0 cellPadding=0 width=143
border=0><IMG height=1 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=8>
<FORM name=email
action=https://www.ibm.com/developerworks/secure/email-it.jsp><INPUT
type=hidden
value="JPEG编解码是比较常用的图像处理过程,本文主要介绍如何充分利用 Cell 的特性,优化 JPEG 的编解码过程,使其达到最佳性能。本文虽然主要是说明 JPEG 编解码的优化过程,但是其中使用到的优化方法,也是 Cell 上常用的优化手段,对于其他应用程序在 Cell 上的优化也很有借鉴作用。"
name=body><INPUT type=hidden
value="JPEG 编解码在 Cell 上的优化" name=subject><INPUT
type=hidden value=cn name=lang>
<SCRIPT language=JavaScript type=text/javascript><!--document.write('<tr valign="top"><td width="8"><img src="//www.ibm.com/i/c.gif" width="8" height="1" alt=""/></td><td width="16"><img src="//www.ibm.com/i/v14/icons/em.gif" height="16" width="16" vspace="3" alt="将此页作为电子邮件发送" /></td><td width="122"><p><a class="smallplainlink" href="javascript:document.email.submit();"><b>将此页作为电子邮件发送</b></a></p></td></tr>');//--></SCRIPT>
<NOSCRIPT>
<TBODY>
<TR vAlign=top>
<TD width=8><IMG height=1 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=8></TD>
<TD width=16><IMG height=16 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=16></TD>
<TD class=small width=122>
<P><SPAN class=ast>未显示需要 JavaScript
的文档选项</SPAN></P></TD></TR></NOSCRIPT></FORM></TBODY></TABLE></TD></TR></TBODY></TABLE><!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- this content will be automatically generated across all content areas --><!--END RESERVED FOR FUTURE USE INCLUDE FILES--><BR></TD></TR></TBODY></TABLE>
<P>级别: 中级</P>
<P><A
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#author">魏琼</A>,
软件工程师, IBM中国软件开发中心<BR><A
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#author">龚志刚</A>,
高级软件工程师, IBM中国软件开发中心<BR><A
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#author">王佰玲</A>,
高级软件工程师, IBM中国软件开发中心<BR><A
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#author">潘家铭</A>,
软件工程师, IBM中国软件开发中心<BR></P>
<P>2007 年 6 月 28 日</P>
<BLOCKQUOTE>JPEG编解码是比较常用的图像处理过程,本文主要介绍如何充分利用 Cell 的特性,优化 JPEG
的编解码过程,使其达到最佳性能。本文虽然主要是说明 JPEG 编解码的优化过程,但是其中使用到的优化方法,也是 Cell
上常用的优化手段,对于其他应用程序在 Cell 上的优化也很有借鉴作用。</BLOCKQUOTE><!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- include java script once we verify teams wants to use this and it will work on dbcs and cyrillic characters --><!--END RESERVED FOR FUTURE USE INCLUDE FILES-->
<P><A name=N100B9><SPAN class=atitle>简介</SPAN></A></P>
<P>本文使用的 JPEG 编解码源代码属于 IBM 公司所有。读者如果希望按照本文提到的优化方法来进行 Cell 上 JPEG
编解码的优化,可以使用开源的 JPEG 编解码源代码(下载地址见 <A
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#resources">参考资料</A>)来作为优化的基础。本文主要是介绍如何在一个
SPU 上优化 JPEG 编解码过程,不涉及将数据切分到不同 SPU 上的问题。</P><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD><IMG height=1 alt=""
src="JPEG 编解码在 Cell 上的优化.files/blue_rule.gif"
width="100%"><BR><IMG height=6 alt=""
src="JPEG 编解码在 Cell 上的优化.files/c.gif" width=8
border=0></TD></TR></TBODY></TABLE>
<TABLE class=no-print cellSpacing=0 cellPadding=0 align=right>
<TBODY>
<TR align=right>
<TD><IMG height=4 alt="" src="JPEG 编解码在 Cell 上的优化.files/c.gif"
width="100%"><BR>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=center><IMG height=16 alt=""
src="JPEG 编解码在 Cell 上的优化.files/u_bold.gif" width=16
border=0><BR></TD>
<TD vAlign=top align=right><A class=fbox
href="http://www.ibm.com/developerworks/cn/linux/l-cn-celljpegopt/#main"><B>回页首</B></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR><BR>
<P><A name=N100C7><SPAN class=atitle>JPEG 编解码过程</SPAN></A></P>
<P>本文提到的 JPEG 编码指的是从 bmp 图像文件格式到 jpeg
图像文件格式的转化过程,并且将其划分为如下几个主要部分来说明,如图 1 所示:</P><BR><A
name=N100D3><B>图1:JPEG编码过程</B></A><BR><IMG height=34 alt=JPEG编码过程
src="JPEG 编解码在 Cell 上的优化.files/image001.gif" width=564> <BR>
<P>本文提到的JPEG解码指的是从jpeg图像文件格式到bmp图像文件格式的转化过程,并且将其划分为如下几个主要部分来说明,如图 2
所示:</P><BR><A name=N100E4><B>图2:JPEG 解码过程</B></A><BR><IMG height=36
alt="JPEG 解码过程" src="JPEG 编解码在 Cell 上的优化.files/image002.gif"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -