4:4:4 10bit single CMOS HD project - Page 179 at DVinfo.net
DV Info Net

Go Back   DV Info Net > Special Interest Areas > Alternative Imaging Methods
Register FAQ Today's Posts Buyer's Guides

Alternative Imaging Methods
DV Info Net is the birthplace of all 35mm adapters.

Closed Thread
 
Thread Tools Search this Thread
Old March 21st, 2005, 07:51 PM   #2671
Trustee
 
Join Date: Jan 2003
Location: Wilmington NC
Posts: 1,414
Right now I am testing with packing 2 pixels into 3 bytes thus
saving 25%, but I do that with a single shift and masking. To do 10 bit
packing I need to align into 8bit boundaries as you can only copy memory
fast in 8bit chunks and I would have to pack 5 pixels in 6 bytes, as doing
otherwise would leave dead space which would defeat the purpose of it all.
This would mean some more shifts, but you would save 38% space instead of
25%. In any case I am testing data integrity now, as it is no use going very
fast if the data gets corrupt in the first place while recording. I will
write code to try 10bit packing too and then I will profile it to see if I
gain enough speed from the extra work to make the space saving effective.

Regards,

Luc
Obin Olson is offline  
Old March 21st, 2005, 09:25 PM   #2672
Trustee
 
Join Date: Jan 2003
Location: Wilmington NC
Posts: 1,414
George Lucas will be re-issuing all the Star Wars films in 3D, one film per year, starting in 2007.

Kyle ?


"I'm a man on a mission when it comes to 3-D," Cameron said. "I will be making all of my films in 3-D in the future. We need exhibition to come in to own a big chunk of the (emerging 3-D) market."



hmm..Kyle works for a "firm" this firm or "group" wants "3d imaging" kyle gets on the message board and NEVER tells what he is really doing.....makes you wonder huh...

rock on Kyle! I wish you the best of luck... someday you can tell me what your ---really doing--- ;)
Obin Olson is offline  
Old March 21st, 2005, 10:03 PM   #2673
Regular Crew
 
Join Date: Feb 2005
Location: .
Posts: 52
I know this is probably not the best place for code, but here goes anyway....

// packing three 10-bit pixels, received as shorts,
// into DWORD
// assuming 10-bits here:
// 0000bbbb bbbbbb00
// savings of 33% over unpacked 16-bit format

unsigned short *src;
unsigned long *dst;

*dst = (unsigned long) *src++;
// dst = 00000000 00000000 00001111 11111100

*dst += (((unsigned long) (*src))<<10);
src++;
// dst = 00000000 00222222 22221111 11111100

*dst += (((unsigned long) (*src))<<20);
src++;
// dst = 33333333 33222222 22221111 11111100

dst++;


[ code is not tested, nor compiled...but no byte arithmetic is done...just longs...no masking...just adds...luc or you can email me, obin ]
Kyle Granger is offline  
Old March 21st, 2005, 10:14 PM   #2674
Regular Crew
 
Join Date: Feb 2005
Location: .
Posts: 52
>> hmm..Kyle works for a "firm" this firm
>> or "group" wants "3d imaging"

heh, heh...thanks, Obin.

Well, i used to live down the street from George in San Rafael. Now I live down the street from Arri.

However, the reality is much less exciting, since I'm just doing what all of you are doing....

WORKING ON MY SCRIPT!!!

But it's nice to see Jimbo and George "möge die Macht bei Dir sein" Lucas getting with the program. It makes me feel a little less insane.
Kyle Granger is offline  
Old March 22nd, 2005, 04:56 AM   #2675
Inner Circle
 
Join Date: May 2003
Location: Australia
Posts: 2,762
<<<-- Originally posted by Obin Olson : George Lucas will be re-issuing all the Star Wars films in 3D, one film per year, starting in 2007. -->>>

I wish he get over it, maybe even film the last three episodes. I am fed up with the reruns everytime he releases a money spinning modification of the original (which looked better than the last mod anyway).

Maybe they can replace princess Lela with a better looking computer generated character this time, and the dorky cloths, and replace Mark Hamil with a computer generated young Brad Pit, or Matt Daemon (the female audience would love that ;). You think I'm joking, eventually this is what they will be able to do. actually they could give Luke and Hans a real challenge and replace Lela with Julia Roberts, or freak everybody out by replacing her with Meg Ryan (no Jeniffer Lopez).

Actually I can almost feel this post being sucked away by the local Rob Star.

Anyway, Obin, do you program, I thought you had a programmer doing all of this for you?
Wayne Morellini is offline  
Old March 22nd, 2005, 07:31 AM   #2676
Silicon Imaging, Inc.
 
Join Date: May 2004
Location: Troy, NY USA
Posts: 325
Packing data

