MM1 interface is the mobile terminal and mmsc (China Mobile is the http://mmsc.monternet.com) used to send MMS Message interface, GPRS modem of course can also use this interface to send.
Using system;
Using system. net;
Using system. IO;
Using system. diagnostics;
Using system. Threading;
Using system. collections;
Using system. text;
Namespace mmslib
{
/// /// Summary of mmsender.
///
/// Public class mmsender
{
// Set parameters
String smmscurl =
the group computing. It should be noted that after MMX is used, the original transparent color can not be processed, and now it must be processed. In order to make the transparent part do not affect the target data, I used a little trick, the specific method is to view my code comments. This is what I have come up with myself: the complete code is required. Please download my complete japplib._ ASM{// Pusha;Movq mm6 ,__ depth;MoV eax, dword ptr wddest;MoV EBX, dword ptr wdres;MoV CX, nuseh; //
Recently, I encountered a project that needed to check the memory data and determine whether it was the same as the original value. I saw the existing algorithm MD5 CRC, and I felt that the speed was not satisfactory, therefore, I wrote a high-speed algorithm for detecting memory data.
This algorithm improves the verification speed by leveraging the advantages of multiple data commands in a single command of the cpu mmx microcommand, especially for large data volumes.
Code highlighting produce
The mean blur principle is very easy and I will not explain it.
After I tested it, the compilation code processing time is about 1-2 ms.
The processing time of CPP Code is about 3-4 ms.
Only key code is provided here, and other code can be found here.
Void asmmeanfilter (bitmapdata * Data) {uint Height = data-> height; uint s_height = height-1; uint width = data-> width; uint s_width = width-1; PIX * P = (pix *) Data-> scan0; uint H, W, I, j; _ ASM {push ESI; push EDI; pxor mm7, mm7; MoV ESI, [P
Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=5461When the game did not dare to think, directly eight cases all enumerated.1#include 2#include 3#include 4#include 5 using namespacestd;6 7typedefLong LongLL;8 Const intINF =0x3f3f3f3f;9 Const intMAXN =5000000+ -;Ten One intT[MAXN]; A intN; - intb; - the intMain () { - intT; -scanf"%d",T); - for(inttt =1; TT TT) { +scanf" %d%d%d",n,a,b); - for(inti =1; I i) { +scanf"%d",t[i]); A } at intMAXX1 =0, maxx2 =0
Wordauthentication () {passwordauthentication pa = new Passwordauthentication ("AAA", "SSS");
Return PA;
}
};
Step two: Get Session object Session session = Session.getdefaultinstance (Prop,auth);
Sets the debug mode Session.setdebug (True) of the session;
Step three: Declare information mimemessage MM1 = new MimeMessage (session);
Fourth Step: Set Sender email address from = new InternetAddress ("wj@126.com");
When the exercise is done, the effect is not good. The CPU does not provide a command such as pmulluw.
The processing effect is obviously different from that of Matlab, especially the background. I can't find the problem, but it is most likely on the register symbol.
Gray formula: Gray = (R * 76 + G * 150 + B * 30)> 8
The signed range is [-32768-32767], and the unsigned range is [0-65536]. The former is obviously not enough to store 255*150 = 38250, so it overflows.
It is difficult to increase t
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Type
Pmylist = ^ tmylist;
Tmylist = array of word;
Function getminvalue (list: pmylist): word; stdcall;
VaR
Forcount, listcount, I: DWORD;
Maxvaule: int64;
List0address: DWORD;
Begin
Result: = $ 7fff;
Listcount: = high (list ^) + 1;
If (listcount
Begin
For I: = 0 to listcount-1 do
Begin
If list ^ [I]
End;
End else
Begin
Maxvaule: = $ 7fff7fff7fff7fff;
List0address: = DWORD (@ list ^ [0]);
Forcoun
addressSendMMSIn pIn = new SendMMSIn (); // Message Parameter classPIn. setFromUserMobile (""); // the sender's mobile phonePIn. setcancelist (new String [] {"13510985723"}); // receiving mobile phone listSimpleDateFormat bartDateFormat = new SimpleDateFormat ("yyyy-MM-dd HH: mm: ss ");PIn. setSendTime (bartDateFormat. format (new Date (System. currentTimeMillis (); // sending time// Add MMS content-TextMMcontent mm1 = new MMcontent ();
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.