site_archiver(a)lists.apple.com
Delivered-To: pro-apps-dev(a)lists.apple.com
I'm creating a plugin for Motion using the FXPLUG API. I previously
implemented the algorithm as a software-mode render. Now I am making it a
hardware-accelerated plugin, in preparation for evolving the algorithm to
use OpenGL 3D manipulations.
In my algorithm, I need to be able to sample colors from the input image.
I am attempting to do so using the API's 'createData' method on the input
texture to copy the texture bitmap to CPU memory. I am not getting the
desired results; the bitmap data reads as all 0's. I have also tried
manually binding the texture prior to calling createData using [inTex bind].
I have also utilized glGetTexImage in place of using createData (with the
same result). No glErrors are indicated. The input texture is fine; I am
able to draw it to output.
Am I missing something obvious, here?
----
inTex is the input image passed to renderOutput:
GLubyte* NewMemBuffer = [inTex createData: GL_RGBA withType:
GL_UNSIGNED_BYTE] ;
UInt32 x,y,index;
GLubyte *point, cv0, cv1, cv2, cv3;
for ( y = 0; y < [inTex height]; y=y+100 ) {
for ( x = 0; x < [inTex width]; x=x+100) {
index = ((y * [inTex width]) + x) * 4 ;
point = NewMemBuffer+index ;
cv0 = *point++ ;
cv1 = *point++ ;
cv2 = *point++ ;
cv3 = *point ;
if(logErrors) NSLog( @"color values %u %u %u %u", cv0, cv1, cv2, cv3
) ;
}
}
===>
2006-01-21 13:58:48.354 Motion[718] NewMemBuffer pointer fc05000
2006-01-21 13:58:48.354 Motion[718] color values 0 0 0 0
2006-01-21 13:58:48.354 Motion[718] color values 0 0 0 0
2006-01-21 13:58:48.354 Motion[718] color values 0 0 0 0
etc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (Pro-apps-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: pro-apps-dev(a)lists.apple.com
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)
Thanks,
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (Pro-apps-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a…
Could someone who has footage shot in 24p (not 24pA) import it into FCP5
(after making a copy of the file) and go to tools and try "Remove
Advanced Pulldown" on that file? My suspicion is that it will allow you
to do it, though it should not, because 24p is not 24pA. The same
problem seems to carry over into Cinema Tools. When I try Reverse
Telecine on a 24p (not 24pA) file than it goes to the Automated Pulldown
Removal Dialog. In FCP 4.5, it would not allow you remove Advanced
Pulldown on a clip that did not have Advanced Pulldown, such as 24p.
Likewise, Cinema Tools 2.x did not take take you to the Automated
Pulldown Removal Dialog with 24p footage. Instead, it had a dialog that
gave more options, such as when you use a clip that came from a film
transfer.
So, can someone confirm for me that this is a bug or that I am doing it
wrong?
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: pro-apps-dev(a)lists.apple.com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=D07br357c/Ci34gawROPniLyyyDLWr/7vba5VOlkBy1hLToQGp1AINBsUeRr/S7Br4VM1o26p2U5PFggMAUkTMw2HfUC93Jp43C+fURubHJhMvwKGTxSuwa24VB37a9NQVz+kG2phXYFey8g3mC5o1Qf90z69oKBNeudnjHuzJ8=
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (Pro-apps-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a…
This email sent to site_archiver(a)lists.apple.com