Searched defs:encoder (Results 1 - 25 of 37) sorted by relevance

12

/frameworks/av/cmds/stagefright/
H A Drecord.cpp224 sp<MediaSource> encoder =
229 writer->addSource(encoder);
238 CHECK_EQ((status_t)OK, encoder->start());
241 while (encoder->read(&buffer) == OK) {
256 err = encoder->stop();
325 sp<IMediaSource> encoder = local
328 encoder->start();
333 while ((err = encoder->read(&buffer)) == OK) {
346 encoder->stop();
H A Daudioloop.cpp115 sp<IMediaSource> encoder = MediaCodecSource::Create(looper, meta, source); local
125 writer->addSource(encoder);
131 sp<IMediaSource> decoder = SimpleDecodingSource::Create(encoder);
H A Drecordvideo.cpp51 fprintf(stderr, " -l encoder level. see omx il header (default: encoder specific)\n");
52 fprintf(stderr, " -p encoder profile. see omx il header (default: encoder specific)\n");
107 // We don't care about the contents. we just test video encoder
306 sp<IMediaSource> encoder = local
318 writer->addSource(encoder);
/frameworks/av/media/libmedia/
H A DIMediaCodecList.cpp82 const char *type, bool encoder, size_t startIndex = 0) const
91 data.writeInt32(encoder);
81 findCodecByType( const char *type, bool encoder, size_t startIndex = 0) const argument
H A DMediaCodecInfo.cpp201 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) argument
203 mIsEncoder(encoder),
/frameworks/base/core/java/android/util/jar/
H A DStrictJarManifest.java256 CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder();
266 writeEntry(out, versionName, version, encoder, buffer);
271 writeEntry(out, name, manifest.mainAttributes.getValue(name), encoder, buffer);
279 writeEntry(out, Attributes.Name.NAME, key, encoder, buffer);
284 writeEntry(out, name, attributes.getValue(name), encoder, buffer);
291 String value, CharsetEncoder encoder, ByteBuffer bBuf) throws IOException {
296 encoder.reset();
302 CoderResult r = encoder.encode(cBuf, bBuf, true);
304 r = encoder.flush(bBuf);
290 writeEntry(OutputStream os, Attributes.Name name, String value, CharsetEncoder encoder, ByteBuffer bBuf) argument
/frameworks/base/media/java/android/media/
H A DMediaCodecList.java214 return findCodecForFormat(false /* encoder */, format);
218 * Find an encoder supporting a given {@link MediaFormat} in the list
231 * @param format An encoder media format with optional feature directives.
234 * @return the name of an encoder that supports the given format and feature
238 return findCodecForFormat(true /* encoder */, format);
241 private String findCodecForFormat(boolean encoder, MediaFormat format) { argument
244 if (info.isEncoder() != encoder) {
/frameworks/base/core/java/android/widget/
H A DFrameLayout.java401 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
402 super.encodeProperties(encoder);
404 encoder.addProperty("measurement:measureAllChildren", mMeasureAllChildren);
405 encoder.addProperty("padding:foregroundPaddingLeft", mForegroundPaddingLeft);
406 encoder.addProperty("padding:foregroundPaddingTop", mForegroundPaddingTop);
407 encoder.addProperty("padding:foregroundPaddingRight", mForegroundPaddingRight);
408 encoder.addProperty("padding:foregroundPaddingBottom", mForegroundPaddingBottom);
H A DTableRow.java516 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
517 super.encodeProperties(encoder);
518 encoder.addProperty("layout:column", column);
519 encoder.addProperty("layout:span", span);
H A DActionMenuView.java839 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
840 super.encodeProperties(encoder);
842 encoder.addProperty("layout:overFlowButton", isOverflowButton);
843 encoder.addProperty("layout:cellsUsed", cellsUsed);
844 encoder.addProperty("layout:extraPixels", extraPixels);
845 encoder.addProperty("layout:expandable", expandable);
846 encoder.addProperty("layout:preventEdgeOffset", preventEdgeOffset);
H A DAdapterView.java1265 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1266 super.encodeProperties(encoder);
1268 encoder.addProperty("scrolling:firstPosition", mFirstPosition);
1269 encoder.addProperty("list:nextSelectedPosition", mNextSelectedPosition);
1270 encoder.addProperty("list:nextSelectedRowId", mNextSelectedRowId);
1271 encoder.addProperty("list:selectedPosition", mSelectedPosition);
1272 encoder.addProperty("list:itemCount", mItemCount);
H A DGridView.java2416 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
2417 super.encodeProperties(encoder);
2418 encoder.addProperty("numColumns", getNumColumns());
H A DHorizontalScrollView.java1714 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1715 super.encodeProperties(encoder);
1716 encoder.addProperty("layout:fillViewPort", mFillViewport);
H A DLinearLayout.java1870 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1871 super.encodeProperties(encoder);
1872 encoder.addProperty("layout:baselineAligned", mBaselineAligned);
1873 encoder.addProperty("layout:baselineAlignedChildIndex", mBaselineAlignedChildIndex);
1874 encoder.addProperty("measurement:baselineChildTop", mBaselineChildTop);
1875 encoder.addProperty("measurement:orientation", mOrientation);
1876 encoder.addProperty("measurement:gravity", mGravity);
1877 encoder.addProperty("measurement:totalLength", mTotalLength);
1878 encoder.addProperty("layout:totalLength", mTotalLength);
1879 encoder
1993 encodeProperties(@onNull ViewHierarchyEncoder encoder) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.cpp230 YuvToJpegEncoder* encoder = YuvToJpegEncoder::create(format, imgStrides); local
232 if (encoder != NULL) {
233 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality);
234 delete encoder;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java294 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
295 super.encodeProperties(encoder);
297 encoder.addProperty("layout:maxWidth", maxWidth);
298 encoder.addProperty("layout:maxHeight", maxHeight);
/frameworks/av/media/libstagefright/codecs/avc/enc/
H A DSoftAVCEncoder.cpp135 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
136 CHECK(encoder != NULL);
137 return encoder->allocOutputBuffers(sizeInMbs, numBuffers);
142 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
143 CHECK(encoder != NULL);
144 return encoder->bindOutputBuffer(index, yuv);
148 SoftAVCEncoder *encoder = static_cast<SoftAVCEncoder *>(userData); local
149 CHECK(encoder != NULL);
150 return encoder->unbindOutputBuffer(index);
256 // PV's AVC encoder require
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaProfiles.cpp86 video_encoder encoder = encoders[index]; local
87 int minBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.min", encoder);
88 int maxBitRate = sProfiles->getVideoEncoderParamByName("enc.vid.bps.max", encoder);
89 int minFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.min", encoder);
90 int maxFrameRate = sProfiles->getVideoEncoderParamByName("enc.vid.fps.max", encoder);
91 int minFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.min", encoder);
92 int maxFrameWidth = sProfiles->getVideoEncoderParamByName("enc.vid.width.max", encoder);
93 int minFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.min", encoder);
94 int maxFrameHeight = sProfiles->getVideoEncoderParamByName("enc.vid.height.max", encoder);
102 jniThrowException(env, "java/lang/RuntimeException", "Error retrieving video encoder capabilit
138 audio_encoder encoder = encoders[index]; local
[all...]
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp145 * Configures and starts the MediaCodec encoder. Obtains an input surface
186 ALOGV("Creating encoder input surface");
191 "ERROR: unable to create encoder input surface (err=%d)\n", err);
309 * Runs the MediaCodec encoder, sending the output to the MediaMuxer. The
317 static status_t runEncoder(const sp<MediaCodec>& encoder, argument
331 err = encoder->getOutputBuffers(&buffers);
354 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec,
426 err = encoder->releaseOutputBuffer(bufIndex);
446 encoder->getOutputFormat(&newFormat);
459 // Not expected for an encoder; handl
567 sp<MediaCodec> encoder; local
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp144 static AMediaCodec * createAMediaCodec(const char *name, bool name_is_type, bool encoder) { argument
158 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder);
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp47 const char *kMaxEncoderInputBuffers = "max-video-encoder-input-buffers";
470 addMediaCodecFromAttributes(false /* encoder */, attrs);
481 addMediaCodecFromAttributes(true /* encoder */, attrs);
649 void MediaCodecList::setCurrentCodecInfo(bool encoder, const char *name, const char *type) { argument
656 mCurrentInfo = new MediaCodecInfo(name, encoder, type);
664 mCurrentInfo = new MediaCodecInfo(name, encoder, type);
675 bool encoder, const char **attrs) {
734 mCurrentInfo = new MediaCodecInfo(name, encoder, type);
766 mCurrentInfo->mIsEncoder ? "encoder" : "decoder");
854 const char *type, bool encoder, size_
674 addMediaCodecFromAttributes( bool encoder, const char **attrs) argument
853 findCodecByType( const char *type, bool encoder, size_t startIndex) const argument
1144 findMatchingCodecs( const char *mime, bool encoder, uint32_t flags, Vector<AString> *matches) argument
[all...]
H A DMediaCodec.cpp173 const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, pid_t pid) {
176 const status_t ret = codec->init(mime, true /* nameIsType */, encoder);
188 const status_t ret = codec->init(name, false /* nameIsType */, false /* encoder */);
227 ALOGE("Failed to get encoder input buffer count!");
329 status_t MediaCodec::init(const AString &name, bool nameIsType, bool encoder) { argument
335 mInitIsEncoder = encoder;
397 msg->setInt32("encoder", encoder);
1654 int32_t encoder = false; local
1657 CHECK(msg->findInt32("encoder",
172 CreateByType( const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, pid_t pid) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActionBar.java1447 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1448 super.encodeProperties(encoder);
1450 encoder.addProperty("gravity", gravity);
/frameworks/base/core/java/android/content/res/
H A DResources.java1622 public void encode(@NonNull ViewHierarchyEncoder encoder) { argument
1623 encoder.beginObject(this);
1626 encoder.addProperty(properties[i], properties[i+1]);
1628 encoder.endObject();
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp60 // To collect the encoder usage for the battery app
165 ALOGE("Invalid audio encoder: %d", ae);
182 ALOGE("Invalid video encoder: %d", ve);
385 // range that a specific encoder supports. The mismatch between the
400 // range that a specific encoder supports. The mismatch between the
515 // Additional check will be done later when we load the encoder.
524 // Additional check will be done later when we load the encoder.
695 } else if (key == "video-param-encoder-profile") {
700 } else if (key == "video-param-encoder-level") {
971 ALOGE("Unknown audio encoder
1141 sp<MediaCodecSource> encoder; local
1582 sp<MediaCodecSource> encoder = MediaCodecSource::Create( local
1655 sp<MediaCodecSource> encoder; local
[all...]

Completed in 442 milliseconds

12