├── .gitignore
├── CapturingLib
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.core.resources.prefs
├── AndroidManifest.xml
├── libs
│ ├── android-1.2.2415.jar
│ ├── android-support-v4.jar
│ └── domain-1.2.2415.jar
├── proguard-project.txt
├── project.properties
└── src
│ └── com
│ └── jianglin
│ └── util
│ ├── Capturing.java
│ └── VideoCapture.java
├── GLSurfaceView-Demo
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.core.resources.prefs
├── AndroidManifest.xml
├── COPYING
├── README.txt
├── proguard-project.txt
├── project.properties
├── res
│ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ ├── drawable-ldpi
│ │ └── ic_launcher.png
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── layout-land
│ │ └── main.xml
│ ├── layout
│ │ ├── about.xml
│ │ ├── main.xml
│ │ ├── main1.xml
│ │ └── main2.xml
│ ├── values-es
│ │ └── strings.xml
│ └── values
│ │ └── strings.xml
└── src
│ └── com
│ └── faddensoft
│ └── breakout
│ ├── AboutBox.java
│ ├── Ball.java
│ ├── BaseRect.java
│ ├── BasicAlignedRect.java
│ ├── BreakoutActivity.java
│ ├── Brick.java
│ ├── GameActivity.java
│ ├── GameState.java
│ ├── GameSurfaceRenderer.java
│ ├── GameSurfaceView.java
│ ├── OutlineAlignedRect.java
│ ├── SoundResources.java
│ ├── TextResources.java
│ ├── TexturedAlignedRect.java
│ └── Util.java
├── LICENSE
├── README.md
└── android-demo
├── .classpath
├── .project
├── AUTHORS
├── AndroidManifest.xml
├── CC-LICENSE
├── CONTRIBUTORS
├── LICENSE
├── assets
└── data
│ ├── 8.12.mp3
│ ├── block.obj
│ ├── block.wings
│ ├── droid.png
│ ├── explode.png
│ ├── explosion.wav
│ ├── font.ttf
│ ├── font10.fnt
│ ├── font10.png
│ ├── font16.fnt
│ ├── font16.png
│ ├── invader.obj
│ ├── invader.png
│ ├── invader.wings
│ ├── knight.jpg
│ ├── knight.md2
│ ├── planet.jpg
│ ├── playfield.wings
│ ├── shaders
│ ├── color-fs.glsl
│ ├── color-vs.glsl
│ ├── light-tex-fs.glsl
│ ├── light-tex-vs.glsl
│ ├── tex-fs.glsl
│ └── tex-vs.glsl
│ ├── ship.obj
│ ├── ship.png
│ ├── ship.wings
│ ├── shot.obj
│ ├── shot.wav
│ ├── shot.wings
│ └── title.png
├── build.gradle
├── ic_launcher-web.png
├── libs
├── armeabi-v7a
│ └── libgdx.so
├── armeabi
│ └── libgdx.so
├── gdx-backend-android.jar
├── gdx-controllers-android.jar
├── gdx-controllers.jar
└── gdx.jar
├── proguard-project.txt
├── project.properties
├── res
├── drawable-hdpi
│ └── ic_launcher.png
├── drawable-xhdpi
│ └── ic_launcher.png
├── drawable-xxhdpi
│ └── ic_launcher.png
└── values
│ ├── strings.xml
│ └── styles.xml
└── src
└── com
├── badlogic
└── invaders
│ ├── Invaders.java
│ ├── Renderer.java
│ ├── android
│ └── AndroidLauncher.java
│ ├── screens
│ ├── GameLoop.java
│ ├── GameOver.java
│ ├── InvadersScreen.java
│ └── MainMenu.java
│ └── simulation
│ ├── Block.java
│ ├── Explosion.java
│ ├── Invader.java
│ ├── Ship.java
│ ├── Shot.java
│ ├── Simulation.java
│ └── SimulationListener.java
├── intel
└── inde
│ └── mp
│ ├── AudioFormat.java
│ ├── CameraCapture.java
│ ├── GLCapture.java
│ ├── IAudioEffect.java
│ ├── IProgressListener.java
│ ├── IRecognitionPlugin.java
│ ├── IVideoEffect.java
│ ├── MediaComposer.java
│ ├── MediaFile.java
│ ├── MediaFileInfo.java
│ ├── MediaStreamer.java
│ ├── StreamingParameters.java
│ ├── Uri.java
│ ├── VideoFormat.java
│ ├── android
│ ├── AndroidMediaObjectFactory.java
│ ├── AudioContentRecognition.java
│ ├── AudioFormatAndroid.java
│ ├── BufferInfoTranslator.java
│ ├── ByteBufferTranslator.java
│ ├── CameraSource.java
│ ├── EGLContextWrapper.java
│ ├── EffectorSurface.java
│ ├── EglContextSwitcher.java
│ ├── FaceRecognitionPlugin.java
│ ├── GameCapturerSource.java
│ ├── InputSurface.java
│ ├── JNIProgressListener.java
│ ├── JNIVideoEffect.java
│ ├── MediaCodecAudioDecoderPlugin.java
│ ├── MediaCodecDecoderPlugin.java
│ ├── MediaCodecEncoderPlugin.java
│ ├── MediaCodecVideoDecoderPlugin.java
│ ├── MediaExtractorPlugin.java
│ ├── MediaFormatTranslator.java
│ ├── MediaFormatWrapper.java
│ ├── MediaMuxerPlugin.java
│ ├── MediaPipeline.java
│ ├── MicrophoneSource.java
│ ├── OutputSurface.java
│ ├── PreviewRender.java
│ ├── ResamplerAndroid.java
│ ├── SimpleSurface.java
│ ├── Surface.java
│ ├── SurfaceTextureWrapper.java
│ ├── SurfaceWrapper.java
│ ├── VideoFormatAndroid.java
│ └── graphics
│ │ ├── EglUtil.java
│ │ ├── FrameBuffer.java
│ │ ├── FullFrameTexture.java
│ │ ├── ShaderProgram.java
│ │ └── VideoEffect.java
│ └── domain
│ ├── AudioDecoder.java
│ ├── AudioEffector.java
│ ├── AudioEncoder.java
│ ├── AudioSample.java
│ ├── CameraSource.java
│ ├── CapturePipeline.java
│ ├── CaptureSource.java
│ ├── Command.java
│ ├── CommandHandlerFactory.java
│ ├── CommandProcessor.java
│ ├── CommandQueue.java
│ ├── ConnectedNode.java
│ ├── Decoder.java
│ ├── Encoder.java
│ ├── EofFrame.java
│ ├── Frame.java
│ ├── FrameBuffer.java
│ ├── IAndroidMediaObjectFactory.java
│ ├── IAudioContentRecognition.java
│ ├── ICameraSource.java
│ ├── ICaptureSource.java
│ ├── ICommandHandler.java
│ ├── ICommandProcessor.java
│ ├── IEffectorSurface.java
│ ├── IEgl.java
│ ├── IEglContext.java
│ ├── IFrameAllocator.java
│ ├── IFrameBuffer.java
│ ├── IHandlerCreator.java
│ ├── IInput.java
│ ├── IInputRaw.java
│ ├── IMediaCodec.java
│ ├── IMediaExtractor.java
│ ├── IMediaFormatWrapper.java
│ ├── IMediaMuxer.java
│ ├── IMediaSource.java
│ ├── IMicrophoneSource.java
│ ├── IOnFrameAvailableListener.java
│ ├── IOnSurfaceReady.java
│ ├── IOutput.java
│ ├── IOutputRaw.java
│ ├── IPluginOutput.java
│ ├── IPreview.java
│ ├── IReadyFrameProvider.java
│ ├── IRunnable.java
│ ├── ISpecification.java
│ ├── ISurface.java
│ ├── ISurfaceCreatedListener.java
│ ├── ISurfaceCreator.java
│ ├── ISurfaceListener.java
│ ├── ISurfaceProvider.java
│ ├── ISurfaceTexture.java
│ ├── ISurfaceWrapper.java
│ ├── ITopologyTree.java
│ ├── ITransform.java
│ ├── IVideoOutput.java
│ ├── IWrapper.java
│ ├── Input.java
│ ├── IsConnectable.java
│ ├── MatchingCommands.java
│ ├── MediaCodecInfo.java
│ ├── MediaCodecPlugin.java
│ ├── MediaFormat.java
│ ├── MediaFormatType.java
│ ├── MediaSource.java
│ ├── MicrophoneSource.java
│ ├── MultipleMediaSource.java
│ ├── MuxRender.java
│ ├── OutputInputPair.java
│ ├── Pair.java
│ ├── PairCommandSpecification.java
│ ├── PairQueueSpecification.java
│ ├── PassThroughPlugin.java
│ ├── Pipeline.java
│ ├── Plugin.java
│ ├── PluginState.java
│ ├── PreviewContext.java
│ ├── ProgressTracker.java
│ ├── RecognitionPipeline.java
│ ├── Render.java
│ ├── Resampler.java
│ ├── Resolution.java
│ ├── SampleRate.java
│ ├── Segments.java
│ ├── SurfaceRender.java
│ ├── TopologyNet.java
│ ├── TopologySolver.java
│ ├── VideoDecoder.java
│ ├── VideoEffector.java
│ ├── VideoEncoder.java
│ ├── Wrapper.java
│ ├── graphics
│ ├── IEglUtil.java
│ ├── IShaderProgram.java
│ ├── Program.java
│ ├── TextureRenderer.java
│ └── TextureType.java
│ └── pipeline
│ ├── AudioPipelineOutputFormatChangeCommandHandler.java
│ ├── CaptureSourcePullSurfaceCommandHandler.java
│ ├── ConfigureVideoDecoderCommandHandler.java
│ ├── ConfigureVideoEffectorCommandHandler.java
│ ├── ConnectorFactory.java
│ ├── CopyDataCommandHandler.java
│ ├── DrainCommandHandler.java
│ ├── DrainRenderCommandHandler.java
│ ├── EncoderMediaFormatChangedCommandHandler.java
│ ├── EofCommandHandler.java
│ ├── IConnector.java
│ ├── IOnStopListener.java
│ ├── ManyToOneConnectable.java
│ ├── ManyTypes.java
│ ├── MicrophoneSourcePullFrameCommandHandler.java
│ ├── OneToManyConnectable.java
│ ├── OneToOneConnectable.java
│ ├── OutputFormatChangedHandler.java
│ ├── PluginConnector.java
│ ├── PullDataCommandHandler.java
│ ├── PushDataCommandHandler.java
│ ├── PushNewDataCommandHandler.java
│ ├── PushSurfaceCommandHandler.java
│ ├── PushSurfaceCommandHandlerForEffector.java
│ ├── PushSurfaceCommandHandlerForSurfaceRender.java
│ ├── SkipOutputFormatChangeCommandHandler.java
│ └── TriangleVerticesCalculator.java
└── jianglin
└── util
├── Capturing.java
└── VideoCapture.java
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the Dalvik VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # Generated files
12 | bin/
13 | gen/
14 |
15 | # Gradle files
16 | .gradle/
17 | build/
18 |
19 | # Local configuration file (sdk path, etc)
20 | local.properties
21 |
22 | # Proguard folder generated by Eclipse
23 | proguard/
24 |
25 | # Log Files
26 | *.log
27 |
--------------------------------------------------------------------------------
/CapturingLib/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/CapturingLib/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | MyCapturingLib
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/CapturingLib/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/com/jianglin/util/Capturing.java=UTF-8
3 | encoding//src/com/jianglin/util/VideoCapture.java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/CapturingLib/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
9 |
10 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/CapturingLib/libs/android-1.2.2415.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/CapturingLib/libs/android-1.2.2415.jar
--------------------------------------------------------------------------------
/CapturingLib/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/CapturingLib/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/CapturingLib/libs/domain-1.2.2415.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/CapturingLib/libs/domain-1.2.2415.jar
--------------------------------------------------------------------------------
/CapturingLib/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/CapturingLib/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-20
15 | android.library=true
16 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Breakout
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
34 |
35 |
36 |
39 |
40 |
41 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/README.txt:
--------------------------------------------------------------------------------
1 | Android Breakout v1.0.2
2 |
3 | This is a simple game intended to demonstrate various Android features.
4 | It features:
5 |
6 | - Use of OpenGL ES 2.0 for a 2D game, including flat-shaded and
7 | texture-mapped elements.
8 | - Smooth animation that isn't tied to a fixed device refresh rate.
9 | - Use of GLSurfaceView, including considerations for multiple threads.
10 | - Interaction with the Android application framework, including
11 | game state save & restore on Activity pause/resume.
12 | - Handling touch events.
13 | - GL rendering of locale-specific text. (A basic Spanish translation
14 | is included.)
15 | - Sound effect generation and playback.
16 | - Separation of core game logic from Android-specific elements.
17 | - Configurable skill levels, saved preferences, and saved high score.
18 | - Two-panel user interface that rearranges for landscape vs. portrait.
19 |
20 | It also shows some basic 2D collision detection.
21 |
22 |
23 | Some other things that could be added:
24 |
25 | - Cloud storage for preferences and scores.
26 | - Use of fancier GL features, like Vertex Buffer Objects, to improve
27 | rendering efficiency.
28 | - Better configuration UI. Could be more attractive, work better on
29 | phone-sized devices.
30 | - Custom app icon.
31 |
32 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-18
15 | android.library=false
16 | android.library.reference.1=../CapturingLib
17 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/GLSurfaceView-Demo/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/GLSurfaceView-Demo/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/GLSurfaceView-Demo/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/GLSurfaceView-Demo/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/layout-land/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/layout/about.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/layout/main1.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
24 |
25 |
30 |
31 |
38 |
43 |
44 |
45 |
53 |
54 |
62 |
63 |
70 |
71 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/layout/main2.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
24 |
25 |
30 |
35 |
39 |
40 |
41 |
49 |
50 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/values-es/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | Breakout
20 | Nuevo Juego
21 | Reanudar Juego
22 | Sobre
23 |
24 | Nunca perder la bola
25 | Efectos sonoros
26 |
27 | Mejor Puntaje:
28 |
29 |
30 |
31 | Listo?
32 | Juego Termina
33 | Ganador!
34 |
35 | Dificultad:
36 | Bueno
37 |
38 |
39 | - Fácil
40 | - Normal
41 | - Duro
42 | - Absurdo
43 |
44 |
45 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | Breakout
20 | New Game
21 | Resume Game
22 | About
23 |
24 | Never lose ball
25 | Sound effects
26 |
27 | High Score:
28 |
29 | \nA simple \'breakout\' app, inspired by Little Brick Out.\n\nhttp://www.android.com/\n
30 |
31 | Ready?
32 | Game Over
33 | Winner!
34 |
35 | Difficulty:
36 | OK
37 |
38 |
39 | - Easy
40 | - Normal
41 | - Hard
42 | - Absurd
43 |
44 |
45 |
--------------------------------------------------------------------------------
/GLSurfaceView-Demo/src/com/faddensoft/breakout/Brick.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 Google Inc. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.faddensoft.breakout;
18 |
19 |
20 | /**
21 | * Represents an immobile, destructible brick.
22 | */
23 | public class Brick extends BasicAlignedRect {
24 | /*
25 | * It's worth noting that the position, size, color, and score value of a brick is fixed,
26 | * and could be computed on the fly while drawing. We don't need a Brick object per brick;
27 | * all we really need is a bit vector that tells us whether or not brick N is alive. We
28 | * can draw all bricks with a single BasicAlignedRect that we reposition.
29 | *
30 | * Implementing bricks this way would require significantly less storage but additional
31 | * computation per frame. It's also a less-general solution, making it less desirable
32 | * for a demo app.
33 | */
34 |
35 | private boolean mAlive = false;
36 | private int mPoints = 0;
37 |
38 | /**
39 | * Returns whether or not the brick is "alive".
40 | */
41 | public boolean isAlive() {
42 | return mAlive;
43 | }
44 |
45 | /**
46 | * Sets the brick liveness.
47 | */
48 | public void setAlive(boolean alive) {
49 | mAlive = alive;
50 | }
51 |
52 | /**
53 | * Gets the brick's point value.
54 | */
55 | public int getScoreValue() {
56 | return mPoints;
57 | }
58 |
59 | /**
60 | * Sets the brick's point value.
61 | */
62 | public void setScoreValue(int points) {
63 | mPoints = points;
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | android-screen-recorder
2 | =======================
3 | GLSurfaceView-Demo
4 | 该工程演示如何录制GLSurfaceView上面的内容,该工程参考https://code.google.com/p/android-breakout/
5 | 在这个开源工程上面加入录屏功能。
6 |
--------------------------------------------------------------------------------
/android-demo/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android-demo/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | libgdx-demo-invaders-android
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | org.springsource.ide.eclipse.gradle.core.nature
31 | org.eclipse.jdt.core.javanature
32 | com.android.ide.eclipse.adt.AndroidNature
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android-demo/AUTHORS:
--------------------------------------------------------------------------------
1 | # This is the official list of the AUTHORS of libgdx
2 | # for copyright purposes.
3 | # This file is distinct from the CONTRIBUTORS files.
4 | # See the latter for an explanation.
5 |
6 | # Names should be added to this file as
7 | # Name or Organization
8 | # The email address is not required for organizations.
9 | Mario Zechner
10 | Nathan Sweet
--------------------------------------------------------------------------------
/android-demo/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
17 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android-demo/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | # This is the official list of people who can contribute
2 | # (and who have contributed) code to the libgdx project
3 | # repository.
4 | # The AUTHORS file lists the copyright holders; this file
5 | # lists people. Contributors must sign the CLA to grant
6 | # the AUTHORS copyright within the terms of the Apache 2 license.
7 | #
8 | Tony Wang manifaust@gmail.com,
9 | Christoph Widulle christoph.widulle@googlemail.com,
10 | Dave Clayton davedx@gmail.com,
11 | David Fraska dfraska@gmail.com,
12 | Moritz Post moritzpost@gmail.com,
13 | Eric Spitz eric.spitz2000@gmail.com
--------------------------------------------------------------------------------
/android-demo/assets/data/8.12.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/8.12.mp3
--------------------------------------------------------------------------------
/android-demo/assets/data/block.obj:
--------------------------------------------------------------------------------
1 | # Exported from Wings 3D 1.0.1
2 | mtllib block.mtl
3 | o cube1
4 | #8 vertices, 12 faces
5 | v -0.57735027 -0.14780167 0.57735027
6 | v -0.57735027 0.14780167 0.57735027
7 | v 0.57735027 0.14780167 0.57735027
8 | v 0.57735027 -0.14780167 0.57735027
9 | v -0.57735027 -0.14780167 -0.57735027
10 | v -0.57735027 0.14780167 -0.57735027
11 | v 0.57735027 0.14780167 -0.57735027
12 | v 0.57735027 -0.14780167 -0.57735027
13 | vn 0.0000000e+0 0.0000000e+0 1.00000000
14 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
15 | vn -1.00000000 0.0000000e+0 0.0000000e+0
16 | vn 0.0000000e+0 0.0000000e+0 1.00000000
17 | vn 0.0000000e+0 1.00000000 0.0000000e+0
18 | vn -1.00000000 0.0000000e+0 0.0000000e+0
19 | vn 0.0000000e+0 0.0000000e+0 1.00000000
20 | vn 0.0000000e+0 1.00000000 0.0000000e+0
21 | vn -1.00000000 0.0000000e+0 0.0000000e+0
22 | vn 0.0000000e+0 0.0000000e+0 1.00000000
23 | vn 1.00000000 0.0000000e+0 0.0000000e+0
24 | vn 0.0000000e+0 1.00000000 0.0000000e+0
25 | vn 0.0000000e+0 0.0000000e+0 1.00000000
26 | vn 1.00000000 0.0000000e+0 0.0000000e+0
27 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
28 | vn 0.0000000e+0 0.0000000e+0 1.00000000
29 | vn 1.00000000 0.0000000e+0 0.0000000e+0
30 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
31 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
32 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
33 | vn -1.00000000 0.0000000e+0 0.0000000e+0
34 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
35 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
36 | vn -1.00000000 0.0000000e+0 0.0000000e+0
37 | vn 0.0000000e+0 1.00000000 0.0000000e+0
38 | vn -1.00000000 0.0000000e+0 0.0000000e+0
39 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
40 | vn 1.00000000 0.0000000e+0 0.0000000e+0
41 | vn 0.0000000e+0 1.00000000 0.0000000e+0
42 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
43 | vn 1.00000000 0.0000000e+0 0.0000000e+0
44 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
45 | vn 0.0000000e+0 1.00000000 0.0000000e+0
46 | vn 1.00000000 0.0000000e+0 0.0000000e+0
47 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
48 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
49 | g cube1_default
50 | usemtl default
51 | f 1//1 4//16 2//7
52 | f 1//2 5//23 4//18
53 | f 2//4 4//13 3//10
54 | f 2//9 5//24 1//3
55 | f 2//5 7//29 6//25
56 | f 3//12 7//33 2//8
57 | f 4//15 5//19 8//35
58 | f 4//17 7//31 3//11
59 | f 5//20 7//30 8//36
60 | f 6//26 5//21 2//6
61 | f 6//27 7//32 5//22
62 | f 8//34 7//28 4//14
63 |
--------------------------------------------------------------------------------
/android-demo/assets/data/block.wings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/block.wings
--------------------------------------------------------------------------------
/android-demo/assets/data/droid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/droid.png
--------------------------------------------------------------------------------
/android-demo/assets/data/explode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/explode.png
--------------------------------------------------------------------------------
/android-demo/assets/data/explosion.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/explosion.wav
--------------------------------------------------------------------------------
/android-demo/assets/data/font.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/font.ttf
--------------------------------------------------------------------------------
/android-demo/assets/data/font10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/font10.png
--------------------------------------------------------------------------------
/android-demo/assets/data/font16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/font16.png
--------------------------------------------------------------------------------
/android-demo/assets/data/invader.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/invader.png
--------------------------------------------------------------------------------
/android-demo/assets/data/invader.wings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/invader.wings
--------------------------------------------------------------------------------
/android-demo/assets/data/knight.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/knight.jpg
--------------------------------------------------------------------------------
/android-demo/assets/data/knight.md2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/knight.md2
--------------------------------------------------------------------------------
/android-demo/assets/data/planet.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/planet.jpg
--------------------------------------------------------------------------------
/android-demo/assets/data/playfield.wings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/playfield.wings
--------------------------------------------------------------------------------
/android-demo/assets/data/shaders/color-fs.glsl:
--------------------------------------------------------------------------------
1 | #ifdef GL_ES
2 | #define LOWP lowp
3 | #define MEDP mediump
4 | #define HIGP highp
5 | precision lowp float;
6 | #else
7 | #define LOWP
8 | #define MEDP
9 | #define HIGP
10 | #endif
11 |
12 | uniform vec4 u_color;
13 |
14 | void main() {
15 | gl_FragColor = u_color;
16 | }
--------------------------------------------------------------------------------
/android-demo/assets/data/shaders/color-vs.glsl:
--------------------------------------------------------------------------------
1 | #ifdef GL_ES
2 | #define LOWP lowp
3 | #define MEDP mediump
4 | #define HIGP highp
5 | #else
6 | #define LOWP
7 | #define MEDP
8 | #define HIGP
9 | #endif
10 |
11 | attribute vec4 a_position;
12 |
13 | uniform mat4 u_projView;
14 |
15 | void main() {
16 | gl_Position = u_projView * a_position;
17 | }
--------------------------------------------------------------------------------
/android-demo/assets/data/shaders/light-tex-fs.glsl:
--------------------------------------------------------------------------------
1 | #ifdef GL_ES
2 | #define LOWP lowp
3 | #define MEDP mediump
4 | #define HIGP highp
5 | precision lowp float;
6 | #else
7 | #define LOWP
8 | #define MEDP
9 | #define HIGP
10 | #endif
11 |
12 | uniform sampler2D u_diffuse;
13 |
14 | varying LOWP float intensity;
15 | varying MEDP vec2 texCoords;
16 |
17 | void main() {
18 | gl_FragColor = intensity * texture2D(u_diffuse, texCoords);
19 | }
--------------------------------------------------------------------------------
/android-demo/assets/data/shaders/light-tex-vs.glsl:
--------------------------------------------------------------------------------
1 | #ifdef GL_ES
2 | #define LOWP lowp
3 | #define MEDP mediump
4 | #define HIGP highp
5 | #else
6 | #define LOWP
7 | #define MEDP
8 | #define HIGP
9 | #endif
10 |
11 | attribute vec4 a_position;
12 | attribute vec3 a_normal;
13 | attribute MEDP vec2 a_texCoord0;
14 |
15 | uniform mat3 u_normal;
16 | uniform mat4 u_projView;
17 |
18 | varying LOWP float intensity;
19 | varying MEDP vec2 texCoords;
20 |
21 | void main() {
22 | vec3 n = normalize(u_normal * a_normal);
23 | vec3 l = normalize(vec3(1, 1, -1));
24 | intensity = max(dot(n, l), 0.0);
25 | texCoords = a_texCoord0;
26 | gl_Position = u_projView * a_position;
27 | }
--------------------------------------------------------------------------------
/android-demo/assets/data/shaders/tex-fs.glsl:
--------------------------------------------------------------------------------
1 | #ifdef GL_ES
2 | #define LOWP lowp
3 | #define MEDP mediump
4 | #define HIGP highp
5 | precision lowp float;
6 | #else
7 | #define LOWP
8 | #define MEDP
9 | #define HIGP
10 | #endif
11 |
12 | uniform sampler2D u_diffuse;
13 |
14 | varying MEDP vec2 texCoords;
15 |
16 | void main() {
17 | gl_FragColor = texture2D(u_diffuse, texCoords);
18 | }
--------------------------------------------------------------------------------
/android-demo/assets/data/shaders/tex-vs.glsl:
--------------------------------------------------------------------------------
1 | #ifdef GL_ES
2 | #define LOWP lowp
3 | #define MEDP mediump
4 | #define HIGP highp
5 | #else
6 | #define LOWP
7 | #define MEDP
8 | #define HIGP
9 | #endif
10 |
11 | attribute vec4 a_position;
12 | attribute MEDP vec2 a_texCoord0;
13 |
14 | uniform mat4 u_projView;
15 |
16 | varying MEDP vec2 texCoords;
17 |
18 | void main() {
19 | texCoords = a_texCoord0;
20 | gl_Position = u_projView * a_position;
21 | }
--------------------------------------------------------------------------------
/android-demo/assets/data/ship.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/ship.png
--------------------------------------------------------------------------------
/android-demo/assets/data/ship.wings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/ship.wings
--------------------------------------------------------------------------------
/android-demo/assets/data/shot.obj:
--------------------------------------------------------------------------------
1 | # Exported from Wings 3D 1.0.1
2 | mtllib block.mtl
3 | o cube1
4 | #8 vertices, 6 faces
5 | v -5.7735027e-2 -5.7735027e-2 5.7735027e-2
6 | v -5.7735027e-2 5.7735027e-2 5.7735027e-2
7 | v 5.7735027e-2 5.7735027e-2 5.7735027e-2
8 | v 5.7735027e-2 -5.7735027e-2 5.7735027e-2
9 | v -5.7735027e-2 -5.7735027e-2 -5.7735027e-2
10 | v -5.7735027e-2 5.7735027e-2 -5.7735027e-2
11 | v 5.7735027e-2 5.7735027e-2 -5.7735027e-2
12 | v 5.7735027e-2 -5.7735027e-2 -5.7735027e-2
13 | vn 0.0000000e+0 0.0000000e+0 1.00000000
14 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
15 | vn -1.00000000 0.0000000e+0 0.0000000e+0
16 | vn 0.0000000e+0 0.0000000e+0 1.00000000
17 | vn 0.0000000e+0 1.00000000 0.0000000e+0
18 | vn -1.00000000 0.0000000e+0 0.0000000e+0
19 | vn 0.0000000e+0 0.0000000e+0 1.00000000
20 | vn 1.00000000 0.0000000e+0 0.0000000e+0
21 | vn 0.0000000e+0 1.00000000 0.0000000e+0
22 | vn 0.0000000e+0 0.0000000e+0 1.00000000
23 | vn 1.00000000 0.0000000e+0 0.0000000e+0
24 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
25 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
26 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
27 | vn -1.00000000 0.0000000e+0 0.0000000e+0
28 | vn 0.0000000e+0 1.00000000 0.0000000e+0
29 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
30 | vn -1.00000000 0.0000000e+0 0.0000000e+0
31 | vn 1.00000000 0.0000000e+0 0.0000000e+0
32 | vn 0.0000000e+0 1.00000000 0.0000000e+0
33 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
34 | vn 1.00000000 0.0000000e+0 0.0000000e+0
35 | vn 0.0000000e+0 -1.00000000 0.0000000e+0
36 | vn 0.0000000e+0 0.0000000e+0 -1.00000000
37 | g cube1_default
38 | usemtl default
39 | f 1//1 4//10 3//7 2//4
40 | f 1//2 5//13 8//23 4//12
41 | f 2//6 6//18 5//15 1//3
42 | f 3//9 7//20 6//16 2//5
43 | f 4//11 8//22 7//19 3//8
44 | f 6//17 7//21 8//24 5//14
45 |
--------------------------------------------------------------------------------
/android-demo/assets/data/shot.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/shot.wav
--------------------------------------------------------------------------------
/android-demo/assets/data/shot.wings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/shot.wings
--------------------------------------------------------------------------------
/android-demo/assets/data/title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/assets/data/title.png
--------------------------------------------------------------------------------
/android-demo/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/ic_launcher-web.png
--------------------------------------------------------------------------------
/android-demo/libs/armeabi-v7a/libgdx.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/libs/armeabi-v7a/libgdx.so
--------------------------------------------------------------------------------
/android-demo/libs/armeabi/libgdx.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/libs/armeabi/libgdx.so
--------------------------------------------------------------------------------
/android-demo/libs/gdx-backend-android.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/libs/gdx-backend-android.jar
--------------------------------------------------------------------------------
/android-demo/libs/gdx-controllers-android.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/libs/gdx-controllers-android.jar
--------------------------------------------------------------------------------
/android-demo/libs/gdx-controllers.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/libs/gdx-controllers.jar
--------------------------------------------------------------------------------
/android-demo/libs/gdx.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/libs/gdx.jar
--------------------------------------------------------------------------------
/android-demo/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
22 | -verbose
23 |
24 | -dontwarn android.support.**
25 | -dontwarn com.badlogic.gdx.backends.android.AndroidFragmentApplication
26 | -dontwarn com.badlogic.gdx.utils.GdxBuild
27 | -dontwarn com.badlogic.gdx.physics.box2d.utils.Box2DBuild
28 | -dontwarn com.badlogic.gdx.jnigen.BuildTarget*
29 |
30 | -keepclassmembers class com.badlogic.gdx.backends.android.AndroidInput* {
31 | (com.badlogic.gdx.Application, android.content.Context, java.lang.Object, com.badlogic.gdx.backends.android.AndroidApplicationConfiguration);
32 | }
33 |
34 | -keepclassmembers class com.badlogic.gdx.physics.box2d.World {
35 | boolean contactFilter(long, long);
36 | void beginContact(long);
37 | void endContact(long);
38 | void preSolve(long, long);
39 | void postSolve(long, long);
40 | boolean reportFixture(long);
41 | float reportRayFixture(long, float, float, float, float, float);
42 | }
43 |
--------------------------------------------------------------------------------
/android-demo/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/android-demo/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-demo/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-demo/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jiangerji/android-screen-recorder/b5da714dc9439b0e369aedb74515c16f440b57e5/android-demo/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android-demo/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | libgdx-demo-invaders
5 |
6 |
7 |
--------------------------------------------------------------------------------
/android-demo/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android-demo/src/com/badlogic/invaders/android/AndroidLauncher.java:
--------------------------------------------------------------------------------
1 | package com.badlogic.invaders.android;
2 |
3 | import android.os.Bundle;
4 |
5 | import com.badlogic.gdx.backends.android.AndroidApplication;
6 | import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
7 | import com.badlogic.invaders.Invaders;
8 | import com.jianglin.util.Capturing;
9 |
10 | public class AndroidLauncher extends AndroidApplication {
11 |
12 | private Capturing mScreenCapture;
13 | private static final int width = 1280;
14 | private static final int height = 720;
15 | private static final int frameRate = 30;
16 | private static final int bitRate = 3000;
17 |
18 | @Override
19 | protected void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 |
22 | mScreenCapture = new Capturing(getApplicationContext());
23 | mScreenCapture.initCapturing(width, height, frameRate, bitRate);
24 | AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
25 | initialize(new Invaders(mScreenCapture), config);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/android-demo/src/com/badlogic/invaders/screens/InvadersScreen.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
10 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 |
14 | package com.badlogic.invaders.screens;
15 |
16 | import com.badlogic.gdx.Screen;
17 | import com.badlogic.invaders.Invaders;
18 |
19 | /** Common class for a game screen, e.g. main menu, game loop, game over screen and so on.
20 | * @author mzechner */
21 | public abstract class InvadersScreen implements Screen {
22 |
23 | protected Invaders invaders;
24 |
25 | public InvadersScreen(Invaders invaders) {
26 | this.invaders = invaders;
27 | }
28 |
29 | /** Called when the screen should update itself, e.g. continue a simulation etc. */
30 | public abstract void update (float delta);
31 |
32 | /** Called when a screen should render itself */
33 | public abstract void draw (float delta);
34 |
35 | /** Called by GdxInvaders to check whether the screen is done.
36 | * @return true when the screen is done, false otherwise */
37 | public abstract boolean isDone ();
38 |
39 | @Override
40 | public void render (float delta) {
41 | update(delta);
42 | draw(delta);
43 | }
44 |
45 | @Override
46 | public void resize (int width, int height) {
47 | }
48 |
49 | @Override
50 | public void show () {
51 | }
52 |
53 | @Override
54 | public void hide () {
55 | }
56 |
57 | @Override
58 | public void pause () {
59 | }
60 |
61 | @Override
62 | public void resume () {
63 | }
64 |
65 | @Override
66 | public void dispose () {
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/android-demo/src/com/badlogic/invaders/simulation/Block.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
10 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 |
14 | package com.badlogic.invaders.simulation;
15 |
16 | import com.badlogic.gdx.graphics.g3d.Model;
17 | import com.badlogic.gdx.graphics.g3d.ModelInstance;
18 | import com.badlogic.gdx.math.Vector3;
19 |
20 | public class Block extends ModelInstance {
21 | public final static float BLOCK_RADIUS = 0.5f;
22 |
23 | public Block (Model model, float x, float y, float z) {
24 | super(model, x, y, z);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/android-demo/src/com/badlogic/invaders/simulation/Explosion.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
10 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 |
14 | package com.badlogic.invaders.simulation;
15 |
16 | import com.badlogic.gdx.Gdx;
17 | import com.badlogic.gdx.graphics.g3d.Model;
18 | import com.badlogic.gdx.graphics.g3d.ModelInstance;
19 | import com.badlogic.gdx.graphics.g3d.Renderable;
20 | import com.badlogic.gdx.math.Vector3;
21 | import com.badlogic.gdx.utils.Array;
22 | import com.badlogic.gdx.utils.Pool;
23 |
24 | public class Explosion extends ModelInstance {
25 | public static final float EXPLOSION_LIVE_TIME = 1;
26 | public float aliveTime = 0;
27 |
28 | public Explosion (Model model, Vector3 position) {
29 | super(model, position);
30 | }
31 |
32 | public void update (float delta) {
33 | aliveTime += delta;
34 | }
35 |
36 | @Override
37 | public void getRenderables (Array renderables, Pool pool) {
38 | super.getRenderables(renderables, pool);
39 | Renderable r = renderables.get(renderables.size - 1);
40 | r.meshPartOffset = 6 * (int)(15 * aliveTime / EXPLOSION_LIVE_TIME);
41 | r.meshPartSize = 6;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/android-demo/src/com/badlogic/invaders/simulation/Invader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
10 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 |
14 | package com.badlogic.invaders.simulation;
15 |
16 | import com.badlogic.gdx.graphics.g3d.Model;
17 | import com.badlogic.gdx.graphics.g3d.ModelInstance;
18 | import com.badlogic.gdx.math.Vector3;
19 |
20 | public class Invader extends ModelInstance {
21 | public static float INVADER_ROTATION = 45f;
22 | public static float INVADER_RADIUS = 0.75f;
23 | public static float INVADER_VELOCITY = 1;
24 | public static int INVADER_POINTS = 40;
25 | public final static int STATE_MOVE_LEFT = 0;
26 | public final static int STATE_MOVE_DOWN = 1;
27 | public final static int STATE_MOVE_RIGHT = 2;
28 |
29 | public int state = STATE_MOVE_LEFT;
30 | public boolean wasLastStateLeft = true;
31 | public float movedDistance = Simulation.PLAYFIELD_MAX_X / 2;;
32 |
33 | public Invader (Model model, float x, float y, float z) {
34 | super(model, x, y, z);
35 | }
36 |
37 | public void update (float delta, float speedMultiplier) {
38 | movedDistance += delta * INVADER_VELOCITY * speedMultiplier;
39 | if (state == STATE_MOVE_LEFT) {
40 | transform.trn(-delta * INVADER_VELOCITY * speedMultiplier, 0, 0);
41 | if (movedDistance > Simulation.PLAYFIELD_MAX_X) {
42 | state = STATE_MOVE_DOWN;
43 | movedDistance = 0;
44 | wasLastStateLeft = true;
45 | }
46 | }
47 | if (state == STATE_MOVE_RIGHT) {
48 | transform.trn(delta * INVADER_VELOCITY * speedMultiplier, 0, 0);
49 | if (movedDistance > Simulation.PLAYFIELD_MAX_X) {
50 | state = STATE_MOVE_DOWN;
51 | movedDistance = 0;
52 | wasLastStateLeft = false;
53 | }
54 | }
55 | if (state == STATE_MOVE_DOWN) {
56 | transform.trn(0, 0, delta * INVADER_VELOCITY * speedMultiplier);
57 | if (movedDistance > 1) {
58 | if (wasLastStateLeft)
59 | state = STATE_MOVE_RIGHT;
60 | else
61 | state = STATE_MOVE_LEFT;
62 | movedDistance = 0;
63 | }
64 | }
65 | transform.rotate(0, 1, 0, INVADER_ROTATION * delta);
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/android-demo/src/com/badlogic/invaders/simulation/Ship.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
10 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 |
14 | package com.badlogic.invaders.simulation;
15 |
16 | import com.badlogic.gdx.graphics.g3d.Model;
17 | import com.badlogic.gdx.graphics.g3d.ModelInstance;
18 | import com.badlogic.gdx.math.Vector3;
19 |
20 | public class Ship extends ModelInstance {
21 | public static final float SHIP_RADIUS = 1;
22 | public static final float SHIP_VELOCITY = 20;
23 | public int lives = 3;
24 | public boolean isExploding = false;
25 | public float explodeTime = 0;
26 |
27 | public Ship (Model model) {
28 | super(model);
29 | }
30 |
31 | public void update (float delta) {
32 | if (isExploding) {
33 | explodeTime += delta;
34 | if (explodeTime > Explosion.EXPLOSION_LIVE_TIME) {
35 | isExploding = false;
36 | explodeTime = 0;
37 | }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/android-demo/src/com/badlogic/invaders/simulation/Shot.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
10 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 |
14 | package com.badlogic.invaders.simulation;
15 |
16 | import com.badlogic.gdx.graphics.g3d.Model;
17 | import com.badlogic.gdx.graphics.g3d.ModelInstance;
18 | import com.badlogic.gdx.math.Vector3;
19 |
20 | public class Shot extends ModelInstance {
21 | public static float SHOT_VELOCITY = 10;
22 | public boolean isInvaderShot;
23 | public boolean hasLeftField = false;
24 | private final static Vector3 tmpV = new Vector3();
25 |
26 | public Shot (Model model, Vector3 position, boolean isInvaderShot) {
27 | super(model, position);
28 | // this.position.set(position);
29 | this.isInvaderShot = isInvaderShot;
30 | }
31 |
32 | public void update (float delta) {
33 | if (isInvaderShot)
34 | transform.trn(0, 0, SHOT_VELOCITY * delta);
35 | else
36 | transform.trn(0, 0, -SHOT_VELOCITY * delta);
37 |
38 | transform.getTranslation(tmpV);
39 | if (tmpV.z > Simulation.PLAYFIELD_MAX_Z) hasLeftField = true;
40 | if (tmpV.z < Simulation.PLAYFIELD_MIN_Z) hasLeftField = true;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/android-demo/src/com/badlogic/invaders/simulation/SimulationListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
10 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 |
14 | package com.badlogic.invaders.simulation;
15 |
16 | public interface SimulationListener {
17 | public void explosion ();
18 |
19 | public void shot ();
20 | }
21 |
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/AudioFormat.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | import com.intel.inde.mp.domain.MediaFormat;
4 |
5 | public abstract class AudioFormat extends MediaFormat
6 | {
7 | private static final String KEY_SAMPLE_RATE = "sample-rate";
8 | private static final String KEY_CHANNEL_COUNT = "channel-count";
9 | private static final String KEY_IS_ADTS = "is-adts";
10 | private static final String KEY_CHANNEL_MASK = "channel-mask";
11 | private static final String KEY_AAC_PROFILE = "aac-profile";
12 | private static final String KEY_FLAC_COMPRESSION_LEVEL = "flac-compression-level";
13 | private static final String KEY_MAX_INPUT_SIZE = "max-input-size";
14 | public static final String KEY_BIT_RATE = "bitrate";
15 | private static final String NO_INFO_AVAILABLE = "No info available.";
16 | private String mimeType;
17 |
18 | protected void setAudioCodec(String mimeType)
19 | {
20 | this.mimeType = mimeType;
21 | }
22 |
23 | public String getAudioCodec()
24 | {
25 | return this.mimeType;
26 | }
27 |
28 | public void setAudioSampleRateInHz(int sampleRate)
29 | {
30 | setInteger("sample-rate", sampleRate);
31 | }
32 |
33 | public int getAudioSampleRateInHz()
34 | {
35 | try
36 | {
37 | return getInteger("sample-rate"); } catch (NullPointerException e) {
38 | }
39 | throw new RuntimeException("No info available.");
40 | }
41 |
42 | public void setAudioChannelCount(int channelCount)
43 | {
44 | setInteger("channel-count", channelCount);
45 | }
46 |
47 | public int getAudioChannelCount()
48 | {
49 | try
50 | {
51 | return getInteger("channel-count"); } catch (NullPointerException e) {
52 | }
53 | throw new RuntimeException("No info available.");
54 | }
55 |
56 | public void setAudioBitrateInBytes(int bitRate)
57 | {
58 | setInteger("bitrate", bitRate);
59 | }
60 |
61 | public int getAudioBitrateInBytes()
62 | {
63 | try
64 | {
65 | return getInteger("bitrate"); } catch (NullPointerException e) {
66 | }
67 | throw new RuntimeException("No info available.");
68 | }
69 |
70 | public void setKeyMaxInputSize(int size)
71 | {
72 | setInteger("max-input-size", size);
73 | }
74 |
75 | public void setAudioProfile(int Profile)
76 | {
77 | setInteger("aac-profile", Profile);
78 | }
79 |
80 | public int getAudioProfile()
81 | {
82 | try
83 | {
84 | return getInteger("aac-profile"); } catch (NullPointerException e) {
85 | }
86 | throw new RuntimeException("No info available.");
87 | }
88 | }
89 |
90 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
91 | * Qualified Name: com.intel.inde.mp.AudioFormat
92 | * JD-Core Version: 0.6.1
93 | */
94 |
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/GLCapture.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | import com.intel.inde.mp.domain.CapturePipeline;
4 | import com.intel.inde.mp.domain.IAndroidMediaObjectFactory;
5 | import com.intel.inde.mp.domain.ICaptureSource;
6 | import com.intel.inde.mp.domain.IMicrophoneSource;
7 | import com.intel.inde.mp.domain.Pipeline;
8 |
9 | public class GLCapture extends CapturePipeline
10 | {
11 | private ICaptureSource videoSource;
12 | private IMicrophoneSource audioSource;
13 | private boolean frameInProgress;
14 |
15 | public GLCapture(IAndroidMediaObjectFactory factory, IProgressListener progressListener)
16 | {
17 | super(factory, progressListener);
18 | }
19 |
20 | protected void setMediaSource()
21 | {
22 | this.videoSource = this.androidMediaObjectFactory.createCaptureSource();
23 | this.pipeline.setMediaSource(this.videoSource);
24 | if (this.audioSource != null)
25 | this.pipeline.setMediaSource(this.audioSource);
26 | }
27 |
28 | public void setTargetAudioFormat(AudioFormat mediaFormat)
29 | {
30 | super.setTargetAudioFormat(mediaFormat);
31 | this.audioSource = this.androidMediaObjectFactory.createMicrophoneSource();
32 | this.audioSource.configure(mediaFormat.getAudioSampleRateInHz(), mediaFormat.getAudioChannelCount());
33 | }
34 |
35 | public void stop()
36 | {
37 | super.stop();
38 | }
39 |
40 | public void setSurfaceSize(int width, int height)
41 | {
42 | this.videoSource.setSurfaceSize(width, height);
43 | }
44 |
45 | public void beginCaptureFrame()
46 | {
47 | if (this.frameInProgress) {
48 | return;
49 | }
50 |
51 | this.frameInProgress = true;
52 |
53 | this.videoSource.beginCaptureFrame();
54 | }
55 |
56 | public void endCaptureFrame()
57 | {
58 | if (!this.frameInProgress) {
59 | return;
60 | }
61 |
62 | this.videoSource.endCaptureFrame();
63 |
64 | this.frameInProgress = false;
65 | }
66 | }
67 |
68 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
69 | * Qualified Name: com.intel.inde.mp.GLCapture
70 | * JD-Core Version: 0.6.1
71 | */
72 |
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/IAudioEffect.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | import com.intel.inde.mp.domain.MediaFormat;
4 | import com.intel.inde.mp.domain.Pair;
5 | import java.nio.ByteBuffer;
6 |
7 | public abstract interface IAudioEffect
8 | {
9 | public abstract void setSegment(Pair paramPair);
10 |
11 | public abstract Pair getSegment();
12 |
13 | public abstract void applyEffect(ByteBuffer paramByteBuffer, long paramLong);
14 |
15 | public abstract MediaFormat getMediaFormat();
16 | }
17 |
18 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
19 | * Qualified Name: com.intel.inde.mp.IAudioEffect
20 | * JD-Core Version: 0.6.1
21 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/IProgressListener.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | public abstract interface IProgressListener
4 | {
5 | public abstract void onMediaStart();
6 |
7 | public abstract void onMediaProgress(float paramFloat);
8 |
9 | public abstract void onMediaDone();
10 |
11 | public abstract void onMediaPause();
12 |
13 | public abstract void onMediaStop();
14 |
15 | public abstract void onError(Exception paramException);
16 | }
17 |
18 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
19 | * Qualified Name: com.intel.inde.mp.IProgressListener
20 | * JD-Core Version: 0.6.1
21 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/IRecognitionPlugin.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.MediaFormat;
5 |
6 | public abstract interface IRecognitionPlugin
7 | {
8 | public abstract void start();
9 |
10 | public abstract void stop();
11 |
12 | public abstract RecognitionOutput recognize(RecognitionInput paramRecognitionInput);
13 |
14 | public static abstract interface RecognitionEvent
15 | {
16 | public abstract void onContentRecognized(IRecognitionPlugin paramIRecognitionPlugin, IRecognitionPlugin.RecognitionOutput paramRecognitionOutput);
17 | }
18 |
19 | public static class RecognitionInput
20 | {
21 | private MediaFormat mediaFormat;
22 | private Frame frame;
23 |
24 | public void setMediaFormat(MediaFormat mediaFormat)
25 | {
26 | this.mediaFormat = mediaFormat;
27 | }
28 |
29 | public MediaFormat getMediaFormat()
30 | {
31 | return this.mediaFormat;
32 | }
33 |
34 | public void setFrame(Frame frame)
35 | {
36 | this.frame = frame;
37 | }
38 |
39 | public Frame getFrame()
40 | {
41 | return this.frame;
42 | }
43 | }
44 |
45 | public static class RecognitionOutput
46 | {
47 | }
48 | }
49 |
50 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
51 | * Qualified Name: com.intel.inde.mp.IRecognitionPlugin
52 | * JD-Core Version: 0.6.1
53 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/IVideoEffect.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | import com.intel.inde.mp.domain.Pair;
4 | import com.intel.inde.mp.domain.Resolution;
5 |
6 | public abstract interface IVideoEffect
7 | {
8 | public abstract void setSegment(Pair paramPair);
9 |
10 | public abstract Pair getSegment();
11 |
12 | public abstract void start();
13 |
14 | public abstract void applyEffect(int paramInt, long paramLong, float[] paramArrayOfFloat);
15 |
16 | public abstract void setInputResolution(Resolution paramResolution);
17 |
18 | public abstract boolean fitToCurrentSurface(boolean paramBoolean);
19 | }
20 |
21 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
22 | * Qualified Name: com.intel.inde.mp.IVideoEffect
23 | * JD-Core Version: 0.6.1
24 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/MediaFile.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | import com.intel.inde.mp.domain.MediaFormatType;
4 | import com.intel.inde.mp.domain.MediaSource;
5 | import com.intel.inde.mp.domain.Pair;
6 | import java.io.FileDescriptor;
7 | import java.util.Collection;
8 |
9 | public class MediaFile
10 | {
11 | private MediaSource mediaSource;
12 |
13 | public MediaFile(MediaSource mediaSource)
14 | {
15 | this.mediaSource = mediaSource;
16 | }
17 |
18 | public MediaSource getMediaSource()
19 | {
20 | return this.mediaSource;
21 | }
22 |
23 | public void addSegment(Pair segment)
24 | {
25 | this.mediaSource.add(segment);
26 | }
27 |
28 | public Collection> getSegments()
29 | {
30 | return this.mediaSource.getSegments();
31 | }
32 |
33 | public void insertSegment(int index, Pair segment)
34 | {
35 | this.mediaSource.insert(segment, index);
36 | }
37 |
38 | public void removeSegment(int index)
39 | {
40 | this.mediaSource.removeSegment(index);
41 | }
42 |
43 | public VideoFormat getVideoFormat(int index)
44 | {
45 | return (VideoFormat)this.mediaSource.getMediaFormatByType(MediaFormatType.VIDEO);
46 | }
47 |
48 | public AudioFormat getAudioFormat(int index)
49 | {
50 | return (AudioFormat)this.mediaSource.getMediaFormatByType(MediaFormatType.AUDIO);
51 | }
52 |
53 | public void setSelectedAudioTrack(int index)
54 | {
55 | }
56 |
57 | public long getDurationInMicroSec()
58 | {
59 | return this.mediaSource.getDurationInMicroSec();
60 | }
61 |
62 | public long getSegmentsDurationInMicroSec()
63 | {
64 | return this.mediaSource.getSegmentsDurationInMicroSec();
65 | }
66 |
67 | public void start()
68 | {
69 | this.mediaSource.start();
70 | }
71 |
72 | public int getRotation()
73 | {
74 | return this.mediaSource.getRotation();
75 | }
76 |
77 | public String getFilePath()
78 | {
79 | return this.mediaSource.getFilePath();
80 | }
81 |
82 | public FileDescriptor getFileDescriptor()
83 | {
84 | return this.mediaSource.getFileDescriptor();
85 | }
86 |
87 | public Uri getUri()
88 | {
89 | return this.mediaSource.getUri();
90 | }
91 | }
92 |
93 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
94 | * Qualified Name: com.intel.inde.mp.MediaFile
95 | * JD-Core Version: 0.6.1
96 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/StreamingParameters.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | public class StreamingParameters
4 | {
5 | public String Host;
6 | public int Port;
7 | public String ApplicationName;
8 | public String StreamName;
9 | public boolean Secure;
10 | public String Username;
11 | public String Password;
12 | public boolean isToPublishAudio;
13 | public boolean isToPublishVideo;
14 | public boolean streamingFromFile;
15 | }
16 |
17 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
18 | * Qualified Name: com.intel.inde.mp.StreamingParameters
19 | * JD-Core Version: 0.6.1
20 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/Uri.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp;
2 |
3 | public class Uri
4 | {
5 | private String uri;
6 |
7 | public Uri(String uri)
8 | {
9 | this.uri = uri;
10 | }
11 |
12 | public String getString()
13 | {
14 | return this.uri;
15 | }
16 | }
17 |
18 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
19 | * Qualified Name: com.intel.inde.mp.Uri
20 | * JD-Core Version: 0.6.1
21 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/AudioContentRecognition.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import com.intel.inde.mp.IRecognitionPlugin;
4 | import com.intel.inde.mp.domain.IAudioContentRecognition;
5 | import com.intel.inde.mp.domain.RecognitionPipeline;
6 |
7 | public class AudioContentRecognition
8 | implements IAudioContentRecognition
9 | {
10 | private RecognitionPipeline pipeline;
11 | private MicrophoneSource source;
12 | private IRecognitionPlugin plugin;
13 | private Thread thread;
14 |
15 | public void setRecognizer(IRecognitionPlugin plugin)
16 | {
17 | this.plugin = plugin;
18 | }
19 |
20 | private boolean isRunning() {
21 | return this.thread != null;
22 | }
23 |
24 | public void start() {
25 | if (this.plugin == null) {
26 | throw new IllegalStateException("Set recognition plugin using setRecognizer before calling start.");
27 | }
28 |
29 | if (isRunning()) {
30 | throw new IllegalStateException("Recognition already started.");
31 | }
32 |
33 | this.source = new MicrophoneSource();
34 | this.source.configure(44100, 1);
35 |
36 | this.plugin.start();
37 |
38 | this.pipeline = new RecognitionPipeline(this.source, this.plugin);
39 |
40 | startThread();
41 | }
42 |
43 | public void stop() {
44 | if (!isRunning()) {
45 | return;
46 | }
47 |
48 | this.plugin.stop();
49 |
50 | this.pipeline.stop();
51 | this.thread.interrupt();
52 |
53 | this.pipeline = null;
54 | this.thread = null;
55 | }
56 |
57 | private void startThread() {
58 | this.thread = new Thread(new Runnable() {
59 | public void run() {
60 | AudioContentRecognition.this.pipeline.start();
61 | }
62 | }
63 | , "recordingThread");
64 |
65 | this.thread.start();
66 | }
67 | }
68 |
69 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
70 | * Qualified Name: com.intel.inde.mp.android.AudioContentRecognition
71 | * JD-Core Version: 0.6.1
72 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/AudioFormatAndroid.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaFormat;
4 | import com.intel.inde.mp.AudioFormat;
5 | import java.nio.ByteBuffer;
6 |
7 | public class AudioFormatAndroid extends AudioFormat
8 | {
9 | private MediaFormat mediaFormat;
10 |
11 | AudioFormatAndroid(MediaFormat mediaFormat)
12 | {
13 | this.mediaFormat = mediaFormat;
14 | setAudioCodec(mediaFormat.getString("mime"));
15 | }
16 |
17 | public AudioFormatAndroid(String mimeType, int sampleRate, int channelCount) {
18 | this.mediaFormat = MediaFormat.createAudioFormat(mimeType, sampleRate, channelCount);
19 | setAudioCodec(mimeType);
20 | }
21 |
22 | public MediaFormat getNativeFormat() {
23 | return this.mediaFormat;
24 | }
25 |
26 | public ByteBuffer getByteBuffer(String key)
27 | {
28 | return this.mediaFormat.getByteBuffer(key);
29 | }
30 |
31 | public void setInteger(String key, int value)
32 | {
33 | this.mediaFormat.setInteger(key, value);
34 | }
35 |
36 | public int getInteger(String key)
37 | {
38 | return this.mediaFormat.getInteger(key);
39 | }
40 |
41 | protected long getLong(String key)
42 | {
43 | return this.mediaFormat.getLong(key);
44 | }
45 |
46 | protected String getString(String key)
47 | {
48 | return this.mediaFormat.getString(key);
49 | }
50 | }
51 |
52 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
53 | * Qualified Name: com.intel.inde.mp.android.AudioFormatAndroid
54 | * JD-Core Version: 0.6.1
55 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/BufferInfoTranslator.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaCodec;
4 |
5 | import com.intel.inde.mp.domain.IMediaCodec;
6 |
7 | public class BufferInfoTranslator
8 | {
9 | public static IMediaCodec.BufferInfo convertFromAndroid(
10 | MediaCodec.BufferInfo androidBufferInfo,
11 | IMediaCodec.BufferInfo bufferInfo)
12 | {
13 | bufferInfo.flags = androidBufferInfo.flags;
14 | bufferInfo.presentationTimeUs = androidBufferInfo.presentationTimeUs;
15 | bufferInfo.offset = androidBufferInfo.offset;
16 | bufferInfo.size = androidBufferInfo.size;
17 |
18 | return bufferInfo;
19 | }
20 | }
21 |
22 | /*
23 | * Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
24 | * Qualified Name: com.intel.inde.mp.android.BufferInfoTranslator
25 | * JD-Core Version: 0.6.1
26 | */
27 |
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/ByteBufferTranslator.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaCodec;
4 |
5 | import com.intel.inde.mp.domain.IMediaCodec;
6 |
7 | public class ByteBufferTranslator
8 | {
9 | public static MediaCodec.BufferInfo from(IMediaCodec.BufferInfo bufferInfo)
10 | {
11 | MediaCodec.BufferInfo result = new MediaCodec.BufferInfo();
12 | result.flags = bufferInfo.flags;
13 | result.offset = bufferInfo.offset;
14 | result.size = bufferInfo.size;
15 | result.presentationTimeUs = bufferInfo.presentationTimeUs;
16 | return result;
17 | }
18 | }
19 |
20 | /*
21 | * Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
22 | * Qualified Name: com.intel.inde.mp.android.ByteBufferTranslator
23 | * JD-Core Version: 0.6.1
24 | */
25 |
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/EGLContextWrapper.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.opengl.EGL14;
4 | import android.opengl.EGLContext;
5 | import com.intel.inde.mp.domain.IEglContext;
6 | import com.intel.inde.mp.domain.IWrapper;
7 |
8 | public class EGLContextWrapper
9 | implements IWrapper, IEglContext
10 | {
11 | private EGLContext eglContext;
12 |
13 | public EGLContextWrapper(EGLContext eglContext)
14 | {
15 | this.eglContext = eglContext;
16 | }
17 |
18 | public EGLContext getNativeObject()
19 | {
20 | return this.eglContext;
21 | }
22 |
23 | public IEglContext getCurrentContext()
24 | {
25 | return new EGLContextWrapper(EGL14.eglGetCurrentContext());
26 | }
27 | }
28 |
29 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
30 | * Qualified Name: com.intel.inde.mp.android.EGLContextWrapper
31 | * JD-Core Version: 0.6.1
32 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/EffectorSurface.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.graphics.SurfaceTexture;
4 | import com.intel.inde.mp.domain.IEffectorSurface;
5 | import com.intel.inde.mp.domain.ISurfaceWrapper;
6 | import com.intel.inde.mp.domain.Resolution;
7 | import com.intel.inde.mp.domain.graphics.IEglUtil;
8 | import com.intel.inde.mp.domain.graphics.TextureRenderer;
9 |
10 | public class EffectorSurface
11 | implements IEffectorSurface
12 | {
13 | OutputSurface outputSurface;
14 | private int width;
15 | private int height;
16 | private SurfaceTexture surfaceTexture;
17 |
18 | public EffectorSurface(IEglUtil eglUtil)
19 | {
20 | this.outputSurface = new OutputSurface(eglUtil);
21 | }
22 |
23 | public void release()
24 | {
25 | this.outputSurface.release();
26 | }
27 |
28 | public void awaitNewImage()
29 | {
30 | this.outputSurface.awaitNewImage();
31 | }
32 |
33 | public void drawImage()
34 | {
35 | this.outputSurface.drawImage();
36 | }
37 |
38 | public void setPresentationTime(long presentationTimeInNanoSeconds)
39 | {
40 | }
41 |
42 | public void swapBuffers()
43 | {
44 | }
45 |
46 | public void makeCurrent()
47 | {
48 | this.outputSurface.makeCurrent();
49 | }
50 |
51 | public void setProjectionMatrix(float[] projectionMatrix)
52 | {
53 | }
54 |
55 | public void getTransformMatrix(float[] transformMatrix)
56 | {
57 | this.outputSurface.getTransformMatrix(transformMatrix);
58 | }
59 |
60 | public ISurfaceWrapper getCleanObject()
61 | {
62 | return AndroidMediaObjectFactory.Converter.convert(this.outputSurface.getSurface());
63 | }
64 |
65 | public int getSurfaceId()
66 | {
67 | return this.outputSurface.getTextureId();
68 | }
69 |
70 | public void drawImage(int textureIdx, float[] matrix)
71 | {
72 | this.outputSurface.getTextureRender().drawFrameOES(matrix, textureIdx, 0.0F, false);
73 | }
74 |
75 | public void drawImage2D(int textureIdx, float[] matrix)
76 | {
77 | this.outputSurface.getTextureRender().drawFrame2D(matrix, textureIdx, 0.0F, true);
78 | }
79 |
80 | public void setViewport()
81 | {
82 | }
83 |
84 | public void setInputSize(int width, int height)
85 | {
86 | this.width = width;
87 | this.height = height;
88 | this.outputSurface.getTextureRender().setInputSize(width, height);
89 | }
90 |
91 | public Resolution getInputSize()
92 | {
93 | return new Resolution(this.width, this.height);
94 | }
95 | }
96 |
97 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
98 | * Qualified Name: com.intel.inde.mp.android.EffectorSurface
99 | * JD-Core Version: 0.6.1
100 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/EglContextSwitcher.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.opengl.EGL14;
4 | import android.opengl.EGLContext;
5 | import android.opengl.EGLDisplay;
6 | import android.opengl.EGLSurface;
7 | import android.opengl.Matrix;
8 | import com.intel.inde.mp.domain.IEgl;
9 |
10 | public class EglContextSwitcher
11 | implements IEgl
12 | {
13 | private EGLDisplay display;
14 | private EGLSurface drawSurface;
15 | private EGLSurface readSurface;
16 | private EGLContext context;
17 | static final float[] projectionMatrix = new float[16];
18 | private final float[] savedMatrix = new float[16];
19 |
20 | private int width = 0; private int height = 0;
21 |
22 | public void init(int width, int height)
23 | {
24 | this.width = width;
25 | this.height = height;
26 |
27 | Matrix.orthoM(projectionMatrix, 0, 0.0F, this.width, 0.0F, this.height, -1.0F, 1.0F);
28 | }
29 |
30 | public void saveEglState()
31 | {
32 | if ((this.width == 0) || (this.height == 0)) {
33 | return;
34 | }
35 |
36 | System.arraycopy(projectionMatrix, 0, this.savedMatrix, 0, projectionMatrix.length);
37 | this.display = EGL14.eglGetCurrentDisplay();
38 | this.drawSurface = EGL14.eglGetCurrentSurface(12377);
39 | this.readSurface = EGL14.eglGetCurrentSurface(12378);
40 | this.context = EGL14.eglGetCurrentContext();
41 | }
42 |
43 | public void restoreEglState()
44 | {
45 | if ((this.width == 0) || (this.height == 0)) {
46 | return;
47 | }
48 |
49 | if (!EGL14.eglMakeCurrent(this.display, this.drawSurface, this.readSurface, this.context)) {
50 | throw new RuntimeException("Failed to restore EGL state.");
51 | }
52 | System.arraycopy(this.savedMatrix, 0, projectionMatrix, 0, projectionMatrix.length);
53 | }
54 |
55 | public float[] getProjectionMatrix()
56 | {
57 | return projectionMatrix;
58 | }
59 | }
60 |
61 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
62 | * Qualified Name: com.intel.inde.mp.android.EglContextSwitcher
63 | * JD-Core Version: 0.6.1
64 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/GameCapturerSource.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import com.intel.inde.mp.domain.CaptureSource;
4 | import com.intel.inde.mp.domain.Command;
5 | import com.intel.inde.mp.domain.CommandQueue;
6 | import com.intel.inde.mp.domain.ISurface;
7 | import com.intel.inde.mp.domain.ISurfaceListener;
8 |
9 | public class GameCapturerSource extends CaptureSource
10 | {
11 | ISurface renderingSurface = null;
12 | private boolean swapBuffers = true;
13 | private EglContextSwitcher contextSwitcher;
14 | private ISurfaceListener listener;
15 |
16 | public GameCapturerSource()
17 | {
18 | this.contextSwitcher = new EglContextSwitcher();
19 | }
20 |
21 | public void addSetSurfaceListener(ISurfaceListener listenMe)
22 | {
23 | this.listener = listenMe;
24 | }
25 |
26 | public ISurface getSurface()
27 | {
28 | return this.renderingSurface;
29 | }
30 |
31 | public void setSurfaceSize(int width, int height)
32 | {
33 | this.contextSwitcher.init(width, height);
34 | this.contextSwitcher.saveEglState();
35 |
36 | if (this.listener != null) {
37 | this.listener.onSurfaceAvailable(null);
38 | }
39 |
40 | this.renderingSurface.makeCurrent();
41 | this.contextSwitcher.restoreEglState();
42 | }
43 |
44 | public void beginCaptureFrame()
45 | {
46 | if (this.renderingSurface == null) {
47 | return;
48 | }
49 |
50 | this.contextSwitcher.saveEglState();
51 |
52 | this.renderingSurface.makeCurrent();
53 | this.renderingSurface.setProjectionMatrix(this.contextSwitcher.getProjectionMatrix());
54 | this.renderingSurface.setViewport();
55 | }
56 |
57 | public void endCaptureFrame()
58 | {
59 | super.endCaptureFrame();
60 |
61 | long presentationTimeUs = System.nanoTime() - this.startTime;
62 | this.renderingSurface.setPresentationTime(presentationTimeUs);
63 |
64 | if (this.swapBuffers) {
65 | this.renderingSurface.swapBuffers();
66 | }
67 |
68 | this.contextSwitcher.restoreEglState();
69 | this.commandQueue.queue(Command.HasData, Integer.valueOf(0));
70 | }
71 |
72 | public void setOutputSurface(ISurface surface)
73 | {
74 | this.renderingSurface = surface;
75 | }
76 | }
77 |
78 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
79 | * Qualified Name: com.intel.inde.mp.android.GameCapturerSource
80 | * JD-Core Version: 0.6.1
81 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/JNIProgressListener.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import com.intel.inde.mp.IProgressListener;
4 |
5 | public class JNIProgressListener
6 | implements IProgressListener
7 | {
8 | long TAG;
9 |
10 | public JNIProgressListener(long TAG)
11 | {
12 | this.TAG = TAG;
13 | }
14 |
15 | public void onMediaStart()
16 | {
17 | onMediaStartJNI(this.TAG);
18 | }
19 |
20 | public void onMediaProgress(float progress)
21 | {
22 | onMediaProgressJNI(this.TAG, progress);
23 | }
24 |
25 | public void onMediaDone()
26 | {
27 | onMediaDoneJNI(this.TAG);
28 | }
29 |
30 | public void onMediaPause()
31 | {
32 | onMediaPauseJNI(this.TAG);
33 | }
34 |
35 | public void onMediaStop()
36 | {
37 | onMediaStopJNI(this.TAG);
38 | }
39 |
40 | public void onError(Exception exception)
41 | {
42 | onErrorJNI(this.TAG, exception.toString());
43 | }
44 |
45 | private native void onMediaStartJNI(long paramLong);
46 |
47 | private native void onMediaProgressJNI(long paramLong, float paramFloat);
48 |
49 | private native void onMediaDoneJNI(long paramLong);
50 |
51 | private native void onMediaPauseJNI(long paramLong);
52 |
53 | private native void onMediaStopJNI(long paramLong);
54 |
55 | private native void onErrorJNI(long paramLong, String paramString);
56 | }
57 |
58 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
59 | * Qualified Name: com.intel.inde.mp.android.JNIProgressListener
60 | * JD-Core Version: 0.6.1
61 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/JNIVideoEffect.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import com.intel.inde.mp.IVideoEffect;
4 | import com.intel.inde.mp.domain.Pair;
5 | import com.intel.inde.mp.domain.Resolution;
6 |
7 | public class JNIVideoEffect
8 | implements IVideoEffect
9 | {
10 | private long tag;
11 |
12 | public JNIVideoEffect(long tag)
13 | {
14 | this.tag = tag;
15 | }
16 |
17 | public Pair getSegment() {
18 | return getSegmentJNI(this.tag);
19 | }
20 |
21 | public void setSegment(Pair segment)
22 | {
23 | }
24 |
25 | public void start()
26 | {
27 | startJNI(this.tag);
28 | }
29 |
30 | public void applyEffect(int inTextureId, long timeProgress, float[] transformMatrix)
31 | {
32 | applyEffectJNI(this.tag, inTextureId, timeProgress, transformMatrix);
33 | }
34 |
35 | public void setInputResolution(Resolution resolution)
36 | {
37 | setInputResolutionJNI(this.tag, resolution);
38 | }
39 |
40 | public boolean fitToCurrentSurface(boolean should)
41 | {
42 | return fitToCurrentSurfaceJNI(this.tag, should);
43 | }
44 |
45 | private native Pair getSegmentJNI(long paramLong);
46 |
47 | private native void startJNI(long paramLong);
48 |
49 | private native void applyEffectJNI(long paramLong1, int paramInt, long paramLong2, float[] paramArrayOfFloat);
50 |
51 | private native void setInputResolutionJNI(long paramLong, Resolution paramResolution);
52 |
53 | private native boolean fitToCurrentSurfaceJNI(long paramLong, boolean paramBoolean);
54 | }
55 |
56 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
57 | * Qualified Name: com.intel.inde.mp.android.JNIVideoEffect
58 | * JD-Core Version: 0.6.1
59 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/MediaCodecAudioDecoderPlugin.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaCodec;
4 | import com.intel.inde.mp.domain.ISurfaceWrapper;
5 | import com.intel.inde.mp.domain.MediaFormat;
6 |
7 | public class MediaCodecAudioDecoderPlugin extends MediaCodecDecoderPlugin
8 | {
9 | public MediaCodecAudioDecoderPlugin()
10 | {
11 | super("audio/mp4a-latm");
12 | }
13 |
14 | public void configure(MediaFormat mediaFormat, ISurfaceWrapper surface, int flags)
15 | {
16 | this.mediaCodec.configure(MediaFormatTranslator.from(mediaFormat), null, null, flags);
17 | }
18 |
19 | public void release()
20 | {
21 | this.mediaCodec.release();
22 | }
23 |
24 | public void recreate()
25 | {
26 | release();
27 | this.mediaCodec = MediaCodec.createDecoderByType("audio/mp4a-latm");
28 | }
29 | }
30 |
31 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
32 | * Qualified Name: com.intel.inde.mp.android.MediaCodecAudioDecoderPlugin
33 | * JD-Core Version: 0.6.1
34 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/MediaCodecVideoDecoderPlugin.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaCodec;
4 | import android.view.Surface;
5 | import com.intel.inde.mp.domain.ISurfaceWrapper;
6 | import com.intel.inde.mp.domain.MediaFormat;
7 |
8 | public class MediaCodecVideoDecoderPlugin extends MediaCodecDecoderPlugin
9 | {
10 | String mime = "";
11 |
12 | public MediaCodecVideoDecoderPlugin(MediaFormat format) { super(getMimeTypeFor(format));
13 | this.mime = getMimeTypeFor(format);
14 | }
15 |
16 | public void configure(MediaFormat mediaFormat, ISurfaceWrapper surface, int flags)
17 | {
18 | Surface surface1 = null;
19 | if (surface != null) {
20 | surface1 = (Surface)((SurfaceWrapper)surface).getNativeObject();
21 | }
22 | this.mediaCodec.configure(MediaFormatTranslator.from(mediaFormat), surface1, null, flags);
23 | }
24 |
25 | public void release()
26 | {
27 | this.mediaCodec.release();
28 | }
29 |
30 | public void recreate()
31 | {
32 | release();
33 | this.mediaCodec = MediaCodec.createDecoderByType(this.mime);
34 | }
35 |
36 | private static String getMimeTypeFor(MediaFormat format) {
37 | return ((VideoFormatAndroid)format).getString("mime");
38 | }
39 | }
40 |
41 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
42 | * Qualified Name: com.intel.inde.mp.android.MediaCodecVideoDecoderPlugin
43 | * JD-Core Version: 0.6.1
44 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/MediaFormatTranslator.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | public class MediaFormatTranslator
4 | {
5 | public static android.media.MediaFormat from(com.intel.inde.mp.domain.MediaFormat mediaFormat)
6 | {
7 | if ((mediaFormat instanceof VideoFormatAndroid)) {
8 | return ((VideoFormatAndroid)mediaFormat).getNativeFormat();
9 | }
10 |
11 | if ((mediaFormat instanceof AudioFormatAndroid)) {
12 | return ((AudioFormatAndroid)mediaFormat).getNativeFormat();
13 | }
14 |
15 | throw new UnsupportedOperationException("Please, don't use MediaFormatTranslator function with this type:" + mediaFormat.getClass().toString());
16 | }
17 |
18 | public static com.intel.inde.mp.domain.MediaFormat toDomain(android.media.MediaFormat mediaFormat) {
19 | if (mediaFormat.getString("mime").startsWith("video")) {
20 | return new VideoFormatAndroid(mediaFormat);
21 | }
22 |
23 | if (mediaFormat.getString("mime").startsWith("audio")) {
24 | return new AudioFormatAndroid(mediaFormat);
25 | }
26 |
27 | throw new UnsupportedOperationException("Unrecognized mime type:" + mediaFormat.getString("mime"));
28 | }
29 | }
30 |
31 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
32 | * Qualified Name: com.intel.inde.mp.android.MediaFormatTranslator
33 | * JD-Core Version: 0.6.1
34 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/MediaFormatWrapper.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaFormat;
4 | import com.intel.inde.mp.domain.IMediaFormatWrapper;
5 | import com.intel.inde.mp.domain.Wrapper;
6 |
7 | public class MediaFormatWrapper extends Wrapper
8 | implements IMediaFormatWrapper
9 | {
10 | public MediaFormatWrapper(MediaFormat mediaFormat)
11 | {
12 | super(mediaFormat);
13 | }
14 | }
15 |
16 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
17 | * Qualified Name: com.intel.inde.mp.android.MediaFormatWrapper
18 | * JD-Core Version: 0.6.1
19 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/MediaMuxerPlugin.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import java.io.IOException;
4 | import java.nio.ByteBuffer;
5 |
6 | import android.media.MediaMuxer;
7 |
8 | import com.intel.inde.mp.domain.IMediaCodec;
9 | import com.intel.inde.mp.domain.IMediaMuxer;
10 | import com.intel.inde.mp.domain.MediaFormat;
11 |
12 | public class MediaMuxerPlugin
13 | implements IMediaMuxer
14 | {
15 | private final MediaMuxer mediaMuxer;
16 | private long[] lastPresentationTime = new long[2];
17 |
18 | public MediaMuxerPlugin(String filename, int outputFormat)
19 | throws IOException {
20 | this.mediaMuxer = new MediaMuxer(filename, outputFormat);
21 | }
22 |
23 | public int addTrack(MediaFormat mediaFormat)
24 | {
25 | return this.mediaMuxer.addTrack(MediaFormatTranslator.from(mediaFormat));
26 | }
27 |
28 | public void release()
29 | {
30 | this.mediaMuxer.release();
31 | }
32 |
33 | public void setOrientationHint(int degrees)
34 | {
35 | this.mediaMuxer.setOrientationHint(degrees);
36 | }
37 |
38 | public void start()
39 | {
40 | this.mediaMuxer.start();
41 | }
42 |
43 | public void stop()
44 | {
45 | this.mediaMuxer.stop();
46 | }
47 |
48 | public
49 | void writeSampleData(
50 | int trackIndex, ByteBuffer buffer,
51 | IMediaCodec.BufferInfo bufferInfo)
52 | {
53 | if (bufferInfo.size == 0)
54 | {
55 | return;
56 | }
57 |
58 | if (this.lastPresentationTime[trackIndex] > bufferInfo.presentationTimeUs)
59 | {
60 | return;
61 | }
62 |
63 | if ((bufferInfo.flags & 0x2) != 0)
64 | {
65 | return;
66 | }
67 |
68 | this.lastPresentationTime[trackIndex] = bufferInfo.presentationTimeUs;
69 |
70 | this.mediaMuxer.writeSampleData(trackIndex,
71 | buffer,
72 | ByteBufferTranslator.from(bufferInfo));
73 | }
74 | }
75 |
76 | /*
77 | * Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
78 | * Qualified Name: com.intel.inde.mp.android.MediaMuxerPlugin
79 | * JD-Core Version: 0.6.1
80 | */
81 |
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/MediaPipeline.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | public class MediaPipeline
4 | {
5 | }
6 |
7 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
8 | * Qualified Name: com.intel.inde.mp.android.MediaPipeline
9 | * JD-Core Version: 0.6.1
10 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/SimpleSurface.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaCodec;
4 | import android.opengl.EGLContext;
5 | import android.view.Surface;
6 | import com.intel.inde.mp.domain.ISurface;
7 | import com.intel.inde.mp.domain.ISurfaceWrapper;
8 | import com.intel.inde.mp.domain.Resolution;
9 |
10 | public class SimpleSurface
11 | implements ISurface
12 | {
13 | private InputSurface inputSurface;
14 | private Surface androidSurface;
15 | private int width;
16 | private int height;
17 |
18 | public SimpleSurface(MediaCodec mediaCodec, EGLContext eglSharedCtx)
19 | {
20 | this.androidSurface = mediaCodec.createInputSurface();
21 | this.inputSurface = new InputSurface(this.androidSurface, eglSharedCtx);
22 | }
23 |
24 | public void awaitNewImage()
25 | {
26 | }
27 |
28 | public void drawImage()
29 | {
30 | }
31 |
32 | public void setPresentationTime(long presentationTimeInNanoSeconds)
33 | {
34 | this.inputSurface.setPresentationTime(presentationTimeInNanoSeconds);
35 | }
36 |
37 | public void swapBuffers()
38 | {
39 | this.inputSurface.swapBuffers();
40 | }
41 |
42 | public void makeCurrent()
43 | {
44 | this.inputSurface.makeCurrent();
45 | }
46 |
47 | public ISurfaceWrapper getCleanObject()
48 | {
49 | return AndroidMediaObjectFactory.Converter.convert(this.inputSurface.getSurface());
50 | }
51 |
52 | public void setProjectionMatrix(float[] projectionMatrix)
53 | {
54 | }
55 |
56 | public void setViewport()
57 | {
58 | }
59 |
60 | public void setInputSize(int width, int height)
61 | {
62 | this.width = width;
63 | this.height = height;
64 | }
65 |
66 | public Resolution getInputSize()
67 | {
68 | return new Resolution(this.width, this.height);
69 | }
70 |
71 | public Surface getNativeSurface() {
72 | return this.androidSurface;
73 | }
74 |
75 | public void release()
76 | {
77 | this.inputSurface.release();
78 | this.androidSurface.release();
79 |
80 | this.inputSurface = null;
81 | this.androidSurface = null;
82 | }
83 | }
84 |
85 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
86 | * Qualified Name: com.intel.inde.mp.android.SimpleSurface
87 | * JD-Core Version: 0.6.1
88 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/Surface.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaCodec;
4 | import android.opengl.EGL14;
5 | import com.intel.inde.mp.domain.ISurface;
6 | import com.intel.inde.mp.domain.ISurfaceWrapper;
7 | import com.intel.inde.mp.domain.Resolution;
8 | import com.intel.inde.mp.domain.graphics.IEglUtil;
9 |
10 | public class Surface
11 | implements ISurface
12 | {
13 | private final OutputSurface outputSurface;
14 | private final InputSurface inputSurface;
15 | private int width;
16 | private int height;
17 |
18 | public Surface(MediaCodec mediaCodec, IEglUtil eglUtil)
19 | {
20 | this.inputSurface = new InputSurface(mediaCodec.createInputSurface(), EGL14.eglGetCurrentContext());
21 | this.inputSurface.makeCurrent();
22 | this.outputSurface = new OutputSurface(eglUtil);
23 | }
24 |
25 | public void awaitNewImage()
26 | {
27 | this.outputSurface.awaitNewImage();
28 | }
29 |
30 | public void drawImage()
31 | {
32 | this.outputSurface.drawImage();
33 | }
34 |
35 | public void setPresentationTime(long presentationTimeInNanoSeconds)
36 | {
37 | this.inputSurface.setPresentationTime(presentationTimeInNanoSeconds);
38 | }
39 |
40 | public void swapBuffers()
41 | {
42 | this.inputSurface.swapBuffers();
43 | }
44 |
45 | public void makeCurrent()
46 | {
47 | this.inputSurface.makeCurrent();
48 | }
49 |
50 | public ISurfaceWrapper getCleanObject()
51 | {
52 | return AndroidMediaObjectFactory.Converter.convert(this.outputSurface.getSurface());
53 | }
54 |
55 | public void setProjectionMatrix(float[] projectionMatrix)
56 | {
57 | this.inputSurface.setProjectionMatrix(projectionMatrix);
58 | }
59 |
60 | public void setViewport()
61 | {
62 | this.inputSurface.setViewPort();
63 | }
64 |
65 | public void setInputSize(int width, int height)
66 | {
67 | this.width = width;
68 | this.height = height;
69 | this.outputSurface.setInputSize(width, height);
70 | }
71 |
72 | public Resolution getInputSize()
73 | {
74 | return new Resolution(this.width, this.height);
75 | }
76 |
77 | public OutputSurface getOutputSurface() {
78 | return this.outputSurface;
79 | }
80 |
81 | public InputSurface getInputSurface() {
82 | return this.inputSurface;
83 | }
84 |
85 | public void release()
86 | {
87 | }
88 | }
89 |
90 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
91 | * Qualified Name: com.intel.inde.mp.android.Surface
92 | * JD-Core Version: 0.6.1
93 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/SurfaceTextureWrapper.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.graphics.SurfaceTexture;
4 | import com.intel.inde.mp.domain.ISurfaceTexture;
5 | import com.intel.inde.mp.domain.Wrapper;
6 |
7 | public class SurfaceTextureWrapper extends Wrapper
8 | implements ISurfaceTexture
9 | {
10 | public SurfaceTextureWrapper(SurfaceTexture surfaceTexture)
11 | {
12 | super(surfaceTexture);
13 | }
14 |
15 | public float[] getTransformMatrix()
16 | {
17 | float[] transformMatrix = new float[16];
18 | ((SurfaceTexture)getNativeObject()).getTransformMatrix(transformMatrix);
19 | return transformMatrix;
20 | }
21 | }
22 |
23 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
24 | * Qualified Name: com.intel.inde.mp.android.SurfaceTextureWrapper
25 | * JD-Core Version: 0.6.1
26 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/SurfaceWrapper.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.view.Surface;
4 | import com.intel.inde.mp.domain.ISurfaceWrapper;
5 | import com.intel.inde.mp.domain.Wrapper;
6 |
7 | public class SurfaceWrapper extends Wrapper
8 | implements ISurfaceWrapper
9 | {
10 | SurfaceWrapper(Surface surface)
11 | {
12 | super(surface);
13 | }
14 | }
15 |
16 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
17 | * Qualified Name: com.intel.inde.mp.android.SurfaceWrapper
18 | * JD-Core Version: 0.6.1
19 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/android/VideoFormatAndroid.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.android;
2 |
3 | import android.media.MediaFormat;
4 | import com.intel.inde.mp.VideoFormat;
5 | import java.nio.ByteBuffer;
6 |
7 | public class VideoFormatAndroid extends VideoFormat
8 | {
9 | private MediaFormat mediaFormat;
10 |
11 | VideoFormatAndroid(MediaFormat mediaFormat)
12 | {
13 | this.mediaFormat = mediaFormat;
14 | setVideoFrameSize(mediaFormat.getInteger("width"), mediaFormat.getInteger("height"));
15 | setVideoCodec(mediaFormat.getString("mime"));
16 | }
17 |
18 | public VideoFormatAndroid(String mimeType, int width, int height) {
19 | if ((width > 1280) || (height > 1280)) {
20 | if (width > height) {
21 | width = 1280;
22 | height = 720;
23 | } else {
24 | width = 720;
25 | height = 1280;
26 | }
27 | }
28 | this.mediaFormat = MediaFormat.createVideoFormat(mimeType, width, height);
29 | setVideoFrameSize(width, height);
30 | setVideoCodec(mimeType);
31 | }
32 |
33 | public MediaFormat getNativeFormat() {
34 | return this.mediaFormat;
35 | }
36 |
37 | public ByteBuffer getByteBuffer(String key)
38 | {
39 | return this.mediaFormat.getByteBuffer(key);
40 | }
41 |
42 | public void setInteger(String key, int value)
43 | {
44 | this.mediaFormat.setInteger(key, value);
45 | }
46 |
47 | public int getInteger(String key)
48 | {
49 | return this.mediaFormat.getInteger(key);
50 | }
51 |
52 | protected long getLong(String key)
53 | {
54 | return this.mediaFormat.getLong(key);
55 | }
56 |
57 | protected String getString(String key)
58 | {
59 | return this.mediaFormat.getString(key);
60 | }
61 | }
62 |
63 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\android-1.2.2415.jar
64 | * Qualified Name: com.intel.inde.mp.android.VideoFormatAndroid
65 | * JD-Core Version: 0.6.1
66 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/AudioDecoder.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.Queue;
4 |
5 | public class AudioDecoder extends Decoder
6 | {
7 | public AudioDecoder(IMediaCodec mediaCodec)
8 | {
9 | super(mediaCodec, MediaFormatType.AUDIO);
10 | }
11 |
12 | protected int getOutputBufferIndex()
13 | {
14 | IMediaCodec.BufferInfo bufferInfo = new IMediaCodec.BufferInfo();
15 | int outputBufferIndex = this.mediaCodec.dequeueOutputBuffer(bufferInfo, this.timeout);
16 |
17 | if ((this.state == PluginState.Draining) && (outputBufferIndex == -1)) {
18 | this.state = PluginState.Drained;
19 | }
20 |
21 | if ((outputBufferIndex != -1) && (outputBufferIndex != -2)) {
22 | this.outputBufferIndexes.add(Integer.valueOf(outputBufferIndex));
23 | this.outputBufferInfos.add(bufferInfo);
24 | }
25 |
26 | if ((outputBufferIndex >= 0) && (!bufferInfo.isEof())) {
27 | hasData();
28 | }
29 |
30 | if (outputBufferIndex == -2) {
31 | this.outputMediaFormat = this.mediaCodec.getOutputFormat();
32 | outputFormatChanged();
33 | }
34 |
35 | return outputBufferIndex;
36 | }
37 |
38 | private void outputFormatChanged() {
39 | getOutputCommandQueue().queue(Command.OutputFormatChanged, Integer.valueOf(0));
40 | }
41 |
42 | public void stop()
43 | {
44 | super.stop();
45 | recreate();
46 | }
47 |
48 | public MediaFormat getOutputMediaFormat()
49 | {
50 | return this.outputMediaFormat;
51 | }
52 | }
53 |
54 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
55 | * Qualified Name: com.intel.inde.mp.domain.AudioDecoder
56 | * JD-Core Version: 0.6.1
57 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/AudioEncoder.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import com.intel.inde.mp.AudioFormat;
4 |
5 | public class AudioEncoder extends Encoder
6 | {
7 | private Resampler resampler = null;
8 | private AudioFormat inputAudioFormat;
9 |
10 | public AudioEncoder(IMediaCodec mediaCodec)
11 | {
12 | super(mediaCodec);
13 | }
14 |
15 | public void setMediaFormat(MediaFormat mediaFormat)
16 | {
17 | this.mediaFormat = mediaFormat;
18 | }
19 |
20 | public void setInputMediaFormat(MediaFormat mediaFormat)
21 | {
22 | this.inputAudioFormat = ((AudioFormat)mediaFormat);
23 | this.resampler.setInputParameters(this.inputAudioFormat);
24 | }
25 |
26 | protected void initInputCommandQueue()
27 | {
28 | }
29 |
30 | public boolean isLastFile() {
31 | return true;
32 | }
33 |
34 | public void setOutputSurface(ISurface surface)
35 | {
36 | }
37 |
38 | public void waitForSurface(long pts) {
39 | }
40 |
41 | public void drain(int bufferIndex) {
42 | if (this.state != PluginState.Normal) return;
43 |
44 | super.drain(bufferIndex);
45 | }
46 |
47 | public void push(Frame frame)
48 | {
49 | if (frame.equals(Frame.EOF())) {
50 | this.mediaCodec.queueInputBuffer(frame.getBufferIndex(), 0, 0, frame.getSampleTime(), frame.getFlags());
51 | }
52 | else if (!frame.equals(Frame.empty())) {
53 | if (this.resampler != null) resampleAudioFrame(frame);
54 | this.mediaCodec.queueInputBuffer(frame.getBufferIndex(), 0, frame.getLength(), frame.getSampleTime(), 0);
55 | checkIfOutputQueueHasData();
56 | }
57 |
58 | super.push(frame);
59 | }
60 |
61 | public int getSampleRate() {
62 | return getAudioFormat().getAudioSampleRateInHz();
63 | }
64 |
65 | public int getChannelCount() {
66 | return getAudioFormat().getAudioChannelCount();
67 | }
68 |
69 | public int getBitRate() {
70 | return getAudioFormat().getAudioBitrateInBytes();
71 | }
72 |
73 | public void setSampleRate(int sampleRateInHz) {
74 | getAudioFormat().setAudioSampleRateInHz(sampleRateInHz);
75 | }
76 |
77 | public void setChannelCount(int channelCount) {
78 | getAudioFormat().setAudioChannelCount(channelCount);
79 | }
80 |
81 | private AudioFormat getAudioFormat() {
82 | return (AudioFormat)this.mediaFormat;
83 | }
84 |
85 | public void resampleAudioFrame(Frame frame) {
86 | this.resampler.resampleFrame(frame);
87 | }
88 |
89 | public void addResampler(Resampler resampler) {
90 | this.mediaFormat.setInteger("max-input-size", 49152);
91 | this.resampler = resampler;
92 | }
93 | }
94 |
95 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
96 | * Qualified Name: com.intel.inde.mp.domain.AudioEncoder
97 | * JD-Core Version: 0.6.1
98 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/AudioSample.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public class AudioSample
4 | {
5 | }
6 |
7 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
8 | * Qualified Name: com.intel.inde.mp.domain.AudioSample
9 | * JD-Core Version: 0.6.1
10 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/CameraSource.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.io.IOException;
4 |
5 | public class CameraSource
6 | implements ICameraSource
7 | {
8 | private CommandQueue commandQueue = new CommandQueue();
9 | private boolean isStopped = true;
10 |
11 | public void setOutputSurface(ISurface surface) {
12 | }
13 |
14 | public void setPreview(IPreview preview) {
15 | }
16 |
17 | public void setCamera(Object camera) {
18 | }
19 |
20 | public void configure() {
21 | }
22 |
23 | public Frame getFrame() {
24 | return null;
25 | }
26 |
27 | public ISurface getSurface() {
28 | return null;
29 | }
30 |
31 | public boolean canConnectFirst(IInputRaw connector)
32 | {
33 | return false;
34 | }
35 |
36 | public CommandQueue getOutputCommandQueue()
37 | {
38 | return this.commandQueue;
39 | }
40 |
41 | public void fillCommandQueues()
42 | {
43 | }
44 |
45 | public void start() {
46 | this.isStopped = false;
47 | }
48 |
49 | public void stop()
50 | {
51 | this.commandQueue.clear();
52 | getOutputCommandQueue().queue(Command.EndOfFile, Integer.valueOf(0));
53 | this.isStopped = true;
54 | }
55 |
56 | public Resolution getOutputResolution()
57 | {
58 | return new Resolution(0, 0);
59 | }
60 | public void close() throws IOException {
61 | }
62 |
63 | public Boolean isStopped() {
64 | return Boolean.valueOf(this.isStopped);
65 | }
66 | }
67 |
68 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
69 | * Qualified Name: com.intel.inde.mp.domain.CameraSource
70 | * JD-Core Version: 0.6.1
71 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/Command.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public enum Command
4 | {
5 | HasData,
6 | NeedData,
7 | OutputFormatChanged,
8 | NextPair,
9 | NeedInputFormat,
10 | Drained,
11 | EndOfFile;
12 | }
13 |
14 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
15 | * Qualified Name: com.intel.inde.mp.domain.Command
16 | * JD-Core Version: 0.6.1
17 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/CommandQueue.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.Iterator;
4 | import java.util.LinkedList;
5 |
6 | public class CommandQueue
7 | implements Iterable>
8 | {
9 | protected LinkedList> queue = new LinkedList();
10 |
11 | public CommandQueue() {
12 | }
13 |
14 | public CommandQueue(CommandQueue commandQueue) {
15 | for (Pair pair : commandQueue)
16 | queue((Command)pair.left, (Integer)pair.right);
17 | }
18 |
19 | public void queue(Command command, Integer trackId)
20 | {
21 | Pair pair = new Pair(command, trackId);
22 | this.queue.add(pair);
23 | }
24 |
25 | public Pair dequeue() {
26 | return (Pair)this.queue.poll();
27 | }
28 |
29 | public Iterator> iterator()
30 | {
31 | return this.queue.iterator();
32 | }
33 |
34 | public Pair first() {
35 | if (size() == 0) {
36 | return null;
37 | }
38 |
39 | return (Pair)this.queue.peek();
40 | }
41 |
42 | public Pair last() {
43 | if (size() == 0) return null;
44 | return (Pair)this.queue.getLast();
45 | }
46 |
47 | public void clear() {
48 | this.queue.clear();
49 | }
50 |
51 | public int size() {
52 | return this.queue.size();
53 | }
54 | }
55 |
56 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
57 | * Qualified Name: com.intel.inde.mp.domain.CommandQueue
58 | * JD-Core Version: 0.6.1
59 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ConnectedNode.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.Collection;
4 | import java.util.LinkedList;
5 |
6 | class ConnectedNode
7 | {
8 | T node;
9 | LinkedList connectedTo = new LinkedList();
10 |
11 | ConnectedNode(T node) {
12 | this.node = node;
13 | }
14 |
15 | public T value() {
16 | return this.node;
17 | }
18 |
19 | public boolean isConnected() {
20 | return !this.connectedTo.isEmpty();
21 | }
22 |
23 | public Collection getConnector() {
24 | return this.connectedTo;
25 | }
26 |
27 | public void connect(T1 connector) {
28 | this.connectedTo.add(connector);
29 | }
30 |
31 | public void disconnect(T1 connector) {
32 | this.connectedTo.remove(connector);
33 | }
34 |
35 | public boolean isConnectedTo(T1 value) {
36 | return getConnector().contains(value);
37 | }
38 | }
39 |
40 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
41 | * Qualified Name: com.intel.inde.mp.domain.ConnectedNode
42 | * JD-Core Version: 0.6.1
43 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/Encoder.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.io.IOException;
4 | import java.util.ArrayList;
5 |
6 | public abstract class Encoder extends MediaCodecPlugin
7 | implements ITransform, ISurfaceCreator
8 | {
9 | private ISurface surface;
10 | ArrayList listeners = new ArrayList();
11 |
12 | public Encoder(IMediaCodec mediaCodec) {
13 | super(mediaCodec);
14 | initInputCommandQueue();
15 | }
16 |
17 | public ISurface getSurface()
18 | {
19 | if (this.surface == null) {
20 | this.surface = this.mediaCodec.createInputSurface();
21 |
22 | for (IOnSurfaceReady listener : this.listeners) {
23 | listener.onSurfaceReady();
24 | }
25 | }
26 | return this.surface;
27 | }
28 |
29 | public ISurface getSimpleSurface(IEglContext eglContext)
30 | {
31 | if (this.surface == null) {
32 | this.surface = this.mediaCodec.createSimpleInputSurface(eglContext);
33 | }
34 | return this.surface;
35 | }
36 |
37 | public void checkIfOutputQueueHasData()
38 | {
39 | while (-1 != getOutputBufferIndex());
40 | }
41 |
42 | public void push(Frame frame)
43 | {
44 | super.push(frame);
45 | feedMeIfNotDraining();
46 | }
47 |
48 | public void configure()
49 | {
50 | this.mediaCodec.configure(this.mediaFormat, null, 1);
51 | }
52 |
53 | public void onSurfaceAvailable(IOnSurfaceReady listener)
54 | {
55 | this.listeners.add(listener);
56 | }
57 |
58 | public void pull(Frame frame)
59 | {
60 | throw new UnsupportedOperationException("Unexpected call of pull() in Encoder.");
61 | }
62 |
63 | public void releaseOutputBuffer(int outputBufferIndex)
64 | {
65 | this.mediaCodec.releaseOutputBuffer(outputBufferIndex, false);
66 | }
67 |
68 | public void setTrackId(int trackId)
69 | {
70 | this.trackId = trackId;
71 | }
72 |
73 | public void close() throws IOException
74 | {
75 | super.close();
76 |
77 | if (this.surface != null) {
78 | this.surface.release();
79 | this.surface = null;
80 | }
81 | }
82 | }
83 |
84 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
85 | * Qualified Name: com.intel.inde.mp.domain.Encoder
86 | * JD-Core Version: 0.6.1
87 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/EofFrame.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.nio.ByteBuffer;
4 |
5 | class EofFrame extends Frame
6 | {
7 | public EofFrame()
8 | {
9 | super(ByteBuffer.allocate(0), -1, 0L, 0, 4, -1);
10 | }
11 |
12 | public boolean equals(Object o)
13 | {
14 | if (this == o) return true;
15 | if (o == null) return false;
16 |
17 | Frame frame = (Frame)o;
18 | return equals(frame);
19 | }
20 |
21 | public boolean equals(Frame frame) {
22 | return ((frame.getFlags() & 0x4) != 0) || (frame.getLength() == -1);
23 | }
24 |
25 | public int hashCode()
26 | {
27 | return 0;
28 | }
29 | }
30 |
31 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
32 | * Qualified Name: com.intel.inde.mp.domain.EofFrame
33 | * JD-Core Version: 0.6.1
34 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/FrameBuffer.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.HashSet;
4 | import java.util.LinkedList;
5 | import java.util.Queue;
6 | import java.util.Set;
7 |
8 | class FrameBuffer
9 | {
10 | private int numberOfTracks;
11 | private final Set configuredTrackIndexes = new HashSet();
12 | private final Queue frames = new LinkedList();
13 |
14 | public FrameBuffer(int numberOfTracks) {
15 | this.numberOfTracks = numberOfTracks;
16 | }
17 |
18 | public void configure(int trackIndex) {
19 | this.configuredTrackIndexes.add(Integer.valueOf(trackIndex));
20 | }
21 |
22 | public boolean areAllTracksConfigured() {
23 | return this.numberOfTracks == this.configuredTrackIndexes.size();
24 | }
25 |
26 | public void push(Frame frame) {
27 | this.frames.add(frame);
28 | }
29 |
30 | public boolean canPull() {
31 | return (areAllTracksConfigured()) && (!this.frames.isEmpty());
32 | }
33 |
34 | public Frame pull() {
35 | return (Frame)this.frames.poll();
36 | }
37 |
38 | public void addTrack() {
39 | this.numberOfTracks += 1;
40 | }
41 | }
42 |
43 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
44 | * Qualified Name: com.intel.inde.mp.domain.FrameBuffer
45 | * JD-Core Version: 0.6.1
46 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IAndroidMediaObjectFactory.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import com.intel.inde.mp.AudioFormat;
4 | import com.intel.inde.mp.IProgressListener;
5 | import com.intel.inde.mp.StreamingParameters;
6 | import com.intel.inde.mp.Uri;
7 | import com.intel.inde.mp.domain.graphics.IEglUtil;
8 | import java.io.FileDescriptor;
9 | import java.io.IOException;
10 |
11 | public abstract interface IAndroidMediaObjectFactory
12 | {
13 | public abstract MediaSource createMediaSource(String paramString)
14 | throws IOException;
15 |
16 | public abstract MediaSource createMediaSource(FileDescriptor paramFileDescriptor)
17 | throws IOException;
18 |
19 | public abstract MediaSource createMediaSource(Uri paramUri)
20 | throws IOException;
21 |
22 | public abstract VideoDecoder createVideoDecoder(MediaFormat paramMediaFormat);
23 |
24 | public abstract VideoEncoder createVideoEncoder();
25 |
26 | public abstract Plugin createAudioDecoder();
27 |
28 | public abstract AudioEncoder createAudioEncoder(String paramString);
29 |
30 | public abstract Resampler createAudioResampler(AudioFormat paramAudioFormat);
31 |
32 | public abstract Render createSink(String paramString, IProgressListener paramIProgressListener, ProgressTracker paramProgressTracker)
33 | throws IOException;
34 |
35 | public abstract Render createSink(StreamingParameters paramStreamingParameters, IProgressListener paramIProgressListener, ProgressTracker paramProgressTracker);
36 |
37 | public abstract ICaptureSource createCaptureSource();
38 |
39 | public abstract MediaFormat createVideoFormat(String paramString, int paramInt1, int paramInt2);
40 |
41 | public abstract MediaFormat createAudioFormat(String paramString, int paramInt1, int paramInt2);
42 |
43 | public abstract VideoEffector createVideoEffector();
44 |
45 | public abstract IEffectorSurface createEffectorSurface();
46 |
47 | public abstract IPreview createPreviewRender(Object paramObject1, Object paramObject2);
48 |
49 | public abstract AudioEffector createAudioEffects();
50 |
51 | public abstract ICameraSource createCameraSource();
52 |
53 | public abstract IMicrophoneSource createMicrophoneSource();
54 |
55 | public abstract IAudioContentRecognition createAudioContentRecognition();
56 |
57 | public abstract IEglContext getCurrentEglContext();
58 |
59 | public abstract IEglUtil getEglUtil();
60 |
61 | public abstract IFrameBuffer createFrameBuffer();
62 | }
63 |
64 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
65 | * Qualified Name: com.intel.inde.mp.domain.IAndroidMediaObjectFactory
66 | * JD-Core Version: 0.6.1
67 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IAudioContentRecognition.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import com.intel.inde.mp.IRecognitionPlugin;
4 |
5 | public abstract interface IAudioContentRecognition
6 | {
7 | public abstract void setRecognizer(IRecognitionPlugin paramIRecognitionPlugin);
8 |
9 | public abstract void start();
10 |
11 | public abstract void stop();
12 | }
13 |
14 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
15 | * Qualified Name: com.intel.inde.mp.domain.IAudioContentRecognition
16 | * JD-Core Version: 0.6.1
17 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ICameraSource.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.io.Closeable;
4 |
5 | public abstract interface ICameraSource extends IRunnable, IOutputRaw, IVideoOutput, Closeable
6 | {
7 | public abstract void setOutputSurface(ISurface paramISurface);
8 |
9 | public abstract void setPreview(IPreview paramIPreview);
10 |
11 | public abstract void setCamera(Object paramObject);
12 |
13 | public abstract void configure();
14 |
15 | public abstract Frame getFrame();
16 |
17 | public abstract ISurface getSurface();
18 | }
19 |
20 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
21 | * Qualified Name: com.intel.inde.mp.domain.ICameraSource
22 | * JD-Core Version: 0.6.1
23 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ICaptureSource.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ICaptureSource extends IPluginOutput
4 | {
5 | public abstract void setSurfaceSize(int paramInt1, int paramInt2);
6 |
7 | public abstract void beginCaptureFrame();
8 |
9 | public abstract void endCaptureFrame();
10 |
11 | public abstract void addSetSurfaceListener(ISurfaceListener paramISurfaceListener);
12 | }
13 |
14 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
15 | * Qualified Name: com.intel.inde.mp.domain.ICaptureSource
16 | * JD-Core Version: 0.6.1
17 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ICommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ICommandHandler
4 | {
5 | public abstract void handle();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.ICommandHandler
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ICommandProcessor.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ICommandProcessor
4 | {
5 | public abstract void process();
6 |
7 | public abstract void add(OutputInputPair paramOutputInputPair);
8 |
9 | public abstract void stop();
10 | }
11 |
12 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
13 | * Qualified Name: com.intel.inde.mp.domain.ICommandProcessor
14 | * JD-Core Version: 0.6.1
15 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IEffectorSurface.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IEffectorSurface extends ISurface
4 | {
5 | public abstract void getTransformMatrix(float[] paramArrayOfFloat);
6 |
7 | public abstract int getSurfaceId();
8 |
9 | public abstract void drawImage(int paramInt, float[] paramArrayOfFloat);
10 |
11 | public abstract void drawImage2D(int paramInt, float[] paramArrayOfFloat);
12 |
13 | public abstract void release();
14 | }
15 |
16 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
17 | * Qualified Name: com.intel.inde.mp.domain.IEffectorSurface
18 | * JD-Core Version: 0.6.1
19 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IEgl.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IEgl
4 | {
5 | public abstract void init(int paramInt1, int paramInt2);
6 |
7 | public abstract void saveEglState();
8 |
9 | public abstract void restoreEglState();
10 |
11 | public abstract float[] getProjectionMatrix();
12 | }
13 |
14 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
15 | * Qualified Name: com.intel.inde.mp.domain.IEgl
16 | * JD-Core Version: 0.6.1
17 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IEglContext.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IEglContext
4 | {
5 | public abstract IEglContext getCurrentContext();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IEglContext
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IFrameAllocator.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IFrameAllocator
4 | {
5 | public abstract Frame findFreeFrame();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IFrameAllocator
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IFrameBuffer.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IFrameBuffer
4 | {
5 | public abstract void setResolution(Resolution paramResolution);
6 |
7 | public abstract int getTextureId();
8 |
9 | public abstract void release();
10 |
11 | public abstract void bind();
12 |
13 | public abstract void unbind();
14 | }
15 |
16 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
17 | * Qualified Name: com.intel.inde.mp.domain.IFrameBuffer
18 | * JD-Core Version: 0.6.1
19 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IHandlerCreator.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IHandlerCreator
4 | {
5 | public abstract ICommandHandler create();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IHandlerCreator
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IInput.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.io.Closeable;
4 |
5 | public abstract interface IInput extends IInputRaw, Closeable
6 | {
7 | public abstract void push(Frame paramFrame);
8 |
9 | public abstract void drain(int paramInt);
10 |
11 | public abstract void setMediaFormat(MediaFormat paramMediaFormat);
12 |
13 | public abstract void skipProcessing();
14 |
15 | public abstract int getTrackId();
16 |
17 | public abstract void setTrackId(int paramInt);
18 | }
19 |
20 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
21 | * Qualified Name: com.intel.inde.mp.domain.IInput
22 | * JD-Core Version: 0.6.1
23 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IInputRaw.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IInputRaw
4 | {
5 | public abstract boolean canConnectFirst(IOutputRaw paramIOutputRaw);
6 |
7 | public abstract CommandQueue getInputCommandQueue();
8 |
9 | public abstract void fillCommandQueues();
10 | }
11 |
12 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
13 | * Qualified Name: com.intel.inde.mp.domain.IInputRaw
14 | * JD-Core Version: 0.6.1
15 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IMediaExtractor.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import com.intel.inde.mp.Uri;
4 | import java.io.FileDescriptor;
5 | import java.nio.ByteBuffer;
6 |
7 | public abstract interface IMediaExtractor
8 | {
9 | public static final int SEEK_TO_PREVIOUS_SYNC = 0;
10 | public static final int SEEK_TO_NEXT_SYNC = 1;
11 | public static final int SEEK_TO_CLOSEST_SYNC = 2;
12 |
13 | public abstract int readSampleData(ByteBuffer paramByteBuffer);
14 |
15 | public abstract MediaFormat getTrackFormat(int paramInt);
16 |
17 | public abstract long getSampleTime();
18 |
19 | public abstract boolean advance();
20 |
21 | public abstract int getTrackCount();
22 |
23 | public abstract void selectTrack(int paramInt);
24 |
25 | public abstract void unselectTrack(int paramInt);
26 |
27 | public abstract int getSampleTrackIndex();
28 |
29 | public abstract void release();
30 |
31 | public abstract int getSampleFlags();
32 |
33 | public abstract void seekTo(long paramLong, int paramInt);
34 |
35 | public abstract int getRotation();
36 |
37 | public abstract String getFilePath();
38 |
39 | public abstract FileDescriptor getFileDescriptor();
40 |
41 | public abstract Uri getUri();
42 | }
43 |
44 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
45 | * Qualified Name: com.intel.inde.mp.domain.IMediaExtractor
46 | * JD-Core Version: 0.6.1
47 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IMediaFormatWrapper.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IMediaFormatWrapper
4 | {
5 | }
6 |
7 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
8 | * Qualified Name: com.intel.inde.mp.domain.IMediaFormatWrapper
9 | * JD-Core Version: 0.6.1
10 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IMediaMuxer.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.nio.ByteBuffer;
4 |
5 | public abstract interface IMediaMuxer
6 | {
7 | public abstract int addTrack(MediaFormat paramMediaFormat);
8 |
9 | public abstract void release();
10 |
11 | public abstract void setOrientationHint(int paramInt);
12 |
13 | public abstract void start();
14 |
15 | public abstract void stop();
16 |
17 | public abstract void writeSampleData(int paramInt, ByteBuffer paramByteBuffer, IMediaCodec.BufferInfo paramBufferInfo);
18 | }
19 |
20 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
21 | * Qualified Name: com.intel.inde.mp.domain.IMediaMuxer
22 | * JD-Core Version: 0.6.1
23 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IMediaSource.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IMediaSource extends IOutput, IVideoOutput
4 | {
5 | public abstract int getTrackIdByMediaType(MediaFormatType paramMediaFormatType);
6 |
7 | public abstract void selectTrack(int paramInt);
8 | }
9 |
10 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
11 | * Qualified Name: com.intel.inde.mp.domain.IMediaSource
12 | * JD-Core Version: 0.6.1
13 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IMicrophoneSource.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IMicrophoneSource extends IOutput
4 | {
5 | public abstract void configure(int paramInt1, int paramInt2);
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IMicrophoneSource
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IOnFrameAvailableListener.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IOnFrameAvailableListener
4 | {
5 | public abstract void onFrameAvailable();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IOnFrameAvailableListener
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IOnSurfaceReady.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IOnSurfaceReady
4 | {
5 | public abstract void onSurfaceReady();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IOnSurfaceReady
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IOutput.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.io.Closeable;
4 |
5 | public abstract interface IOutput extends IRunnable, IOutputRaw, Closeable
6 | {
7 | public abstract void pull(Frame paramFrame);
8 |
9 | public abstract MediaFormat getMediaFormatByType(MediaFormatType paramMediaFormatType);
10 |
11 | public abstract boolean isLastFile();
12 |
13 | public abstract void incrementConnectedPluginsCount();
14 | }
15 |
16 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
17 | * Qualified Name: com.intel.inde.mp.domain.IOutput
18 | * JD-Core Version: 0.6.1
19 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IOutputRaw.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IOutputRaw
4 | {
5 | public abstract boolean canConnectFirst(IInputRaw paramIInputRaw);
6 |
7 | public abstract CommandQueue getOutputCommandQueue();
8 |
9 | public abstract void fillCommandQueues();
10 | }
11 |
12 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
13 | * Qualified Name: com.intel.inde.mp.domain.IOutputRaw
14 | * JD-Core Version: 0.6.1
15 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IPluginOutput.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IPluginOutput extends IOutput, IReadyFrameProvider, ISurfaceProvider
4 | {
5 | public abstract void setOutputSurface(ISurface paramISurface);
6 |
7 | public abstract MediaFormatType getMediaFormatType();
8 |
9 | public abstract MediaFormat getOutputMediaFormat();
10 |
11 | public abstract void setTrackId(int paramInt);
12 |
13 | public abstract void setOutputTrackId(int paramInt);
14 |
15 | public abstract void releaseOutputBuffer(int paramInt);
16 | }
17 |
18 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
19 | * Qualified Name: com.intel.inde.mp.domain.IPluginOutput
20 | * JD-Core Version: 0.6.1
21 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IPreview.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import com.intel.inde.mp.IVideoEffect;
4 |
5 | public abstract interface IPreview
6 | {
7 | public abstract void setActiveEffect(IVideoEffect paramIVideoEffect);
8 |
9 | public abstract void renderSurfaceFromFrameBuffer(int paramInt);
10 |
11 | public abstract void requestRendering();
12 |
13 | public abstract PreviewContext getSharedContext();
14 |
15 | public abstract void updateCameraParameters();
16 |
17 | public abstract void start();
18 |
19 | public abstract void stop();
20 |
21 | public abstract void setListener(IOnFrameAvailableListener paramIOnFrameAvailableListener);
22 | }
23 |
24 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
25 | * Qualified Name: com.intel.inde.mp.domain.IPreview
26 | * JD-Core Version: 0.6.1
27 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IReadyFrameProvider.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | abstract interface IReadyFrameProvider
4 | {
5 | public abstract Frame getFrame();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IReadyFrameProvider
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IRunnable.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | abstract interface IRunnable
4 | {
5 | public abstract void start();
6 |
7 | public abstract void stop();
8 | }
9 |
10 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
11 | * Qualified Name: com.intel.inde.mp.domain.IRunnable
12 | * JD-Core Version: 0.6.1
13 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ISpecification.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | abstract interface ISpecification
4 | {
5 | public abstract boolean satisfiedBy(T paramT1, T paramT2);
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.ISpecification
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ISurface.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ISurface
4 | {
5 | public abstract void awaitNewImage();
6 |
7 | public abstract void drawImage();
8 |
9 | public abstract void setPresentationTime(long paramLong);
10 |
11 | public abstract void swapBuffers();
12 |
13 | public abstract void makeCurrent();
14 |
15 | public abstract ISurfaceWrapper getCleanObject();
16 |
17 | public abstract void setProjectionMatrix(float[] paramArrayOfFloat);
18 |
19 | public abstract void setViewport();
20 |
21 | public abstract void setInputSize(int paramInt1, int paramInt2);
22 |
23 | public abstract Resolution getInputSize();
24 |
25 | public abstract void release();
26 | }
27 |
28 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
29 | * Qualified Name: com.intel.inde.mp.domain.ISurface
30 | * JD-Core Version: 0.6.1
31 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ISurfaceCreatedListener.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ISurfaceCreatedListener
4 | {
5 | public abstract void onSurfaceCreated(ISurfaceListener paramISurfaceListener);
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.ISurfaceCreatedListener
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ISurfaceCreator.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ISurfaceCreator
4 | {
5 | public abstract void onSurfaceAvailable(IOnSurfaceReady paramIOnSurfaceReady);
6 |
7 | public abstract ISurface getSurface();
8 |
9 | public abstract ISurface getSimpleSurface(IEglContext paramIEglContext);
10 |
11 | public abstract void notifySurfaceReady(ISurface paramISurface);
12 | }
13 |
14 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
15 | * Qualified Name: com.intel.inde.mp.domain.ISurfaceCreator
16 | * JD-Core Version: 0.6.1
17 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ISurfaceListener.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ISurfaceListener
4 | {
5 | public abstract void onSurfaceAvailable(IEglContext paramIEglContext);
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.ISurfaceListener
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ISurfaceProvider.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | abstract interface ISurfaceProvider
4 | {
5 | public abstract ISurface getSurface();
6 |
7 | public abstract void waitForSurface(long paramLong);
8 | }
9 |
10 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
11 | * Qualified Name: com.intel.inde.mp.domain.ISurfaceProvider
12 | * JD-Core Version: 0.6.1
13 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ISurfaceTexture.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ISurfaceTexture
4 | {
5 | public abstract float[] getTransformMatrix();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.ISurfaceTexture
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ISurfaceWrapper.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ISurfaceWrapper
4 | {
5 | }
6 |
7 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
8 | * Qualified Name: com.intel.inde.mp.domain.ISurfaceWrapper
9 | * JD-Core Version: 0.6.1
10 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ITopologyTree.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.Collection;
4 |
5 | abstract interface ITopologyTree
6 | {
7 | public abstract T current();
8 |
9 | public abstract Collection> next();
10 | }
11 |
12 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
13 | * Qualified Name: com.intel.inde.mp.domain.ITopologyTree
14 | * JD-Core Version: 0.6.1
15 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ITransform.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface ITransform extends IOutput, IInput
4 | {
5 | public abstract void recreate();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.ITransform
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IVideoOutput.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IVideoOutput extends IOutputRaw
4 | {
5 | public abstract Resolution getOutputResolution();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IVideoOutput
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IWrapper.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract interface IWrapper
4 | {
5 | public abstract T getNativeObject();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.IWrapper
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/Input.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | abstract class Input
4 | implements IInput
5 | {
6 | private CommandQueue inputQueue = new CommandQueue();
7 | protected PluginState state;
8 | protected int trackId;
9 |
10 | Input()
11 | {
12 | this.state = PluginState.Starting;
13 | }
14 | protected void initInputCommandQueue() {
15 | }
16 |
17 | void setState(PluginState state) {
18 | this.state = state;
19 | }
20 |
21 | public CommandQueue getInputCommandQueue()
22 | {
23 | return this.inputQueue;
24 | }
25 |
26 | public void drain(int bufferIndex)
27 | {
28 | setState(PluginState.Draining);
29 | getInputCommandQueue().clear();
30 | }
31 |
32 | protected void feedMeIfNotDraining() {
33 | if ((this.state != PluginState.Draining) && (this.state != PluginState.Drained))
34 | getInputCommandQueue().queue(Command.NeedData, Integer.valueOf(getTrackId()));
35 | }
36 |
37 | public abstract void configure();
38 |
39 | public void skipProcessing()
40 | {
41 | getInputCommandQueue().clear();
42 | getInputCommandQueue().queue(Command.NextPair, Integer.valueOf(getTrackId()));
43 | }
44 |
45 | public int getTrackId()
46 | {
47 | return this.trackId;
48 | }
49 |
50 | public void setTrackId(int trackId)
51 | {
52 | this.trackId = trackId;
53 | initInputCommandQueue();
54 | }
55 | }
56 |
57 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
58 | * Qualified Name: com.intel.inde.mp.domain.Input
59 | * JD-Core Version: 0.6.1
60 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/IsConnectable.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.Collection;
4 |
5 | public abstract interface IsConnectable
6 | {
7 | public abstract boolean isConnectable(IOutputRaw paramIOutputRaw, Collection paramCollection);
8 |
9 | public abstract boolean isConnectable(Collection paramCollection, IInputRaw paramIInputRaw);
10 | }
11 |
12 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
13 | * Qualified Name: com.intel.inde.mp.domain.IsConnectable
14 | * JD-Core Version: 0.6.1
15 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/MatchingCommands.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.ArrayList;
4 |
5 | public final class MatchingCommands extends ArrayList>
6 | {
7 | public MatchingCommands()
8 | {
9 | add(new Pair(Command.HasData, Command.NeedData));
10 | add(new Pair(Command.HasData, Command.NeedInputFormat));
11 | add(new Pair(Command.OutputFormatChanged, Command.NeedInputFormat));
12 | add(new Pair(Command.OutputFormatChanged, Command.NeedData));
13 | add(new Pair(Command.EndOfFile, Command.NeedInputFormat));
14 | add(new Pair(Command.EndOfFile, Command.NeedData));
15 | }
16 | }
17 |
18 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
19 | * Qualified Name: com.intel.inde.mp.domain.MatchingCommands
20 | * JD-Core Version: 0.6.1
21 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/MediaFormat.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.nio.ByteBuffer;
4 |
5 | public abstract class MediaFormat
6 | {
7 | protected static final String KEY_MIME = "mime";
8 | protected static final String KEY_DURATION = "durationUs";
9 |
10 | public String getMimeType()
11 | {
12 | return getString("mime");
13 | }
14 |
15 | public long getDuration() {
16 | return getLong("durationUs");
17 | }
18 |
19 | public abstract ByteBuffer getByteBuffer(String paramString);
20 |
21 | protected abstract void setInteger(String paramString, int paramInt);
22 |
23 | protected abstract int getInteger(String paramString);
24 |
25 | protected abstract long getLong(String paramString);
26 |
27 | protected abstract String getString(String paramString);
28 | }
29 |
30 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
31 | * Qualified Name: com.intel.inde.mp.domain.MediaFormat
32 | * JD-Core Version: 0.6.1
33 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/MediaFormatType.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public enum MediaFormatType
4 | {
5 | VIDEO("video"),
6 | AUDIO("audio");
7 |
8 | private final String type;
9 |
10 | private MediaFormatType(String type) {
11 | this.type = type;
12 | }
13 |
14 | public String toString()
15 | {
16 | return this.type;
17 | }
18 | }
19 |
20 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
21 | * Qualified Name: com.intel.inde.mp.domain.MediaFormatType
22 | * JD-Core Version: 0.6.1
23 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/MicrophoneSource.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.io.IOException;
4 |
5 | public class MicrophoneSource
6 | implements IMicrophoneSource
7 | {
8 | protected CommandQueue commandQueue = new CommandQueue();
9 | private boolean isStopped = true;
10 |
11 | public void configure(int sampleRate, int channels)
12 | {
13 | }
14 |
15 | public void pull(Frame frame) {
16 | if (!isStopped())
17 | {
18 | if (frame.getLength() < 0) {
19 | frame.set(null, 0, 0L, 0, 0, 0);
20 | }
21 | this.commandQueue.queue(Command.HasData, Integer.valueOf(0));
22 | }
23 | else {
24 | frame.copyInfoFrom(Frame.EOF());
25 | frame.copyDataFrom(Frame.EOF());
26 | }
27 | }
28 |
29 | public MediaFormat getMediaFormatByType(MediaFormatType mediaFormatType)
30 | {
31 | return null;
32 | }
33 |
34 | public boolean isLastFile()
35 | {
36 | return true;
37 | }
38 |
39 | public void incrementConnectedPluginsCount()
40 | {
41 | }
42 |
43 | public void close() throws IOException {
44 | }
45 |
46 | public boolean canConnectFirst(IInputRaw connector) {
47 | return true;
48 | }
49 |
50 | public CommandQueue getOutputCommandQueue()
51 | {
52 | return this.commandQueue;
53 | }
54 |
55 | public void fillCommandQueues()
56 | {
57 | }
58 |
59 | public void start() {
60 | this.commandQueue.queue(Command.HasData, Integer.valueOf(0));
61 | this.isStopped = false;
62 | }
63 |
64 | public void stop()
65 | {
66 | this.commandQueue.clear();
67 | this.commandQueue.queue(Command.EndOfFile, Integer.valueOf(0));
68 | this.isStopped = true;
69 | }
70 | public boolean isStopped() {
71 | return this.isStopped;
72 | }
73 | }
74 |
75 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
76 | * Qualified Name: com.intel.inde.mp.domain.MicrophoneSource
77 | * JD-Core Version: 0.6.1
78 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/OutputInputPair.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public class OutputInputPair
4 | {
5 | public IOutputRaw output;
6 | public IInputRaw input;
7 | public CommandHandlerFactory commandHandlerFactory;
8 |
9 | public OutputInputPair(IOutputRaw output, IInputRaw input, CommandHandlerFactory commandHandlerFactory)
10 | {
11 | this.output = output;
12 | this.input = input;
13 | this.commandHandlerFactory = commandHandlerFactory;
14 | }
15 | }
16 |
17 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
18 | * Qualified Name: com.intel.inde.mp.domain.OutputInputPair
19 | * JD-Core Version: 0.6.1
20 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/Pair.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public class Pair
4 | {
5 | public T left;
6 | public U right;
7 |
8 | public Pair(T left, U right)
9 | {
10 | this.left = left;
11 | this.right = right;
12 | }
13 |
14 | public String toString()
15 | {
16 | return new StringBuilder().append("(").append(this.left == null ? "NULL" : this.left.toString()).append(", ").append(this.right == null ? "NULL" : this.right.toString()).append(")").toString();
17 | }
18 |
19 | public boolean equals(Object o)
20 | {
21 | if (this == o) return true;
22 | if (!(o instanceof Pair)) return false;
23 |
24 | Pair pair = (Pair)o;
25 |
26 | if (((this.left == null) && (pair.left != null)) || ((this.left != null) && (pair.left == null)) || ((this.left != null) && (!this.left.equals(pair.left))))
27 | return false;
28 | if (((this.right == null) && (pair.right != null)) || ((this.right != null) && (pair.right == null)) || ((this.right != null) && (!this.right.equals(pair.right)))) {
29 | return false;
30 | }
31 | return true;
32 | }
33 |
34 | public int hashCode()
35 | {
36 | int result = 0;
37 | if (this.left != null) result += this.left.hashCode();
38 | if (this.right != null) result = 31 * result + this.right.hashCode();
39 | return result;
40 | }
41 | }
42 |
43 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
44 | * Qualified Name: com.intel.inde.mp.domain.Pair
45 | * JD-Core Version: 0.6.1
46 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/PairCommandSpecification.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.Iterator;
4 | import java.util.List;
5 |
6 | class PairCommandSpecification
7 | implements ISpecification
8 | {
9 | private final List> matchingCommands;
10 |
11 | public PairCommandSpecification(
12 | List> matchingCommands)
13 | {
14 | this.matchingCommands = matchingCommands;
15 | }
16 |
17 | public boolean satisfiedBy(Command source, Command target)
18 | {
19 | if ((source == null) && (target == null))
20 | return false;
21 | for (Iterator> i$ = this.matchingCommands.iterator(); i$.hasNext();)
22 | {
23 | Pair matchingCommand = (Pair) i$.next();
24 | if ((matchingCommand.left != null)
25 | && (matchingCommand.left == source)
26 | && (matchingCommand.right != null)
27 | && (matchingCommand.right == target))
28 | return true;
29 | if ((matchingCommand.left == null)
30 | && (matchingCommand.right == target))
31 | return true;
32 | if ((matchingCommand.right != null)
33 | || (matchingCommand.left != source))
34 | return true;
35 | }
36 | return false;
37 | }
38 |
39 | public boolean satisfiedBy(
40 | Pair sourcePair,
41 | Pair targetPair) {
42 | if ((sourcePair == null) || (targetPair == null))
43 | return false;
44 |
45 | for (Pair matchingCommand : this.matchingCommands) {
46 | if ((matchingCommand.left != null)
47 | && (matchingCommand.left == sourcePair.left)
48 | && (matchingCommand.right != null)
49 | && (matchingCommand.right == targetPair.left)
50 | && (sourcePair.right == targetPair.right))
51 | {
52 | return true;
53 | }
54 | if ((matchingCommand.left == null)
55 | && (matchingCommand.right == targetPair.left)
56 | && (sourcePair.right == targetPair.right))
57 | return true;
58 | if ((matchingCommand.right == null)
59 | && (matchingCommand.left == targetPair.left)
60 | && (sourcePair.right == targetPair.right))
61 | return true;
62 | }
63 | return false;
64 | }
65 | }
66 |
67 | /*
68 | * Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
69 | * Qualified Name: com.intel.inde.mp.domain.PairCommandSpecification
70 | * JD-Core Version: 0.6.1
71 | */
72 |
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/PairQueueSpecification.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.List;
4 |
5 | class PairQueueSpecification
6 | implements ISpecification
7 | {
8 | private final PairCommandSpecification pairCommandSpecification;
9 |
10 | public PairQueueSpecification(List> matchingCommands)
11 | {
12 | this.pairCommandSpecification = new PairCommandSpecification(matchingCommands);
13 | }
14 |
15 | public boolean satisfiedBy(CommandQueue sourceQueue, CommandQueue targetQueue)
16 | {
17 | Pair sourceCommand = sourceQueue.first();
18 | Pair targetCommand = targetQueue.first();
19 | if (targetCommand == null) return false;
20 | if (targetCommand.left == Command.NextPair) return true;
21 | if (sourceCommand == null) return false;
22 | if (sourceCommand.left == Command.NextPair) return true;
23 | return this.pairCommandSpecification.satisfiedBy(sourceCommand, targetCommand);
24 | }
25 | }
26 |
27 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
28 | * Qualified Name: com.intel.inde.mp.domain.PairQueueSpecification
29 | * JD-Core Version: 0.6.1
30 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/Plugin.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract class Plugin extends Input
4 | implements ITransform, IPluginOutput
5 | {
6 | private CommandQueue outputQueue = new CommandQueue();
7 | protected MediaFormat mediaFormat = null;
8 |
9 | public void checkIfOutputQueueHasData()
10 | {
11 | }
12 |
13 | public void notifySurfaceReady(ISurface surface)
14 | {
15 | }
16 |
17 | public CommandQueue getOutputCommandQueue()
18 | {
19 | return this.outputQueue;
20 | }
21 |
22 | public abstract void start();
23 |
24 | public abstract void stop();
25 |
26 | public void push(Frame frame)
27 | {
28 | if (frame.equals(Frame.EOF()))
29 | drain(frame.getBufferIndex());
30 | }
31 |
32 | public MediaFormatType getMediaFormatType()
33 | {
34 | if (this.mediaFormat.getMimeType().startsWith("audio")) {
35 | return MediaFormatType.AUDIO;
36 | }
37 |
38 | return MediaFormatType.VIDEO;
39 | }
40 |
41 | public MediaFormat getMediaFormatByType(MediaFormatType mediaFormatType)
42 | {
43 | if (this.mediaFormat.getMimeType().startsWith(mediaFormatType.toString())) {
44 | return this.mediaFormat;
45 | }
46 | return null;
47 | }
48 |
49 | public MediaFormat getOutputMediaFormat()
50 | {
51 | return this.mediaFormat;
52 | }
53 |
54 | public void incrementConnectedPluginsCount()
55 | {
56 | }
57 |
58 | public boolean canConnectFirst(IInputRaw connector) {
59 | return true;
60 | }
61 |
62 | public boolean canConnectFirst(IOutputRaw connector) {
63 | return true;
64 | }
65 |
66 | public void recreate() {
67 | }
68 |
69 | public void setInputResolution(Resolution resolution) {
70 | getSurface().setInputSize(resolution.width(), resolution.height());
71 | }
72 | }
73 |
74 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
75 | * Qualified Name: com.intel.inde.mp.domain.Plugin
76 | * JD-Core Version: 0.6.1
77 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/PluginState.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | enum PluginState
4 | {
5 | Normal,
6 | Starting,
7 | Draining,
8 | Drained,
9 | Paused;
10 | }
11 |
12 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
13 | * Qualified Name: com.intel.inde.mp.domain.PluginState
14 | * JD-Core Version: 0.6.1
15 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/PreviewContext.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public class PreviewContext
4 | {
5 | ISurfaceTexture previewTexture;
6 | int previewTextureId;
7 | IEglContext eglContext;
8 |
9 | public PreviewContext(ISurfaceTexture previewTexture, int previewTextureId, IEglContext eglContext)
10 | {
11 | this.previewTexture = previewTexture;
12 | this.previewTextureId = previewTextureId;
13 | this.eglContext = eglContext;
14 | }
15 |
16 | public IEglContext getEglContext() {
17 | return this.eglContext;
18 | }
19 | }
20 |
21 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
22 | * Qualified Name: com.intel.inde.mp.domain.PreviewContext
23 | * JD-Core Version: 0.6.1
24 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/ProgressTracker.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public class ProgressTracker
4 | {
5 | private float finish = 0.0F;
6 | private float currentProgress = 0.0F;
7 |
8 | public float getProgress() {
9 | return this.currentProgress / this.finish;
10 | }
11 |
12 | public void setFinish(float finish) {
13 | this.finish = finish;
14 | }
15 |
16 | public void track(float currentProgress) {
17 | if (currentProgress > this.currentProgress)
18 | this.currentProgress = currentProgress;
19 | }
20 | }
21 |
22 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
23 | * Qualified Name: com.intel.inde.mp.domain.ProgressTracker
24 | * JD-Core Version: 0.6.1
25 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/RecognitionPipeline.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import com.intel.inde.mp.IRecognitionPlugin;
4 | import com.intel.inde.mp.IRecognitionPlugin.RecognitionInput;
5 | import java.nio.ByteBuffer;
6 |
7 | public class RecognitionPipeline
8 | {
9 | private State state;
10 | private IRecognitionPlugin recognitionPlugin;
11 | private IOutput mediaSource;
12 | private Frame frame;
13 | private ByteBuffer buffer;
14 | private IRecognitionPlugin.RecognitionInput pluginInput;
15 | private final int bufferSize = 16384;
16 |
17 | public RecognitionPipeline(IOutput source, IRecognitionPlugin plugin) {
18 | if ((plugin == null) || (source == null)) {
19 | throw new IllegalArgumentException("Plugin or Source can't be null");
20 | }
21 |
22 | this.state = State.NotInitialized;
23 | this.buffer = ByteBuffer.allocateDirect(16384);
24 | this.frame = new Frame(this.buffer, 16384, 0L, 0, 0, 0);
25 | this.pluginInput = new IRecognitionPlugin.RecognitionInput();
26 | this.recognitionPlugin = plugin;
27 | this.mediaSource = source;
28 | this.pluginInput.setMediaFormat(this.mediaSource.getMediaFormatByType(MediaFormatType.AUDIO));
29 | }
30 |
31 | public void start() {
32 | setState(State.Running);
33 | this.mediaSource.start();
34 | while (this.state == State.Running) {
35 | this.mediaSource.pull(this.frame);
36 | this.pluginInput.setFrame(this.frame);
37 | this.recognitionPlugin.recognize(this.pluginInput);
38 | }
39 | this.mediaSource.stop();
40 |
41 | setState(State.Initialized);
42 | }
43 |
44 | public void stop() {
45 | setState(State.Stopping);
46 | }
47 |
48 | private void setState(State state) {
49 | this.state = state;
50 | }
51 |
52 | static enum State
53 | {
54 | NotInitialized,
55 | Initialized,
56 | Running,
57 | Stopping;
58 | }
59 | }
60 |
61 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
62 | * Qualified Name: com.intel.inde.mp.domain.RecognitionPipeline
63 | * JD-Core Version: 0.6.1
64 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/Render.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import com.intel.inde.mp.domain.pipeline.IOnStopListener;
4 |
5 | public abstract class Render extends Input
6 | {
7 | protected IOnStopListener onStopListener;
8 |
9 | public abstract int getTrackIdByMediaFormat(MediaFormat paramMediaFormat);
10 |
11 | public abstract void start();
12 |
13 | public void addOnStopListener(IOnStopListener onStopListener)
14 | {
15 | this.onStopListener = onStopListener;
16 | }
17 | }
18 |
19 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
20 | * Qualified Name: com.intel.inde.mp.domain.Render
21 | * JD-Core Version: 0.6.1
22 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/Resolution.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Resolution
6 | implements Serializable
7 | {
8 | private final int width;
9 | private final int height;
10 |
11 | public Resolution(int width, int height)
12 | {
13 | this.width = width;
14 | this.height = height;
15 | }
16 |
17 | public int width() {
18 | return this.width;
19 | }
20 |
21 | public int height() {
22 | return this.height;
23 | }
24 |
25 | public boolean equals(Object o)
26 | {
27 | if (this == o) return true;
28 | if ((o == null) || (getClass() != o.getClass())) return false;
29 |
30 | Resolution that = (Resolution)o;
31 |
32 | if (this.height != that.height) return false;
33 | if (this.width != that.width) return false;
34 |
35 | return true;
36 | }
37 |
38 | public int hashCode()
39 | {
40 | int result = this.width;
41 | result = 31 * result + this.height;
42 | return result;
43 | }
44 | }
45 |
46 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
47 | * Qualified Name: com.intel.inde.mp.domain.Resolution
48 | * JD-Core Version: 0.6.1
49 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/SampleRate.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public enum SampleRate
4 | {
5 | SAMPLE_RATE_8000(8000),
6 | SAMPLE_RATE_16000(16000),
7 | SAMPLE_RATE_24000(24000),
8 | SAMPLE_RATE_22050(22050),
9 | SAMPLE_RATE_32000(32000),
10 | SAMPLE_RATE_44100(44100),
11 | SAMPLE_RATE_48000(48000);
12 |
13 | private final int sampleRate;
14 |
15 | private SampleRate(int sampleRate) {
16 | this.sampleRate = sampleRate;
17 | }
18 |
19 | public int getValue() {
20 | return this.sampleRate;
21 | }
22 | }
23 |
24 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
25 | * Qualified Name: com.intel.inde.mp.domain.SampleRate
26 | * JD-Core Version: 0.6.1
27 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/SurfaceRender.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public abstract class SurfaceRender extends Render
4 | {
5 | public abstract void onSurfaceAvailable(IOnSurfaceReady paramIOnSurfaceReady);
6 |
7 | public abstract ISurface getSurface();
8 | }
9 |
10 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
11 | * Qualified Name: com.intel.inde.mp.domain.SurfaceRender
12 | * JD-Core Version: 0.6.1
13 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/TopologyNet.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import java.util.Collection;
4 |
5 | class TopologyNet
6 | implements ITopologyTree
7 | {
8 | Object value;
9 | private Collection mRight;
10 |
11 | TopologyNet(Object current)
12 | {
13 | this.value = current;
14 | }
15 |
16 | public Object current()
17 | {
18 | return this.value;
19 | }
20 |
21 | public Collection next()
22 | {
23 | return this.mRight;
24 | }
25 |
26 | public void setNext(Collection mRight) {
27 | this.mRight = mRight;
28 | }
29 | }
30 |
31 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
32 | * Qualified Name: com.intel.inde.mp.domain.TopologyNet
33 | * JD-Core Version: 0.6.1
34 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/VideoDecoder.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | import com.intel.inde.mp.VideoFormat;
4 |
5 | public class VideoDecoder extends Decoder
6 | implements IVideoOutput
7 | {
8 | public VideoDecoder(IMediaCodec mediaCodec)
9 | {
10 | super(mediaCodec, MediaFormatType.VIDEO);
11 | }
12 |
13 | public void drain(int bufferIndex)
14 | {
15 | if (this.state != PluginState.Normal) return;
16 |
17 | super.drain(bufferIndex);
18 | this.mediaCodec.signalEndOfInputStream();
19 | }
20 |
21 | public void push(Frame frame)
22 | {
23 | if ((this.state == PluginState.Draining) || (this.state == PluginState.Drained)) {
24 | throw new RuntimeException("Out of order operation.");
25 | }
26 | super.push(frame);
27 | }
28 |
29 | public void stop()
30 | {
31 | super.stop();
32 | recreate();
33 | }
34 |
35 | protected void initInputCommandQueue()
36 | {
37 | getInputCommandQueue().queue(Command.NeedInputFormat, Integer.valueOf(getTrackId()));
38 | }
39 |
40 | public Resolution getOutputResolution() {
41 | return ((VideoFormat)getOutputMediaFormat()).getVideoFrameSize();
42 | }
43 | }
44 |
45 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
46 | * Qualified Name: com.intel.inde.mp.domain.VideoDecoder
47 | * JD-Core Version: 0.6.1
48 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/Wrapper.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain;
2 |
3 | public class Wrapper
4 | implements IWrapper
5 | {
6 | private T t;
7 |
8 | public Wrapper(T t)
9 | {
10 | this.t = t;
11 | }
12 |
13 | public T getNativeObject()
14 | {
15 | return this.t;
16 | }
17 | }
18 |
19 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
20 | * Qualified Name: com.intel.inde.mp.domain.Wrapper
21 | * JD-Core Version: 0.6.1
22 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/graphics/IEglUtil.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.graphics;
2 |
3 | import java.nio.FloatBuffer;
4 |
5 | import com.intel.inde.mp.domain.Resolution;
6 |
7 | public abstract interface IEglUtil
8 | {
9 | public static final String VERTEX_SHADER = "uniform mat4 uMVPMatrix;\nuniform mat4 uSTMatrix;\nattribute vec4 aPosition;\nattribute vec4 aTextureCoord;\nvarying vec2 vTextureCoord;\nvoid main() {\n gl_Position = uMVPMatrix * aPosition;\n vTextureCoord = (uSTMatrix * aTextureCoord).xy;\n}\n";
10 | public static final String FRAGMENT_SHADER_OES = "#extension GL_OES_EGL_image_external : require\nprecision mediump float;\nvarying vec2 vTextureCoord;\nuniform samplerExternalOES sTexture;\nvoid main() {\n gl_FragColor = texture2D(sTexture, vTextureCoord);\n}\n";
11 |
12 | public abstract Resolution getCurrentSurfaceResolution();
13 |
14 | public abstract Program createProgram(
15 | String paramString1, String paramString2);
16 |
17 | public abstract int createTexture(int paramInt);
18 |
19 | public abstract void drawFrameStart(
20 | Program paramProgram, FloatBuffer paramFloatBuffer,
21 | float[] paramArrayOfFloat1, float[] paramArrayOfFloat2,
22 | float paramFloat, TextureType paramTextureType, int paramInt,
23 | Resolution paramResolution, boolean paramBoolean);
24 |
25 | public abstract void drawFrameFinish();
26 |
27 | public abstract void drawFrame(
28 | Program paramProgram, FloatBuffer paramFloatBuffer,
29 | float[] paramArrayOfFloat1, float[] paramArrayOfFloat2,
30 | float paramFloat, TextureType paramTextureType, int paramInt,
31 | Resolution paramResolution, boolean paramBoolean);
32 |
33 | public abstract void checkEglError(String paramString);
34 |
35 | public abstract void setIdentityMatrix(
36 | float[] paramArrayOfFloat, int paramInt);
37 | }
38 |
39 | /*
40 | * Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
41 | * Qualified Name: com.intel.inde.mp.domain.graphics.IEglUtil
42 | * JD-Core Version: 0.6.1
43 | */
44 |
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/graphics/IShaderProgram.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.graphics;
2 |
3 | public abstract interface IShaderProgram
4 | {
5 | public abstract void create(String paramString1, String paramString2);
6 |
7 | public abstract void use();
8 |
9 | public abstract void unUse();
10 |
11 | public abstract int getAttributeLocation(String paramString);
12 | }
13 |
14 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
15 | * Qualified Name: com.intel.inde.mp.domain.graphics.IShaderProgram
16 | * JD-Core Version: 0.6.1
17 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/graphics/Program.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.graphics;
2 |
3 | public class Program
4 | {
5 | public int programHandle;
6 | public int positionHandle;
7 | public int textureHandle;
8 | public int mvpMatrixHandle;
9 | public int stMatrixHandle;
10 | }
11 |
12 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
13 | * Qualified Name: com.intel.inde.mp.domain.graphics.Program
14 | * JD-Core Version: 0.6.1
15 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/graphics/TextureType.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.graphics;
2 |
3 | public enum TextureType
4 | {
5 | GL_TEXTURE_2D,
6 | GL_TEXTURE_EXTERNAL_OES;
7 | }
8 |
9 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
10 | * Qualified Name: com.intel.inde.mp.domain.graphics.TextureType
11 | * JD-Core Version: 0.6.1
12 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/AudioPipelineOutputFormatChangeCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.ICommandHandler;
5 | import com.intel.inde.mp.domain.MediaCodecPlugin;
6 | import com.intel.inde.mp.domain.MediaFormat;
7 |
8 | class AudioPipelineOutputFormatChangeCommandHandler
9 | implements ICommandHandler
10 | {
11 | private MediaCodecPlugin output;
12 | private MediaCodecPlugin input;
13 |
14 | public AudioPipelineOutputFormatChangeCommandHandler(MediaCodecPlugin output, MediaCodecPlugin input)
15 | {
16 | this.output = output;
17 | this.input = input;
18 | }
19 |
20 | public void handle()
21 | {
22 | MediaFormat decoderMediaFormat = this.output.getOutputMediaFormat();
23 | this.input.setInputMediaFormat(decoderMediaFormat);
24 | this.input.push(Frame.empty());
25 | }
26 | }
27 |
28 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
29 | * Qualified Name: com.intel.inde.mp.domain.pipeline.AudioPipelineOutputFormatChangeCommandHandler
30 | * JD-Core Version: 0.6.1
31 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/CaptureSourcePullSurfaceCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.ICameraSource;
5 | import com.intel.inde.mp.domain.ICommandHandler;
6 | import com.intel.inde.mp.domain.MediaCodecPlugin;
7 |
8 | class CaptureSourcePullSurfaceCommandHandler
9 | implements ICommandHandler
10 | {
11 | private ICameraSource source;
12 | private MediaCodecPlugin plugin;
13 |
14 | public CaptureSourcePullSurfaceCommandHandler(ICameraSource source, MediaCodecPlugin plugin)
15 | {
16 | this.source = source;
17 | this.plugin = plugin;
18 | }
19 |
20 | public void handle()
21 | {
22 | Frame frame = this.source.getFrame();
23 |
24 | if ((!frame.equals(Frame.EOF())) && (0 != frame.getLength())) {
25 | this.plugin.notifySurfaceReady(this.source.getSurface());
26 | }
27 | this.plugin.push(frame);
28 | this.plugin.checkIfOutputQueueHasData();
29 | }
30 | }
31 |
32 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
33 | * Qualified Name: com.intel.inde.mp.domain.pipeline.CaptureSourcePullSurfaceCommandHandler
34 | * JD-Core Version: 0.6.1
35 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/ConfigureVideoDecoderCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Command;
4 | import com.intel.inde.mp.domain.CommandQueue;
5 | import com.intel.inde.mp.domain.ICommandHandler;
6 | import com.intel.inde.mp.domain.IVideoOutput;
7 | import com.intel.inde.mp.domain.Plugin;
8 |
9 | class ConfigureVideoDecoderCommandHandler
10 | implements ICommandHandler
11 | {
12 | protected final IVideoOutput output;
13 | private final Plugin input;
14 |
15 | public ConfigureVideoDecoderCommandHandler(IVideoOutput output, Plugin decoder)
16 | {
17 | this.output = output;
18 | this.input = decoder;
19 | }
20 |
21 | public void handle()
22 | {
23 | this.output.getOutputCommandQueue().queue(Command.HasData, Integer.valueOf(this.input.getTrackId()));
24 | this.input.setInputResolution(this.output.getOutputResolution());
25 | }
26 | }
27 |
28 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
29 | * Qualified Name: com.intel.inde.mp.domain.pipeline.ConfigureVideoDecoderCommandHandler
30 | * JD-Core Version: 0.6.1
31 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/ConfigureVideoEffectorCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Command;
4 | import com.intel.inde.mp.domain.CommandQueue;
5 | import com.intel.inde.mp.domain.ICommandHandler;
6 | import com.intel.inde.mp.domain.IVideoOutput;
7 | import com.intel.inde.mp.domain.Plugin;
8 |
9 | class ConfigureVideoEffectorCommandHandler
10 | implements ICommandHandler
11 | {
12 | private final IVideoOutput output;
13 | private final Plugin input;
14 |
15 | public ConfigureVideoEffectorCommandHandler(IVideoOutput output, Plugin decoder)
16 | {
17 | this.output = output;
18 | this.input = decoder;
19 | }
20 |
21 | public void handle()
22 | {
23 | this.output.getOutputCommandQueue().queue(Command.OutputFormatChanged, Integer.valueOf(this.input.getTrackId()));
24 | this.input.getInputCommandQueue().queue(Command.NeedData, Integer.valueOf(this.input.getTrackId()));
25 |
26 | this.input.setInputResolution(this.output.getOutputResolution());
27 | }
28 | }
29 |
30 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
31 | * Qualified Name: com.intel.inde.mp.domain.pipeline.ConfigureVideoEffectorCommandHandler
32 | * JD-Core Version: 0.6.1
33 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/CopyDataCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Command;
4 | import com.intel.inde.mp.domain.CommandQueue;
5 | import com.intel.inde.mp.domain.Frame;
6 | import com.intel.inde.mp.domain.ICommandHandler;
7 | import com.intel.inde.mp.domain.IPluginOutput;
8 | import com.intel.inde.mp.domain.MediaCodecPlugin;
9 |
10 | class CopyDataCommandHandler
11 | implements ICommandHandler
12 | {
13 | private final IPluginOutput output;
14 | private final MediaCodecPlugin input;
15 |
16 | public CopyDataCommandHandler(IPluginOutput output, MediaCodecPlugin input)
17 | {
18 | this.output = output;
19 | this.input = input;
20 | }
21 |
22 | public void handle()
23 | {
24 | Frame encoderFrame = this.input.findFreeFrame();
25 | if (encoderFrame == null) {
26 | restoreCommands();
27 | return;
28 | }
29 |
30 | Frame decoderFrame = this.output.getFrame();
31 | if (decoderFrame == null) return;
32 |
33 | encoderFrame.copyDataFrom(decoderFrame);
34 | this.input.push(encoderFrame);
35 |
36 | this.output.releaseOutputBuffer(decoderFrame.getBufferIndex());
37 | }
38 |
39 | private void restoreCommands()
40 | {
41 | this.output.getOutputCommandQueue().queue(Command.HasData, Integer.valueOf(0));
42 | this.input.getInputCommandQueue().clear();
43 | this.input.skipProcessing();
44 | this.input.getInputCommandQueue().queue(Command.NeedData, Integer.valueOf(0));
45 | }
46 | }
47 |
48 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
49 | * Qualified Name: com.intel.inde.mp.domain.pipeline.CopyDataCommandHandler
50 | * JD-Core Version: 0.6.1
51 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/DrainCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.ICommandHandler;
4 | import com.intel.inde.mp.domain.MediaCodecPlugin;
5 |
6 | class DrainCommandHandler
7 | implements ICommandHandler
8 | {
9 | protected final MediaCodecPlugin plugin;
10 |
11 | public DrainCommandHandler(MediaCodecPlugin plugin)
12 | {
13 | this.plugin = plugin;
14 | }
15 |
16 | public void handle()
17 | {
18 | this.plugin.drain(0);
19 | }
20 | }
21 |
22 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
23 | * Qualified Name: com.intel.inde.mp.domain.pipeline.DrainCommandHandler
24 | * JD-Core Version: 0.6.1
25 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/DrainRenderCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.ICommandHandler;
4 | import com.intel.inde.mp.domain.Render;
5 |
6 | public class DrainRenderCommandHandler
7 | implements ICommandHandler
8 | {
9 | protected final Render render;
10 |
11 | public DrainRenderCommandHandler(Render render)
12 | {
13 | this.render = render;
14 | }
15 |
16 | public void handle()
17 | {
18 | this.render.drain(0);
19 | }
20 | }
21 |
22 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
23 | * Qualified Name: com.intel.inde.mp.domain.pipeline.DrainRenderCommandHandler
24 | * JD-Core Version: 0.6.1
25 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/EncoderMediaFormatChangedCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.ICommandHandler;
4 | import com.intel.inde.mp.domain.Plugin;
5 | import com.intel.inde.mp.domain.Render;
6 |
7 | class EncoderMediaFormatChangedCommandHandler
8 | implements ICommandHandler
9 | {
10 | protected Plugin plugin;
11 | protected Render render;
12 |
13 | public EncoderMediaFormatChangedCommandHandler(Plugin plugin, Render render)
14 | {
15 | this.plugin = plugin;
16 | this.render = render;
17 | }
18 |
19 | public void handle()
20 | {
21 | this.render.setMediaFormat(this.plugin.getOutputMediaFormat());
22 | this.plugin.setOutputTrackId(this.render.getTrackIdByMediaFormat(this.plugin.getOutputMediaFormat()));
23 | this.render.start();
24 | this.plugin.checkIfOutputQueueHasData();
25 | }
26 | }
27 |
28 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
29 | * Qualified Name: com.intel.inde.mp.domain.pipeline.EncoderMediaFormatChangedCommandHandler
30 | * JD-Core Version: 0.6.1
31 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/EofCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Command;
4 | import com.intel.inde.mp.domain.CommandQueue;
5 | import com.intel.inde.mp.domain.Frame;
6 | import com.intel.inde.mp.domain.ICommandHandler;
7 | import com.intel.inde.mp.domain.IFrameAllocator;
8 | import com.intel.inde.mp.domain.IOutput;
9 | import com.intel.inde.mp.domain.Plugin;
10 |
11 | class EofCommandHandler
12 | implements ICommandHandler
13 | {
14 | protected IOutput output;
15 | protected Plugin plugin;
16 | private IFrameAllocator inputWithAllocator;
17 |
18 | public EofCommandHandler(IOutput output, Plugin plugin, IFrameAllocator frameAllocator)
19 | {
20 | this.output = output;
21 | this.plugin = plugin;
22 | this.inputWithAllocator = frameAllocator;
23 | }
24 |
25 | public void handle()
26 | {
27 | Frame frame = this.inputWithAllocator.findFreeFrame();
28 |
29 | if (frame != null)
30 | this.plugin.drain(frame.getBufferIndex());
31 | else
32 | handleNoFreeInputBuffer();
33 | }
34 |
35 | private void handleNoFreeInputBuffer()
36 | {
37 | this.output.getOutputCommandQueue().queue(Command.EndOfFile, Integer.valueOf(this.plugin.getTrackId()));
38 | this.plugin.skipProcessing();
39 | this.plugin.getInputCommandQueue().queue(Command.NeedData, Integer.valueOf(this.plugin.getTrackId()));
40 | }
41 | }
42 |
43 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
44 | * Qualified Name: com.intel.inde.mp.domain.pipeline.EofCommandHandler
45 | * JD-Core Version: 0.6.1
46 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/IConnector.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | abstract interface IConnector
4 | {
5 | }
6 |
7 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
8 | * Qualified Name: com.intel.inde.mp.domain.pipeline.IConnector
9 | * JD-Core Version: 0.6.1
10 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/IOnStopListener.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | public abstract interface IOnStopListener
4 | {
5 | public abstract void onStop();
6 | }
7 |
8 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
9 | * Qualified Name: com.intel.inde.mp.domain.pipeline.IOnStopListener
10 | * JD-Core Version: 0.6.1
11 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/ManyToOneConnectable.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.IInputRaw;
4 | import com.intel.inde.mp.domain.IOutputRaw;
5 | import com.intel.inde.mp.domain.IsConnectable;
6 | import java.util.Collection;
7 | import java.util.Iterator;
8 | import java.util.LinkedList;
9 |
10 | class ManyToOneConnectable
11 | implements IsConnectable
12 | {
13 | ManyTypes mOutTypes;
14 | Class mInType;
15 |
16 | ManyToOneConnectable(ManyTypes manyTypes, Class inType)
17 | {
18 | this.mOutTypes = manyTypes;
19 | this.mInType = inType;
20 | }
21 |
22 | public static ManyToOneConnectable ManyToOneConnections(ManyTypes manyTypes, Class inType)
23 | {
24 | return new ManyToOneConnectable(manyTypes, inType);
25 | }
26 |
27 | public boolean isConnectable(IOutputRaw output, Collection input)
28 | {
29 | if (input.size() != 1) {
30 | return false;
31 | }
32 | LinkedList c = new LinkedList();
33 | c.add(output);
34 | return isConnectable(c, (IInputRaw)input.iterator().next());
35 | }
36 |
37 | public boolean isConnectable(Collection outputs, IInputRaw input)
38 | {
39 | if (!this.mInType.isInstance(input)) {
40 | return false;
41 | }
42 | for (IOutputRaw output : outputs) {
43 | boolean instanceDetected = false;
44 | for (Class mOutType : this.mOutTypes.getTypes()) {
45 | if (mOutType.isInstance(output)) {
46 | instanceDetected = true;
47 | break;
48 | }
49 | }
50 | if (!instanceDetected) {
51 | return false;
52 | }
53 | }
54 |
55 | return true;
56 | }
57 | }
58 |
59 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
60 | * Qualified Name: com.intel.inde.mp.domain.pipeline.ManyToOneConnectable
61 | * JD-Core Version: 0.6.1
62 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/ManyTypes.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | class ManyTypes
4 | {
5 | private final Class[] types;
6 |
7 | public ManyTypes(Class[] types)
8 | {
9 | this.types = types;
10 | }
11 |
12 | public Class[] getTypes() {
13 | return this.types;
14 | }
15 | }
16 |
17 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
18 | * Qualified Name: com.intel.inde.mp.domain.pipeline.ManyTypes
19 | * JD-Core Version: 0.6.1
20 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/MicrophoneSourcePullFrameCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.AudioEncoder;
4 | import com.intel.inde.mp.domain.Command;
5 | import com.intel.inde.mp.domain.CommandQueue;
6 | import com.intel.inde.mp.domain.Frame;
7 | import com.intel.inde.mp.domain.ICommandHandler;
8 | import com.intel.inde.mp.domain.IMicrophoneSource;
9 |
10 | class MicrophoneSourcePullFrameCommandHandler
11 | implements ICommandHandler
12 | {
13 | private IMicrophoneSource source;
14 | private AudioEncoder encoder;
15 |
16 | public MicrophoneSourcePullFrameCommandHandler(IMicrophoneSource source, AudioEncoder encoder)
17 | {
18 | this.source = source;
19 | this.encoder = encoder;
20 | }
21 |
22 | public void handle()
23 | {
24 | Frame encoderFrame = this.encoder.findFreeFrame();
25 | if (encoderFrame == null) {
26 | handleNoFreeInputBuffer();
27 | return;
28 | }
29 |
30 | this.source.getOutputCommandQueue().queue(Command.NextPair, Integer.valueOf(this.encoder.getTrackId()));
31 |
32 | this.source.pull(encoderFrame);
33 | this.encoder.push(encoderFrame);
34 |
35 | if (!encoderFrame.equals(Frame.EOF()))
36 | this.encoder.checkIfOutputQueueHasData();
37 | }
38 |
39 | private void handleNoFreeInputBuffer()
40 | {
41 | this.source.getOutputCommandQueue().queue(Command.HasData, Integer.valueOf(this.encoder.getTrackId()));
42 | this.encoder.skipProcessing();
43 | this.encoder.getInputCommandQueue().queue(Command.NeedData, Integer.valueOf(this.encoder.getTrackId()));
44 | }
45 | }
46 |
47 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
48 | * Qualified Name: com.intel.inde.mp.domain.pipeline.MicrophoneSourcePullFrameCommandHandler
49 | * JD-Core Version: 0.6.1
50 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/OneToManyConnectable.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.IInputRaw;
4 | import com.intel.inde.mp.domain.IOutputRaw;
5 | import com.intel.inde.mp.domain.IsConnectable;
6 | import java.util.Collection;
7 | import java.util.Iterator;
8 | import java.util.LinkedList;
9 |
10 | class OneToManyConnectable
11 | implements IsConnectable
12 | {
13 | Class outType;
14 | ManyTypes inTypes;
15 |
16 | public OneToManyConnectable(Class outType, ManyTypes inTypes)
17 | {
18 | this.outType = outType;
19 | this.inTypes = inTypes;
20 | }
21 |
22 | public static OneToManyConnectable OneToManyConnection(Class outType, ManyTypes inTypes) {
23 | return new OneToManyConnectable(outType, inTypes);
24 | }
25 |
26 | public static OneToManyConnectable OneToManyConnection(Class outType, Class inType) {
27 | return new OneToManyConnectable(outType, new ManyTypes(new Class[] { inType }));
28 | }
29 |
30 | public boolean isConnectable(IOutputRaw output, Collection inputs)
31 | {
32 | if (!this.outType.isInstance(output)) {
33 | return false;
34 | }
35 | for (IInputRaw input : inputs) {
36 | boolean instanceDetected = false;
37 | for (Class mInType : this.inTypes.getTypes()) {
38 | if (mInType.isInstance(input)) {
39 | instanceDetected = true;
40 | break;
41 | }
42 | }
43 | if (!instanceDetected) {
44 | return false;
45 | }
46 | }
47 | return true;
48 | }
49 |
50 | public boolean isConnectable(Collection output, IInputRaw input)
51 | {
52 | if (output.size() != 1) {
53 | return false;
54 | }
55 | LinkedList c = new LinkedList();
56 | c.add(input);
57 | return isConnectable((IOutputRaw)output.iterator().next(), c);
58 | }
59 | }
60 |
61 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
62 | * Qualified Name: com.intel.inde.mp.domain.pipeline.OneToManyConnectable
63 | * JD-Core Version: 0.6.1
64 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/OneToOneConnectable.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.IInputRaw;
4 | import com.intel.inde.mp.domain.IOutputRaw;
5 | import com.intel.inde.mp.domain.IsConnectable;
6 | import java.util.Collection;
7 | import java.util.Iterator;
8 |
9 | class OneToOneConnectable
10 | implements IsConnectable
11 | {
12 | private Class leftClass;
13 | private Class rightClass;
14 |
15 | public static OneToOneConnectable OneToOneConnection(Class leftType, Class rightType)
16 | {
17 | return new OneToOneConnectable(leftType, rightType);
18 | }
19 |
20 | public OneToOneConnectable(Class leftClass, Class rightClass) {
21 | this.leftClass = leftClass;
22 | this.rightClass = rightClass;
23 | }
24 |
25 | public boolean isConnectable(IOutputRaw output, Collection input)
26 | {
27 | if (input.size() != 1) {
28 | return false;
29 | }
30 | return isConnectable(output, (IInputRaw)input.iterator().next());
31 | }
32 |
33 | public boolean isConnectable(Collection output, IInputRaw input)
34 | {
35 | if (output.size() != 1) {
36 | return false;
37 | }
38 | return isConnectable((IOutputRaw)output.iterator().next(), input);
39 | }
40 |
41 | private boolean isConnectable(IOutputRaw output, IInputRaw input) {
42 | if ((this.leftClass.isInstance(output)) && (this.rightClass.isInstance(input))) {
43 | return additionalCheck(output, input);
44 | }
45 | return false;
46 | }
47 |
48 | protected boolean additionalCheck(IOutputRaw output, IInputRaw input) {
49 | return true;
50 | }
51 | }
52 |
53 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
54 | * Qualified Name: com.intel.inde.mp.domain.pipeline.OneToOneConnectable
55 | * JD-Core Version: 0.6.1
56 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/OutputFormatChangedHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Command;
4 | import com.intel.inde.mp.domain.CommandQueue;
5 | import com.intel.inde.mp.domain.Frame;
6 | import com.intel.inde.mp.domain.ICommandHandler;
7 | import com.intel.inde.mp.domain.IFrameAllocator;
8 | import com.intel.inde.mp.domain.IOutput;
9 | import com.intel.inde.mp.domain.MultipleMediaSource;
10 | import com.intel.inde.mp.domain.Plugin;
11 |
12 | class OutputFormatChangedHandler
13 | implements ICommandHandler
14 | {
15 | protected IOutput output;
16 | protected Plugin plugin;
17 | private IFrameAllocator inputWithAllocator;
18 |
19 | public OutputFormatChangedHandler(IOutput output, Plugin plugin, IFrameAllocator frameAllocator)
20 | {
21 | this.output = output;
22 | this.plugin = plugin;
23 | this.inputWithAllocator = frameAllocator;
24 | }
25 |
26 | public void handle()
27 | {
28 | if ((this.output instanceof MultipleMediaSource)) {
29 | Frame frame = this.inputWithAllocator.findFreeFrame();
30 |
31 | if (frame == null) {
32 | restoreCommands();
33 | return;
34 | }
35 |
36 | this.plugin.drain(frame.getBufferIndex());
37 | this.plugin.stop();
38 | this.plugin.setMediaFormat(this.output.getMediaFormatByType(this.plugin.getMediaFormatType()));
39 | this.plugin.configure();
40 | this.plugin.start();
41 | this.plugin.setTrackId(this.plugin.getTrackId());
42 |
43 | MultipleMediaSource multipleMediaSource = (MultipleMediaSource)this.output;
44 | int trackId = multipleMediaSource.getTrackIdByMediaType(this.plugin.getMediaFormatType());
45 | multipleMediaSource.selectTrack(trackId);
46 | multipleMediaSource.setTrackMap(trackId, this.plugin.getTrackId());
47 | multipleMediaSource.nextFile();
48 | }
49 | }
50 |
51 | private void restoreCommands() {
52 | this.output.getOutputCommandQueue().queue(Command.OutputFormatChanged, Integer.valueOf(this.plugin.getTrackId()));
53 | this.plugin.getInputCommandQueue().clear();
54 | this.plugin.skipProcessing();
55 | this.plugin.getInputCommandQueue().queue(Command.NeedData, Integer.valueOf(this.plugin.getTrackId()));
56 | }
57 | }
58 |
59 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
60 | * Qualified Name: com.intel.inde.mp.domain.pipeline.OutputFormatChangedHandler
61 | * JD-Core Version: 0.6.1
62 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/PullDataCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.ICommandHandler;
5 | import com.intel.inde.mp.domain.IPluginOutput;
6 | import com.intel.inde.mp.domain.Render;
7 |
8 | class PullDataCommandHandler
9 | implements ICommandHandler
10 | {
11 | protected Render input;
12 | protected IPluginOutput output;
13 |
14 | public PullDataCommandHandler(IPluginOutput output, Render input)
15 | {
16 | this.input = input;
17 | this.output = output;
18 | }
19 |
20 | public void handle()
21 | {
22 | Frame frame = this.output.getFrame();
23 |
24 | if (Frame.EOF().equals(frame)) {
25 | this.input.drain(frame.getBufferIndex());
26 | } else {
27 | this.input.push(frame);
28 | this.output.releaseOutputBuffer(frame.getBufferIndex());
29 | }
30 | }
31 | }
32 |
33 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
34 | * Qualified Name: com.intel.inde.mp.domain.pipeline.PullDataCommandHandler
35 | * JD-Core Version: 0.6.1
36 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/PushDataCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Command;
4 | import com.intel.inde.mp.domain.CommandQueue;
5 | import com.intel.inde.mp.domain.Frame;
6 | import com.intel.inde.mp.domain.ICommandHandler;
7 | import com.intel.inde.mp.domain.IFrameAllocator;
8 | import com.intel.inde.mp.domain.IOutput;
9 | import com.intel.inde.mp.domain.Plugin;
10 |
11 | class PushDataCommandHandler
12 | implements ICommandHandler
13 | {
14 | protected IOutput output;
15 | protected Plugin plugin;
16 | private IFrameAllocator inputWithAllocator;
17 |
18 | public PushDataCommandHandler(IOutput output, Plugin plugin, IFrameAllocator frameAllocator)
19 | {
20 | this.output = output;
21 | this.plugin = plugin;
22 | this.inputWithAllocator = frameAllocator;
23 | }
24 |
25 | public void handle()
26 | {
27 | Frame frame = this.inputWithAllocator.findFreeFrame();
28 |
29 | if (frame == null)
30 | {
31 | restoreCommands();
32 | return;
33 | }
34 |
35 | this.output.pull(frame);
36 | this.plugin.push(frame);
37 | this.plugin.checkIfOutputQueueHasData();
38 | }
39 |
40 | private void restoreCommands() {
41 | this.output.getOutputCommandQueue().queue(Command.HasData, Integer.valueOf(this.plugin.getTrackId()));
42 | this.plugin.skipProcessing();
43 | this.plugin.getInputCommandQueue().queue(Command.NeedData, Integer.valueOf(this.plugin.getTrackId()));
44 | }
45 | }
46 |
47 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
48 | * Qualified Name: com.intel.inde.mp.domain.pipeline.PushDataCommandHandler
49 | * JD-Core Version: 0.6.1
50 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/PushNewDataCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.ICommandHandler;
5 | import com.intel.inde.mp.domain.IOutput;
6 | import com.intel.inde.mp.domain.Render;
7 | import java.nio.ByteBuffer;
8 |
9 | class PushNewDataCommandHandler
10 | implements ICommandHandler
11 | {
12 | private IOutput output;
13 | private Render render;
14 |
15 | public PushNewDataCommandHandler(IOutput output, Render render)
16 | {
17 | this.output = output;
18 | this.render = render;
19 | }
20 |
21 | public void handle()
22 | {
23 | Frame frame = new Frame(ByteBuffer.allocate(1048576), 1048576, 0L, 0, 0, 0);
24 | this.output.pull(frame);
25 | this.render.push(frame);
26 | }
27 | }
28 |
29 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
30 | * Qualified Name: com.intel.inde.mp.domain.pipeline.PushNewDataCommandHandler
31 | * JD-Core Version: 0.6.1
32 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/PushSurfaceCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.ICommandHandler;
5 | import com.intel.inde.mp.domain.IPluginOutput;
6 | import com.intel.inde.mp.domain.MediaCodecPlugin;
7 |
8 | class PushSurfaceCommandHandler
9 | implements ICommandHandler
10 | {
11 | protected final IPluginOutput output;
12 | protected final MediaCodecPlugin input;
13 |
14 | public PushSurfaceCommandHandler(IPluginOutput output, MediaCodecPlugin input)
15 | {
16 | this.output = output;
17 | this.input = input;
18 | }
19 |
20 | public void handle()
21 | {
22 | Frame frame = this.output.getFrame();
23 |
24 | if (!frame.equals(Frame.EOF())) {
25 | this.output.releaseOutputBuffer(frame.getBufferIndex());
26 | }
27 | if ((!frame.equals(Frame.EOF())) && (0 != frame.getLength())) {
28 | this.output.waitForSurface(frame.getSampleTime());
29 | }
30 |
31 | if ((!frame.equals(Frame.EOF())) && (0 != frame.getLength())) {
32 | this.input.notifySurfaceReady(this.output.getSurface());
33 | }
34 | this.input.push(frame);
35 | this.input.checkIfOutputQueueHasData();
36 | }
37 | }
38 |
39 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
40 | * Qualified Name: com.intel.inde.mp.domain.pipeline.PushSurfaceCommandHandler
41 | * JD-Core Version: 0.6.1
42 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/PushSurfaceCommandHandlerForEffector.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.ICommandHandler;
5 | import com.intel.inde.mp.domain.IPluginOutput;
6 | import com.intel.inde.mp.domain.Plugin;
7 |
8 | class PushSurfaceCommandHandlerForEffector
9 | implements ICommandHandler
10 | {
11 | protected final IPluginOutput output;
12 | protected final Plugin input;
13 |
14 | public PushSurfaceCommandHandlerForEffector(IPluginOutput output, Plugin input)
15 | {
16 | this.output = output;
17 | this.input = input;
18 | }
19 |
20 | public void handle()
21 | {
22 | Frame frame = this.output.getFrame();
23 | if (!frame.equals(Frame.EOF())) {
24 | this.output.releaseOutputBuffer(frame.getBufferIndex());
25 | }
26 |
27 | this.input.push(frame);
28 | this.input.checkIfOutputQueueHasData();
29 | }
30 | }
31 |
32 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
33 | * Qualified Name: com.intel.inde.mp.domain.pipeline.PushSurfaceCommandHandlerForEffector
34 | * JD-Core Version: 0.6.1
35 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/PushSurfaceCommandHandlerForSurfaceRender.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.ICommandHandler;
5 | import com.intel.inde.mp.domain.IPluginOutput;
6 | import com.intel.inde.mp.domain.SurfaceRender;
7 |
8 | public class PushSurfaceCommandHandlerForSurfaceRender
9 | implements ICommandHandler
10 | {
11 | private IPluginOutput decoder;
12 | private SurfaceRender render;
13 |
14 | public PushSurfaceCommandHandlerForSurfaceRender(IPluginOutput decoder, SurfaceRender render)
15 | {
16 | this.decoder = decoder;
17 | this.render = render;
18 | }
19 |
20 | public void handle() {
21 | Frame frame = this.decoder.getFrame();
22 | if (!frame.equals(Frame.EOF())) {
23 | this.decoder.releaseOutputBuffer(frame.getBufferIndex());
24 | }
25 |
26 | this.render.push(frame);
27 | }
28 | }
29 |
30 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
31 | * Qualified Name: com.intel.inde.mp.domain.pipeline.PushSurfaceCommandHandlerForSurfaceRender
32 | * JD-Core Version: 0.6.1
33 | */
--------------------------------------------------------------------------------
/android-demo/src/com/intel/inde/mp/domain/pipeline/SkipOutputFormatChangeCommandHandler.java:
--------------------------------------------------------------------------------
1 | package com.intel.inde.mp.domain.pipeline;
2 |
3 | import com.intel.inde.mp.domain.Frame;
4 | import com.intel.inde.mp.domain.ICommandHandler;
5 | import com.intel.inde.mp.domain.IInput;
6 |
7 | class SkipOutputFormatChangeCommandHandler
8 | implements ICommandHandler
9 | {
10 | private IInput encoder;
11 |
12 | public SkipOutputFormatChangeCommandHandler(IInput encoder)
13 | {
14 | this.encoder = encoder;
15 | }
16 |
17 | public void handle()
18 | {
19 | this.encoder.push(Frame.empty());
20 | }
21 | }
22 |
23 | /* Location: E:\SouceCode\recordGame\gdxDemo\libs\domain-1.2.2415.jar
24 | * Qualified Name: com.intel.inde.mp.domain.pipeline.SkipOutputFormatChangeCommandHandler
25 | * JD-Core Version: 0.6.1
26 | */
--------------------------------------------------------------------------------