search for: 0x00ff

Displaying 20 results from an estimated 75 matches for "0x00ff".

Did you mean: 0000ff
2011 Mar 10
4
Wav to Ogg Vorbis conversion
...xamples/encoder_example.c Could you please tell me what float** buffer is needed for (I don't see it used anywhere). Also, could you please tell me what this code is doing: for(i=0;i<bytes/4;i++){ buffer[0][i]=((readbuffer[i*4+1]<<8)| (0x00ff&(int)readbuffer[i*4]))/32768.f; buffer[1][i]=((readbuffer[i*4+3]<<8)| (0x00ff&(int)readbuffer[i*4+2]))/32768.f; } Again, buffer is not used afterwards. And where does the actual encoding happens? Maybe you could recommend some tutorial to unde...
2004 Nov 16
2
RE: basic encoder help
...rranged the byte ordering to use signed char instead of the unsigned chars i was feeding it, the compression ratio was greatly improved. As a quick hack i ended up with: for (int i=0; i<2352; i+=4) { // 2352 because number of bytes in frame of CDDA sample[j++]=(((char)buffer[i+1]<<8)|(0x00ff&(int)(char)buffer[i])); sample[j++]=(((char)buffer[i+3]<<8)|(0x00ff&(int)(char)buffer[i+2])); } the (char) casts made all the difference. I'll change the software to use all signed chars, but this works for now. HTH. Andrew
2005 Sep 26
2
encoder_example.c Questions
...hrough the encoder_example.c program to better understand how to encode files as ogg/vorbis. I'm stuck on two sections of the code. This is the first /* uninterleave samples */ for(i=0;i<bytes/4;i++){ buffer[0][i]=((readbuffer[i*4+1]<<8)| (0x00ff&(int)readbuffer[i*4]))/32768.f; buffer[1][i]=((readbuffer[i*4+3]<<8)| (0x00ff&(int)readbuffer[i*4+2]))/32768.f; } This is the second. /* vorbis does some data preanalysis, then divvies up blocks for more involved (potentially parallel)...
2004 Oct 11
1
util/typefs breaks with recent headers
...ok for userspace diff -ur ../linux-2.5/include/linux/romfs_fs.h linux/include/linux/romfs_fs.h --- ../linux-2.5/include/linux/romfs_fs.h 2004-10-08 21:37:26.000000000 +0200 +++ linux/include/linux/romfs_fs.h 2004-10-11 17:35:23.000000000 +0200 @@ -12,7 +12,7 @@ #define __mkw(h,l) (((h)&0x00ff)<< 8|((l)&0x00ff)) #define __mkl(h,l) (((h)&0xffff)<<16|((l)&0xffff)) -#define __mk4(a,b,c,d) cpu_to_be32(__mkl(__mkw(a,b),__mkw(c,d))) +#define __mk4(a,b,c,d) __cpu_to_be32(__mkl(__mkw(a,b),__mkw(c,d))) #define ROMSB_WORD0 __mk4('-','r','o','...
2002 Dec 16
1
encoding question
...coder. The encode_example.c works ok for files with 44100/2/16 - but not for other formats. I don"t really understand what this piece of code is really doing: /* uninterleave samples */ for(i=0;i<bytes/4;i++){ buffer[0][i]=((readbuffer[i*4+1]<<8)| (0x00ff&(int)readbuffer[i*4]))/32768.f; buffer[1][i]=((readbuffer[i*4+3]<<8)| (0x00ff&(int)readbuffer[i*4+2]))/32768.f; } how should this part look for files with other specifications then 44100/2/16? I'd a look at the oggenc source - but i didn"t...
2004 May 18
2
encode example
...I have a question about it... How can I encode a mono file in 22050 and 44100? I've changed the init values to: ret=vorbis_encode_init_vbr(&vi,1,22050,.5) ; and in the loop: // uninterleave samples for(i=0;i<bytes/2;i++) { buffer[0][i]=((readbuffer[i*2+1]<<8)|(0x00ff&(int)readbuffer[i*2]))/32768.f; } .. what happened is that my file came 2x accelerated (originalsamples/2). Why this happened? thanks <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this...
2015 Sep 08
0
Problem with dynamic DNS
...Type: CNAME (Canonical name for an alias) Class: NONE (0x00fe) Time to live: 0 seconds Data length: 0 Updates GW-PC03.gwad.fi: type AAAA, class ANY Name: GW-PC03.gwad.fi Type: AAAA (IPv6 address) Class: ANY (0x00ff) Time to live: 0 seconds Data length: 0 GW-PC03.gwad.fi: type A, class ANY Name: GW-PC03.gwad.fi Type: A (Host address) Class: ANY (0x00ff) Time to live: 0 seconds Data length: 0 GW-PC03.gwad.fi: typ...
2003 Aug 29
1
RC2: Compile errors Solaris 8 (cc) and suggested fix
...- 0x007D, - 0x007E, - 0x007F, - 0x00C7, - 0x00FC, - 0x00E9, - 0x00E2, - 0x00E4, - 0x00E0, - 0x00E5, - 0x00E7, - 0x00EA, - 0x00EB, - 0x00E8, - 0x00EF, - 0x00EE, - 0x00EC, - 0x00C4, - 0x00C5, - 0x00C9, - 0x00E6, - 0x00C6, - 0x00F4, - 0x00F6, - 0x00F2, - 0x00FB, - 0x00F9, - 0x00FF, - 0x00D6, - 0x00DC, - 0x00A2, - 0x00A3, - 0x00A5, - 0x20A7, - 0x0192, - 0x00E1, - 0x00ED, - 0x00F3, - 0x00FA, - 0x00F1, - 0x00D1, - 0x00AA, - 0x00BA, - 0x00BF, - 0x2310, - 0x00AC, - 0x00BD, - 0x00BC, - 0x00A1, - 0x00AB, - 0x00BB, - 0x2591, - 0x2592, - 0x2593, - 0x2502, -...
2005 Aug 26
0
NUT patches
...age Page(0x0084) Local Usage(0x0004) Collection 0x01=Application Local Usage(0x0024) Collection 0x00=Physical Global Report ID(0x0001) Local Usage(0x00fe) Local String Index(0x0001) Global Report Size(0x0008) Global Report Count(0x0001) Global Logical Minimum(0x0000) Global Logical Maximum(0x00ff) Feature/1 Global Report ID(0x0002) Local Usage(0x00ff) Local String Index(0x0002) Feature/2 Global Report ID(0x0003) Global Usage Page(0x0085) Local Usage(0x0089) Local String Index(0x0004) Feature/3 Global Report ID(0x0004) Local Usage(0x008f) Local String Index(0x0003) Feature/4 Globa...
2004 Nov 05
0
RE: basic encoder help
...rranged the byte ordering to use signed char instead of the unsigned chars i was feeding it, the compression ratio was greatly improved. As a quick hack i ended up with: for (int i=0; i<2352; i+=4) { // 2352 because number of bytes in frame of CDDA sample[j++]=(((char)buffer[i+1]<<8)|(0x00ff&(int)(char)buffer[i])); sample[j++]=(((char)buffer[i+3]<<8)|(0x00ff&(int)(char)buffer[i+2])); } the (char) casts made all the difference. I'll change the software to use all signed chars, but this works for now. HTH. Andrew
2012 Jun 21
1
[PATCH] x86/PCI: fix guest_io_read() when pci_cfg_ok() denies access
For a multi-byte aligned read, this so far resulted in 0x00ff to be put in the guest''s register rather than 0xffff or 0xffffffff, which in turn could confuse bus scanning functions (which, when reading vendor and/or device IDs, expect to get back all zeroes or all ones). As the value gets masked to the read width when merging back into the full resu...
2007 Mar 19
1
logitech stick USB/HID compliant works with linux, only 2 axis in wine
...o sees all axis and buttons properly Wine only sees 2 axis (it does see all buttons) but no rudder,throttle or POV if I run WINEDEBUG=trace+joystick wine baron.exe I get (a lot) of lines like this: trace:joystick:JSTCK_GetPosEx x: 32768, y: 32768, z: 0, r: 0, u: 0, v: 0, buttons: 0x0000, flags: 0x00ff (fd 24) x,y and button activity are read, the rest stays on zero. obviously, z,r,u,v are not read at all...... anyone know how to deal with this , or is it simply a limitation of wine ? ( which would be rather silly, to put it mildly ....) regards Rens
2016 Jan 28
2
Signed Dynamic DNS Updates with Internal DNS [SEC=UNCLASSIFIED]
...internal DNS has an additional RR. Additional records 1252-ms-7.1-247ed95d.4c1a5028-c4b1-11e5-f7a4-5065f335d668: type TSIG, class ANY Name: 1252-ms-7.1-247ed95d.4c1a5028-c4b1-11e5-f7a4-5065f335d668 Type: TSIG (Transaction Signature) (250) Class: ANY (0x00ff) Time to live: 0 Data length: 46 Algorithm Name: gss-tsig [Expert Info (Warn/Malformed): Trying to fetch an absolute time value with length 6] [Trying to fetch an absolute time value with length 6] [Severity level: Warn...
2015 Sep 08
5
Problem with dynamic DNS
...Time to live: 0 seconds > > > Data length: 0 > > > Updates > > > GW-PC03.gwad.fi: type AAAA, class ANY > > > Name: GW-PC03.gwad.fi > > > Type: AAAA (IPv6 address) > > > Class: ANY (0x00ff) > > > Time to live: 0 seconds > > > Data length: 0 > > > GW-PC03.gwad.fi: type A, class ANY > > > Name: GW-PC03.gwad.fi > > > Type: A (Host address) > > > Class: ANY (0x00ff) &...
2007 May 01
1
contstant bittrate mode - block size - packet size
...ffer,1,READ*4,fp_infile); /* stereo hardwired here */ /* expose the buffer to submit data */ float **buffer=vorbis_analysis_buffer(&vd,READ); /* uninterleave samples */ for(i=0;i<bytes/4;i++){ buffer[0][i]=((readbuffer[i*4+1]<<8)| (0x00ff&(int)readbuffer[i*4]))/32768.f; buffer[1][i]=((readbuffer[i*4+3]<<8)| (0x00ff&(int)readbuffer[i*4+2]))/32768.f; } /* tell the library how much we actually submitted */ vorbis_analysis_wrote(&vd,i); total_samples_consumed = total_s...
2008 Mar 20
0
[RFC/PATCH 08/15] kvm-s390: intercepts for privileged instructions
...e_cpu_address, + [0x29] = handle_skey, + [0x2a] = handle_skey, + [0x2b] = handle_skey, + [0x34] = handle_stsch, + [0x5f] = handle_chsc, + [0x7d] = handle_stsi, + [0xb1] = handle_stfl, +}; + +int kvm_s390_handle_priv(struct kvm_vcpu *vcpu) +{ + if (priv_handlers[vcpu->arch.sie_block->ipa & 0x00ff]) + return priv_handlers[vcpu->arch.sie_block->ipa & 0x00ff] + (vcpu); + return -ENOTSUPP; +} Index: kvm/include/asm-s390/kvm_host.h =================================================================== --- kvm.orig/include/asm-s390/kvm_host.h +++ kvm/include/asm-s390/kvm_host.h @@ -111...
2013 Apr 28
0
PowerCOM BNT-1000AP HID instant commands patch
...h: depth = 3 0.054531 find_nut_info: unknown info type: load.off.delay 0.054535 find_nut_info: unknown info type: load.on.delay 0.054539 find_nut_info: unknown info type: load.off.delay Appears in firmware FW4.A6 PowerCOM changed DelayBeforeStartup/Shutdown usage pages to Page 0x00ff. It's non-standard, "USB Usage Tables for HID Power Devices" says: "Usage pages xFF00 to xFFFF are reserved by HID for vendor-specific implementation". May change again.. Anyway, patch against svn trunk attached. Beeper.enable/disable also works, but only on battery....
2003 May 07
0
u32 hashing bug?
...hecking it in tc -r filter list dev eth1, I see that nothing but the hashkey and bucket changed. I''d expect that it''d hash on the fourth and fifth bytes. But it doesn''t match, and my traffic goes to the default bucket. I tried it with a hashkey mask of 0xff00 0000, 0x00ff 0000, 0x0000 ff00, and 0x0000 00ff (and ht''s of c0, a8, 01, and 69, respectively); they all worked. I tried 0x0ff0 0000 and 0x000f f000 (ht''s 0a and 80) without success. Does this appear to be a bug? I don''t have a patch, but I''ll post one if I get one (or...
2010 Oct 04
0
Released Pigeonhole Sieve v0.1.18 and ManageSieve v0.11.12 for Dovecot v1.2.15
...If the string were missing a final \0 character an assertion was produced in stead of a binary corruption error. - Multiscript: fixed duplicate implicit keep caused by erroneous execution state update. - Fixed Sieve script name checking to properly handle length limit and added 0x00ff as invalid character. - Removed spurious old stdio.h (top) includes; these caused compile issues on specific systems. - Fixed default Sieve capability (as reported by ManageSieve): extra extensions spamtest, spamtestplus and virustest were enabled by default. These should, howe...
2010 Oct 04
0
Released Pigeonhole Sieve v0.1.18 and ManageSieve v0.11.12 for Dovecot v1.2.15
...If the string were missing a final \0 character an assertion was produced in stead of a binary corruption error. - Multiscript: fixed duplicate implicit keep caused by erroneous execution state update. - Fixed Sieve script name checking to properly handle length limit and added 0x00ff as invalid character. - Removed spurious old stdio.h (top) includes; these caused compile issues on specific systems. - Fixed default Sieve capability (as reported by ManageSieve): extra extensions spamtest, spamtestplus and virustest were enabled by default. These should, howe...