Obin,
This might be the time do dust off some assembler skills. At least, look at the code generated by the C++ compiler. I haven't checked the instruction set on an x86 in years but I think that there was a barrel shifter that could do any shift in a single cycle. Sometimes the compilers don't pick up on these things and do 4 separate shifts.

The only place code really needs to be optimized is in the inner-most loops - the stuff you do a million times an image - packing is certainly one of them.

One trick I learned back when coding was a simpler place was to write a function in C and compile everything. Then I could change the function at the assembly level and know all my stack and data was correct.

Of course all this could just be showing how obsolete my programming skills have become.......
__________________
Silicon Imaging, Inc.
We see the Light!
http://www.siliconimaging.com
Steve Nordhauser is offline  
Old March 22nd, 2005, 01:33 PM   #2677
Regular Crew
 
Join Date: Mar 2004
Posts: 65
Hi Obin, I posted this over on the Andromeda forums.

The source code for the DNxHD codec is freely available for download from:

http://www.avid.com/forms/DNxHDinfo.asp

I've already tested the 10-bit codec and the results were very promising.
Brad Abrahams is offline  
Old March 22nd, 2005, 06:25 PM   #2678
Trustee
 
Join Date: Jan 2003
Location: Wilmington NC
Posts: 1,414
I am glad to hear that Brad as I am going to use that codec once we get the save working in CIneLink...
Obin Olson is offline  
Old March 22nd, 2005, 09:54 PM   #2679
Regular Crew
 
Join Date: Jun 2004
Location: Copenhagen, Denmark
Posts: 59
But this is 8 and 10 bit YUV only right?


<<<-- Originally posted by Brad Abrahams : Hi Obin, I posted this over on the Andromeda forums.

The source code for the DNxHD codec is freely available for download from:

http://www.avid.com/forms/DNxHDinfo.asp

I've already tested the 10-bit codec and the results were very promising. -->>>
Anders Holck Petersen is offline  
Old March 22nd, 2005, 11:14 PM   #2680
Inner Circle
 
Join Date: May 2003
Location: Australia
Posts: 2,762
You guys realise that DNXHD 10-bit is 220Mb/s which is close to lossless compressed bayer 1080p?
Wayne Morellini is offline  
Old March 22nd, 2005, 11:28 PM   #2681
Trustee
 
Join Date: Jan 2003
Location: Wilmington NC
Posts: 1,414
Don't think it's MB/sec Wayne
Obin Olson is offline  
Old March 22nd, 2005, 11:39 PM   #2682
Inner Circle
 
Join Date: May 2003
Location: Australia
Posts: 2,762
I said bits per second.
Wayne Morellini is offline  
Old March 24th, 2005, 09:25 AM   #2683
Trustee
 
Join Date: Mar 2003
Location: Virginia Beach, VA
Posts: 1,095
BTW Obin,

beware that you can't change the DNxHD codec in any way for redistribution, at least not without AVID's approval and licensing fees.

In other words, this isn't "open source" as in GPL, BSD, etc.
Jason Rodriguez is offline  
Old March 24th, 2005, 11:35 AM   #2684
Inner Circle
 
Join Date: May 2003
Location: Australia
Posts: 2,762
Kyle,

Yes, it is a pain. I prefer the way that traditional Internet newsgroups work. It would be good if the board could do the same the same in the editing window using ">" for indentation of quotes. But replace the edit view ">" indentations in the thread view, with box indentations around each subsequent quote level with the present reply with no box. I am sure I have seen this done on this software on other boards.

That thread, I don't know what it was about, apart from another project like this. It was mostly savaged (edited) by the time I got there, with very very little left about the actual project, we suspect it was just a troll that has been sub-sequentially deleted. They should really make a general discussion forum called "Arguments" for each board and Usenet group, so all the Trolls and flamers can get together. That was a valid suggestion Rob.


Guys,

Boy this thread has slowed down, I'm glad. I looked over the thread history, and do you realise we laid down the over 50% of this thread in the first three months.
Wayne Morellini is offline  
Old March 24th, 2005, 04:56 PM   #2685
Trustee
 
Join Date: Jan 2003
Location: Wilmington NC
Posts: 1,414
It will be an "option" for export Jason ;) if you have the codec installed then your golden ;)
Obin Olson is offline  
Closed Thread

DV Info Net refers all where-to-buy and where-to-rent questions exclusively to these trusted full line dealers and rental houses...

B&H Photo Video
(866) 521-7381
New York, NY USA

Scan Computers Int. Ltd.
+44 0871-472-4747
Bolton, Lancashire UK


DV Info Net also encourages you to support local businesses and buy from an authorized dealer in your neighborhood.
  You are here: DV Info Net > Special Interest Areas > Alternative Imaging Methods


 



All times are GMT -6. The time now is 09:22 PM.


DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network