Post

Replies

Boosts

Views

Activity

hdr dolby vision video color correction to 8 bit still images
Hey guys, tried to follow the super confusing doc on this, but no luck yet. https://developer.apple.com/av-foundation/Incorporating-HDR-video-with-Dolby-Vision-into-your-apps.pdf I have code that uses AVAssetReader and AVAssetReaderTrackOutput to directly pull frames from a video, but the colors are wrong for HDR dolby videos. Basically what I want is to extract frames from an HDR Dolby video as images and have those images not be the wrong color. Don't care if they are only 8 bit per color instead of 10 and all the all new stuff, just the closest that old fashioned 8 bit per color supports. I added the statement marked // added for dolby hdr per the above doc, (spread across several lines), no luck, still bad colors. Any hints of what I am missing? NSMutableDictionary* dictionary = [[NSMutableDictionary alloc] init];                                [dictionary setObject:[NSNumber numberWithInt:kCVPixelFormatType_32BGRA] forKey:(NSString*)kCVPixelBufferPixelFormatTypeKey];                // added for dolby hdr                dictionary[AVVideoColorPropertiesKey] = @{                 AVVideoColorPrimariesKey: AVVideoColorPrimaries_ITU_R_709_2,                 AVVideoTransferFunctionKey: AVVideoTransferFunction_ITU_R_709_2,                 AVVideoYCbCrMatrixKey: AVVideoYCbCrMatrix_ITU_R_709_2                 };                                AVAssetReaderTrackOutput* asset_reader_output = [[AVAssetReaderTrackOutput alloc] initWithTrack:video_track outputSettings:dictionary];                                  [asset_reader addOutput:asset_reader_output]; // from here we get sample buffers like this CMSampleBufferRef buffer2 = [asset_reader_output copyNextSampleBuffer]; // then pixel buffer  CVPixelBufferRef inputPixelBuffer = CMSampleBufferGetImageBuffer(buffer2); // then a CIImage   CIImage* ciImage = [CIImage imageWithCVPixelBuffer:inputPixelBuffer]; // one vid frame then we use standard stuff to convert that to a CGImage/UIImage
2
0
2.2k
Mar ’23
new mac catalyst app, "app is incompatible with the current version of macOS"
hi all, i have made mac catalyst apps before and they were fine. now i try to make a new one (converting an iOS app over to catalyst) in xcode14.2 and i get the above error msg when trying to run on mac intel locally. however, i seem to have the mac os deployment targets set to a slightly older version of macos than i have installed on the run target mac. what is new in catalyst setup that i am missing? the setup seems a little different in the xcode UI than before so maybe there are some new hidden tricks to get this to work?
0
0
740
Apr ’23
dispatch_async to global much slower in recent Mac Catalyst versions?
has anyone else noticed much slower GCD runs in newer MacOS / Catalyst this seems like it used to be blazing fast: dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INTERACTIVE, 0), ^{ // code to run }); now if I run a block on this type of queue versus the main thread, the dispatched code runs much slower vs main thread. not 10%, like multiple slower. i am not sure yet if it is the code run time or time for dispatch to trigger. trying to focus in on what is the problem on our side and get some metrics, but if anyone has seen this issue, it might be useful to compare notes.
3
0
1.4k
May ’23
UIMenuController orientation
hi all, is it possible to control the orientation of the UIMenuController popup menu or does it always follow the status bar orientation like so many other things do? see attached. main app is in portrait but some uses are in a landscape mode. but the status bar is still portrait in this case. so we would like to force rotate the popup menu to be in landscape mode.
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
692
Jun ’23
mac app store search by app name fail
hello I am confused about mac app store search rules i released a new mac app last week and it still does not show up when i type the exact app name as a search. does the mac app store not use the app name automatically as a keyword? app name = SimplML if anyone at apple wants to analyze why it is not showing up since it is a non standard spelling, one would think it would pop up at the top note: mac app store, not iOS store
0
0
679
Jun ’23
in-app purchases rejected for "business model" but no details on how to fix
We are in an app review loop trying to get an in-app purchase approved with this message (below)However, we did what they said and resubmitted a binary (essentially the same binary we submitted before but witha new build number), but then the in-app purchase is rejected for the same reason, with no additional explanation.Is there a way to escalate this and talk to someone to figure what is going on? This is for a pre-existing app in the app store, not a new app.In-App Purchase - New Business ModelWe have begun the review of your in-app purchase but aren't able to continue because your submitted in-app purchases indicates a change of business model for your app. Therefore, we need to verify the implementation of your submitted in-app purchases in the app to ensure your app, and its in-app purchases, are in compliance with the App Store Review Guidelines.Next StepsPlease upload a new binary for review and resubmit your in-app purchase(s) with the binary so that we can continue the review.
10
1
6.1k
Jun ’23
NSKeyedArchiver ... can it skip a particular @property ?
hi all, I am trying NSKeyedArchiver to archive an ObjC object. is it possible to specify a particular @property of the class that is to archived so that the @property is not put into the archive? or just put it into the archive as nil or something innocuous like NSNull or something. e.g. i have a uidelegate @property in my class, but i dont want that put into the archive i guess i could nil this out manually before archiving, but i wonder if anyone knows a cool trick for this
1
0
633
Aug ’23
hdr dolby vision video color correction to 8 bit still images
Hey guys, tried to follow the super confusing doc on this, but no luck yet. https://developer.apple.com/av-foundation/Incorporating-HDR-video-with-Dolby-Vision-into-your-apps.pdf I have code that uses AVAssetReader and AVAssetReaderTrackOutput to directly pull frames from a video, but the colors are wrong for HDR dolby videos. Basically what I want is to extract frames from an HDR Dolby video as images and have those images not be the wrong color. Don't care if they are only 8 bit per color instead of 10 and all the all new stuff, just the closest that old fashioned 8 bit per color supports. I added the statement marked // added for dolby hdr per the above doc, (spread across several lines), no luck, still bad colors. Any hints of what I am missing? NSMutableDictionary* dictionary = [[NSMutableDictionary alloc] init];                                [dictionary setObject:[NSNumber numberWithInt:kCVPixelFormatType_32BGRA] forKey:(NSString*)kCVPixelBufferPixelFormatTypeKey];                // added for dolby hdr                dictionary[AVVideoColorPropertiesKey] = @{                 AVVideoColorPrimariesKey: AVVideoColorPrimaries_ITU_R_709_2,                 AVVideoTransferFunctionKey: AVVideoTransferFunction_ITU_R_709_2,                 AVVideoYCbCrMatrixKey: AVVideoYCbCrMatrix_ITU_R_709_2                 };                                AVAssetReaderTrackOutput* asset_reader_output = [[AVAssetReaderTrackOutput alloc] initWithTrack:video_track outputSettings:dictionary];                                  [asset_reader addOutput:asset_reader_output]; // from here we get sample buffers like this CMSampleBufferRef buffer2 = [asset_reader_output copyNextSampleBuffer]; // then pixel buffer  CVPixelBufferRef inputPixelBuffer = CMSampleBufferGetImageBuffer(buffer2); // then a CIImage   CIImage* ciImage = [CIImage imageWithCVPixelBuffer:inputPixelBuffer]; // one vid frame then we use standard stuff to convert that to a CGImage/UIImage
Replies
2
Boosts
0
Views
2.2k
Activity
Mar ’23
new mac catalyst app, "app is incompatible with the current version of macOS"
hi all, i have made mac catalyst apps before and they were fine. now i try to make a new one (converting an iOS app over to catalyst) in xcode14.2 and i get the above error msg when trying to run on mac intel locally. however, i seem to have the mac os deployment targets set to a slightly older version of macos than i have installed on the run target mac. what is new in catalyst setup that i am missing? the setup seems a little different in the xcode UI than before so maybe there are some new hidden tricks to get this to work?
Replies
0
Boosts
0
Views
740
Activity
Apr ’23
dispatch_async to global much slower in recent Mac Catalyst versions?
has anyone else noticed much slower GCD runs in newer MacOS / Catalyst this seems like it used to be blazing fast: dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INTERACTIVE, 0), ^{ // code to run }); now if I run a block on this type of queue versus the main thread, the dispatched code runs much slower vs main thread. not 10%, like multiple slower. i am not sure yet if it is the code run time or time for dispatch to trigger. trying to focus in on what is the problem on our side and get some metrics, but if anyone has seen this issue, it might be useful to compare notes.
Replies
3
Boosts
0
Views
1.4k
Activity
May ’23
xcode new build system errors can't find header files?
my understanding is that header file search paths (-I options) go directly to the compiler command lines. so: why when i switch to the new build system am i suddenly getting header file path errors (cant find various header files)? does any one have any documentation on how the new build system affects the header file search paths?
Replies
1
Boosts
0
Views
974
Activity
May ’23
lamda versus lambda
anyone else notice this greek letter misspelled in the keycaps app? i thought i was spelling it wrong but maybe not?
Replies
2
Boosts
0
Views
1.3k
Activity
May ’23
UIMenuController orientation
hi all, is it possible to control the orientation of the UIMenuController popup menu or does it always follow the status bar orientation like so many other things do? see attached. main app is in portrait but some uses are in a landscape mode. but the status bar is still portrait in this case. so we would like to force rotate the popup menu to be in landscape mode.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
692
Activity
Jun ’23
mac app store search by app name fail
hello I am confused about mac app store search rules i released a new mac app last week and it still does not show up when i type the exact app name as a search. does the mac app store not use the app name automatically as a keyword? app name = SimplML if anyone at apple wants to analyze why it is not showing up since it is a non standard spelling, one would think it would pop up at the top note: mac app store, not iOS store
Replies
0
Boosts
0
Views
679
Activity
Jun ’23
in-app purchases rejected for "business model" but no details on how to fix
We are in an app review loop trying to get an in-app purchase approved with this message (below)However, we did what they said and resubmitted a binary (essentially the same binary we submitted before but witha new build number), but then the in-app purchase is rejected for the same reason, with no additional explanation.Is there a way to escalate this and talk to someone to figure what is going on? This is for a pre-existing app in the app store, not a new app.In-App Purchase - New Business ModelWe have begun the review of your in-app purchase but aren't able to continue because your submitted in-app purchases indicates a change of business model for your app. Therefore, we need to verify the implementation of your submitted in-app purchases in the app to ensure your app, and its in-app purchases, are in compliance with the App Store Review Guidelines.Next StepsPlease upload a new binary for review and resubmit your in-app purchase(s) with the binary so that we can continue the review.
Replies
10
Boosts
1
Views
6.1k
Activity
Jun ’23
uploads to app store connect failing 500 code
any ideas? from Transporter app. system status says green
Replies
3
Boosts
0
Views
2.1k
Activity
Jun ’23
CreateML tabular regression ... SVM model?
does anyone know if the CreateML app has a way to build Support Vector Machine models for tabular regression? I see only the attached options. xcode14.2
Replies
1
Boosts
0
Views
1.2k
Activity
Aug ’23
detecting app uninstalls?
do any of the new metrics tools allow the developers to detect app uninstalls per user? business clients are requesting this.
Replies
1
Boosts
0
Views
704
Activity
Aug ’23
NSKeyedArchiver ... can it skip a particular @property ?
hi all, I am trying NSKeyedArchiver to archive an ObjC object. is it possible to specify a particular @property of the class that is to archived so that the @property is not put into the archive? or just put it into the archive as nil or something innocuous like NSNull or something. e.g. i have a uidelegate @property in my class, but i dont want that put into the archive i guess i could nil this out manually before archiving, but i wonder if anyone knows a cool trick for this
Replies
1
Boosts
0
Views
633
Activity
Aug ’23
app store connect trends and analytics out of date
anyone else notice this? last data seems to be from Sep 9 2023 status is green on the status page
Replies
2
Boosts
0
Views
989
Activity
Sep ’23
how to expand dyn island to largest size for testing our old UI?
is there any way a developer can cause the dyn island to go to full size for testing old apps?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
565
Activity
Oct ’23
lots xcode crashes using Fix with SwiftUI code
anyone noticing an alarming number of Xcode crashes when doing the above? Xcode 15.0.1
Replies
1
Boosts
0
Views
495
Activity
Jan ’24