|
It recently occurred to me that I (and I think most people) learned computer programming starting with something like Visual Basic. I began to wonder if we had started at the lower level first if it would be easier now.
Do you think it is any value as...
Started by Ryan on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
But if you really want to squeeze performance out of your program... .
You are not missing something even if you don't know the CPU in depth.
Architecture specific knowledge can indeed help.
Mean that the value of this information is diminished.
|
|
I'm porting a software that build from 16bit color depth to 18bit color depth. How can I convert the 16-bit colors to 18-bit colors? Thanks.
Started by sasayins on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Extract....
So green is easy! Just copy the value over from the 16 bit components (i.e.
This will turn the old color into a number between 0.0 and 1.0 and then scale it up to the new value range (as previously stated), each channel has 6 bits.
|
|
Per the example array at the very bottom, i want to be able to append the depth of each embedded array inside of the array. for example:
array ( 53 => array ( 'title' => 'Home', 'path' => '', 'type' => '118', 'pid' => 52, 'hasChildren' ...
Started by youdontmeanmuch on
, 8 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Foreach($a as $key=>$value) { if (is_array($value)) setDepth($a[$key], $depth+1); } }
The thing array to the value $a:
$b = array_set_depth($a); print_r($b);
Edit:
To set depth before the children) && !($....
|
Ask your Facebook Friends
|
Since an MP3-File has no fixed bit depth like a PCM-Stream, a decoder (e.g. lame) must determine what bit depth to use when converting an mp3-stream into a PCM-Stream. Does it work by using a default value (propably 16) or is there any other way?
Started by schneck on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm not familiar in-depth with MP3 format, but isn't it possible that into....
To decode to any bit depth you want? I mean you set the wanted value at the beginning and the decoding takes the resulting PCM stream's bit-depth.
|
|
Whats's the difference between use back face culling and a buffer of depth in OpenGL?
Started by Lucas on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Depth....
If not, discard the pixel.
Backface culling is when OpenGL determines which faces the value in the z buffer set the z buffer value as the new z buffer value.
The depth buffer with the new, closer value.
|
|
What's the difference between backtracking and depth first search?
Started by Jinx on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Backtracking is a more general algorithm that....
Usually, a depth-first-search is a way of iterating through an actual graph/tree structure looking for a value, whereas backtracking is iterating through a problem space looking for a solution.
|
|
My logging code uses the return value of backtrace() to determine the current stack depth (for pretty printing purposes), but I can see from profiling that this is a pretty expensive call.
I don't suppose there's a cheaper way of doing this? Note that...
Started by therefromhere on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
A TLS variable around with you called "depth" and increment it / decrement it every function? While uint32_t get_ebp(void) { __asm__ __volatile__("mov %%ebp, %%eax"); } int get_stack_depth(void) { uint32_t ebp = get_ebp(); int stack_....
|
|
I have the following binary tree
A / \ B C / \ D E
represented as a list in Lisp (A 2 B 0 C 2 D 0 E 0) where the letters are node names and the numbers are the number of child nodes (0 for none, 1 one node, 2 two nodes). I need to find highest from root...
Started by crazybyte on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
(defun btree-max-depth....
Then, finding the depth in need.
Tree) (push (pop tlist) tree) (dotimes (i (pop tlist)) (multiple-value-bind (subnode rest-tlist)))
I wonder if you couldn't start with this tree representation to begin with.
|
|
How can I check if two System.Drawing.Color structures represent the same color in 16 bit color depth (or generally based on the value of Screen.PrimaryScreen.BitsPerPixel)?
Let's say I set Form.TransparencyKey to Value1 (of Color type), I want to check...
Started by David on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You'd have to mask the R, G and B values ....
Since ColorTranslator.ToWin32 is used under the hood, does this work?
if( ColorTranslator.ToWin32(Value1) == ColorTranslator.ToWin32(Value2) )
There are two pixel formats for 16-bit color, 555 and 565 .
|
|
I have an object of type FSharpOption, but I don't know it's depth. It could be any of...
FSharpOption<Int32> FSharpOption<FSharpOption<Int32>> FSharpOption<FSharpOption<FSharpOption<Int32>>> FSharpOption<FSharpOption...
Started by Jonathan Allen on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Microsoft.FSharp.Core Public Module FSharpInterop Public Function OptionGetUnderlyingValue(ByVal value As Object) As Object If value Is Nothing Then Return Nothing Dim temp = value Do While().GetProperty("Value"); Contract....
|