Searched refs:encoderFormat (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/ |
D | MediaCodecSurfaceEncoder.java | 101 MediaFormat encoderFormat = setUpEncoderFormat(decoderFormat); in startEncodingSurface() local 117 configureCodec(decoderFormat, encoderFormat); in startEncodingSurface() 166 MediaFormat encoderFormat = new MediaFormat(); in setUpEncoderFormat() local 167 encoderFormat.setString(MediaFormat.KEY_MIME, mMime); in setUpEncoderFormat() 168 encoderFormat in setUpEncoderFormat() 170 encoderFormat.setInteger(MediaFormat.KEY_HEIGHT, in setUpEncoderFormat() 172 encoderFormat.setInteger(MediaFormat.KEY_FRAME_RATE, VIDEO_FRAMERATE); in setUpEncoderFormat() 173 encoderFormat.setInteger(MediaFormat.KEY_BIT_RATE, VIDEO_BITRATE); in setUpEncoderFormat() 174 encoderFormat.setFloat(MediaFormat.KEY_I_FRAME_INTERVAL, 1.0f); in setUpEncoderFormat() 175 encoderFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, in setUpEncoderFormat() [all …]
|
/frameworks/av/media/libmediatranscoding/transcoder/ |
D | VideoTrackTranscoder.cpp | 191 static int32_t getDefaultOperatingRate(AMediaFormat* encoderFormat) { in getDefaultOperatingRate() argument 193 if (AMediaFormat_getInt32(encoderFormat, AMEDIAFORMAT_KEY_WIDTH, &width) && (width > 0) && in getDefaultOperatingRate() 194 AMediaFormat_getInt32(encoderFormat, AMEDIAFORMAT_KEY_HEIGHT, &height) && (height > 0)) { in getDefaultOperatingRate() 219 AMediaFormat* encoderFormat = AMediaFormat_new(); in configureDestinationFormat() local 220 if (!encoderFormat || AMediaFormat_copy(encoderFormat, destinationFormat.get()) != AMEDIA_OK) { in configureDestinationFormat() 225 if (!AMediaFormat_getInt32(encoderFormat, AMEDIAFORMAT_KEY_BIT_RATE, &mConfiguredBitrate)) { in configureDestinationFormat() 233 AMediaFormat_setInt32(encoderFormat, AMEDIAFORMAT_KEY_BIT_RATE, mConfiguredBitrate); in configureDestinationFormat() 236 SetDefaultFormatValueFloat(AMEDIAFORMAT_KEY_I_FRAME_INTERVAL, encoderFormat, in configureDestinationFormat() 239 int32_t operatingRate = getDefaultOperatingRate(encoderFormat); in configureDestinationFormat() 244 if (!AMediaFormat_getFloat(encoderFormat, AMEDIAFORMAT_KEY_OPERATING_RATE, &tmpf) && in configureDestinationFormat() [all …]
|