bit
Convert RGB565 to Greyscale (8 bits)
I am trying to convert a rgb565 image (video stream from the Android phone camera) into a greyscale (8 bits) image.[详细]
2023-03-15 07:24 分类:问答fastest way to atomically compare two integers in C?
uint64_t n;// two 32-bit integers return ( (uint32_t)(n >> 32) == (uint32_t)n ); What is the fastest way to atomically compare the 32 most-significant bits to the 32 least-significant bits of[详细]
2023-03-15 05:45 分类:问答Bitwise operator for simply flipping all bits in an integer?
I have to flip all bits in a binary representation of an integer. Given: 10101 The output should be 01010[详细]
2023-03-13 05:21 分类:问答FInd out if PNG is 8 or 24?
Is there a way to find out if a PNG is the 8 or 24 type? Ive tried with windows,开发者_开发百科 fireworks and photoshop but I cant figure this out.[详细]
2023-03-11 01:18 分类:问答console output stating bit length overflow
When I run my app I get this output to the console: bit length overflow code 11 bits 7->5 code 16 bits 4->5[详细]
2023-03-10 05:15 分类:问答What is meant by adding a column in bits?
I am not able to understand what is meant by the following text, which I referred from a book: Consider the four two-bit numbers[详细]
2023-03-09 08:29 分类:问答Compression - Bit
I want to compress a file that looks like a BITMAP INDEX. (A file that is in binary format with \"0\" and \"1\" only).[详细]
2023-03-08 03:01 分类:问答How to use high and low bytes?
I am trying to represent 32768 using 2 bytes. For the high byte, do I use the same values as the low byte and 开发者_开发知识库it will interpret them differently or do I put the actual values? So woul[详细]
2023-03-08 02:26 分类:问答What's the difference between these two enum [Flags] declarations (C#)
This is more a question I\'m asking to understand rather than figure 开发者_如何学Cout a problem. Consider the following two:[详细]
2023-03-07 10:05 分类:问答Algorithmic efficiency in selecting based on bits
I was wondering what your ideas were in developing an开发者_StackOverflow efficient algorithm for doing if/else switch/cases based on bits. I have 8 bits to play with and I need to divide them into hi[详细]
2023-03-06 02:03 分类:问答