├── .gitignore ├── FileConversion ├── .classpath ├── .gitignore ├── .project ├── live │ └── WEB-INF │ │ ├── classes │ │ └── .gitignore │ │ ├── red5-web.properties │ │ ├── red5-web.xml │ │ └── web.xml ├── readme.md └── src │ └── com │ └── infrared5 │ └── red5pro │ └── live │ ├── README.md │ └── Red5ProLive.java ├── README.md ├── common-demo ├── pom.xml └── src │ └── main │ └── java │ └── com │ └── red5pro │ └── demo │ └── Main.java ├── flash-clients ├── .gitignore ├── Broadcaster │ ├── .actionScriptProperties │ ├── .flexProperties │ ├── .project │ ├── README.md │ ├── history │ │ ├── history.css │ │ ├── history.js │ │ └── historyFrame.html │ ├── html-template │ │ ├── history │ │ │ ├── history.css │ │ │ ├── history.js │ │ │ └── historyFrame.html │ │ ├── index.template.html │ │ ├── playerProductInstall.swf │ │ └── swfobject.js │ └── src │ │ ├── Broadcaster.mxml │ │ └── assets │ │ └── font │ │ └── Lato-Regular.ttf ├── README.md └── Subscriber │ ├── .actionScriptProperties │ ├── .project │ ├── html-template │ ├── history │ │ ├── history.css │ │ ├── history.js │ │ └── historyFrame.html │ ├── index.template.html │ ├── playerProductInstall.swf │ └── swfobject.js │ └── src │ └── Subscriber.as ├── native └── face-mask │ ├── .gitignore │ ├── README.md │ ├── msvc │ └── facemask │ │ ├── facemask.sln │ │ └── facemask.vcxproj │ ├── pic.PNG │ ├── pom.xml │ └── src │ └── main │ ├── c++ │ ├── cauldron_test.cpp │ ├── cauldron_test.h │ ├── makefile │ └── video_processor2.h │ ├── include │ └── amd64-Linux-gpp │ │ └── opencv2 │ │ ├── calib3d.hpp │ │ ├── calib3d │ │ ├── calib3d.hpp │ │ └── calib3d_c.h │ │ ├── core.hpp │ │ ├── core │ │ ├── affine.hpp │ │ ├── async.hpp │ │ ├── base.hpp │ │ ├── bindings_utils.hpp │ │ ├── bufferpool.hpp │ │ ├── check.hpp │ │ ├── core.hpp │ │ ├── core_c.h │ │ ├── cuda.hpp │ │ ├── cuda.inl.hpp │ │ ├── cuda │ │ │ ├── block.hpp │ │ │ ├── border_interpolate.hpp │ │ │ ├── color.hpp │ │ │ ├── common.hpp │ │ │ ├── datamov_utils.hpp │ │ │ ├── detail │ │ │ │ ├── color_detail.hpp │ │ │ │ ├── reduce.hpp │ │ │ │ ├── reduce_key_val.hpp │ │ │ │ ├── transform_detail.hpp │ │ │ │ ├── type_traits_detail.hpp │ │ │ │ └── vec_distance_detail.hpp │ │ │ ├── dynamic_smem.hpp │ │ │ ├── emulation.hpp │ │ │ ├── filters.hpp │ │ │ ├── funcattrib.hpp │ │ │ ├── functional.hpp │ │ │ ├── limits.hpp │ │ │ ├── reduce.hpp │ │ │ ├── saturate_cast.hpp │ │ │ ├── scan.hpp │ │ │ ├── simd_functions.hpp │ │ │ ├── transform.hpp │ │ │ ├── type_traits.hpp │ │ │ ├── utility.hpp │ │ │ ├── vec_distance.hpp │ │ │ ├── vec_math.hpp │ │ │ ├── vec_traits.hpp │ │ │ ├── warp.hpp │ │ │ ├── warp_reduce.hpp │ │ │ └── warp_shuffle.hpp │ │ ├── cuda_stream_accessor.hpp │ │ ├── cuda_types.hpp │ │ ├── cv_cpu_dispatch.h │ │ ├── cv_cpu_helper.h │ │ ├── cvdef.h │ │ ├── cvstd.hpp │ │ ├── cvstd.inl.hpp │ │ ├── cvstd_wrapper.hpp │ │ ├── detail │ │ │ ├── async_promise.hpp │ │ │ └── exception_ptr.hpp │ │ ├── directx.hpp │ │ ├── eigen.hpp │ │ ├── fast_math.hpp │ │ ├── hal │ │ │ ├── hal.hpp │ │ │ ├── interface.h │ │ │ ├── intrin.hpp │ │ │ ├── intrin_avx.hpp │ │ │ ├── intrin_avx512.hpp │ │ │ ├── intrin_cpp.hpp │ │ │ ├── intrin_forward.hpp │ │ │ ├── intrin_msa.hpp │ │ │ ├── intrin_neon.hpp │ │ │ ├── intrin_sse.hpp │ │ │ ├── intrin_sse_em.hpp │ │ │ ├── intrin_vsx.hpp │ │ │ ├── intrin_wasm.hpp │ │ │ ├── msa_macros.h │ │ │ └── simd_utils.impl.hpp │ │ ├── mat.hpp │ │ ├── mat.inl.hpp │ │ ├── matx.hpp │ │ ├── neon_utils.hpp │ │ ├── ocl.hpp │ │ ├── ocl_genbase.hpp │ │ ├── opencl │ │ │ ├── ocl_defs.hpp │ │ │ ├── opencl_info.hpp │ │ │ ├── opencl_svm.hpp │ │ │ └── runtime │ │ │ │ ├── autogenerated │ │ │ │ ├── opencl_clamdblas.hpp │ │ │ │ ├── opencl_clamdfft.hpp │ │ │ │ ├── opencl_core.hpp │ │ │ │ ├── opencl_core_wrappers.hpp │ │ │ │ ├── opencl_gl.hpp │ │ │ │ └── opencl_gl_wrappers.hpp │ │ │ │ ├── opencl_clamdblas.hpp │ │ │ │ ├── opencl_clamdfft.hpp │ │ │ │ ├── opencl_core.hpp │ │ │ │ ├── opencl_core_wrappers.hpp │ │ │ │ ├── opencl_gl.hpp │ │ │ │ ├── opencl_gl_wrappers.hpp │ │ │ │ ├── opencl_svm_20.hpp │ │ │ │ ├── opencl_svm_definitions.hpp │ │ │ │ └── opencl_svm_hsa_extension.hpp │ │ ├── opengl.hpp │ │ ├── operations.hpp │ │ ├── optim.hpp │ │ ├── ovx.hpp │ │ ├── persistence.hpp │ │ ├── saturate.hpp │ │ ├── simd_intrinsics.hpp │ │ ├── softfloat.hpp │ │ ├── sse_utils.hpp │ │ ├── traits.hpp │ │ ├── types.hpp │ │ ├── types_c.h │ │ ├── utility.hpp │ │ ├── utils │ │ │ ├── allocator_stats.hpp │ │ │ ├── allocator_stats.impl.hpp │ │ │ ├── filesystem.hpp │ │ │ ├── instrumentation.hpp │ │ │ ├── logger.defines.hpp │ │ │ ├── logger.hpp │ │ │ ├── logtag.hpp │ │ │ ├── tls.hpp │ │ │ └── trace.hpp │ │ ├── va_intel.hpp │ │ ├── version.hpp │ │ └── vsx_utils.hpp │ │ ├── cvconfig.h │ │ ├── dnn.hpp │ │ ├── dnn │ │ ├── all_layers.hpp │ │ ├── dict.hpp │ │ ├── dnn.hpp │ │ ├── dnn.inl.hpp │ │ ├── layer.details.hpp │ │ ├── layer.hpp │ │ ├── shape_utils.hpp │ │ ├── utils │ │ │ └── inference_engine.hpp │ │ └── version.hpp │ │ ├── features2d.hpp │ │ ├── features2d │ │ ├── features2d.hpp │ │ └── hal │ │ │ └── interface.h │ │ ├── flann.hpp │ │ ├── flann │ │ ├── all_indices.h │ │ ├── allocator.h │ │ ├── any.h │ │ ├── autotuned_index.h │ │ ├── composite_index.h │ │ ├── config.h │ │ ├── defines.h │ │ ├── dist.h │ │ ├── dummy.h │ │ ├── dynamic_bitset.h │ │ ├── flann.hpp │ │ ├── flann_base.hpp │ │ ├── general.h │ │ ├── ground_truth.h │ │ ├── hdf5.h │ │ ├── heap.h │ │ ├── hierarchical_clustering_index.h │ │ ├── index_testing.h │ │ ├── kdtree_index.h │ │ ├── kdtree_single_index.h │ │ ├── kmeans_index.h │ │ ├── linear_index.h │ │ ├── logger.h │ │ ├── lsh_index.h │ │ ├── lsh_table.h │ │ ├── matrix.h │ │ ├── miniflann.hpp │ │ ├── nn_index.h │ │ ├── object_factory.h │ │ ├── params.h │ │ ├── random.h │ │ ├── result_set.h │ │ ├── sampling.h │ │ ├── saving.h │ │ ├── simplex_downhill.h │ │ └── timer.h │ │ ├── gapi.hpp │ │ ├── gapi │ │ ├── core.hpp │ │ ├── cpu │ │ │ ├── core.hpp │ │ │ ├── gcpukernel.hpp │ │ │ └── imgproc.hpp │ │ ├── fluid │ │ │ ├── core.hpp │ │ │ ├── gfluidbuffer.hpp │ │ │ ├── gfluidkernel.hpp │ │ │ └── imgproc.hpp │ │ ├── garg.hpp │ │ ├── garray.hpp │ │ ├── gasync_context.hpp │ │ ├── gcall.hpp │ │ ├── gcommon.hpp │ │ ├── gcompiled.hpp │ │ ├── gcompiled_async.hpp │ │ ├── gcompoundkernel.hpp │ │ ├── gcomputation.hpp │ │ ├── gcomputation_async.hpp │ │ ├── gkernel.hpp │ │ ├── gmat.hpp │ │ ├── gmetaarg.hpp │ │ ├── gproto.hpp │ │ ├── gpu │ │ │ ├── core.hpp │ │ │ ├── ggpukernel.hpp │ │ │ └── imgproc.hpp │ │ ├── gscalar.hpp │ │ ├── gstreaming.hpp │ │ ├── gtransform.hpp │ │ ├── gtype_traits.hpp │ │ ├── gtyped.hpp │ │ ├── imgproc.hpp │ │ ├── infer.hpp │ │ ├── infer │ │ │ └── ie.hpp │ │ ├── ocl │ │ │ ├── core.hpp │ │ │ ├── goclkernel.hpp │ │ │ └── imgproc.hpp │ │ ├── opencv_includes.hpp │ │ ├── operators.hpp │ │ ├── own │ │ │ ├── assert.hpp │ │ │ ├── convert.hpp │ │ │ ├── cvdefs.hpp │ │ │ ├── exports.hpp │ │ │ ├── mat.hpp │ │ │ ├── saturate.hpp │ │ │ ├── scalar.hpp │ │ │ └── types.hpp │ │ ├── plaidml │ │ │ ├── core.hpp │ │ │ ├── gplaidmlkernel.hpp │ │ │ └── plaidml.hpp │ │ ├── render.hpp │ │ ├── render │ │ │ └── render.hpp │ │ ├── streaming │ │ │ ├── cap.hpp │ │ │ └── source.hpp │ │ └── util │ │ │ ├── any.hpp │ │ │ ├── compiler_hints.hpp │ │ │ ├── optional.hpp │ │ │ ├── throw.hpp │ │ │ ├── util.hpp │ │ │ └── variant.hpp │ │ ├── highgui.hpp │ │ ├── highgui │ │ ├── highgui.hpp │ │ └── highgui_c.h │ │ ├── imgcodecs.hpp │ │ ├── imgcodecs │ │ ├── imgcodecs.hpp │ │ ├── imgcodecs_c.h │ │ ├── ios.h │ │ └── legacy │ │ │ └── constants_c.h │ │ ├── imgproc.hpp │ │ ├── imgproc │ │ ├── detail │ │ │ └── gcgraph.hpp │ │ ├── hal │ │ │ ├── hal.hpp │ │ │ └── interface.h │ │ ├── imgproc.hpp │ │ ├── imgproc_c.h │ │ └── types_c.h │ │ ├── ml.hpp │ │ ├── ml │ │ ├── ml.hpp │ │ └── ml.inl.hpp │ │ ├── objdetect.hpp │ │ ├── objdetect │ │ ├── detection_based_tracker.hpp │ │ └── objdetect.hpp │ │ ├── opencv.hpp │ │ ├── opencv_modules.hpp │ │ ├── photo.hpp │ │ ├── photo │ │ ├── cuda.hpp │ │ ├── legacy │ │ │ └── constants_c.h │ │ └── photo.hpp │ │ ├── stitching.hpp │ │ ├── stitching │ │ ├── detail │ │ │ ├── autocalib.hpp │ │ │ ├── blenders.hpp │ │ │ ├── camera.hpp │ │ │ ├── exposure_compensate.hpp │ │ │ ├── matchers.hpp │ │ │ ├── motion_estimators.hpp │ │ │ ├── seam_finders.hpp │ │ │ ├── timelapsers.hpp │ │ │ ├── util.hpp │ │ │ ├── util_inl.hpp │ │ │ ├── warpers.hpp │ │ │ └── warpers_inl.hpp │ │ └── warpers.hpp │ │ ├── video.hpp │ │ ├── video │ │ ├── background_segm.hpp │ │ ├── legacy │ │ │ └── constants_c.h │ │ ├── tracking.hpp │ │ └── video.hpp │ │ ├── videoio.hpp │ │ └── videoio │ │ ├── cap_ios.h │ │ ├── legacy │ │ └── constants_c.h │ │ ├── registry.hpp │ │ ├── videoio.hpp │ │ └── videoio_c.h │ ├── java │ └── com │ │ └── red5pro │ │ └── server │ │ └── cauldron │ │ └── facemask │ │ ├── Brewery.java │ │ ├── Facemask.java │ │ └── ModuleConfig.java │ ├── lib │ └── amd64-Linux-gpp │ │ ├── libopencv_core.so │ │ ├── libopencv_imgcodecs.so │ │ ├── libopencv_imgproc.so │ │ └── libopencv_objdetect.so │ └── resources │ ├── haarcascade_frontalface_alt.xml │ ├── mask.png │ └── module-facemask.xml ├── parameters-demo ├── README.md └── parameters-demo │ ├── .classpath │ ├── .project │ ├── parameterdemo │ └── WEB-INF │ │ ├── classes │ │ └── .gitignore │ │ ├── red5-web.properties │ │ ├── red5-web.xml │ │ └── web.xml │ └── src │ └── demo │ └── red5pro │ └── parameters │ └── security │ └── ParameterDemo.java ├── red5prolive ├── .gitignore ├── README.md ├── Red5Pro-formatter.xml ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── infrared5 │ │ └── red5pro │ │ ├── live │ │ ├── InterstitialRequestHandlerImpl.java │ │ ├── LiveStreamListService.java │ │ ├── PatternAliasProvider.java │ │ ├── ProvisionAliasProvider.java │ │ └── Red5ProLive.java │ │ └── servlet │ │ └── Alias.java │ └── webapp │ ├── WEB-INF │ ├── red5-web.properties │ ├── red5-web.xml │ └── web.xml │ └── groupinfo.jsp ├── round-robin ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── readme.md ├── roundrobin │ └── WEB-INF │ │ ├── red5-web.properties │ │ ├── red5-web.xml │ │ └── web.xml └── src │ └── com │ └── infrared5 │ └── red5pro │ └── demo │ └── roundrobin │ └── RoundRobin.java ├── rtsp-restreamer ├── .classpath ├── .gitignore ├── .project ├── README.md ├── restreamer │ └── WEB-INF │ │ ├── red5-web.properties │ │ ├── red5-web.xml │ │ └── web.xml └── src │ └── com │ └── red5pro │ └── restreamer │ └── Restreamer.java └── setup ├── README.md └── images ├── red5pro-application-landing.png ├── red5pro-landing-page.png └── streaming-server-settings.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .metadata 3 | .recommenders 4 | RemoteSystemsTempFiles 5 | -------------------------------------------------------------------------------- /FileConversion/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /FileConversion/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | -------------------------------------------------------------------------------- /FileConversion/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | FileConversion 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /FileConversion/live/WEB-INF/classes/.gitignore: -------------------------------------------------------------------------------- 1 | /com 2 | -------------------------------------------------------------------------------- /FileConversion/live/WEB-INF/red5-web.properties: -------------------------------------------------------------------------------- 1 | webapp.contextPath=/live 2 | webapp.virtualHosts=* 3 | -------------------------------------------------------------------------------- /FileConversion/live/WEB-INF/red5-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /FileConversion/live/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | live 9 | 10 | webAppRootKey 11 | /app_name 12 | 13 | 14 | 15 | 16 | webAppRootKey 17 | /live 18 | 19 | 20 | 21 | rtmpt 22 | org.red5.server.net.rtmpt.RTMPTServlet 23 | 1 24 | 25 | 26 | 27 | rtmpt 28 | /fcs/* 29 | 30 | 31 | 32 | rtmpt 33 | /open/* 34 | 35 | 36 | 37 | rtmpt 38 | /close/* 39 | 40 | 41 | 42 | rtmpt 43 | /send/* 44 | 45 | 46 | 47 | rtmpt 48 | /idle/* 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /FileConversion/readme.md: -------------------------------------------------------------------------------- 1 | #File Conversion 2 | This demo shows an application adapter overriding the streamBroadcastClose method in order to trigger post processing. 3 | The post process uses ffmpeg installed on the host system path to convert a recorded FLV to an MP4 file. 4 | ##Edits 5 | The demo app needs to be compiled with a couple of edits. Occurence of these variables are in the streamBroadcastClose method. 6 | 7 | 'PATH_TO_RED5_ROOT' should reflect the full path of the server root on the drive which is passed to ffmpeg. 8 | 9 | 'ToolPath' should reflect the full ffmpeg path. 'c:/ffmpeg/bin/ffmpeg' or similar. 10 | 11 | ##Running 12 | Install the recompiled application by copying the 'live' folder to your red5 server 'webapps' directory, removing any other 'live' directory first. Start or restart the server. 13 | 14 | Configure a publisher to record mode and begin streaming. 15 | After some time, stop streaming. After a short pause, the red5 server will call ffmpeg to convert the file to mp4. 16 | 17 | -------------------------------------------------------------------------------- /FileConversion/src/com/infrared5/red5pro/live/README.md: -------------------------------------------------------------------------------- 1 | # Red5 Pro File Conversion 2 | 3 | You can learn more about file conversion with [Red5 Pro](https://red5pro.com/ "Red5 Pro") by visiting our [blog](http://blog.infrared5.com/?p=2349 "Red5 Pro File Conversion"). 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Red5 Pro Server Examples 2 | === 3 | Within this repository you will find several examples used in creating the WebApps provided with the [Red5 Pro Server](http://red5pro.com)! 4 | [![Analytics](https://ga-beacon.appspot.com/UA-59819838-3/red5pro/red5pro-server-examples?pixel)](https://github.com/igrigorik/ga-beacon) 5 | 6 | The common-demo application is a simple example of using the Red5 Pro Common library in your own projects. -------------------------------------------------------------------------------- /common-demo/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.red5pro 6 | common-demo 7 | jar 8 | common-demo 9 | 1.0.0 10 | Red5Pro Common Demo 11 | 12 | UTF-8 13 | true 14 | 1.8 15 | 1.8 16 | MM.dd.yyyy HH:mm 17 | ${maven.build.timestamp} 18 | 5.3.6694 19 | 20 | 21 | 22 | 23 | maven-compiler-plugin 24 | 25 | 26 | maven-jar-plugin 27 | 2.6 28 | 29 | 30 | 31 | 32 | 33 | com.red5pro 34 | red5pro-common 35 | ${red5pro-common.version} 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /common-demo/src/main/java/com/red5pro/demo/Main.java: -------------------------------------------------------------------------------- 1 | package com.red5pro.demo; 2 | 3 | import com.red5pro.util.ConnectionUtils.ConnectionType; 4 | 5 | /** 6 | * Example class to demo the use of the red5pro-common dependency library. 7 | * 8 | * @author Paul Gregoire 9 | */ 10 | public class Main { 11 | 12 | public static void main(String[] args) { 13 | // make a simple call to an enum in the library 14 | Enum type = ConnectionType.findByClassName("com.red5pro.webrtc.RTCConnection"); 15 | System.out.println("Connection type: " + type); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /flash-clients/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin-debug 2 | **/bin-release 3 | svp-lib-*/bin 4 | 5 | /.metadata 6 | *.DS_Store 7 | **.settings 8 | **/asdoc 9 | 10 | **/dist 11 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | BroadcastNow 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/README.md: -------------------------------------------------------------------------------- 1 | Broadcaster 2 | === 3 | The source of the flash Broadcaster used in the server front-end pages can be found here. 4 | 5 | The swf file itself can be found in the [front-end server repo](https://github.com/red5pro/red5pro-server-frontend/tree/master/src/webapps/live). 6 | 7 | You can integrate this broadcaster in your html5 web application using the javascript call-outs. 8 | The swf notifies the webpage for broadcast event life cycle and status. 9 | 10 | Below is a simple implementation of a javascript handler with all three methods used by the swf. 11 | 12 | ```javascript 13 | var broadcast = { 14 | start : function(info){ 15 | console.log("start "+ info.host+"/"+info.streamName); 16 | }, 17 | 18 | stop : function(){ 19 | console.log("broadcast stop"); 20 | }, 21 | 22 | onStatus : function (status){ 23 | console.log("onStatus "+ info.host+"/"+info.streamName+" "+info.status); 24 | } 25 | }; 26 | ``` 27 | 28 | broadcast.start 29 | ==== 30 | Called when the user presses the broadcast button to begin capturing media and sending to the server. 31 | 32 | broadcast.stop 33 | ==== 34 | Called when the broadcast is terminated via server error or the user presses the button to end capturing media. 35 | 36 | broadcast.onStatus 37 | ==== 38 | Called any time the client receives a net-status message, such as connection fail/success. 39 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/history/history.css: -------------------------------------------------------------------------------- 1 | /* This CSS stylesheet defines styles used by required elements in a flex application page that supports browser history */ 2 | 3 | #ie_historyFrame { width: 0px; height: 0px; display:none } 4 | #firefox_anchorDiv { width: 0px; height: 0px; display:none } 5 | #safari_formDiv { width: 0px; height: 0px; display:none } 6 | #safari_rememberDiv { width: 0px; height: 0px; display:none } 7 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/history/historyFrame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 27 | Hidden frame for Browser History support. 28 | 29 | 30 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/html-template/history/history.css: -------------------------------------------------------------------------------- 1 | /* This CSS stylesheet defines styles used by required elements in a flex application page that supports browser history */ 2 | 3 | #ie_historyFrame { width: 0px; height: 0px; display:none } 4 | #firefox_anchorDiv { width: 0px; height: 0px; display:none } 5 | #safari_formDiv { width: 0px; height: 0px; display:none } 6 | #safari_rememberDiv { width: 0px; height: 0px; display:none } 7 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/html-template/history/historyFrame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 27 | Hidden frame for Browser History support. 28 | 29 | 30 | -------------------------------------------------------------------------------- /flash-clients/Broadcaster/html-template/playerProductInstall.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/flash-clients/Broadcaster/html-template/playerProductInstall.swf -------------------------------------------------------------------------------- /flash-clients/Broadcaster/src/assets/font/Lato-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/flash-clients/Broadcaster/src/assets/font/Lato-Regular.ttf -------------------------------------------------------------------------------- /flash-clients/README.md: -------------------------------------------------------------------------------- 1 | Flash Clients 2 | === 3 | This directory contains Flash Clients used in Webapps of the [Red5 Pro Server](http://red5pro.com/). 4 | 5 | Broadcaster 6 | --- 7 | The Broadcaster client used at [http://localhost:5080/live/broadcast.jsp](http://localhost:5080/live/broadcast.jsp). 8 | 9 | Subscriber 10 | -- 11 | The Subscriber client used at [http://localhost:5080/live/subscriber.jsp](http://localhost:5080/live/broadcast.jsp). 12 | -------------------------------------------------------------------------------- /flash-clients/Subscriber/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Red5ProServerTests 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.actionscriptnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /flash-clients/Subscriber/html-template/history/history.css: -------------------------------------------------------------------------------- 1 | /* This CSS stylesheet defines styles used by required elements in a flex application page that supports browser history */ 2 | 3 | #ie_historyFrame { width: 0px; height: 0px; display:none } 4 | #firefox_anchorDiv { width: 0px; height: 0px; display:none } 5 | #safari_formDiv { width: 0px; height: 0px; display:none } 6 | #safari_rememberDiv { width: 0px; height: 0px; display:none } 7 | -------------------------------------------------------------------------------- /flash-clients/Subscriber/html-template/history/historyFrame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 27 | Hidden frame for Browser History support. 28 | 29 | 30 | -------------------------------------------------------------------------------- /flash-clients/Subscriber/html-template/playerProductInstall.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/flash-clients/Subscriber/html-template/playerProductInstall.swf -------------------------------------------------------------------------------- /native/face-mask/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | target/ 3 | -------------------------------------------------------------------------------- /native/face-mask/README.md: -------------------------------------------------------------------------------- 1 | # Demo Mask 2 | Live demo used to introduce the brew feature. Plugin uses opencv objdetect to locate a face 3 | 4 | 5 | # Building the JAR 6 | 7 | For all platforms, to build the jar plugin: 8 | ```sh 9 | mvn clean install 10 | ``` 11 | The jar will be found in the target folder, and installs to server plugins directory. 12 | 13 | 14 | # Building the native code 15 | 16 | Install build tools 17 | 18 | ```sh 19 | apt-get update apt install build-essential cmake git pkg-config libgtk-3-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev gfortran openexr libatlas-base-dev python3-dev python3-numpy libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev 20 | ``` 21 | 22 | Navigate into the c++ folder and call 'make' 23 | 24 | Requires openJDK 11 or higher. 25 | 26 | # Server configuration 27 | This demo uses native brew API version 2. This requires you to change the red5pro-activation.xml file property to use the AudioCapableProcessor: 28 | 29 | ```sh 30 | 31 | ``` 32 | 33 | Compile the jar and place it into the server plugins folder. 34 | 35 | Create a directory named 'facemask' in the server plugins folder. 36 | 37 | Put the two resource xml files into the facemask directory. 38 | 39 | Edit module-facemask.xml file as required. 40 | 41 | Set moduleFile path to your compiled native code facemask-4.2.0.so binary 42 | 43 | Edit as required the the supportLibs list of openCV components. 44 | 45 | ```sh 46 | 47 | 48 | 49 | 50 | 51 | /usr/local/red5pro/plugins/facemask/libopencv_core.so 52 | /usr/local/red5pro/plugins/facemask/libopencv_imgproc.so 53 | /usr/local/red5pro/plugins/facemask/libopencv_objdetect.so 54 | 55 | 56 | 57 | 58 | ``` 59 | The Support entries are loaded sequentially so any linker errors at runtime can be solved by correctly ordering the dependancies in the supportLibs list as above. 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /native/face-mask/msvc/facemask/facemask.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.902 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "facemask", "facemask.vcxproj", "{F625D6EB-E93E-4571-9A57-DDF809CE52F3}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {F625D6EB-E93E-4571-9A57-DDF809CE52F3}.Debug|x64.ActiveCfg = Debug|x64 17 | {F625D6EB-E93E-4571-9A57-DDF809CE52F3}.Debug|x64.Build.0 = Debug|x64 18 | {F625D6EB-E93E-4571-9A57-DDF809CE52F3}.Debug|x86.ActiveCfg = Debug|Win32 19 | {F625D6EB-E93E-4571-9A57-DDF809CE52F3}.Debug|x86.Build.0 = Debug|Win32 20 | {F625D6EB-E93E-4571-9A57-DDF809CE52F3}.Release|x64.ActiveCfg = Release|x64 21 | {F625D6EB-E93E-4571-9A57-DDF809CE52F3}.Release|x64.Build.0 = Release|x64 22 | {F625D6EB-E93E-4571-9A57-DDF809CE52F3}.Release|x86.ActiveCfg = Release|Win32 23 | {F625D6EB-E93E-4571-9A57-DDF809CE52F3}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {FC403FE6-0972-4389-8E5E-89654923D63C} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /native/face-mask/pic.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/native/face-mask/pic.PNG -------------------------------------------------------------------------------- /native/face-mask/src/main/c++/makefile: -------------------------------------------------------------------------------- 1 | .PHONY : clean 2 | 3 | JAVA_HOME = $(shell dirname $$(readlink -f $$(which java))|sed 's^jre/bin^^') 4 | 5 | 6 | INCLUDES += '-I$(JAVA_HOME)/include' 7 | INCLUDES += '-I$(JAVA_HOME)/include/linux' 8 | INCLUDES += '-I../include/amd64-Linux-gpp' 9 | 10 | 11 | CFLAGS= -fPIC -shared -g $(INCLUDES) 12 | CXXFLAGS += -fpermissive $(INCLUDES) -shared -fPIC 13 | 14 | SOURCES = $(shell echo *.cpp) 15 | HEADERS = $(shell echo *.h) 16 | OBJECTS=$(SOURCES:.cpp=.o) 17 | 18 | LDFLAGS+= '-L../lib/amd64-Linux-gpp' 19 | LDFLAGS+= -lopencv_core -lopencv_imgproc -lopencv_objdetect 20 | 21 | TARGET=facemask-4.2.0.so 22 | 23 | all: $(TARGET) 24 | 25 | clean: 26 | rm -f $(OBJECTS) $(TARGET) 27 | 28 | $(TARGET) : $(OBJECTS) 29 | g++ $(CFLAGS) $(OBJECTS) -o $@ $(LDFLAGS) -------------------------------------------------------------------------------- /native/face-mask/src/main/c++/video_processor2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * https://account.red5pro.com/assets/LICENSE.txt 3 | */ 4 | #ifndef _RED5_PRO_VIDPROC2 5 | #define _RED5_PRO_VIDPROC2 6 | 7 | #pragma once 8 | 9 | #include "inttypes.h" 10 | 11 | /** 12 | * Base class for live video processing modules. 13 | * Extend this class and compile into a dll/shared object. 14 | * The dll/shared object must export the following 3 symbols unmangled( extern "C"{} ) 15 | * 16 | * uint32_t GetGuid(); 17 | * CVideoProcessModule* CreateVideoProcessor(); 18 | * void DestroyVideoProcessor(CVideoProcessModule* processor); 19 | */ 20 | class CVideoProcessModule2 21 | { 22 | public: 23 | virtual ~CVideoProcessModule2() { }; 24 | //return fourCC 25 | virtual uint32_t get_guid() = 0; 26 | //called when video stream size is first discovered. 27 | //Type of processing behavior is signaled. 28 | virtual uint32_t open(uint16_t width, uint16_t height, uint8_t *type, uint8_t *timing, uint8_t *format, uint8_t *return_type) = 0; 29 | // 30 | virtual void set_env(void* env) = 0; 31 | // 32 | virtual uint32_t set_audio(uint32_t rate, uint32_t channel_count) = 0; 33 | //resolution change midstream. re-allocate assets. 34 | virtual uint32_t reinit(uint16_t width, uint16_t height) = 0; 35 | //apply a key/value property to the processor. 36 | virtual uint32_t apply(const char* key, const char* value) = 0; 37 | //called with decoded image. Do a transform in-place to the data pointer. 38 | //Return 0 if there is no frame available yet. 39 | //Change the time value if the output time differs from the input time. 40 | virtual uint32_t process(uint32_t type, uint8_t *data, uint32_t size, uint32_t* time) = 0; 41 | //free resources. 42 | virtual uint32_t close() = 0; 43 | }; 44 | 45 | 46 | /* 47 | Required library export definitions. 48 | These are the typedefs Red5Pro uses to load video process modules. 49 | */ 50 | 51 | // Return unique little endian fourCC ('D' | ('E'<<8 )| ('M'<<16) | ('O'<<24 )) ; 52 | //typedef uint32_t(*GetGuid)(); 53 | 54 | // Return new instance of CVideoProcessModule. 55 | //typedef CVideoProcessModule2* (*CreateVideoProcessor2)(); 56 | 57 | //Destroy instance of CVideoProcessModule. 58 | //typedef void(*DestroyVideoProcessor2)(CVideoProcessModule2*); 59 | 60 | //struct ProcessorFunctionPointers2 61 | //{ 62 | // GetGuid get_guid; 63 | // CreateVideoProcessor2 create_video_processor; 64 | // DestroyVideoProcessor2 destroy_video_processor; 65 | //}; 66 | 67 | #endif -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/calib3d/calib3d.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/calib3d.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/bindings_utils.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_CORE_BINDINGS_UTILS_HPP 6 | #define OPENCV_CORE_BINDINGS_UTILS_HPP 7 | 8 | #include 9 | #include 10 | 11 | namespace cv { namespace utils { 12 | //! @addtogroup core_utils 13 | //! @{ 14 | 15 | CV_EXPORTS_W String dumpInputArray(InputArray argument); 16 | 17 | CV_EXPORTS_W String dumpInputArrayOfArrays(InputArrayOfArrays argument); 18 | 19 | CV_EXPORTS_W String dumpInputOutputArray(InputOutputArray argument); 20 | 21 | CV_EXPORTS_W String dumpInputOutputArrayOfArrays(InputOutputArrayOfArrays argument); 22 | 23 | CV_WRAP static inline 24 | String dumpBool(bool argument) 25 | { 26 | return (argument) ? String("Bool: True") : String("Bool: False"); 27 | } 28 | 29 | CV_WRAP static inline 30 | String dumpInt(int argument) 31 | { 32 | return cv::format("Int: %d", argument); 33 | } 34 | 35 | CV_WRAP static inline 36 | String dumpSizeT(size_t argument) 37 | { 38 | std::ostringstream oss("size_t: ", std::ios::ate); 39 | oss << argument; 40 | return oss.str(); 41 | } 42 | 43 | CV_WRAP static inline 44 | String dumpFloat(float argument) 45 | { 46 | return cv::format("Float: %.2f", argument); 47 | } 48 | 49 | CV_WRAP static inline 50 | String dumpDouble(double argument) 51 | { 52 | return cv::format("Double: %.2f", argument); 53 | } 54 | 55 | CV_WRAP static inline 56 | String dumpCString(const char* argument) 57 | { 58 | return cv::format("String: %s", argument); 59 | } 60 | 61 | CV_WRAP static inline 62 | AsyncArray testAsyncArray(InputArray argument) 63 | { 64 | AsyncPromise p; 65 | p.setValue(argument); 66 | return p.getArrayResult(); 67 | } 68 | 69 | CV_WRAP static inline 70 | AsyncArray testAsyncException() 71 | { 72 | AsyncPromise p; 73 | try 74 | { 75 | CV_Error(Error::StsOk, "Test: Generated async error"); 76 | } 77 | catch (const cv::Exception& e) 78 | { 79 | p.setException(e); 80 | } 81 | return p.getArrayResult(); 82 | } 83 | 84 | //! @} 85 | }} // namespace 86 | 87 | #endif // OPENCV_CORE_BINDINGS_UTILS_HPP 88 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/bufferpool.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2014, Advanced Micro Devices, Inc., all rights reserved. 6 | 7 | #ifndef OPENCV_CORE_BUFFER_POOL_HPP 8 | #define OPENCV_CORE_BUFFER_POOL_HPP 9 | 10 | #ifdef _MSC_VER 11 | #pragma warning(push) 12 | #pragma warning(disable: 4265) 13 | #endif 14 | 15 | namespace cv 16 | { 17 | 18 | //! @addtogroup core 19 | //! @{ 20 | 21 | class BufferPoolController 22 | { 23 | protected: 24 | ~BufferPoolController() { } 25 | public: 26 | virtual size_t getReservedSize() const = 0; 27 | virtual size_t getMaxReservedSize() const = 0; 28 | virtual void setMaxReservedSize(size_t size) = 0; 29 | virtual void freeAllReservedBuffers() = 0; 30 | }; 31 | 32 | //! @} 33 | 34 | } 35 | 36 | #ifdef _MSC_VER 37 | #pragma warning(pop) 38 | #endif 39 | 40 | #endif // OPENCV_CORE_BUFFER_POOL_HPP 41 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/core.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/core.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/detail/async_promise.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_CORE_ASYNC_PROMISE_HPP 6 | #define OPENCV_CORE_ASYNC_PROMISE_HPP 7 | 8 | #include "../async.hpp" 9 | 10 | #include "exception_ptr.hpp" 11 | 12 | namespace cv { 13 | 14 | /** @addtogroup core_async 15 | @{ 16 | */ 17 | 18 | 19 | /** @brief Provides result of asynchronous operations 20 | 21 | */ 22 | class CV_EXPORTS AsyncPromise 23 | { 24 | public: 25 | ~AsyncPromise() CV_NOEXCEPT; 26 | AsyncPromise() CV_NOEXCEPT; 27 | explicit AsyncPromise(const AsyncPromise& o) CV_NOEXCEPT; 28 | AsyncPromise& operator=(const AsyncPromise& o) CV_NOEXCEPT; 29 | void release() CV_NOEXCEPT; 30 | 31 | /** Returns associated AsyncArray 32 | @note Can be called once 33 | */ 34 | AsyncArray getArrayResult(); 35 | 36 | /** Stores asynchronous result. 37 | @param[in] value result 38 | */ 39 | void setValue(InputArray value); 40 | 41 | // TODO "move" setters 42 | 43 | #if CV__EXCEPTION_PTR 44 | /** Stores exception. 45 | @param[in] exception exception to be raised in AsyncArray 46 | */ 47 | void setException(std::exception_ptr exception); 48 | #endif 49 | 50 | /** Stores exception. 51 | @param[in] exception exception to be raised in AsyncArray 52 | */ 53 | void setException(const cv::Exception& exception); 54 | 55 | #ifdef CV_CXX11 56 | explicit AsyncPromise(AsyncPromise&& o) { p = o.p; o.p = NULL; } 57 | AsyncPromise& operator=(AsyncPromise&& o) CV_NOEXCEPT { std::swap(p, o.p); return *this; } 58 | #endif 59 | 60 | 61 | // PImpl 62 | typedef struct AsyncArray::Impl Impl; friend struct AsyncArray::Impl; 63 | inline void* _getImpl() const CV_NOEXCEPT { return p; } 64 | protected: 65 | Impl* p; 66 | }; 67 | 68 | 69 | //! @} 70 | } // namespace 71 | #endif // OPENCV_CORE_ASYNC_PROMISE_HPP 72 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/detail/exception_ptr.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_CORE_DETAILS_EXCEPTION_PTR_H 6 | #define OPENCV_CORE_DETAILS_EXCEPTION_PTR_H 7 | 8 | #ifndef CV__EXCEPTION_PTR 9 | # if defined(__ANDROID__) && defined(ATOMIC_INT_LOCK_FREE) && ATOMIC_INT_LOCK_FREE < 2 10 | # define CV__EXCEPTION_PTR 0 // Not supported, details: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938 11 | # elif defined(CV_CXX11) 12 | # define CV__EXCEPTION_PTR 1 13 | # elif defined(_MSC_VER) 14 | # define CV__EXCEPTION_PTR (_MSC_VER >= 1600) 15 | # elif defined(__clang__) 16 | # define CV__EXCEPTION_PTR 0 // C++11 only (see above) 17 | # elif defined(__GNUC__) && defined(__GXX_EXPERIMENTAL_CXX0X__) 18 | # define CV__EXCEPTION_PTR (__GXX_EXPERIMENTAL_CXX0X__ > 0) 19 | # endif 20 | #endif 21 | #ifndef CV__EXCEPTION_PTR 22 | # define CV__EXCEPTION_PTR 0 23 | #elif CV__EXCEPTION_PTR 24 | # include // std::exception_ptr 25 | #endif 26 | 27 | #endif // OPENCV_CORE_DETAILS_EXCEPTION_PTR_H 28 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/ocl_genbase.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the OpenCV Foundation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_OPENCL_GENBASE_HPP 43 | #define OPENCV_OPENCL_GENBASE_HPP 44 | 45 | //! @cond IGNORED 46 | 47 | namespace cv { 48 | namespace ocl { 49 | 50 | class ProgramSource; 51 | 52 | namespace internal { 53 | 54 | struct CV_EXPORTS ProgramEntry 55 | { 56 | const char* module; 57 | const char* name; 58 | const char* programCode; 59 | const char* programHash; 60 | ProgramSource* pProgramSource; 61 | 62 | operator ProgramSource& () const; 63 | }; 64 | 65 | } } } // namespace 66 | 67 | //! @endcond 68 | 69 | #endif 70 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/opencl_svm.hpp: -------------------------------------------------------------------------------- 1 | /* See LICENSE file in the root OpenCV directory */ 2 | 3 | #ifndef OPENCV_CORE_OPENCL_SVM_HPP 4 | #define OPENCV_CORE_OPENCL_SVM_HPP 5 | 6 | // 7 | // Internal usage only (binary compatibility is not guaranteed) 8 | // 9 | #ifndef __OPENCV_BUILD 10 | #error Internal header file 11 | #endif 12 | 13 | #if defined(HAVE_OPENCL) && defined(HAVE_OPENCL_SVM) 14 | #include "runtime/opencl_core.hpp" 15 | #include "runtime/opencl_svm_20.hpp" 16 | #include "runtime/opencl_svm_hsa_extension.hpp" 17 | 18 | namespace cv { namespace ocl { namespace svm { 19 | 20 | struct SVMCapabilities 21 | { 22 | enum Value 23 | { 24 | SVM_COARSE_GRAIN_BUFFER = (1 << 0), 25 | SVM_FINE_GRAIN_BUFFER = (1 << 1), 26 | SVM_FINE_GRAIN_SYSTEM = (1 << 2), 27 | SVM_ATOMICS = (1 << 3), 28 | }; 29 | int value_; 30 | 31 | SVMCapabilities(int capabilities = 0) : value_(capabilities) { } 32 | operator int() const { return value_; } 33 | 34 | inline bool isNoSVMSupport() const { return value_ == 0; } 35 | inline bool isSupportCoarseGrainBuffer() const { return (value_ & SVM_COARSE_GRAIN_BUFFER) != 0; } 36 | inline bool isSupportFineGrainBuffer() const { return (value_ & SVM_FINE_GRAIN_BUFFER) != 0; } 37 | inline bool isSupportFineGrainSystem() const { return (value_ & SVM_FINE_GRAIN_SYSTEM) != 0; } 38 | inline bool isSupportAtomics() const { return (value_ & SVM_ATOMICS) != 0; } 39 | }; 40 | 41 | CV_EXPORTS const SVMCapabilities getSVMCapabilitites(const ocl::Context& context); 42 | 43 | struct SVMFunctions 44 | { 45 | clSVMAllocAMD_fn fn_clSVMAlloc; 46 | clSVMFreeAMD_fn fn_clSVMFree; 47 | clSetKernelArgSVMPointerAMD_fn fn_clSetKernelArgSVMPointer; 48 | //clSetKernelExecInfoAMD_fn fn_clSetKernelExecInfo; 49 | //clEnqueueSVMFreeAMD_fn fn_clEnqueueSVMFree; 50 | clEnqueueSVMMemcpyAMD_fn fn_clEnqueueSVMMemcpy; 51 | clEnqueueSVMMemFillAMD_fn fn_clEnqueueSVMMemFill; 52 | clEnqueueSVMMapAMD_fn fn_clEnqueueSVMMap; 53 | clEnqueueSVMUnmapAMD_fn fn_clEnqueueSVMUnmap; 54 | 55 | inline SVMFunctions() 56 | : fn_clSVMAlloc(NULL), fn_clSVMFree(NULL), 57 | fn_clSetKernelArgSVMPointer(NULL), /*fn_clSetKernelExecInfo(NULL),*/ 58 | /*fn_clEnqueueSVMFree(NULL),*/ fn_clEnqueueSVMMemcpy(NULL), fn_clEnqueueSVMMemFill(NULL), 59 | fn_clEnqueueSVMMap(NULL), fn_clEnqueueSVMUnmap(NULL) 60 | { 61 | // nothing 62 | } 63 | 64 | inline bool isValid() const 65 | { 66 | return fn_clSVMAlloc != NULL && fn_clSVMFree && fn_clSetKernelArgSVMPointer && 67 | /*fn_clSetKernelExecInfo && fn_clEnqueueSVMFree &&*/ fn_clEnqueueSVMMemcpy && 68 | fn_clEnqueueSVMMemFill && fn_clEnqueueSVMMap && fn_clEnqueueSVMUnmap; 69 | } 70 | }; 71 | 72 | // We should guarantee that SVMFunctions lifetime is not less than context's lifetime 73 | CV_EXPORTS const SVMFunctions* getSVMFunctions(const ocl::Context& context); 74 | 75 | CV_EXPORTS bool useSVM(UMatUsageFlags usageFlags); 76 | 77 | }}} //namespace cv::ocl::svm 78 | #endif 79 | 80 | #endif // OPENCV_CORE_OPENCL_SVM_HPP 81 | /* End of file. */ 82 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // AUTOGENERATED, DO NOT EDIT 3 | // 4 | #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_HPP 5 | #error "Invalid usage" 6 | #endif 7 | 8 | // generated by parser_cl.py 9 | #define clCreateFromGLBuffer clCreateFromGLBuffer_ 10 | #define clCreateFromGLRenderbuffer clCreateFromGLRenderbuffer_ 11 | #define clCreateFromGLTexture clCreateFromGLTexture_ 12 | #define clCreateFromGLTexture2D clCreateFromGLTexture2D_ 13 | #define clCreateFromGLTexture3D clCreateFromGLTexture3D_ 14 | #define clEnqueueAcquireGLObjects clEnqueueAcquireGLObjects_ 15 | #define clEnqueueReleaseGLObjects clEnqueueReleaseGLObjects_ 16 | #define clGetGLContextInfoKHR clGetGLContextInfoKHR_ 17 | #define clGetGLObjectInfo clGetGLObjectInfo_ 18 | #define clGetGLTextureInfo clGetGLTextureInfo_ 19 | 20 | #if defined __APPLE__ 21 | #include 22 | #else 23 | #include 24 | #endif 25 | 26 | // generated by parser_cl.py 27 | #undef clCreateFromGLBuffer 28 | #define clCreateFromGLBuffer clCreateFromGLBuffer_pfn 29 | #undef clCreateFromGLRenderbuffer 30 | #define clCreateFromGLRenderbuffer clCreateFromGLRenderbuffer_pfn 31 | #undef clCreateFromGLTexture 32 | #define clCreateFromGLTexture clCreateFromGLTexture_pfn 33 | #undef clCreateFromGLTexture2D 34 | #define clCreateFromGLTexture2D clCreateFromGLTexture2D_pfn 35 | #undef clCreateFromGLTexture3D 36 | #define clCreateFromGLTexture3D clCreateFromGLTexture3D_pfn 37 | #undef clEnqueueAcquireGLObjects 38 | #define clEnqueueAcquireGLObjects clEnqueueAcquireGLObjects_pfn 39 | #undef clEnqueueReleaseGLObjects 40 | #define clEnqueueReleaseGLObjects clEnqueueReleaseGLObjects_pfn 41 | #undef clGetGLContextInfoKHR 42 | #define clGetGLContextInfoKHR clGetGLContextInfoKHR_pfn 43 | #undef clGetGLObjectInfo 44 | #define clGetGLObjectInfo clGetGLObjectInfo_pfn 45 | #undef clGetGLTextureInfo 46 | #define clGetGLTextureInfo clGetGLTextureInfo_pfn 47 | 48 | #ifdef cl_khr_gl_sharing 49 | 50 | // generated by parser_cl.py 51 | extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLBuffer)(cl_context, cl_mem_flags, cl_GLuint, int*); 52 | extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLRenderbuffer)(cl_context, cl_mem_flags, cl_GLuint, cl_int*); 53 | extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLTexture)(cl_context, cl_mem_flags, cl_GLenum, cl_GLint, cl_GLuint, cl_int*); 54 | extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLTexture2D)(cl_context, cl_mem_flags, cl_GLenum, cl_GLint, cl_GLuint, cl_int*); 55 | extern CL_RUNTIME_EXPORT cl_mem (CL_API_CALL*clCreateFromGLTexture3D)(cl_context, cl_mem_flags, cl_GLenum, cl_GLint, cl_GLuint, cl_int*); 56 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueAcquireGLObjects)(cl_command_queue, cl_uint, const cl_mem*, cl_uint, const cl_event*, cl_event*); 57 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clEnqueueReleaseGLObjects)(cl_command_queue, cl_uint, const cl_mem*, cl_uint, const cl_event*, cl_event*); 58 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetGLContextInfoKHR)(const cl_context_properties*, cl_gl_context_info, size_t, void*, size_t*); 59 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetGLObjectInfo)(cl_mem, cl_gl_object_type*, cl_GLuint*); 60 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL*clGetGLTextureInfo)(cl_mem, cl_gl_texture_info, size_t, void*, size_t*); 61 | 62 | #endif // cl_khr_gl_sharing 63 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/autogenerated/opencl_gl_wrappers.hpp: -------------------------------------------------------------------------------- 1 | // 2 | // AUTOGENERATED, DO NOT EDIT 3 | // 4 | #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_WRAPPERS_HPP 5 | #error "Invalid usage" 6 | #endif 7 | 8 | #ifdef cl_khr_gl_sharing 9 | 10 | // generated by parser_cl.py 11 | #undef clCreateFromGLBuffer 12 | #define clCreateFromGLBuffer clCreateFromGLBuffer_fn 13 | inline cl_mem clCreateFromGLBuffer(cl_context p0, cl_mem_flags p1, cl_GLuint p2, int* p3) { return clCreateFromGLBuffer_pfn(p0, p1, p2, p3); } 14 | #undef clCreateFromGLRenderbuffer 15 | #define clCreateFromGLRenderbuffer clCreateFromGLRenderbuffer_fn 16 | inline cl_mem clCreateFromGLRenderbuffer(cl_context p0, cl_mem_flags p1, cl_GLuint p2, cl_int* p3) { return clCreateFromGLRenderbuffer_pfn(p0, p1, p2, p3); } 17 | #undef clCreateFromGLTexture 18 | #define clCreateFromGLTexture clCreateFromGLTexture_fn 19 | inline cl_mem clCreateFromGLTexture(cl_context p0, cl_mem_flags p1, cl_GLenum p2, cl_GLint p3, cl_GLuint p4, cl_int* p5) { return clCreateFromGLTexture_pfn(p0, p1, p2, p3, p4, p5); } 20 | #undef clCreateFromGLTexture2D 21 | #define clCreateFromGLTexture2D clCreateFromGLTexture2D_fn 22 | inline cl_mem clCreateFromGLTexture2D(cl_context p0, cl_mem_flags p1, cl_GLenum p2, cl_GLint p3, cl_GLuint p4, cl_int* p5) { return clCreateFromGLTexture2D_pfn(p0, p1, p2, p3, p4, p5); } 23 | #undef clCreateFromGLTexture3D 24 | #define clCreateFromGLTexture3D clCreateFromGLTexture3D_fn 25 | inline cl_mem clCreateFromGLTexture3D(cl_context p0, cl_mem_flags p1, cl_GLenum p2, cl_GLint p3, cl_GLuint p4, cl_int* p5) { return clCreateFromGLTexture3D_pfn(p0, p1, p2, p3, p4, p5); } 26 | #undef clEnqueueAcquireGLObjects 27 | #define clEnqueueAcquireGLObjects clEnqueueAcquireGLObjects_fn 28 | inline cl_int clEnqueueAcquireGLObjects(cl_command_queue p0, cl_uint p1, const cl_mem* p2, cl_uint p3, const cl_event* p4, cl_event* p5) { return clEnqueueAcquireGLObjects_pfn(p0, p1, p2, p3, p4, p5); } 29 | #undef clEnqueueReleaseGLObjects 30 | #define clEnqueueReleaseGLObjects clEnqueueReleaseGLObjects_fn 31 | inline cl_int clEnqueueReleaseGLObjects(cl_command_queue p0, cl_uint p1, const cl_mem* p2, cl_uint p3, const cl_event* p4, cl_event* p5) { return clEnqueueReleaseGLObjects_pfn(p0, p1, p2, p3, p4, p5); } 32 | #undef clGetGLContextInfoKHR 33 | #define clGetGLContextInfoKHR clGetGLContextInfoKHR_fn 34 | inline cl_int clGetGLContextInfoKHR(const cl_context_properties* p0, cl_gl_context_info p1, size_t p2, void* p3, size_t* p4) { return clGetGLContextInfoKHR_pfn(p0, p1, p2, p3, p4); } 35 | #undef clGetGLObjectInfo 36 | #define clGetGLObjectInfo clGetGLObjectInfo_fn 37 | inline cl_int clGetGLObjectInfo(cl_mem p0, cl_gl_object_type* p1, cl_GLuint* p2) { return clGetGLObjectInfo_pfn(p0, p1, p2); } 38 | #undef clGetGLTextureInfo 39 | #define clGetGLTextureInfo clGetGLTextureInfo_fn 40 | inline cl_int clGetGLTextureInfo(cl_mem p0, cl_gl_texture_info p1, size_t p2, void* p3, size_t* p4) { return clGetGLTextureInfo_pfn(p0, p1, p2, p3, p4); } 41 | 42 | #endif // cl_khr_gl_sharing 43 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/opencl_clamdblas.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the OpenCV Foundation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_CORE_OCL_RUNTIME_CLAMDBLAS_HPP 43 | #define OPENCV_CORE_OCL_RUNTIME_CLAMDBLAS_HPP 44 | 45 | #ifdef HAVE_CLAMDBLAS 46 | 47 | #include "opencl_core.hpp" 48 | 49 | #include "autogenerated/opencl_clamdblas.hpp" 50 | 51 | #endif // HAVE_CLAMDBLAS 52 | 53 | #endif // OPENCV_CORE_OCL_RUNTIME_CLAMDBLAS_HPP 54 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/opencl_clamdfft.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the OpenCV Foundation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_CORE_OCL_RUNTIME_CLAMDFFT_HPP 43 | #define OPENCV_CORE_OCL_RUNTIME_CLAMDFFT_HPP 44 | 45 | #ifdef HAVE_CLAMDFFT 46 | 47 | #include "opencl_core.hpp" 48 | 49 | #include "autogenerated/opencl_clamdfft.hpp" 50 | 51 | #endif // HAVE_CLAMDFFT 52 | 53 | #endif // OPENCV_CORE_OCL_RUNTIME_CLAMDFFT_HPP 54 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/opencl_core_wrappers.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the OpenCV Foundation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_WRAPPERS_HPP 43 | #define OPENCV_CORE_OCL_RUNTIME_OPENCL_WRAPPERS_HPP 44 | 45 | #include "autogenerated/opencl_core_wrappers.hpp" 46 | 47 | #endif // OPENCV_CORE_OCL_RUNTIME_OPENCL_WRAPPERS_HPP 48 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/opencl_gl.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the OpenCV Foundation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_HPP 43 | #define OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_HPP 44 | 45 | #if defined HAVE_OPENCL && defined HAVE_OPENGL 46 | 47 | #include "opencl_core.hpp" 48 | 49 | #include "autogenerated/opencl_gl.hpp" 50 | 51 | #endif // defined HAVE_OPENCL && defined HAVE_OPENGL 52 | 53 | #endif // OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_HPP 54 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/opencl_gl_wrappers.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of the copyright holders may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the OpenCV Foundation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_WRAPPERS_HPP 43 | #define OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_WRAPPERS_HPP 44 | 45 | #include "autogenerated/opencl_gl_wrappers.hpp" 46 | 47 | #endif // OPENCV_CORE_OCL_RUNTIME_OPENCL_GL_WRAPPERS_HPP 48 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/opencl_svm_20.hpp: -------------------------------------------------------------------------------- 1 | /* See LICENSE file in the root OpenCV directory */ 2 | 3 | #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_2_0_HPP 4 | #define OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_2_0_HPP 5 | 6 | #if defined(HAVE_OPENCL_SVM) 7 | #include "opencl_core.hpp" 8 | 9 | #include "opencl_svm_definitions.hpp" 10 | 11 | #undef clSVMAlloc 12 | #define clSVMAlloc clSVMAlloc_pfn 13 | #undef clSVMFree 14 | #define clSVMFree clSVMFree_pfn 15 | #undef clSetKernelArgSVMPointer 16 | #define clSetKernelArgSVMPointer clSetKernelArgSVMPointer_pfn 17 | #undef clSetKernelExecInfo 18 | //#define clSetKernelExecInfo clSetKernelExecInfo_pfn 19 | #undef clEnqueueSVMFree 20 | //#define clEnqueueSVMFree clEnqueueSVMFree_pfn 21 | #undef clEnqueueSVMMemcpy 22 | #define clEnqueueSVMMemcpy clEnqueueSVMMemcpy_pfn 23 | #undef clEnqueueSVMMemFill 24 | #define clEnqueueSVMMemFill clEnqueueSVMMemFill_pfn 25 | #undef clEnqueueSVMMap 26 | #define clEnqueueSVMMap clEnqueueSVMMap_pfn 27 | #undef clEnqueueSVMUnmap 28 | #define clEnqueueSVMUnmap clEnqueueSVMUnmap_pfn 29 | 30 | extern CL_RUNTIME_EXPORT void* (CL_API_CALL *clSVMAlloc)(cl_context context, cl_svm_mem_flags flags, size_t size, unsigned int alignment); 31 | extern CL_RUNTIME_EXPORT void (CL_API_CALL *clSVMFree)(cl_context context, void* svm_pointer); 32 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL *clSetKernelArgSVMPointer)(cl_kernel kernel, cl_uint arg_index, const void* arg_value); 33 | //extern CL_RUNTIME_EXPORT void* (CL_API_CALL *clSetKernelExecInfo)(cl_kernel kernel, cl_kernel_exec_info param_name, size_t param_value_size, const void* param_value); 34 | //extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL *clEnqueueSVMFree)(cl_command_queue command_queue, cl_uint num_svm_pointers, void* svm_pointers[], 35 | // void (CL_CALLBACK *pfn_free_func)(cl_command_queue queue, cl_uint num_svm_pointers, void* svm_pointers[], void* user_data), void* user_data, 36 | // cl_uint num_events_in_wait_list, const cl_event* event_wait_list, cl_event* event); 37 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL *clEnqueueSVMMemcpy)(cl_command_queue command_queue, cl_bool blocking_copy, void* dst_ptr, const void* src_ptr, size_t size, 38 | cl_uint num_events_in_wait_list, const cl_event* event_wait_list, cl_event* event); 39 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL *clEnqueueSVMMemFill)(cl_command_queue command_queue, void* svm_ptr, const void* pattern, size_t pattern_size, size_t size, 40 | cl_uint num_events_in_wait_list, const cl_event* event_wait_list, cl_event* event); 41 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL *clEnqueueSVMMap)(cl_command_queue command_queue, cl_bool blocking_map, cl_map_flags map_flags, void* svm_ptr, size_t size, 42 | cl_uint num_events_in_wait_list, const cl_event* event_wait_list, cl_event* event); 43 | extern CL_RUNTIME_EXPORT cl_int (CL_API_CALL *clEnqueueSVMUnmap)(cl_command_queue command_queue, void* svm_ptr, 44 | cl_uint num_events_in_wait_list, const cl_event* event_wait_list, cl_event* event); 45 | 46 | #endif // HAVE_OPENCL_SVM 47 | 48 | #endif // OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_2_0_HPP 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/opencl/runtime/opencl_svm_definitions.hpp: -------------------------------------------------------------------------------- 1 | /* See LICENSE file in the root OpenCV directory */ 2 | 3 | #ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_DEFINITIONS_HPP 4 | #define OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_DEFINITIONS_HPP 5 | 6 | #if defined(HAVE_OPENCL_SVM) 7 | #if defined(CL_VERSION_2_0) 8 | 9 | // OpenCL 2.0 contains SVM definitions 10 | 11 | #else 12 | 13 | typedef cl_bitfield cl_device_svm_capabilities; 14 | typedef cl_bitfield cl_svm_mem_flags; 15 | typedef cl_uint cl_kernel_exec_info; 16 | 17 | // 18 | // TODO Add real values after OpenCL 2.0 release 19 | // 20 | 21 | #ifndef CL_DEVICE_SVM_CAPABILITIES 22 | #define CL_DEVICE_SVM_CAPABILITIES 0x1053 23 | 24 | #define CL_DEVICE_SVM_COARSE_GRAIN_BUFFER (1 << 0) 25 | #define CL_DEVICE_SVM_FINE_GRAIN_BUFFER (1 << 1) 26 | #define CL_DEVICE_SVM_FINE_GRAIN_SYSTEM (1 << 2) 27 | #define CL_DEVICE_SVM_ATOMICS (1 << 3) 28 | #endif 29 | 30 | #ifndef CL_MEM_SVM_FINE_GRAIN_BUFFER 31 | #define CL_MEM_SVM_FINE_GRAIN_BUFFER (1 << 10) 32 | #endif 33 | 34 | #ifndef CL_MEM_SVM_ATOMICS 35 | #define CL_MEM_SVM_ATOMICS (1 << 11) 36 | #endif 37 | 38 | 39 | #endif // CL_VERSION_2_0 40 | #endif // HAVE_OPENCL_SVM 41 | 42 | #endif // OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_DEFINITIONS_HPP 43 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/ovx.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | // Copyright (C) 2016, Intel Corporation, all rights reserved. 6 | // Third party copyrights are property of their respective owners. 7 | 8 | // OpenVX related definitions and declarations 9 | 10 | #pragma once 11 | #ifndef OPENCV_OVX_HPP 12 | #define OPENCV_OVX_HPP 13 | 14 | #include "cvdef.h" 15 | 16 | namespace cv 17 | { 18 | /// Check if use of OpenVX is possible 19 | CV_EXPORTS_W bool haveOpenVX(); 20 | 21 | /// Check if use of OpenVX is enabled 22 | CV_EXPORTS_W bool useOpenVX(); 23 | 24 | /// Enable/disable use of OpenVX 25 | CV_EXPORTS_W void setUseOpenVX(bool flag); 26 | } // namespace cv 27 | 28 | #endif // OPENCV_OVX_HPP 29 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/simd_intrinsics.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_CORE_SIMD_INTRINSICS_HPP 6 | #define OPENCV_CORE_SIMD_INTRINSICS_HPP 7 | 8 | /** 9 | Helper header to support SIMD intrinsics (universal intrinsics) in user code. 10 | Intrinsics documentation: https://docs.opencv.org/master/df/d91/group__core__hal__intrin.html 11 | 12 | 13 | Checks of target CPU instruction set based on compiler definitions don't work well enough. 14 | More reliable solutions require utilization of configuration systems (like CMake). 15 | 16 | So, probably you need to specify your own configuration. 17 | 18 | You can do that via CMake in this way: 19 | add_definitions(/DOPENCV_SIMD_CONFIG_HEADER=opencv_simd_config_custom.hpp) 20 | or 21 | add_definitions(/DOPENCV_SIMD_CONFIG_INCLUDE_DIR=1) 22 | 23 | Additionally you may need to add include directory to your files: 24 | include_directories("${CMAKE_CURRENT_LIST_DIR}/opencv_config_${MYTARGET}") 25 | 26 | These files can be pre-generated for target configurations of your application 27 | or generated by CMake on the fly (use CMAKE_BINARY_DIR for that). 28 | 29 | Notes: 30 | - H/W capability checks are still responsibility of your application 31 | - runtime dispatching is not covered by this helper header 32 | */ 33 | 34 | #ifdef __OPENCV_BUILD 35 | #error "Use core/hal/intrin.hpp during OpenCV build" 36 | #endif 37 | 38 | #ifdef OPENCV_HAL_INTRIN_HPP 39 | #error "core/simd_intrinsics.hpp must be included before core/hal/intrin.hpp" 40 | #endif 41 | 42 | #include "opencv2/core/cvdef.h" 43 | #include "opencv2/core/version.hpp" 44 | 45 | #ifdef OPENCV_SIMD_CONFIG_HEADER 46 | #include CVAUX_STR(OPENCV_SIMD_CONFIG_HEADER) 47 | #elif defined(OPENCV_SIMD_CONFIG_INCLUDE_DIR) 48 | #include "opencv_simd_config.hpp" // corresponding directory should be added via -I compiler parameter 49 | #else // custom config headers 50 | 51 | #if (!defined(CV_AVX_512F) || !CV_AVX_512F) && (defined(__AVX512__) || defined(__AVX512F__)) 52 | # include 53 | # undef CV_AVX_512F 54 | # define CV_AVX_512F 1 55 | # ifndef OPENCV_SIMD_DONT_ASSUME_SKX // Skylake-X with AVX-512F/CD/BW/DQ/VL 56 | # undef CV_AVX512_SKX 57 | # define CV_AVX512_SKX 1 58 | # undef CV_AVX_512CD 59 | # define CV_AVX_512CD 1 60 | # undef CV_AVX_512BW 61 | # define CV_AVX_512BW 1 62 | # undef CV_AVX_512DQ 63 | # define CV_AVX_512DQ 1 64 | # undef CV_AVX_512VL 65 | # define CV_AVX_512VL 1 66 | # endif 67 | #endif // AVX512 68 | 69 | // GCC/Clang: -mavx2 70 | // MSVC: /arch:AVX2 71 | #if defined __AVX2__ 72 | # include 73 | # undef CV_AVX2 74 | # define CV_AVX2 1 75 | # if defined __F16C__ 76 | # undef CV_FP16 77 | # define CV_FP16 1 78 | # endif 79 | #endif 80 | 81 | #endif 82 | 83 | // SSE / NEON / VSX is handled by cv_cpu_dispatch.h compatibility block 84 | #include "cv_cpu_dispatch.h" 85 | 86 | #include "hal/intrin.hpp" 87 | 88 | #endif // OPENCV_CORE_SIMD_INTRINSICS_HPP 89 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/utils/allocator_stats.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_CORE_ALLOCATOR_STATS_HPP 6 | #define OPENCV_CORE_ALLOCATOR_STATS_HPP 7 | 8 | #include "../cvdef.h" 9 | 10 | namespace cv { namespace utils { 11 | 12 | class AllocatorStatisticsInterface 13 | { 14 | protected: 15 | AllocatorStatisticsInterface() {} 16 | virtual ~AllocatorStatisticsInterface() {} 17 | public: 18 | virtual uint64_t getCurrentUsage() const = 0; 19 | virtual uint64_t getTotalUsage() const = 0; 20 | virtual uint64_t getNumberOfAllocations() const = 0; 21 | virtual uint64_t getPeakUsage() const = 0; 22 | 23 | /** set peak usage = current usage */ 24 | virtual void resetPeakUsage() = 0; 25 | }; 26 | 27 | }} // namespace 28 | 29 | #endif // OPENCV_CORE_ALLOCATOR_STATS_HPP 30 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/utils/logger.defines.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_LOGGER_DEFINES_HPP 6 | #define OPENCV_LOGGER_DEFINES_HPP 7 | 8 | //! @addtogroup core_logging 9 | //! @{ 10 | 11 | // Supported logging levels and their semantic 12 | #define CV_LOG_LEVEL_SILENT 0 //!< for using in setLogLevel() call 13 | #define CV_LOG_LEVEL_FATAL 1 //!< Fatal (critical) error (unrecoverable internal error) 14 | #define CV_LOG_LEVEL_ERROR 2 //!< Error message 15 | #define CV_LOG_LEVEL_WARN 3 //!< Warning message 16 | #define CV_LOG_LEVEL_INFO 4 //!< Info message 17 | #define CV_LOG_LEVEL_DEBUG 5 //!< Debug message. Disabled in the "Release" build. 18 | #define CV_LOG_LEVEL_VERBOSE 6 //!< Verbose (trace) messages. Requires verbosity level. Disabled in the "Release" build. 19 | 20 | namespace cv { 21 | namespace utils { 22 | namespace logging { 23 | 24 | //! Supported logging levels and their semantic 25 | enum LogLevel { 26 | LOG_LEVEL_SILENT = 0, //!< for using in setLogVevel() call 27 | LOG_LEVEL_FATAL = 1, //!< Fatal (critical) error (unrecoverable internal error) 28 | LOG_LEVEL_ERROR = 2, //!< Error message 29 | LOG_LEVEL_WARNING = 3, //!< Warning message 30 | LOG_LEVEL_INFO = 4, //!< Info message 31 | LOG_LEVEL_DEBUG = 5, //!< Debug message. Disabled in the "Release" build. 32 | LOG_LEVEL_VERBOSE = 6, //!< Verbose (trace) messages. Requires verbosity level. Disabled in the "Release" build. 33 | #ifndef CV_DOXYGEN 34 | ENUM_LOG_LEVEL_FORCE_INT = INT_MAX 35 | #endif 36 | }; 37 | 38 | }}} // namespace 39 | 40 | //! @} 41 | 42 | #endif // OPENCV_LOGGER_DEFINES_HPP 43 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/utils/logtag.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_CORE_LOGTAG_HPP 6 | #define OPENCV_CORE_LOGTAG_HPP 7 | 8 | #include "opencv2/core/cvstd.hpp" 9 | #include "logger.defines.hpp" 10 | 11 | namespace cv { 12 | namespace utils { 13 | namespace logging { 14 | 15 | struct LogTag 16 | { 17 | const char* name; 18 | LogLevel level; 19 | 20 | inline LogTag(const char* _name, LogLevel _level) 21 | : name(_name) 22 | , level(_level) 23 | {} 24 | }; 25 | 26 | }}} 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/va_intel.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | // Copyright (C) 2015, Itseez, Inc., all rights reserved. 6 | // Third party copyrights are property of their respective owners. 7 | 8 | #ifndef OPENCV_CORE_VA_INTEL_HPP 9 | #define OPENCV_CORE_VA_INTEL_HPP 10 | 11 | #ifndef __cplusplus 12 | # error va_intel.hpp header must be compiled as C++ 13 | #endif 14 | 15 | #include "opencv2/core.hpp" 16 | #include "ocl.hpp" 17 | 18 | #if defined(HAVE_VA) 19 | # include "va/va.h" 20 | #else // HAVE_VA 21 | # if !defined(_VA_H_) 22 | typedef void* VADisplay; 23 | typedef unsigned int VASurfaceID; 24 | # endif // !_VA_H_ 25 | #endif // HAVE_VA 26 | 27 | namespace cv { namespace va_intel { 28 | 29 | /** @addtogroup core_va_intel 30 | This section describes Intel VA-API/OpenCL (CL-VA) interoperability. 31 | 32 | To enable CL-VA interoperability support, configure OpenCV using CMake with WITH_VA_INTEL=ON . Currently VA-API is 33 | supported on Linux only. You should also install Intel Media Server Studio (MSS) to use this feature. You may 34 | have to specify the path(s) to MSS components for cmake in environment variables: 35 | 36 | - VA_INTEL_IOCL_ROOT for Intel OpenCL (default is "/opt/intel/opencl"). 37 | 38 | To use CL-VA interoperability you should first create VADisplay (libva), and then call initializeContextFromVA() 39 | function to create OpenCL context and set up interoperability. 40 | */ 41 | //! @{ 42 | 43 | /////////////////// CL-VA Interoperability Functions /////////////////// 44 | 45 | namespace ocl { 46 | using namespace cv::ocl; 47 | 48 | // TODO static functions in the Context class 49 | /** @brief Creates OpenCL context from VA. 50 | @param display - VADisplay for which CL interop should be established. 51 | @param tryInterop - try to set up for interoperability, if true; set up for use slow copy if false. 52 | @return Returns reference to OpenCL Context 53 | */ 54 | CV_EXPORTS Context& initializeContextFromVA(VADisplay display, bool tryInterop = true); 55 | 56 | } // namespace cv::va_intel::ocl 57 | 58 | /** @brief Converts InputArray to VASurfaceID object. 59 | @param display - VADisplay object. 60 | @param src - source InputArray. 61 | @param surface - destination VASurfaceID object. 62 | @param size - size of image represented by VASurfaceID object. 63 | */ 64 | CV_EXPORTS void convertToVASurface(VADisplay display, InputArray src, VASurfaceID surface, Size size); 65 | 66 | /** @brief Converts VASurfaceID object to OutputArray. 67 | @param display - VADisplay object. 68 | @param surface - source VASurfaceID object. 69 | @param size - size of image represented by VASurfaceID object. 70 | @param dst - destination OutputArray. 71 | */ 72 | CV_EXPORTS void convertFromVASurface(VADisplay display, VASurfaceID surface, Size size, OutputArray dst); 73 | 74 | //! @} 75 | 76 | }} // namespace cv::va_intel 77 | 78 | #endif /* OPENCV_CORE_VA_INTEL_HPP */ 79 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/core/version.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_VERSION_HPP 6 | #define OPENCV_VERSION_HPP 7 | 8 | #define CV_VERSION_MAJOR 4 9 | #define CV_VERSION_MINOR 2 10 | #define CV_VERSION_REVISION 0 11 | #define CV_VERSION_STATUS "" 12 | 13 | #define CVAUX_STR_EXP(__A) #__A 14 | #define CVAUX_STR(__A) CVAUX_STR_EXP(__A) 15 | 16 | #define CVAUX_STRW_EXP(__A) L ## #__A 17 | #define CVAUX_STRW(__A) CVAUX_STRW_EXP(__A) 18 | 19 | #define CV_VERSION CVAUX_STR(CV_VERSION_MAJOR) "." CVAUX_STR(CV_VERSION_MINOR) "." CVAUX_STR(CV_VERSION_REVISION) CV_VERSION_STATUS 20 | 21 | /* old style version constants*/ 22 | #define CV_MAJOR_VERSION CV_VERSION_MAJOR 23 | #define CV_MINOR_VERSION CV_VERSION_MINOR 24 | #define CV_SUBMINOR_VERSION CV_VERSION_REVISION 25 | 26 | #endif // OPENCV_VERSION_HPP 27 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/dnn/layer.details.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | #ifndef OPENCV_DNN_LAYER_DETAILS_HPP 6 | #define OPENCV_DNN_LAYER_DETAILS_HPP 7 | 8 | #include 9 | 10 | namespace cv { 11 | namespace dnn { 12 | CV__DNN_INLINE_NS_BEGIN 13 | 14 | /** @brief Registers layer constructor in runtime. 15 | * @param type string, containing type name of the layer. 16 | * @param constructorFunc pointer to the function of type LayerRegister::Constructor, which creates the layer. 17 | * @details This macros must be placed inside the function code. 18 | */ 19 | #define CV_DNN_REGISTER_LAYER_FUNC(type, constructorFunc) \ 20 | cv::dnn::LayerFactory::registerLayer(#type, constructorFunc); 21 | 22 | /** @brief Registers layer class in runtime. 23 | * @param type string, containing type name of the layer. 24 | * @param class C++ class, derived from Layer. 25 | * @details This macros must be placed inside the function code. 26 | */ 27 | #define CV_DNN_REGISTER_LAYER_CLASS(type, class) \ 28 | cv::dnn::LayerFactory::registerLayer(#type, cv::dnn::details::_layerDynamicRegisterer); 29 | 30 | /** @brief Registers layer constructor on module load time. 31 | * @param type string, containing type name of the layer. 32 | * @param constructorFunc pointer to the function of type LayerRegister::Constructor, which creates the layer. 33 | * @details This macros must be placed outside the function code. 34 | */ 35 | #define CV_DNN_REGISTER_LAYER_FUNC_STATIC(type, constructorFunc) \ 36 | static cv::dnn::details::_LayerStaticRegisterer __LayerStaticRegisterer_##type(#type, constructorFunc); 37 | 38 | /** @brief Registers layer class on module load time. 39 | * @param type string, containing type name of the layer. 40 | * @param class C++ class, derived from Layer. 41 | * @details This macros must be placed outside the function code. 42 | */ 43 | #define CV_DNN_REGISTER_LAYER_CLASS_STATIC(type, class) \ 44 | Ptr __LayerStaticRegisterer_func_##type(LayerParams ¶ms) \ 45 | { return Ptr(new class(params)); } \ 46 | static cv::dnn::details::_LayerStaticRegisterer __LayerStaticRegisterer_##type(#type, __LayerStaticRegisterer_func_##type); 47 | 48 | namespace details { 49 | 50 | template 51 | Ptr _layerDynamicRegisterer(LayerParams ¶ms) 52 | { 53 | return Ptr(LayerClass::create(params)); 54 | } 55 | 56 | //allows automatically register created layer on module load time 57 | class _LayerStaticRegisterer 58 | { 59 | String type; 60 | public: 61 | 62 | _LayerStaticRegisterer(const String &layerType, LayerFactory::Constructor layerConstructor) 63 | { 64 | this->type = layerType; 65 | LayerFactory::registerLayer(layerType, layerConstructor); 66 | } 67 | 68 | ~_LayerStaticRegisterer() 69 | { 70 | LayerFactory::unregisterLayer(type); 71 | } 72 | }; 73 | 74 | } // namespace 75 | CV__DNN_INLINE_NS_END 76 | }} // namespace 77 | 78 | #endif 79 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/dnn/utils/inference_engine.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018-2019, Intel Corporation, all rights reserved. 6 | // Third party copyrights are property of their respective owners. 7 | 8 | #ifndef OPENCV_DNN_UTILS_INF_ENGINE_HPP 9 | #define OPENCV_DNN_UTILS_INF_ENGINE_HPP 10 | 11 | #include "../dnn.hpp" 12 | 13 | namespace cv { namespace dnn { 14 | CV__DNN_INLINE_NS_BEGIN 15 | 16 | 17 | /* Values for 'OPENCV_DNN_BACKEND_INFERENCE_ENGINE_TYPE' parameter */ 18 | #define CV_DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_API "NN_BUILDER" 19 | #define CV_DNN_BACKEND_INFERENCE_ENGINE_NGRAPH "NGRAPH" 20 | 21 | /** @brief Returns Inference Engine internal backend API. 22 | * 23 | * See values of `CV_DNN_BACKEND_INFERENCE_ENGINE_*` macros. 24 | * 25 | * Default value is controlled through `OPENCV_DNN_BACKEND_INFERENCE_ENGINE_TYPE` runtime parameter (environment variable). 26 | */ 27 | CV_EXPORTS_W cv::String getInferenceEngineBackendType(); 28 | 29 | /** @brief Specify Inference Engine internal backend API. 30 | * 31 | * See values of `CV_DNN_BACKEND_INFERENCE_ENGINE_*` macros. 32 | * 33 | * @returns previous value of internal backend API 34 | */ 35 | CV_EXPORTS_W cv::String setInferenceEngineBackendType(const cv::String& newBackendType); 36 | 37 | 38 | /** @brief Release a Myriad device (binded by OpenCV). 39 | * 40 | * Single Myriad device cannot be shared across multiple processes which uses 41 | * Inference Engine's Myriad plugin. 42 | */ 43 | CV_EXPORTS_W void resetMyriadDevice(); 44 | 45 | 46 | /* Values for 'OPENCV_DNN_IE_VPU_TYPE' parameter */ 47 | #define CV_DNN_INFERENCE_ENGINE_VPU_TYPE_UNSPECIFIED "" 48 | /// Intel(R) Movidius(TM) Neural Compute Stick, NCS (USB 03e7:2150), Myriad2 (https://software.intel.com/en-us/movidius-ncs) 49 | #define CV_DNN_INFERENCE_ENGINE_VPU_TYPE_MYRIAD_2 "Myriad2" 50 | /// Intel(R) Neural Compute Stick 2, NCS2 (USB 03e7:2485), MyriadX (https://software.intel.com/ru-ru/neural-compute-stick) 51 | #define CV_DNN_INFERENCE_ENGINE_VPU_TYPE_MYRIAD_X "MyriadX" 52 | 53 | 54 | /** @brief Returns Inference Engine VPU type. 55 | * 56 | * See values of `CV_DNN_INFERENCE_ENGINE_VPU_TYPE_*` macros. 57 | */ 58 | CV_EXPORTS_W cv::String getInferenceEngineVPUType(); 59 | 60 | 61 | CV__DNN_INLINE_NS_END 62 | }} // namespace 63 | 64 | #endif // OPENCV_DNN_UTILS_INF_ENGINE_HPP 65 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/dnn/version.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_DNN_VERSION_HPP 6 | #define OPENCV_DNN_VERSION_HPP 7 | 8 | /// Use with major OpenCV version only. 9 | #define OPENCV_DNN_API_VERSION 20191202 10 | 11 | #if !defined CV_DOXYGEN && !defined CV_STATIC_ANALYSIS && !defined CV_DNN_DONT_ADD_INLINE_NS 12 | #define CV__DNN_INLINE_NS __CV_CAT(dnn4_v, OPENCV_DNN_API_VERSION) 13 | #define CV__DNN_INLINE_NS_BEGIN namespace CV__DNN_INLINE_NS { 14 | #define CV__DNN_INLINE_NS_END } 15 | namespace cv { namespace dnn { namespace CV__DNN_INLINE_NS { } using namespace CV__DNN_INLINE_NS; }} 16 | #else 17 | #define CV__DNN_INLINE_NS_BEGIN 18 | #define CV__DNN_INLINE_NS_END 19 | #endif 20 | 21 | #endif // OPENCV_DNN_VERSION_HPP 22 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/features2d/features2d.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/features2d.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/features2d/hal/interface.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENCV_FEATURE2D_HAL_INTERFACE_H 2 | #define OPENCV_FEATURE2D_HAL_INTERFACE_H 3 | 4 | #include "opencv2/core/cvdef.h" 5 | //! @addtogroup features2d_hal_interface 6 | //! @{ 7 | 8 | //! @name Fast feature detector types 9 | //! @sa cv::FastFeatureDetector 10 | //! @{ 11 | #define CV_HAL_TYPE_5_8 0 12 | #define CV_HAL_TYPE_7_12 1 13 | #define CV_HAL_TYPE_9_16 2 14 | //! @} 15 | 16 | //! @name Key point 17 | //! @sa cv::KeyPoint 18 | //! @{ 19 | struct CV_EXPORTS cvhalKeyPoint 20 | { 21 | float x; 22 | float y; 23 | float size; 24 | float angle; 25 | float response; 26 | int octave; 27 | int class_id; 28 | }; 29 | //! @} 30 | 31 | //! @} 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/flann/config.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2011 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2011 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_CONFIG_H_ 31 | #define OPENCV_FLANN_CONFIG_H_ 32 | 33 | //! @cond IGNORED 34 | 35 | #ifdef FLANN_VERSION_ 36 | #undef FLANN_VERSION_ 37 | #endif 38 | #define FLANN_VERSION_ "1.6.10" 39 | 40 | //! @endcond 41 | 42 | #endif /* OPENCV_FLANN_CONFIG_H_ */ 43 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/flann/dummy.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef OPENCV_FLANN_DUMMY_H_ 3 | #define OPENCV_FLANN_DUMMY_H_ 4 | 5 | //! @cond IGNORED 6 | 7 | namespace cvflann 8 | { 9 | 10 | CV_DEPRECATED inline void dummyfunc() {} 11 | 12 | } 13 | 14 | //! @endcond 15 | 16 | #endif /* OPENCV_FLANN_DUMMY_H_ */ 17 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/flann/flann.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/flann.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/flann/general.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_GENERAL_H_ 32 | #define OPENCV_FLANN_GENERAL_H_ 33 | 34 | //! @cond IGNORED 35 | 36 | #include "opencv2/core.hpp" 37 | 38 | namespace cvflann 39 | { 40 | 41 | class FLANNException : public cv::Exception 42 | { 43 | public: 44 | FLANNException(const char* message) : cv::Exception(0, message, "", __FILE__, __LINE__) { } 45 | 46 | FLANNException(const cv::String& message) : cv::Exception(0, message, "", __FILE__, __LINE__) { } 47 | }; 48 | 49 | } 50 | 51 | //! @endcond 52 | 53 | #endif /* OPENCV_FLANN_GENERAL_H_ */ 54 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/flann/object_factory.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_OBJECT_FACTORY_H_ 32 | #define OPENCV_FLANN_OBJECT_FACTORY_H_ 33 | 34 | //! @cond IGNORED 35 | 36 | #include 37 | 38 | namespace cvflann 39 | { 40 | 41 | class CreatorNotFound 42 | { 43 | }; 44 | 45 | template 48 | class ObjectFactory 49 | { 50 | typedef ObjectFactory ThisClass; 51 | typedef std::map ObjectRegistry; 52 | 53 | // singleton class, private constructor 54 | ObjectFactory() {} 55 | 56 | public: 57 | 58 | bool subscribe(UniqueIdType id, ObjectCreator creator) 59 | { 60 | if (object_registry.find(id) != object_registry.end()) return false; 61 | 62 | object_registry[id] = creator; 63 | return true; 64 | } 65 | 66 | bool unregister(UniqueIdType id) 67 | { 68 | return object_registry.erase(id) == 1; 69 | } 70 | 71 | ObjectCreator create(UniqueIdType id) 72 | { 73 | typename ObjectRegistry::const_iterator iter = object_registry.find(id); 74 | 75 | if (iter == object_registry.end()) { 76 | throw CreatorNotFound(); 77 | } 78 | 79 | return iter->second; 80 | } 81 | 82 | static ThisClass& instance() 83 | { 84 | static ThisClass the_factory; 85 | return the_factory; 86 | } 87 | private: 88 | ObjectRegistry object_registry; 89 | }; 90 | 91 | } 92 | 93 | //! @endcond 94 | 95 | #endif /* OPENCV_FLANN_OBJECT_FACTORY_H_ */ 96 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/flann/sampling.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_SAMPLING_H_ 31 | #define OPENCV_FLANN_SAMPLING_H_ 32 | 33 | //! @cond IGNORED 34 | 35 | #include "matrix.h" 36 | #include "random.h" 37 | 38 | namespace cvflann 39 | { 40 | 41 | template 42 | Matrix random_sample(Matrix& srcMatrix, long size, bool remove = false) 43 | { 44 | Matrix newSet(new T[size * srcMatrix.cols], size,srcMatrix.cols); 45 | 46 | T* src,* dest; 47 | for (long i=0; i 65 | Matrix random_sample(const Matrix& srcMatrix, size_t size) 66 | { 67 | UniqueRandom rand((int)srcMatrix.rows); 68 | Matrix newSet(new T[size * srcMatrix.cols], size,srcMatrix.cols); 69 | 70 | T* src,* dest; 71 | for (size_t i=0; i 37 | #include "opencv2/core.hpp" 38 | #include "opencv2/core/utility.hpp" 39 | 40 | namespace cvflann 41 | { 42 | 43 | /** 44 | * A start-stop timer class. 45 | * 46 | * Can be used to time portions of code. 47 | */ 48 | class StartStopTimer 49 | { 50 | int64 startTime; 51 | 52 | public: 53 | /** 54 | * Value of the timer. 55 | */ 56 | double value; 57 | 58 | 59 | /** 60 | * Constructor. 61 | */ 62 | StartStopTimer() 63 | { 64 | reset(); 65 | } 66 | 67 | /** 68 | * Starts the timer. 69 | */ 70 | void start() 71 | { 72 | startTime = cv::getTickCount(); 73 | } 74 | 75 | /** 76 | * Stops the timer and updates timer value. 77 | */ 78 | void stop() 79 | { 80 | int64 stopTime = cv::getTickCount(); 81 | value += ( (double)stopTime - startTime) / cv::getTickFrequency(); 82 | } 83 | 84 | /** 85 | * Resets the timer value to 0. 86 | */ 87 | void reset() 88 | { 89 | value = 0; 90 | } 91 | 92 | }; 93 | 94 | } 95 | 96 | //! @endcond 97 | 98 | #endif // FLANN_TIMER_H 99 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_HPP 9 | #define OPENCV_GAPI_HPP 10 | 11 | #include 12 | 13 | /** \defgroup gapi G-API framework 14 | @{ 15 | @defgroup gapi_main_classes G-API Main Classes 16 | @defgroup gapi_data_objects G-API Data Types 17 | @{ 18 | @defgroup gapi_meta_args G-API Metadata Descriptors 19 | @} 20 | @defgroup gapi_std_backends G-API Standard Backends 21 | @defgroup gapi_compile_args G-API Graph Compilation Arguments 22 | @} 23 | */ 24 | 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | 33 | #endif // OPENCV_GAPI_HPP 34 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/cpu/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_CPU_CORE_API_HPP 9 | #define OPENCV_GAPI_CPU_CORE_API_HPP 10 | 11 | #include // GKernelPackage 12 | #include // GAPI_EXPORTS 13 | 14 | namespace cv { 15 | namespace gapi { 16 | namespace core { 17 | namespace cpu { 18 | 19 | GAPI_EXPORTS GKernelPackage kernels(); 20 | 21 | } // namespace cpu 22 | } // namespace core 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_CPU_CORE_API_HPP 28 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/cpu/imgproc.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_CPU_IMGPROC_API_HPP 9 | #define OPENCV_GAPI_CPU_IMGPROC_API_HPP 10 | 11 | #include // GAPI_EXPORTS 12 | #include // GKernelPackage 13 | 14 | namespace cv { 15 | namespace gapi { 16 | namespace imgproc { 17 | namespace cpu { 18 | 19 | GAPI_EXPORTS GKernelPackage kernels(); 20 | 21 | } // namespace cpu 22 | } // namespace imgproc 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_CPU_IMGPROC_API_HPP 28 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/fluid/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_FLUID_CORE_HPP 9 | #define OPENCV_GAPI_FLUID_CORE_HPP 10 | 11 | #include // GKernelPackage 12 | #include // GAPI_EXPORTS 13 | 14 | namespace cv { namespace gapi { namespace core { namespace fluid { 15 | 16 | GAPI_EXPORTS GKernelPackage kernels(); 17 | 18 | }}}} 19 | 20 | #endif // OPENCV_GAPI_FLUID_CORE_HPP 21 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/fluid/imgproc.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_FLUID_IMGPROC_HPP 9 | #define OPENCV_GAPI_FLUID_IMGPROC_HPP 10 | 11 | #include // GKernelPackage 12 | #include // GAPI_EXPORTS 13 | 14 | namespace cv { namespace gapi { namespace imgproc { namespace fluid { 15 | 16 | GAPI_EXPORTS GKernelPackage kernels(); 17 | 18 | }}}} 19 | 20 | #endif // OPENCV_GAPI_FLUID_IMGPROC_HPP 21 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/gasync_context.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2019 Intel Corporation 6 | 7 | #ifndef OPENCV_GAPI_GASYNC_CONTEXT_HPP 8 | #define OPENCV_GAPI_GASYNC_CONTEXT_HPP 9 | 10 | #if !defined(GAPI_STANDALONE) 11 | # include 12 | #else // Without OpenCV 13 | # include 14 | #endif // !defined(GAPI_STANDALONE) 15 | 16 | #include 17 | 18 | namespace cv { 19 | namespace gapi{ 20 | namespace wip { 21 | 22 | /** 23 | * @brief A class to group async requests to cancel them in a single shot. 24 | * 25 | * GAsyncContext is passed as an argument to async() and async_apply() functions 26 | */ 27 | 28 | class GAPI_EXPORTS GAsyncContext{ 29 | std::atomic cancelation_requested = {false}; 30 | public: 31 | /** 32 | * @brief Start cancellation process for an associated request. 33 | * 34 | * User still has to wait for each individual request (either via callback or according std::future object) to make sure it actually canceled. 35 | * 36 | * @return true if it was a first request to cancel the context 37 | */ 38 | bool cancel(); 39 | 40 | /** 41 | * @brief Returns true if cancellation was requested for this context. 42 | * 43 | * @return true if cancellation was requested for this context 44 | */ 45 | bool isCanceled() const; 46 | }; 47 | 48 | class GAPI_EXPORTS GAsyncCanceled : public std::exception { 49 | public: 50 | virtual const char* what() const noexcept CV_OVERRIDE; 51 | }; 52 | } // namespace wip 53 | } // namespace gapi 54 | } // namespace cv 55 | 56 | #endif //OPENCV_GAPI_GASYNC_CONTEXT_HPP 57 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/gcall.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GCALL_HPP 9 | #define OPENCV_GAPI_GCALL_HPP 10 | 11 | #include // GArg 12 | #include // GMat 13 | #include // GScalar 14 | #include // GArray 15 | 16 | namespace cv { 17 | 18 | struct GKernel; 19 | 20 | // The whole idea of this class is to represent an operation 21 | // which is applied to arguments. This is part of public API, 22 | // since it is what users should use to define kernel interfaces. 23 | 24 | class GAPI_EXPORTS GCall final 25 | { 26 | public: 27 | class Priv; 28 | 29 | explicit GCall(const GKernel &k); 30 | ~GCall(); 31 | 32 | template 33 | GCall& pass(Ts&&... args) 34 | { 35 | setArgs({cv::GArg(std::move(args))...}); 36 | return *this; 37 | } 38 | 39 | // A generic yield method - obtain a link to operator's particular GMat output 40 | GMat yield (int output = 0); 41 | GMatP yieldP (int output = 0); 42 | GScalar yieldScalar(int output = 0); 43 | 44 | template GArray yieldArray(int output = 0) 45 | { 46 | return GArray(yieldArray(output)); 47 | } 48 | 49 | // Internal use only 50 | Priv& priv(); 51 | const Priv& priv() const; 52 | 53 | protected: 54 | std::shared_ptr m_priv; 55 | 56 | void setArgs(std::vector &&args); 57 | 58 | // Public version returns a typed array, this one is implementation detail 59 | detail::GArrayU yieldArray(int output = 0); 60 | }; 61 | 62 | } // namespace cv 63 | 64 | #endif // OPENCV_GAPI_GCALL_HPP 65 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/gmetaarg.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GMETAARG_HPP 9 | #define OPENCV_GAPI_GMETAARG_HPP 10 | 11 | #include 12 | #include 13 | 14 | #include 15 | #include 16 | 17 | #include 18 | #include 19 | #include 20 | 21 | namespace cv 22 | { 23 | // FIXME: Rename to GMeta? 24 | // FIXME: user shouldn't deal with it - put to detail? 25 | // GMetaArg is an union type over descriptions of G-types which can serve as 26 | // GComputation's in/output slots. 27 | // 28 | // GMetaArg objects are passed as arguments to GComputation::compile() 29 | // to specify which data a compiled computation should be specialized on. 30 | // For manual compile(), user must supply this metadata, in case of apply() 31 | // this metadata is taken from arguments computation should operate on. 32 | // 33 | // The first type (monostate) is equal to "uninitialized"/"unresolved" meta. 34 | using GMetaArg = util::variant 35 | < util::monostate 36 | , GMatDesc 37 | , GScalarDesc 38 | , GArrayDesc 39 | >; 40 | GAPI_EXPORTS std::ostream& operator<<(std::ostream& os, const GMetaArg &); 41 | 42 | using GMetaArgs = std::vector; 43 | 44 | namespace detail 45 | { 46 | // These traits are used by GComputation::compile() 47 | 48 | // FIXME: is_constructible doesn't work as variant doesn't do any SFINAE 49 | // in its current template constructor 50 | 51 | template struct is_meta_descr : std::false_type {}; 52 | template<> struct is_meta_descr : std::true_type {}; 53 | template<> struct is_meta_descr : std::true_type {}; 54 | template<> struct is_meta_descr : std::true_type {}; 55 | 56 | template 57 | using are_meta_descrs = all_satisfy; 58 | 59 | template 60 | using are_meta_descrs_but_last = all_satisfy::type>; 61 | 62 | } // namespace detail 63 | 64 | // Note: descr_of(std::vector<..>) returns a GArrayDesc, while 65 | // descrs_of(std::vector<..>) returns an array of Meta args! 66 | class Mat; 67 | class UMat; 68 | GAPI_EXPORTS cv::GMetaArgs descrs_of(const std::vector &vec); 69 | GAPI_EXPORTS cv::GMetaArgs descrs_of(const std::vector &vec); 70 | namespace gapi { namespace own { 71 | class Mat; 72 | GAPI_EXPORTS cv::GMetaArgs descrs_of(const std::vector &vec); 73 | }} // namespace gapi::own 74 | 75 | } // namespace cv 76 | 77 | #endif // OPENCV_GAPI_GMETAARG_HPP 78 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/gpu/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GPU_CORE_API_HPP 9 | #define OPENCV_GAPI_GPU_CORE_API_HPP 10 | /** @file 11 | * @deprecated Use instead. 12 | */ 13 | 14 | #include 15 | 16 | namespace cv { 17 | namespace gapi { 18 | namespace core { 19 | namespace gpu { 20 | using namespace ocl; 21 | } // namespace gpu 22 | } // namespace core 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_GPU_CORE_API_HPP 28 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/gpu/ggpukernel.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GGPUKERNEL_HPP 9 | #define OPENCV_GAPI_GGPUKERNEL_HPP 10 | /** @file 11 | * @deprecated Use instead. 12 | */ 13 | 14 | #include 15 | #define GAPI_GPU_KERNEL GAPI_OCL_KERNEL 16 | 17 | 18 | #endif // OPENCV_GAPI_GGPUKERNEL_HPP 19 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/gpu/imgproc.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GPU_IMGPROC_API_HPP 9 | #define OPENCV_GAPI_GPU_IMGPROC_API_HPP 10 | /** @file 11 | * @deprecated Use instead. 12 | */ 13 | 14 | #include 15 | 16 | 17 | namespace cv { 18 | namespace gapi { 19 | namespace imgproc { 20 | namespace gpu { 21 | using namespace ocl; 22 | } // namespace gpu 23 | } // namespace imgproc 24 | } // namespace gapi 25 | } // namespace cv 26 | 27 | 28 | #endif // OPENCV_GAPI_GPU_IMGPROC_API_HPP 29 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/gscalar.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | 3 | // It is subject to the license terms in the LICENSE file found in the top-level directory 4 | // of this distribution and at http://opencv.org/license.html. 5 | // 6 | // Copyright (C) 2018 Intel Corporation 7 | 8 | 9 | #ifndef OPENCV_GAPI_GSCALAR_HPP 10 | #define OPENCV_GAPI_GSCALAR_HPP 11 | 12 | #include 13 | 14 | #include 15 | #include // GShape 16 | #include 17 | #include 18 | 19 | namespace cv 20 | { 21 | // Forward declaration; GNode and GOrigin are an internal 22 | // (user-inaccessible) classes. 23 | class GNode; 24 | struct GOrigin; 25 | 26 | /** \addtogroup gapi_data_objects 27 | * @{ 28 | */ 29 | 30 | class GAPI_EXPORTS GScalar 31 | { 32 | public: 33 | GScalar(); // Empty constructor 34 | explicit GScalar(const cv::gapi::own::Scalar& s); // Constant value constructor from cv::gapi::own::Scalar 35 | explicit GScalar(cv::gapi::own::Scalar&& s); // Constant value move-constructor from cv::gapi::own::Scalar 36 | #if !defined(GAPI_STANDALONE) 37 | explicit GScalar(const cv::Scalar& s); // Constant value constructor from cv::Scalar 38 | #endif // !defined(GAPI_STANDALONE) 39 | GScalar(double v0); // Constant value constructor from double 40 | GScalar(const GNode &n, std::size_t out); // Operation result constructor 41 | 42 | GOrigin& priv(); // Internal use only 43 | const GOrigin& priv() const; // Internal use only 44 | 45 | private: 46 | std::shared_ptr m_priv; 47 | }; 48 | 49 | /** @} */ 50 | 51 | /** 52 | * \addtogroup gapi_meta_args 53 | * @{ 54 | */ 55 | struct GScalarDesc 56 | { 57 | // NB.: right now it is empty 58 | 59 | inline bool operator== (const GScalarDesc &) const 60 | { 61 | return true; // NB: implement this method if GScalar meta appears 62 | } 63 | 64 | inline bool operator!= (const GScalarDesc &rhs) const 65 | { 66 | return !(*this == rhs); 67 | } 68 | }; 69 | 70 | static inline GScalarDesc empty_scalar_desc() { return GScalarDesc(); } 71 | 72 | #if !defined(GAPI_STANDALONE) 73 | GAPI_EXPORTS GScalarDesc descr_of(const cv::Scalar &scalar); 74 | #endif // !defined(GAPI_STANDALONE) 75 | /** @} */ 76 | 77 | GAPI_EXPORTS GScalarDesc descr_of(const cv::gapi::own::Scalar &scalar); 78 | 79 | std::ostream& operator<<(std::ostream& os, const cv::GScalarDesc &desc); 80 | 81 | } // namespace cv 82 | 83 | #endif // OPENCV_GAPI_GSCALAR_HPP 84 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/ocl/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OCL_CORE_API_HPP 9 | #define OPENCV_GAPI_OCL_CORE_API_HPP 10 | 11 | #include // GAPI_EXPORTS 12 | #include // GKernelPackage 13 | 14 | namespace cv { 15 | namespace gapi { 16 | namespace core { 17 | namespace ocl { 18 | 19 | GAPI_EXPORTS GKernelPackage kernels(); 20 | 21 | } // namespace ocl 22 | } // namespace core 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_OCL_CORE_API_HPP 28 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/ocl/imgproc.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OCL_IMGPROC_API_HPP 9 | #define OPENCV_GAPI_OCL_IMGPROC_API_HPP 10 | 11 | #include // GAPI_EXPORTS 12 | #include // GKernelPackage 13 | 14 | namespace cv { 15 | namespace gapi { 16 | namespace imgproc { 17 | namespace ocl { 18 | 19 | GAPI_EXPORTS GKernelPackage kernels(); 20 | 21 | } // namespace ocl 22 | } // namespace imgproc 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_OCL_IMGPROC_API_HPP 28 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/opencv_includes.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | 3 | // It is subject to the license terms in the LICENSE file found in the top-level directory 4 | // of this distribution and at http://opencv.org/license.html. 5 | // 6 | // Copyright (C) 2018 Intel Corporation 7 | 8 | 9 | #ifndef OPENCV_GAPI_OPENCV_INCLUDES_HPP 10 | #define OPENCV_GAPI_OPENCV_INCLUDES_HPP 11 | 12 | #if !defined(GAPI_STANDALONE) 13 | # include 14 | # include 15 | # include 16 | # include 17 | #else // Without OpenCV 18 | # include 19 | #endif // !defined(GAPI_STANDALONE) 20 | 21 | #endif // OPENCV_GAPI_OPENCV_INCLUDES_HPP 22 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/own/assert.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OWN_ASSERT_HPP 9 | #define OPENCV_GAPI_OWN_ASSERT_HPP 10 | 11 | #if !defined(GAPI_STANDALONE) 12 | #include 13 | #define GAPI_Assert CV_Assert 14 | #define GAPI_DbgAssert CV_DbgAssert 15 | 16 | #else 17 | #include 18 | #include 19 | #include 20 | 21 | namespace detail 22 | { 23 | inline void assert_abort(const char* str, int line, const char* file, const char* func) 24 | { 25 | std::stringstream ss; 26 | ss << file << ":" << line << ": Assertion " << str << " in function " << func << " failed\n"; 27 | cv::util::throw_error(std::logic_error(ss.str())); 28 | } 29 | } 30 | 31 | #define GAPI_Assert(expr) \ 32 | { if (!(expr)) ::detail::assert_abort(#expr, __LINE__, __FILE__, __func__); } 33 | 34 | 35 | #ifdef NDEBUG 36 | # define GAPI_DbgAssert(expr) 37 | #else 38 | # define GAPI_DbgAssert(expr) GAPI_Assert(expr) 39 | #endif 40 | 41 | #endif // GAPI_STANDALONE 42 | 43 | #endif // OPENCV_GAPI_OWN_ASSERT_HPP 44 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/own/convert.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OWN_CONVERT_HPP 9 | #define OPENCV_GAPI_OWN_CONVERT_HPP 10 | 11 | #if !defined(GAPI_STANDALONE) 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | namespace cv 19 | { 20 | template 21 | std::vector to_own(const cv::MatSize &sz) { 22 | std::vector result(sz.dims()); 23 | for (int i = 0; i < sz.dims(); i++) { 24 | // Note: cv::MatSize is not iterable 25 | result[i] = static_cast(sz[i]); 26 | } 27 | return result; 28 | } 29 | 30 | cv::gapi::own::Mat to_own(Mat&&) = delete; 31 | 32 | inline cv::gapi::own::Mat to_own(Mat const& m) { 33 | return (m.dims == 2) 34 | ? cv::gapi::own::Mat{m.rows, m.cols, m.type(), m.data, m.step} 35 | : cv::gapi::own::Mat{to_own(m.size), m.type(), m.data}; 36 | }; 37 | 38 | 39 | inline cv::gapi::own::Scalar to_own(const cv::Scalar& s) { return {s[0], s[1], s[2], s[3]}; }; 40 | 41 | inline cv::gapi::own::Size to_own (const Size& s) { return {s.width, s.height}; }; 42 | 43 | inline cv::gapi::own::Rect to_own (const Rect& r) { return {r.x, r.y, r.width, r.height}; }; 44 | 45 | 46 | namespace gapi 47 | { 48 | namespace own 49 | { 50 | inline cv::Mat to_ocv(Mat const& m) { 51 | return m.dims.empty() 52 | ? cv::Mat{m.rows, m.cols, m.type(), m.data, m.step} 53 | : cv::Mat{m.dims, m.type(), m.data}; 54 | } 55 | cv::Mat to_ocv(Mat&&) = delete; 56 | 57 | inline cv::Scalar to_ocv(const Scalar& s) { return {s[0], s[1], s[2], s[3]}; }; 58 | 59 | inline cv::Size to_ocv (const Size& s) { return cv::Size(s.width, s.height); }; 60 | 61 | inline cv::Rect to_ocv (const Rect& r) { return cv::Rect(r.x, r.y, r.width, r.height); }; 62 | 63 | } // namespace own 64 | } // namespace gapi 65 | } // namespace cv 66 | 67 | #endif // !defined(GAPI_STANDALONE) 68 | 69 | #endif // OPENCV_GAPI_OWN_CONVERT_HPP 70 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/own/exports.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OWN_TYPES_HPP 9 | #define OPENCV_GAPI_OWN_TYPES_HPP 10 | 11 | # if defined(__OPENCV_BUILD) 12 | # include 13 | # define GAPI_EXPORTS CV_EXPORTS 14 | # else 15 | # define GAPI_EXPORTS 16 | 17 | #if 0 // Note: the following version currently is not needed for non-OpenCV build 18 | # if defined _WIN32 19 | # define GAPI_EXPORTS __declspec(dllexport) 20 | # elif defined __GNUC__ && __GNUC__ >= 4 21 | # define GAPI_EXPORTS __attribute__ ((visibility ("default"))) 22 | # endif 23 | 24 | # ifndef GAPI_EXPORTS 25 | # define GAPI_EXPORTS 26 | # endif 27 | #endif 28 | 29 | # endif 30 | 31 | #endif // OPENCV_GAPI_OWN_TYPES_HPP 32 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/own/saturate.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OWN_SATURATE_HPP 9 | #define OPENCV_GAPI_OWN_SATURATE_HPP 10 | 11 | #include 12 | 13 | #include 14 | #include 15 | 16 | #include 17 | 18 | namespace cv { namespace gapi { namespace own { 19 | //----------------------------- 20 | // 21 | // Numeric cast with saturation 22 | // 23 | //----------------------------- 24 | 25 | template 26 | static inline DST saturate(SRC x) 27 | { 28 | // only integral types please! 29 | GAPI_DbgAssert(std::is_integral::value && 30 | std::is_integral::value); 31 | 32 | if (std::is_same::value) 33 | return static_cast(x); 34 | 35 | if (sizeof(DST) > sizeof(SRC)) 36 | return static_cast(x); 37 | 38 | // compiler must recognize this saturation, 39 | // so compile saturate(a + b) with adds 40 | // instruction (e.g.: _mm_adds_epi16 if x86) 41 | return x < std::numeric_limits::min()? 42 | std::numeric_limits::min(): 43 | x > std::numeric_limits::max()? 44 | std::numeric_limits::max(): 45 | static_cast(x); 46 | } 47 | 48 | // Note, that OpenCV rounds differently: 49 | // - like std::round() for add, subtract 50 | // - like std::rint() for multiply, divide 51 | template 52 | static inline DST saturate(SRC x, R round) 53 | { 54 | if (std::is_floating_point::value) 55 | { 56 | return static_cast(x); 57 | } 58 | else if (std::is_integral::value) 59 | { 60 | GAPI_DbgAssert(std::is_integral::value && 61 | std::is_integral::value); 62 | return saturate(x); 63 | } 64 | else 65 | { 66 | GAPI_DbgAssert(std::is_integral::value && 67 | std::is_floating_point::value); 68 | #ifdef _WIN32 69 | // Suppress warning about converting x to floating-point 70 | // Note that x is already floating-point at this point 71 | #pragma warning(disable: 4244) 72 | #endif 73 | int ix = static_cast(round(x)); 74 | #ifdef _WIN32 75 | #pragma warning(default: 4244) 76 | #endif 77 | return saturate(ix); 78 | } 79 | } 80 | 81 | // explicit suffix 'd' for double type 82 | inline double ceild(double x) { return ceil(x); } 83 | inline double floord(double x) { return floor(x); } 84 | inline double roundd(double x) { return round(x); } 85 | inline double rintd(double x) { return rint(x); } 86 | 87 | } //namespace own 88 | } //namespace gapi 89 | } //namespace cv 90 | #endif /* OPENCV_GAPI_OWN_SATURATE_HPP */ 91 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/own/scalar.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GAPI_OWN_SCALAR_HPP 9 | #define OPENCV_GAPI_GAPI_OWN_SCALAR_HPP 10 | 11 | #include 12 | 13 | namespace cv 14 | { 15 | namespace gapi 16 | { 17 | namespace own 18 | { 19 | 20 | class GAPI_EXPORTS Scalar 21 | { 22 | public: 23 | Scalar() = default; 24 | explicit Scalar(double v0) { val[0] = v0; }; 25 | Scalar(double v0, double v1, double v2 = 0, double v3 = 0) 26 | : val{v0, v1, v2, v3} 27 | { 28 | } 29 | 30 | const double& operator[](int i) const { return val[i]; } 31 | double& operator[](int i) { return val[i]; } 32 | 33 | static Scalar all(double v0) { return Scalar(v0, v0, v0, v0); } 34 | 35 | double val[4] = {0}; 36 | }; 37 | 38 | inline bool operator==(const Scalar& lhs, const Scalar& rhs) 39 | { 40 | return std::equal(std::begin(lhs.val), std::end(lhs.val), std::begin(rhs.val)); 41 | } 42 | 43 | } // namespace own 44 | } // namespace gapi 45 | } // namespace cv 46 | 47 | #endif // OPENCV_GAPI_GAPI_OWN_SCALAR_HPP 48 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/plaidml/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2019 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_PLAIDML_CORE_HPP 9 | #define OPENCV_GAPI_PLAIDML_CORE_HPP 10 | 11 | #include // GKernelPackage 12 | #include // GAPI_EXPORTS 13 | 14 | namespace cv { namespace gapi { namespace core { namespace plaidml { 15 | 16 | GAPI_EXPORTS GKernelPackage kernels(); 17 | 18 | }}}} 19 | 20 | #endif // OPENCV_GAPI_PLAIDML_CORE_HPP 21 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/plaidml/plaidml.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2019 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_PLAIDML_PLAIDML_HPP 9 | #define OPENCV_GAPI_PLAIDML_PLAIDML_HPP 10 | 11 | #include 12 | #include // CompileArgTag 13 | 14 | namespace cv 15 | { 16 | namespace gapi 17 | { 18 | namespace plaidml 19 | { 20 | 21 | /** \addtogroup gapi_compile_args 22 | * @{ 23 | */ 24 | /** 25 | * @brief This structure represents the basic parameters for the experimental 26 | * PlaidML backend. 27 | */ 28 | struct config 29 | { 30 | std::string dev_id; //!< Device ID. Refer to PlaidML documentation for details. 31 | std::string trg_id; //!< Target ID. Refer to PlaidML documentation for details. 32 | }; 33 | /** @} gapi_compile_args */ 34 | 35 | } // namespace plaidml 36 | } // namespace gapi 37 | 38 | namespace detail 39 | { 40 | template<> struct CompileArgTag 41 | { 42 | static const char* tag() { return "gapi.plaidml.config"; } 43 | }; 44 | } // namespace detail 45 | 46 | } // namespace cv 47 | 48 | #endif // OPENCV_GAPI_PLAIDML_PLAIDML_HPP 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/render.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2019 Intel Corporation 6 | 7 | #ifndef OPENCV_GAPI_RENDER_ROOT_HPP 8 | #define OPENCV_GAPI_RENDER_ROOT_HPP 9 | 10 | // This file is just a shortcut to render/render.hpp 11 | 12 | #include 13 | 14 | #endif // OPENCV_GAPI_RENDER_ROOT_HPP 15 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/streaming/source.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2019 Intel Corporation 6 | 7 | #ifndef OPENCV_GAPI_STREAMING_SOURCE_HPP 8 | #define OPENCV_GAPI_STREAMING_SOURCE_HPP 9 | 10 | #include // shared_ptr 11 | #include // is_base_of 12 | 13 | #include // GMetaArg 14 | 15 | 16 | namespace cv { 17 | namespace gapi { 18 | namespace wip { 19 | struct Data; // "forward-declaration" of GRunArg 20 | 21 | /** 22 | * @brief Abstract streaming pipeline source. 23 | * 24 | * Implement this interface if you want customize the way how data is 25 | * streaming into GStreamingCompiled. 26 | * 27 | * Objects implementing this interface can be passed to 28 | * GStreamingCompiled using setSource() with cv::gin(). Regular 29 | * compiled graphs (GCompiled) don't support input objects of this 30 | * type. 31 | * 32 | * Default cv::VideoCapture-based implementation is available, see 33 | * cv::gapi::wip::GCaptureSource. 34 | * 35 | * @note stream sources are passed to G-API via shared pointers, so 36 | * please use ptr() when passing a IStreamSource implementation to 37 | * cv::gin(). 38 | */ 39 | class IStreamSource: public std::enable_shared_from_this 40 | { 41 | public: 42 | using Ptr = std::shared_ptr; 43 | Ptr ptr() { return shared_from_this(); } 44 | virtual bool pull(Data &data) = 0; 45 | virtual GMetaArg descr_of() const = 0; 46 | virtual ~IStreamSource() = default; 47 | }; 48 | 49 | template 50 | IStreamSource::Ptr inline make_src(Args&&... args) 51 | { 52 | static_assert(std::is_base_of::value, 53 | "T must implement the cv::gapi::IStreamSource interface!"); 54 | auto src_ptr = std::make_shared(std::forward(args)...); 55 | return src_ptr->ptr(); 56 | } 57 | 58 | } // namespace wip 59 | } // namespace gapi 60 | } // namespace cv 61 | 62 | #endif // OPENCV_GAPI_STREAMING_SOURCE_HPP 63 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/util/compiler_hints.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | #ifndef OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP 8 | #define OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP 9 | 10 | namespace cv 11 | { 12 | namespace util 13 | { 14 | //! Utility template function to prevent "unused" warnings by various compilers. 15 | template void suppress_unused_warning( const T& ) {} 16 | } // namespace util 17 | } // namespace cv 18 | 19 | #endif /* OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP */ 20 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/gapi/util/throw.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_UTIL_THROW_HPP 9 | #define OPENCV_GAPI_UTIL_THROW_HPP 10 | 11 | #include // std::forward 12 | 13 | #if !defined(__EXCEPTIONS) 14 | #include 15 | #include 16 | #endif 17 | 18 | namespace cv 19 | { 20 | namespace util 21 | { 22 | template 23 | [[noreturn]] void throw_error(ExceptionType &&e) 24 | { 25 | #if defined(__EXCEPTIONS) || defined(_CPPUNWIND) 26 | throw std::forward(e); 27 | #else 28 | fprintf(stderr, "An exception thrown! %s\n" , e.what()); 29 | fflush(stderr); 30 | abort(); 31 | #endif 32 | } 33 | } // namespace util 34 | } // namespace cv 35 | 36 | #endif // OPENCV_GAPI_UTIL_THROW_HPP 37 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/highgui/highgui.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/highgui.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/imgcodecs/imgcodecs.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/imgcodecs.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/imgcodecs/imgcodecs_c.h: -------------------------------------------------------------------------------- 1 | #error "This header with legacy C API declarations has been removed from OpenCV. Legacy constants are available from legacy/constants_c.h file." 2 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/imgcodecs/ios.h: -------------------------------------------------------------------------------- 1 | 2 | /*M/////////////////////////////////////////////////////////////////////////////////////// 3 | // 4 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 5 | // 6 | // By downloading, copying, installing or using the software you agree to this license. 7 | // If you do not agree to this license, do not download, install, 8 | // copy or use the software. 9 | // 10 | // 11 | // License Agreement 12 | // For Open Source Computer Vision Library 13 | // 14 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 15 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #import 45 | #import 46 | #import 47 | #import 48 | #include "opencv2/core/core.hpp" 49 | 50 | //! @addtogroup imgcodecs_ios 51 | //! @{ 52 | 53 | CV_EXPORTS UIImage* MatToUIImage(const cv::Mat& image); 54 | CV_EXPORTS void UIImageToMat(const UIImage* image, 55 | cv::Mat& m, bool alphaExist = false); 56 | 57 | //! @} 58 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/imgcodecs/legacy/constants_c.h: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_IMGCODECS_LEGACY_CONSTANTS_H 6 | #define OPENCV_IMGCODECS_LEGACY_CONSTANTS_H 7 | 8 | /* duplicate of "ImreadModes" enumeration for better compatibility with OpenCV 3.x */ 9 | enum 10 | { 11 | /* 8bit, color or not */ 12 | CV_LOAD_IMAGE_UNCHANGED =-1, 13 | /* 8bit, gray */ 14 | CV_LOAD_IMAGE_GRAYSCALE =0, 15 | /* ?, color */ 16 | CV_LOAD_IMAGE_COLOR =1, 17 | /* any depth, ? */ 18 | CV_LOAD_IMAGE_ANYDEPTH =2, 19 | /* ?, any color */ 20 | CV_LOAD_IMAGE_ANYCOLOR =4, 21 | /* ?, no rotate */ 22 | CV_LOAD_IMAGE_IGNORE_ORIENTATION =128 23 | }; 24 | 25 | /* duplicate of "ImwriteFlags" enumeration for better compatibility with OpenCV 3.x */ 26 | enum 27 | { 28 | CV_IMWRITE_JPEG_QUALITY =1, 29 | CV_IMWRITE_JPEG_PROGRESSIVE =2, 30 | CV_IMWRITE_JPEG_OPTIMIZE =3, 31 | CV_IMWRITE_JPEG_RST_INTERVAL =4, 32 | CV_IMWRITE_JPEG_LUMA_QUALITY =5, 33 | CV_IMWRITE_JPEG_CHROMA_QUALITY =6, 34 | CV_IMWRITE_PNG_COMPRESSION =16, 35 | CV_IMWRITE_PNG_STRATEGY =17, 36 | CV_IMWRITE_PNG_BILEVEL =18, 37 | CV_IMWRITE_PNG_STRATEGY_DEFAULT =0, 38 | CV_IMWRITE_PNG_STRATEGY_FILTERED =1, 39 | CV_IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY =2, 40 | CV_IMWRITE_PNG_STRATEGY_RLE =3, 41 | CV_IMWRITE_PNG_STRATEGY_FIXED =4, 42 | CV_IMWRITE_PXM_BINARY =32, 43 | CV_IMWRITE_EXR_TYPE = 48, 44 | CV_IMWRITE_WEBP_QUALITY =64, 45 | CV_IMWRITE_PAM_TUPLETYPE = 128, 46 | CV_IMWRITE_PAM_FORMAT_NULL = 0, 47 | CV_IMWRITE_PAM_FORMAT_BLACKANDWHITE = 1, 48 | CV_IMWRITE_PAM_FORMAT_GRAYSCALE = 2, 49 | CV_IMWRITE_PAM_FORMAT_GRAYSCALE_ALPHA = 3, 50 | CV_IMWRITE_PAM_FORMAT_RGB = 4, 51 | CV_IMWRITE_PAM_FORMAT_RGB_ALPHA = 5, 52 | }; 53 | 54 | #endif // OPENCV_IMGCODECS_LEGACY_CONSTANTS_H 55 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/imgproc/hal/interface.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENCV_IMGPROC_HAL_INTERFACE_H 2 | #define OPENCV_IMGPROC_HAL_INTERFACE_H 3 | 4 | //! @addtogroup imgproc_hal_interface 5 | //! @{ 6 | 7 | //! @name Interpolation modes 8 | //! @sa cv::InterpolationFlags 9 | //! @{ 10 | #define CV_HAL_INTER_NEAREST 0 11 | #define CV_HAL_INTER_LINEAR 1 12 | #define CV_HAL_INTER_CUBIC 2 13 | #define CV_HAL_INTER_AREA 3 14 | #define CV_HAL_INTER_LANCZOS4 4 15 | //! @} 16 | 17 | //! @name Morphology operations 18 | //! @sa cv::MorphTypes 19 | //! @{ 20 | #define CV_HAL_MORPH_ERODE 0 21 | #define CV_HAL_MORPH_DILATE 1 22 | //! @} 23 | 24 | //! @name Threshold types 25 | //! @sa cv::ThresholdTypes 26 | //! @{ 27 | #define CV_HAL_THRESH_BINARY 0 28 | #define CV_HAL_THRESH_BINARY_INV 1 29 | #define CV_HAL_THRESH_TRUNC 2 30 | #define CV_HAL_THRESH_TOZERO 3 31 | #define CV_HAL_THRESH_TOZERO_INV 4 32 | #define CV_HAL_THRESH_MASK 7 33 | #define CV_HAL_THRESH_OTSU 8 34 | #define CV_HAL_THRESH_TRIANGLE 16 35 | //! @} 36 | 37 | //! @name Adaptive threshold algorithm 38 | //! @sa cv::AdaptiveThresholdTypes 39 | //! @{ 40 | #define CV_HAL_ADAPTIVE_THRESH_MEAN_C 0 41 | #define CV_HAL_ADAPTIVE_THRESH_GAUSSIAN_C 1 42 | //! @} 43 | 44 | //! @} 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/imgproc/imgproc.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/imgproc.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/ml/ml.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/ml.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/ml/ml.inl.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_ML_INL_HPP 6 | #define OPENCV_ML_INL_HPP 7 | 8 | namespace cv { namespace ml { 9 | 10 | // declared in ml.hpp 11 | template 12 | int simulatedAnnealingSolver(SimulatedAnnealingSolverSystem& solverSystem, 13 | double initialTemperature, double finalTemperature, double coolingRatio, 14 | size_t iterationsPerStep, 15 | CV_OUT double* lastTemperature, 16 | cv::RNG& rngEnergy 17 | ) 18 | { 19 | CV_Assert(finalTemperature > 0); 20 | CV_Assert(initialTemperature > finalTemperature); 21 | CV_Assert(iterationsPerStep > 0); 22 | CV_Assert(coolingRatio < 1.0f); 23 | double Ti = initialTemperature; 24 | double previousEnergy = solverSystem.energy(); 25 | int exchange = 0; 26 | while (Ti > finalTemperature) 27 | { 28 | for (size_t i = 0; i < iterationsPerStep; i++) 29 | { 30 | solverSystem.changeState(); 31 | double newEnergy = solverSystem.energy(); 32 | if (newEnergy < previousEnergy) 33 | { 34 | previousEnergy = newEnergy; 35 | exchange++; 36 | } 37 | else 38 | { 39 | double r = rngEnergy.uniform(0.0, 1.0); 40 | if (r < std::exp(-(newEnergy - previousEnergy) / Ti)) 41 | { 42 | previousEnergy = newEnergy; 43 | exchange++; 44 | } 45 | else 46 | { 47 | solverSystem.reverseState(); 48 | } 49 | } 50 | } 51 | Ti *= coolingRatio; 52 | } 53 | if (lastTemperature) 54 | *lastTemperature = Ti; 55 | return exchange; 56 | } 57 | 58 | }} //namespace 59 | 60 | #endif // OPENCV_ML_INL_HPP 61 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/objdetect/objdetect.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/objdetect.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/opencv_modules.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ** File generated automatically, do not modify ** 3 | * 4 | * This file defines the list of modules available in current build configuration 5 | * 6 | * 7 | */ 8 | 9 | // This definition means that OpenCV is built with enabled non-free code. 10 | // For example, patented algorithms for non-profit/non-commercial use only. 11 | /* #undef OPENCV_ENABLE_NONFREE */ 12 | 13 | #define HAVE_OPENCV_CALIB3D 14 | #define HAVE_OPENCV_CORE 15 | #define HAVE_OPENCV_DNN 16 | #define HAVE_OPENCV_FEATURES2D 17 | #define HAVE_OPENCV_FLANN 18 | #define HAVE_OPENCV_GAPI 19 | #define HAVE_OPENCV_HIGHGUI 20 | #define HAVE_OPENCV_IMGCODECS 21 | #define HAVE_OPENCV_IMGPROC 22 | #define HAVE_OPENCV_ML 23 | #define HAVE_OPENCV_OBJDETECT 24 | #define HAVE_OPENCV_PHOTO 25 | #define HAVE_OPENCV_STITCHING 26 | #define HAVE_OPENCV_VIDEO 27 | #define HAVE_OPENCV_VIDEOIO 28 | 29 | 30 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/photo/legacy/constants_c.h: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_PHOTO_LEGACY_CONSTANTS_H 6 | #define OPENCV_PHOTO_LEGACY_CONSTANTS_H 7 | 8 | enum InpaintingModes 9 | { 10 | CV_INPAINT_NS =0, 11 | CV_INPAINT_TELEA =1 12 | }; 13 | 14 | #endif // OPENCV_PHOTO_LEGACY_CONSTANTS_H 15 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/photo/photo.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/photo.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/stitching/detail/camera.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef OPENCV_STITCHING_CAMERA_HPP 44 | #define OPENCV_STITCHING_CAMERA_HPP 45 | 46 | #include "opencv2/core.hpp" 47 | 48 | namespace cv { 49 | namespace detail { 50 | 51 | //! @addtogroup stitching 52 | //! @{ 53 | 54 | /** @brief Describes camera parameters. 55 | 56 | @note Translation is assumed to be zero during the whole stitching pipeline. : 57 | */ 58 | struct CV_EXPORTS_W_SIMPLE CameraParams 59 | { 60 | CameraParams(); 61 | CameraParams(const CameraParams& other); 62 | CameraParams& operator =(const CameraParams& other); 63 | CV_WRAP Mat K() const; 64 | 65 | CV_PROP_RW double focal; // Focal length 66 | CV_PROP_RW double aspect; // Aspect ratio 67 | CV_PROP_RW double ppx; // Principal point X 68 | CV_PROP_RW double ppy; // Principal point Y 69 | CV_PROP_RW Mat R; // Rotation 70 | CV_PROP_RW Mat t; // Translation 71 | }; 72 | 73 | //! @} 74 | 75 | } // namespace detail 76 | } // namespace cv 77 | 78 | #endif // #ifndef OPENCV_STITCHING_CAMERA_HPP 79 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/video.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifndef OPENCV_VIDEO_HPP 45 | #define OPENCV_VIDEO_HPP 46 | 47 | /** 48 | @defgroup video Video Analysis 49 | @{ 50 | @defgroup video_motion Motion Analysis 51 | @defgroup video_track Object Tracking 52 | @defgroup video_c C API 53 | @} 54 | */ 55 | 56 | #include "opencv2/video/tracking.hpp" 57 | #include "opencv2/video/background_segm.hpp" 58 | 59 | #endif //OPENCV_VIDEO_HPP 60 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/video/legacy/constants_c.h: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_VIDEO_LEGACY_CONSTANTS_H 6 | #define OPENCV_VIDEO_LEGACY_CONSTANTS_H 7 | 8 | enum 9 | { 10 | CV_LKFLOW_PYR_A_READY = 1, 11 | CV_LKFLOW_PYR_B_READY = 2, 12 | CV_LKFLOW_INITIAL_GUESSES = 4, 13 | CV_LKFLOW_GET_MIN_EIGENVALS = 8 14 | }; 15 | 16 | #endif // OPENCV_VIDEO_LEGACY_CONSTANTS_H 17 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/video/video.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/video.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/videoio/registry.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_VIDEOIO_REGISTRY_HPP 6 | #define OPENCV_VIDEOIO_REGISTRY_HPP 7 | 8 | #include 9 | 10 | namespace cv { namespace videoio_registry { 11 | /** @addtogroup videoio_registry 12 | This section contains API description how to query/configure available Video I/O backends. 13 | 14 | Runtime configuration options: 15 | - enable debug mode: `OPENCV_VIDEOIO_DEBUG=1` 16 | - change backend priority: `OPENCV_VIDEOIO_PRIORITY_=9999` 17 | - disable backend: `OPENCV_VIDEOIO_PRIORITY_=0` 18 | - specify list of backends with high priority (>100000): `OPENCV_VIDEOIO_PRIORITY_LIST=FFMPEG,GSTREAMER` 19 | 20 | @{ 21 | */ 22 | 23 | 24 | /** @brief Returns backend API name or "UnknownVideoAPI(xxx)" 25 | @param api backend ID (#VideoCaptureAPIs) 26 | */ 27 | CV_EXPORTS_W cv::String getBackendName(VideoCaptureAPIs api); 28 | 29 | /** @brief Returns list of all available backends */ 30 | CV_EXPORTS_W std::vector getBackends(); 31 | 32 | /** @brief Returns list of available backends which works via `cv::VideoCapture(int index)` */ 33 | CV_EXPORTS_W std::vector getCameraBackends(); 34 | 35 | /** @brief Returns list of available backends which works via `cv::VideoCapture(filename)` */ 36 | CV_EXPORTS_W std::vector getStreamBackends(); 37 | 38 | /** @brief Returns list of available backends which works via `cv::VideoWriter()` */ 39 | CV_EXPORTS_W std::vector getWriterBackends(); 40 | 41 | /** @brief Returns true if backend is available */ 42 | CV_EXPORTS bool hasBackend(VideoCaptureAPIs api); 43 | 44 | //! @} 45 | }} // namespace 46 | 47 | #endif // OPENCV_VIDEOIO_REGISTRY_HPP 48 | -------------------------------------------------------------------------------- /native/face-mask/src/main/include/amd64-Linux-gpp/opencv2/videoio/videoio.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. 16 | // Third party copyrights are property of their respective owners. 17 | // 18 | // Redistribution and use in source and binary forms, with or without modification, 19 | // are permitted provided that the following conditions are met: 20 | // 21 | // * Redistribution's of source code must retain the above copyright notice, 22 | // this list of conditions and the following disclaimer. 23 | // 24 | // * Redistribution's in binary form must reproduce the above copyright notice, 25 | // this list of conditions and the following disclaimer in the documentation 26 | // and/or other materials provided with the distribution. 27 | // 28 | // * The name of the copyright holders may not be used to endorse or promote products 29 | // derived from this software without specific prior written permission. 30 | // 31 | // This software is provided by the copyright holders and contributors "as is" and 32 | // any express or implied warranties, including, but not limited to, the implied 33 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 34 | // In no event shall the Intel Corporation or contributors be liable for any direct, 35 | // indirect, incidental, special, exemplary, or consequential damages 36 | // (including, but not limited to, procurement of substitute goods or services; 37 | // loss of use, data, or profits; or business interruption) however caused 38 | // and on any theory of liability, whether in contract, strict liability, 39 | // or tort (including negligence or otherwise) arising in any way out of 40 | // the use of this software, even if advised of the possibility of such damage. 41 | // 42 | //M*/ 43 | 44 | #ifdef __OPENCV_BUILD 45 | #error this is a compatibility header which should not be used inside the OpenCV library 46 | #endif 47 | 48 | #include "opencv2/videoio.hpp" 49 | -------------------------------------------------------------------------------- /native/face-mask/src/main/java/com/red5pro/server/cauldron/facemask/Brewery.java: -------------------------------------------------------------------------------- 1 | package com.red5pro.server.cauldron.facemask; 2 | 3 | import java.util.Map; 4 | //com.red5pro.server.cauldron.facemask.Brewery 5 | public class Brewery { 6 | private String potion; 7 | private Map ingredients; 8 | 9 | public String getPotion() { 10 | return potion; 11 | } 12 | public void setPotion(String name) { 13 | this.potion = name; 14 | } 15 | public Map getIngredients() { 16 | return ingredients; 17 | } 18 | public void setIngredients(Map ingredients) { 19 | this.ingredients = ingredients; 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /native/face-mask/src/main/java/com/red5pro/server/cauldron/facemask/ModuleConfig.java: -------------------------------------------------------------------------------- 1 | package com.red5pro.server.cauldron.facemask; 2 | 3 | public class ModuleConfig { 4 | 5 | private String[] supportLibs; 6 | private String moduleFile; 7 | public String[] getSupportLibs() { 8 | return supportLibs; 9 | } 10 | public void setSupportLibs(String[] supportLibs) { 11 | this.supportLibs = supportLibs; 12 | } 13 | public String getModuleFile() { 14 | return moduleFile; 15 | } 16 | public void setModuleFile(String moduleFile) { 17 | this.moduleFile = moduleFile; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /native/face-mask/src/main/lib/amd64-Linux-gpp/libopencv_core.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/native/face-mask/src/main/lib/amd64-Linux-gpp/libopencv_core.so -------------------------------------------------------------------------------- /native/face-mask/src/main/lib/amd64-Linux-gpp/libopencv_imgcodecs.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/native/face-mask/src/main/lib/amd64-Linux-gpp/libopencv_imgcodecs.so -------------------------------------------------------------------------------- /native/face-mask/src/main/lib/amd64-Linux-gpp/libopencv_imgproc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/native/face-mask/src/main/lib/amd64-Linux-gpp/libopencv_imgproc.so -------------------------------------------------------------------------------- /native/face-mask/src/main/lib/amd64-Linux-gpp/libopencv_objdetect.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/native/face-mask/src/main/lib/amd64-Linux-gpp/libopencv_objdetect.so -------------------------------------------------------------------------------- /native/face-mask/src/main/resources/mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/native/face-mask/src/main/resources/mask.png -------------------------------------------------------------------------------- /native/face-mask/src/main/resources/module-facemask.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | /usr/local/red5pro/plugins/facemask/libopencv_core.so 17 | /usr/local/red5pro/plugins/facemask/libopencv_imgproc.so 18 | /usr/local/red5pro/plugins/facemask/libopencv_objdetect.so 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /parameters-demo/README.md: -------------------------------------------------------------------------------- 1 | Red5 Parameters Demo 2 | === 3 | The parameters-demo application responds to a user provided password by allowing or disallowing connection to the server. Flash clients must pass the value 'some_secret_value' in the net connection connect call, and Red5 Pro rtsp clients must set 'some_secret_value;' in the client configuration. Without them, the sever will respond by rejecting the connection. 4 | The application also registers itself as the IStreamPlaybackSecurity and IStreamPublushSecurity handler. -------------------------------------------------------------------------------- /parameters-demo/parameters-demo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /parameters-demo/parameters-demo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | StreamSecurity 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /parameters-demo/parameters-demo/parameterdemo/WEB-INF/classes/.gitignore: -------------------------------------------------------------------------------- 1 | /demo 2 | -------------------------------------------------------------------------------- /parameters-demo/parameters-demo/parameterdemo/WEB-INF/red5-web.properties: -------------------------------------------------------------------------------- 1 | webapp.contextPath=/parameterdemo 2 | webapp.virtualHosts=* 3 | -------------------------------------------------------------------------------- /parameters-demo/parameters-demo/parameterdemo/WEB-INF/red5-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /parameters-demo/parameters-demo/parameterdemo/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | app_name 9 | 10 | 11 | webAppRootKey 12 | /app_name 13 | 14 | 15 | 16 | rtmpt 17 | org.red5.server.net.rtmpt.RTMPTServlet 18 | 1 19 | 20 | 21 | 22 | rtmpt 23 | /fcs/* 24 | 25 | 26 | 27 | rtmpt 28 | /open/* 29 | 30 | 31 | 32 | rtmpt 33 | /close/* 34 | 35 | 36 | 37 | rtmpt 38 | /send/* 39 | 40 | 41 | 42 | rtmpt 43 | /idle/* 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /parameters-demo/parameters-demo/src/demo/red5pro/parameters/security/ParameterDemo.java: -------------------------------------------------------------------------------- 1 | package demo.red5pro.parameters.security; 2 | //demo.red5pro.parameters.security.ParameterDemo 3 | import org.red5.server.adapter.MultiThreadedApplicationAdapter; 4 | import org.red5.server.api.IConnection; 5 | import org.red5.server.api.Red5; 6 | import org.red5.server.api.scope.IScope; 7 | import org.red5.server.api.stream.IStreamPlaybackSecurity; 8 | import org.red5.server.api.stream.IStreamPublishSecurity; 9 | 10 | 11 | public class ParameterDemo extends MultiThreadedApplicationAdapter implements IStreamPlaybackSecurity, IStreamPublishSecurity { 12 | public boolean appStart(IScope scope){ 13 | 14 | super.appStart(scope); 15 | 16 | //To implement security handlers to prevent access to streams or publishing, 17 | //register the IStreamPlaybackSecurity and IStreamPublishSecurity service handler. 18 | //The webapp implements both interfaces. 19 | this.registerStreamPlaybackSecurity(this); 20 | this.registerStreamPublishSecurity(this); 21 | 22 | return true; 23 | } 24 | public boolean appConnect(IConnection conn, Object[] params){ 25 | 26 | //The client params are received here. Save params of connection for later. 27 | conn.setAttribute("params",params); 28 | //log them out for fun. 29 | for(Object o:params){ 30 | log.info("param {}",String.valueOf(o)); 31 | } 32 | 33 | //Check the parameters and return false to reject the client. 34 | return validateParameters(params); 35 | } 36 | private boolean validateParameters(Object[] params) { 37 | 38 | if(params.length>0){ 39 | if("some_secret_value".equals(params[0].toString())){ 40 | return true; 41 | } 42 | } 43 | 44 | return false; 45 | } 46 | /** 47 | * Look up or validate user param return false if not. Optionally close the client. 48 | */ 49 | @Override 50 | public boolean isPublishAllowed(IScope scp, String arg1, String arg2) { 51 | 52 | Object[] params = (Object[]) Red5.getConnectionLocal().getAttribute("params"); 53 | //Check params and return false if disallowed. 54 | boolean badClient=false; 55 | for(Object o:params){ 56 | log.info("param {}",String.valueOf(o)); 57 | } 58 | 59 | if(badClient) 60 | Red5.getConnectionLocal().close(); 61 | return true; 62 | } 63 | /** 64 | * Look up or validate user param. return false if not. Optionally close the client. 65 | */ 66 | @Override 67 | public boolean isPlaybackAllowed(IScope scp, String arg1, int arg2,int arg3, boolean arg4) { 68 | Object[] params = (Object[]) Red5.getConnectionLocal().getAttribute("params"); 69 | //Check params and return false if disallowed. 70 | boolean badClient=false; 71 | for(Object o:params){ 72 | log.info("param {}",String.valueOf(o)); 73 | } 74 | 75 | if(badClient) 76 | Red5.getConnectionLocal().close(); 77 | return true; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /red5prolive/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | *.class 3 | *.DS_Store 4 | *.metadata 5 | *.war 6 | *.ear 7 | *.log 8 | .project 9 | .classpath 10 | .settings/ 11 | .externalToolBuilders/ 12 | .recommenders 13 | .metadata 14 | .vscode/ -------------------------------------------------------------------------------- /red5prolive/README.md: -------------------------------------------------------------------------------- 1 | # Red5Pro Live Webapp 2 | 3 | Builds with maven. Additional front end files used in the server can be found here: [Front end repository](https://github.com/red5pro/red5pro-server-frontend) 4 | 5 | Delete live directory in red5pro server, place war file into the webapps direcotry, and restart server to deploy the build. -------------------------------------------------------------------------------- /red5prolive/src/main/java/com/infrared5/red5pro/live/LiveStreamListService.java: -------------------------------------------------------------------------------- 1 | package com.infrared5.red5pro.live; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | import java.text.SimpleDateFormat; 6 | import java.util.Date; 7 | import java.util.HashMap; 8 | import java.util.List; 9 | import java.util.Locale; 10 | import java.util.Map; 11 | 12 | import org.red5.server.api.scope.IScope; 13 | import org.springframework.core.io.Resource; 14 | 15 | public class LiveStreamListService { 16 | 17 | // thread-safe in newer jdks 18 | private static SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yy H:mm:ss", Locale.US); 19 | 20 | private final Red5ProLive app; 21 | 22 | public LiveStreamListService(Red5ProLive owner) { 23 | app = owner; 24 | } 25 | 26 | public List getLiveStreams() { 27 | List ret = app.getLiveStreams(); 28 | return ret; 29 | } 30 | 31 | public Map> getListOfAvailableFLVs() throws IOException { 32 | Map> filesMap = new HashMap<>(); 33 | IScope scope = app.getScope(); 34 | if (scope != null) { 35 | addToMap(filesMap, scope.getResources("streams/*.flv")); 36 | addToMap(filesMap, scope.getResources("streams/*.mp4")); 37 | } 38 | return filesMap; 39 | } 40 | 41 | private String formatDate(Date date) { 42 | return formatter.format(date); 43 | } 44 | 45 | private void addToMap(Map> filesMap, Resource[] files) throws IOException { 46 | if (files != null) { 47 | for (Resource flv : files) { 48 | File file = flv.getFile(); 49 | Date lastModifiedDate = new Date(file.lastModified()); 50 | String lastModified = formatDate(lastModifiedDate); 51 | String flvName = flv.getFile().getName(); 52 | String flvBytes = Long.toString(file.length()); 53 | 54 | Map fileInfo = new HashMap<>(); 55 | fileInfo.put("name", flvName); 56 | fileInfo.put("lastModified", lastModified); 57 | fileInfo.put("size", flvBytes); 58 | filesMap.put(flvName, fileInfo); 59 | } 60 | } 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /red5prolive/src/main/java/com/infrared5/red5pro/live/PatternAliasProvider.java: -------------------------------------------------------------------------------- 1 | package com.infrared5.red5pro.live; 2 | 3 | import java.util.regex.Matcher; 4 | import java.util.regex.Pattern; 5 | 6 | import org.red5.net.websocket.WebSocketConnection; 7 | import org.red5.server.api.IConnection; 8 | import org.slf4j.Logger; 9 | import org.slf4j.LoggerFactory; 10 | 11 | import com.red5pro.server.stream.AliasProviderAdapter; 12 | 13 | /** 14 | * Utilizes a simple pattern based approach to provide alias support. 15 | * 16 | * @author Paul Gregoire 17 | */ 18 | public class PatternAliasProvider extends AliasProviderAdapter { 19 | 20 | private static final Logger log = LoggerFactory.getLogger(PatternAliasProvider.class); 21 | 22 | // published name pattern (stream alias) ie: pub_streamA_1 23 | private static final Pattern PUBLISH_PATTERN = Pattern.compile("^(pub)_([a-zA-Z0-9]+)_\\d{1,3}"); 24 | 25 | // play name pattern (play alias) ie: play_streamA_42 26 | private static final Pattern PLAY_PATTERN = Pattern.compile("^(play)_([a-zA-Z0-9]+)_\\d{1,3}"); 27 | 28 | public PatternAliasProvider() { 29 | log.info("PatternAliasProvider"); 30 | } 31 | 32 | @Override 33 | public boolean isAlias(String alias) { 34 | boolean result = false; 35 | Matcher matcher = PUBLISH_PATTERN.matcher(alias); 36 | if (matcher.find()) { 37 | result = true; 38 | } else { 39 | result = PLAY_PATTERN.matcher(alias).find(); 40 | } 41 | log.debug("isAlias - alias: {} result: {}", alias, result); 42 | return result; 43 | } 44 | 45 | @Override 46 | public String resolvePlayAlias(String alias, IConnection webSocket) { 47 | log.debug("resolvePlayAlias - alias: {}", alias); 48 | Matcher matcher = PLAY_PATTERN.matcher(alias); 49 | if (matcher.find()) { 50 | return matcher.group(2); 51 | } else { 52 | log.debug("No stream found for play alias: {}", alias); 53 | } 54 | return null; 55 | } 56 | 57 | @Override 58 | public String resolvePlayAlias(String alias, WebSocketConnection webSocket) { 59 | log.debug("resolvePlayAlias - alias: {}", alias); 60 | Matcher matcher = PLAY_PATTERN.matcher(alias); 61 | if (matcher.find()) { 62 | return matcher.group(2); 63 | } else { 64 | log.debug("No stream found for play alias: {}", alias); 65 | } 66 | return null; 67 | } 68 | 69 | @Override 70 | public String resolveStreamAlias(String alias, IConnection conn) { 71 | log.debug("resolveStreamAlias - alias: {}", alias); 72 | Matcher matcher = PUBLISH_PATTERN.matcher(alias); 73 | if (matcher.find()) { 74 | return matcher.group(2); 75 | } else { 76 | log.debug("No stream found for stream alias: {}", alias); 77 | } 78 | return null; 79 | } 80 | 81 | @Override 82 | public String resolveStreamAlias(String alias, WebSocketConnection webSocket) { 83 | log.debug("resolveStreamAlias - alias: {}", alias); 84 | Matcher matcher = PUBLISH_PATTERN.matcher(alias); 85 | if (matcher.find()) { 86 | return matcher.group(2); 87 | } else { 88 | log.debug("No stream found for stream alias: {}", alias); 89 | } 90 | return null; 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /red5prolive/src/main/webapp/WEB-INF/red5-web.properties: -------------------------------------------------------------------------------- 1 | webapp.contextPath=/live 2 | webapp.virtualHosts=* 3 | # Optional endpoint like http://localhost:8001/webhook for stream-published, stream-unpublished webhook events 4 | # Leave empty if not used 5 | webhooks.endpoint= 6 | 7 | # to enable round trip authentication uncomment below, adding your server host URL or IP, port, and protocol (http or https); you will also need to uncomment the roundTripValidator and simpleAuthSecurity beans in red5-web.xml 8 | # server.validateCredentialsEndPoint=/validateCredentials 9 | # server.invalidateCredentialsEndPoint=/invalidateCredentials 10 | # server.host= 11 | # server.port= 12 | # server.protocol=http:// -------------------------------------------------------------------------------- /red5prolive/src/main/webapp/groupinfo.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.red5pro.webrtc.group.BasicRTCCompositor"%> 2 | <% 3 | String group="live/group01"; 4 | if (request.getParameter("group") != null) { 5 | group = request.getParameter("group"); 6 | } 7 | group = BasicRTCCompositor.getInfo(group); 8 | %> 9 | <%=group %> 10 | -------------------------------------------------------------------------------- /round-robin/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /round-robin/.gitignore: -------------------------------------------------------------------------------- 1 | roundrobin/WEB-INF/classes 2 | /* -------------------------------------------------------------------------------- /round-robin/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | round-robin 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /round-robin/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.7 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.7 12 | -------------------------------------------------------------------------------- /round-robin/readme.md: -------------------------------------------------------------------------------- 1 | Replace Round Robin 2 | === 3 | This demo app adapter implements ClusterLoadBalancer interface and has a random robin set in place instead of round robin. 4 | 5 | 6 | ````java 7 | ClusterLoadBalancer 8 | 9 | 10 | /** 11 | * Round robin override. 12 | */ 13 | @Override 14 | public String getHost() { 15 | 16 | // the cluster edges can be iterated here. 17 | List conns = ClusterNode.getChildren(); 18 | //lets do a random choice. 19 | int r= (int) Math.round((Math.random() * conns.size()-1)); 20 | if(conns.size()>0){ 21 | return conns.get(r).getPublicIp()+":"+conns.get(r).getPublicPort(); 22 | } 23 | 24 | return "0.0.0.0:0"; 25 | } 26 | 27 | ```` 28 | 29 | Red5 Pro contains a servlet to call to get the ip. Make sure the servlet is defined in your web.xml file. 30 | This demo app has it defined. 31 | 32 | ````java 33 | 34 | 35 | cluster 36 | 37 | 38 | 39 | com.red5pro.cluster.plugin.agent.ClusterWebService 40 | 41 | 42 | 43 | 2 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | cluster 52 | 53 | /cluster 54 | 55 | 56 | ```` 57 | You will need to link to the red5 pro jar and the red5 clustering jar. 58 | -------------------------------------------------------------------------------- /round-robin/roundrobin/WEB-INF/red5-web.properties: -------------------------------------------------------------------------------- 1 | webapp.contextPath=/roundrobin 2 | webapp.virtualHosts=* 3 | -------------------------------------------------------------------------------- /round-robin/roundrobin/WEB-INF/red5-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /round-robin/roundrobin/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | live 9 | 10 | webAppRootKey 11 | /app_name 12 | 13 | 14 | 15 | 16 | webAppRootKey 17 | /live 18 | 19 | 20 | 21 | cluster 22 | 23 | com.red5pro.cluster.plugin.agent.ClusterWebService 24 | 25 | -1 26 | 27 | 28 | cluster 29 | /cluster 30 | 31 | 32 | 33 | 34 | 35 | rtmpt 36 | org.red5.server.net.rtmpt.RTMPTServlet 37 | 1 38 | 39 | 40 | 41 | rtmpt 42 | /fcs/* 43 | 44 | 45 | 46 | rtmpt 47 | /open/* 48 | 49 | 50 | 51 | rtmpt 52 | /close/* 53 | 54 | 55 | 56 | rtmpt 57 | /send/* 58 | 59 | 60 | 61 | rtmpt 62 | /idle/* 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /round-robin/src/com/infrared5/red5pro/demo/roundrobin/RoundRobin.java: -------------------------------------------------------------------------------- 1 | package com.infrared5.red5pro.demo.roundrobin; 2 | 3 | import java.util.List; 4 | 5 | import org.red5.server.adapter.MultiThreadedApplicationAdapter; 6 | import org.red5.server.api.scope.IScope; 7 | 8 | import com.red5pro.cluster.ClusterConfiguration; 9 | import com.red5pro.cluster.plugin.ClusterLoadBalancer; 10 | import com.red5pro.cluster.plugin.ClusterNode; 11 | import com.red5pro.cluster.plugin.ClusterPlugin; 12 | import com.red5pro.cluster.plugin.agent.ClusterConnection; 13 | import com.red5pro.plugin.Red5ProPlugin; 14 | /** 15 | * 16 | * @author Andy Shaules 17 | * This application adapter replaces the default round robin with a custom implementation. 18 | * It creates a random-robin. 19 | * 20 | */ 21 | public class RoundRobin extends MultiThreadedApplicationAdapter implements ClusterLoadBalancer{ 22 | public boolean appStart(IScope scope){ 23 | // We implement ClusterLoadBalancer and set this as the provider. 24 | ClusterNode.setBalancer(this); 25 | 26 | return true; 27 | } 28 | /** 29 | * Round robin override. 30 | */ 31 | @Override 32 | public String getHost() { 33 | //info about the cluster can be found in the cluster config. 34 | ClusterConfiguration config=Red5ProPlugin.getCluster().getConfiguration(); 35 | 36 | // the cluster edges can be iterated here. 37 | List conns = ClusterNode.getChildren(); 38 | //lets do a random choice. 39 | int r= (int) Math.round((Math.random() * conns.size()-1)); 40 | if(conns.size()>0){ 41 | return conns.get(r).getPublicIp()+":"+conns.get(r).getPublicPort(); 42 | } 43 | 44 | return "0.0.0.0:0"; 45 | } 46 | } 47 | 48 | 49 | -------------------------------------------------------------------------------- /rtsp-restreamer/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /rtsp-restreamer/.gitignore: -------------------------------------------------------------------------------- 1 | /restreamer/WEB-INF/classes/** 2 | 3 | /.settings/** -------------------------------------------------------------------------------- /rtsp-restreamer/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | rtsp-restreamer 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /rtsp-restreamer/README.md: -------------------------------------------------------------------------------- 1 | Red5 RTSP Restreamer Demo 2 | === 3 | This demo shows how to use a built-in rtsp ip-camera client and re-stream the media from within the red5pro server. 4 | 5 | For demo instructions, please follow the annotated file `rtsp-restreamer/src/com/red5pro/restreamer/Restreamer.java` 6 | -------------------------------------------------------------------------------- /rtsp-restreamer/restreamer/WEB-INF/red5-web.properties: -------------------------------------------------------------------------------- 1 | webapp.contextPath=/restreamer 2 | webapp.virtualHosts=* 3 | -------------------------------------------------------------------------------- /rtsp-restreamer/restreamer/WEB-INF/red5-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /rtsp-restreamer/restreamer/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | app_name 9 | 10 | 11 | webAppRootKey 12 | /app_name 13 | 14 | 15 | 16 | rtmpt 17 | org.red5.server.net.rtmpt.RTMPTServlet 18 | 1 19 | 20 | 21 | 22 | rtmpt 23 | /fcs/* 24 | 25 | 26 | 27 | rtmpt 28 | /open/* 29 | 30 | 31 | 32 | rtmpt 33 | /close/* 34 | 35 | 36 | 37 | rtmpt 38 | /send/* 39 | 40 | 41 | 42 | rtmpt 43 | /idle/* 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /setup/images/red5pro-application-landing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/setup/images/red5pro-application-landing.png -------------------------------------------------------------------------------- /setup/images/red5pro-landing-page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/setup/images/red5pro-landing-page.png -------------------------------------------------------------------------------- /setup/images/streaming-server-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red5pro/red5pro-server-examples/4c175c5acd78f854d377fd88ffb064d62d0d4e77/setup/images/streaming-server-settings.png --------------------------------------------------------------------------------