Home
last modified time | relevance | path

Searched refs:mediaFormat (Results 1 – 1 of 1) sorted by relevance

/development/samples/VirtualDeviceManager/common/src/com/example/android/vdmdemo/common/
DVideoManager.java179 MediaFormat mediaFormat = MediaFormat.createVideoFormat(MIME_TYPE, width, height); in createInputSurface() local
180 mediaFormat.setInteger( in createInputSurface()
182 mediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, 500000); in createInputSurface()
183 mediaFormat.setInteger(MediaFormat.KEY_MAX_B_FRAMES, 0); in createInputSurface()
184 mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, frameRate); in createInputSurface()
185 mediaFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1); in createInputSurface()
188 mediaFormat, /* surface= */ null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createInputSurface()
202 MediaFormat mediaFormat = MediaFormat.createVideoFormat(MIME_TYPE, width, height); in startDecoding() local
203 mediaFormat.setInteger(MediaFormat.KEY_LOW_LATENCY, 1); in startDecoding()
204 mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, 100); in startDecoding()
[all …]