-
-
Save donny-dont/78a553447df58882b38854863749a6d1 to your computer and use it in GitHub Desktop.
Removing AVFoundation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef CMAKECONFIG_H | |
#define CMAKECONFIG_H | |
#define ENABLE_3D_TRANSFORMS 1 | |
#define ENABLE_ACCELERATED_2D_CANVAS 0 | |
#define ENABLE_ACCELERATED_OVERFLOW_SCROLLING 0 | |
#define ENABLE_ACCESSIBILITY 0 | |
#define ENABLE_API_TESTS 1 | |
#define ENABLE_ASYNC_SCROLLING 0 | |
#define ENABLE_ATTACHMENT_ELEMENT 1 | |
#define ENABLE_AVF_CAPTIONS 0 | |
#define ENABLE_CACHE_PARTITIONING 0 | |
#define ENABLE_CHANNEL_MESSAGING 1 | |
#define ENABLE_CONTENT_FILTERING 0 | |
#define ENABLE_CONTEXT_MENUS 1 | |
#define ENABLE_CSS3_TEXT 0 | |
#define ENABLE_CSS_ANIMATIONS_LEVEL_2 1 | |
#define ENABLE_CSS_BOX_DECORATION_BREAK 1 | |
#define ENABLE_CSS_COMPOSITING 0 | |
#define ENABLE_CSS_DEVICE_ADAPTATION 0 | |
#define ENABLE_CSS_IMAGE_ORIENTATION 0 | |
#define ENABLE_CSS_IMAGE_RESOLUTION 0 | |
#define ENABLE_CSS_SCROLL_SNAP 0 | |
#define ENABLE_CSS_SELECTORS_LEVEL4 1 | |
#define ENABLE_CURSOR_VISIBILITY 1 | |
#define ENABLE_CUSTOM_SCHEME_HANDLER 0 | |
#define ENABLE_DASHBOARD_SUPPORT 0 | |
#define ENABLE_DATACUE_VALUE 0 | |
#define ENABLE_DATALIST_ELEMENT 0 | |
#define ENABLE_DEVICE_ORIENTATION 0 | |
#define ENABLE_DFG_JIT 0 | |
#define ENABLE_DOWNLOAD_ATTRIBUTE 0 | |
#define ENABLE_DRAG_SUPPORT 1 | |
#define ENABLE_ENCRYPTED_MEDIA 0 | |
#define ENABLE_EXPERIMENTAL_FEATURES 0 | |
#define ENABLE_FETCH_API 1 | |
#define ENABLE_FILTERS_LEVEL_2 0 | |
#define ENABLE_FTL_JIT 0 | |
#define ENABLE_FTPDIR 1 | |
#define ENABLE_FULLSCREEN_API 1 | |
#define ENABLE_GAMEPAD 0 | |
#define ENABLE_GEOLOCATION 1 | |
#define ENABLE_ICONDATABASE 1 | |
#define ENABLE_INDEXED_DATABASE 1 | |
#define ENABLE_INDEXED_DATABASE_IN_WORKERS 1 | |
#define ENABLE_INDIE_UI 0 | |
#define ENABLE_INPUT_TYPE_COLOR 0 | |
#define ENABLE_INPUT_TYPE_DATE 0 | |
#define ENABLE_INPUT_TYPE_DATETIMELOCAL 0 | |
#define ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE 0 | |
#define ENABLE_INPUT_TYPE_MONTH 0 | |
#define ENABLE_INPUT_TYPE_TIME 0 | |
#define ENABLE_INPUT_TYPE_WEEK 0 | |
#define ENABLE_INTERSECTION_OBSERVER 1 | |
#define ENABLE_INTL 0 | |
#define ENABLE_IOS_AIRPLAY 0 | |
#define ENABLE_JIT 0 | |
#define ENABLE_JS_ASYNC_ITERATION 1 | |
#define ENABLE_LEGACY_CSS_VENDOR_PREFIXES 1 | |
#define ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER 1 | |
#define ENABLE_LEGACY_ENCRYPTED_MEDIA 1 | |
#define ENABLE_LETTERPRESS 0 | |
#define ENABLE_MAC_LONG_PRESS 0 | |
#define ENABLE_MATHML 1 | |
#define ENABLE_MEDIA_CAPTURE 0 | |
#define ENABLE_MEDIA_CONTROLS_SCRIPT 1 | |
#define ENABLE_MEDIA_SOURCE 0 | |
#define ENABLE_MEDIA_STATISTICS 1 | |
#define ENABLE_MEDIA_STREAM 0 | |
#define ENABLE_MEMORY_SAMPLER 0 | |
#define ENABLE_METER_ELEMENT 1 | |
#define ENABLE_MHTML 0 | |
#define ENABLE_MINIBROWSER 0 | |
#define ENABLE_MOUSE_CURSOR_SCALE 1 | |
#define ENABLE_NAVIGATOR_CONTENT_UTILS 0 | |
#define ENABLE_NETSCAPE_PLUGIN_API 1 | |
#define ENABLE_NOTIFICATIONS 0 | |
#define ENABLE_ORIENTATION_EVENTS 0 | |
#define ENABLE_PDFKIT_PLUGIN 0 | |
#define ENABLE_POINTER_LOCK 0 | |
#define ENABLE_PUBLIC_SUFFIX_LIST 0 | |
#define ENABLE_QUOTA 0 | |
#define ENABLE_REMOTE_INSPECTOR 0 | |
#define ENABLE_RESOLUTION_MEDIA_QUERY 0 | |
#define ENABLE_RESOURCE_USAGE 0 | |
#define ENABLE_RUBBER_BANDING 0 | |
#define ENABLE_SAMPLING_PROFILER 0 | |
#define ENABLE_SERVICE_CONTROLS 0 | |
#define ENABLE_SERVICE_WORKER 0 | |
#define ENABLE_SMOOTH_SCROLLING 0 | |
#define ENABLE_SPEECH_SYNTHESIS 0 | |
#define ENABLE_SPELLCHECK 0 | |
#define ENABLE_STREAMS_API 1 | |
#define ENABLE_SUBTLE_CRYPTO 0 | |
#define ENABLE_SVG_FONTS 1 | |
#define ENABLE_TELEPHONE_NUMBER_DETECTION 0 | |
#define ENABLE_TEXT_AUTOSIZING 0 | |
#define ENABLE_TOUCH_EVENTS 0 | |
#define ENABLE_TOUCH_SLIDER 0 | |
#define ENABLE_USERSELECT_ALL 0 | |
#define ENABLE_USER_MESSAGE_HANDLERS 0 | |
#define ENABLE_VIDEO 1 | |
#define ENABLE_VIDEO_TRACK 1 | |
#define ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN 1 | |
#define ENABLE_WEBASSEMBLY 0 | |
#define ENABLE_WEBASSEMBLY_STREAMING_API 0 | |
#define ENABLE_WEBDRIVER 0 | |
#define ENABLE_WEBGL 0 | |
#define ENABLE_WEBGL2 0 | |
#define ENABLE_WEBGPU 0 | |
#define ENABLE_WEBVTT_REGIONS 1 | |
#define ENABLE_WEB_AUDIO 0 | |
#define ENABLE_WEB_AUTHN 0 | |
#define ENABLE_WEB_CRYPTO 0 | |
#define ENABLE_WEB_RTC 0 | |
#define ENABLE_XSLT 1 | |
#define HAVE_ALIGNED_MALLOC 1 | |
#define HAVE_AVCF 1 | |
#define HAVE_AVCFPLAYERITEM_CALLBACK_VERSION_2 0 | |
#define HAVE_AVCFURL_PLAYABLE_MIMETYPE 0 | |
#define HAVE_AVCF_LEGIBLE_OUTPUT 1 | |
#define HAVE_AVFOUNDATION_LEGIBLE_OUTPUT_SUPPORT 1 | |
#define HAVE_AVFOUNDATION_LOADER_DELEGATE 1 | |
#define HAVE_AVFOUNDATION_MEDIA_SELECTION_GROUP 1 | |
#define HAVE_CACFLAYER_SETCONTENTSSCALE 0 | |
#define HAVE_ERRNO_H 1 | |
#define HAVE_FEATURES_H 0 | |
#define HAVE_ISDEBUGGERPRESENT 0 | |
#define HAVE_LANGINFO_H 0 | |
#define HAVE_LOCALTIME_R 0 | |
#define HAVE_MALLOC_TRIM 0 | |
#define HAVE_MEDIA_ACCESSIBILITY_FRAMEWORK 1 | |
#define HAVE_MMAP 0 | |
#define HAVE_PTHREAD_NP_H 0 | |
#define HAVE_REGEX_H 0 | |
#define HAVE_SIGNAL_H 0 | |
#define HAVE_STAT_BIRTHTIME 0 | |
#define HAVE_STRINGS_H 0 | |
#define HAVE_STRNSTR 0 | |
#define HAVE_SYS_PARAM_H 0 | |
#define HAVE_SYS_TIMEB_H 1 | |
#define HAVE_SYS_TIME_H 0 | |
#define HAVE_TIMEGM 0 | |
#define HAVE_TM_GMTOFF 0 | |
#define HAVE_TM_ZONE 0 | |
#define HAVE_VASPRINTF 0 | |
#define USE_AVFOUNDATION 1 | |
#define USE_CA 1 | |
#define USE_CF 1 | |
#define USE_CFURLCONNECTION 1 | |
#define USE_CG 1 | |
#define USE_SYSTEM_MALLOC 1 | |
#define WTF_CPU_ARM64_CORTEXA53 0 | |
#endif /* CMAKECONFIG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* THIS IS FOR APPLE WIN PUBLIC */ | |
/* Identifying AVFoundation Support */ | |
#define HAVE_AVCF 1 | |
#define HAVE_AVCF_LEGIBLE_OUTPUT 1 | |
#define HAVE_AVFOUNDATION_LOADER_DELEGATE 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <AVFoundationCF/AVFoundationCF.h> | |
#include <AVFoundationCF/AVCFPlayerItemLegibleOutput.h> | |
#include <CoreFoundation/CoreFoundation.h> | |
#include <dispatch/dispatch.h> | |
int main() { | |
CFArrayRef types = CFArrayCreate(kCFAllocatorDefault, nullptr, 0, nullptr); | |
AVCFPlayerItemLegibleOutputRef legibleOutput = AVCFPlayerItemLegibleOutputCreateWithMediaSubtypesForNativeRepresentation(kCFAllocatorDefault, types); | |
AVCFPlayerItemLegibleOutputCallbacks callbackInfo; | |
callbackInfo.version = kAVCFPlayerItemLegibleOutput_CallbacksVersion_1; | |
dispatch_queue_t dispatchQueue = dispatch_queue_create("test", DISPATCH_QUEUE_SERIAL); | |
AVCFPlayerItemLegibleOutputSetCallbacks(legibleOutput, &callbackInfo, dispatchQueue); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment