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

12

/frameworks/av/cmds/stagefright/
H A Drecord.cpp222 sp<MediaSource> encoder =
227 writer->addSource(encoder);
236 CHECK_EQ((status_t)OK, encoder->start());
239 while (encoder->read(&buffer) == OK) {
254 err = encoder->stop();
323 sp<IMediaSource> encoder = local
326 encoder->start();
331 while ((err = encoder->read(&buffer)) == OK) {
344 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.cpp205 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) argument
207 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.java402 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
403 super.encodeProperties(encoder);
405 encoder.addProperty("measurement:measureAllChildren", mMeasureAllChildren);
406 encoder.addProperty("padding:foregroundPaddingLeft", mForegroundPaddingLeft);
407 encoder.addProperty("padding:foregroundPaddingTop", mForegroundPaddingTop);
408 encoder.addProperty("padding:foregroundPaddingRight", mForegroundPaddingRight);
409 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.java840 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
841 super.encodeProperties(encoder);
843 encoder.addProperty("layout:overFlowButton", isOverflowButton);
844 encoder.addProperty("layout:cellsUsed", cellsUsed);
845 encoder.addProperty("layout:extraPixels", extraPixels);
846 encoder.addProperty("layout:expandable", expandable);
847 encoder.addProperty("layout:preventEdgeOffset", preventEdgeOffset);
H A DAdapterView.java1278 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1279 super.encodeProperties(encoder);
1281 encoder.addProperty("scrolling:firstPosition", mFirstPosition);
1282 encoder.addProperty("list:nextSelectedPosition", mNextSelectedPosition);
1283 encoder.addProperty("list:nextSelectedRowId", mNextSelectedRowId);
1284 encoder.addProperty("list:selectedPosition", mSelectedPosition);
1285 encoder.addProperty("list:itemCount", mItemCount);
H A DGridView.java2420 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
2421 super.encodeProperties(encoder);
2422 encoder.addProperty("numColumns", getNumColumns());
H A DHorizontalScrollView.java1729 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1730 super.encodeProperties(encoder);
1731 encoder.addProperty("layout:fillViewPort", mFillViewport);
H A DLinearLayout.java1921 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1922 super.encodeProperties(encoder);
1923 encoder.addProperty("layout:baselineAligned", mBaselineAligned);
1924 encoder.addProperty("layout:baselineAlignedChildIndex", mBaselineAlignedChildIndex);
1925 encoder.addProperty("measurement:baselineChildTop", mBaselineChildTop);
1926 encoder.addProperty("measurement:orientation", mOrientation);
1927 encoder.addProperty("measurement:gravity", mGravity);
1928 encoder.addProperty("measurement:totalLength", mTotalLength);
1929 encoder.addProperty("layout:totalLength", mTotalLength);
1930 encoder
2044 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/SystemUI/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/vndk/xmlparser/1.0/
H A DMediaCodecsXmlParser.cpp280 addMediaCodecFromAttributes(false /* encoder */, attrs);
291 addMediaCodecFromAttributes(true /* encoder */, attrs);
464 bool encoder, const char **attrs) {
532 info->mIsEncoder = encoder;
567 status_t MediaCodecsXmlParser::addTypeFromAttributes(const char **attrs, bool encoder) { argument
600 info->mIsEncoder = encoder;
463 addMediaCodecFromAttributes( bool encoder, const char **attrs) argument
/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.cpp147 * Configures and starts the MediaCodec encoder. Obtains an input surface
188 ALOGV("Creating encoder input surface");
193 "ERROR: unable to create encoder input surface (err=%d)\n", err);
310 * Runs the MediaCodec encoder, sending the output to the MediaMuxer. The
318 static status_t runEncoder(const sp<MediaCodec>& encoder, argument
332 err = encoder->getOutputBuffers(&buffers);
352 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec,
427 err = encoder->releaseOutputBuffer(bufIndex);
447 encoder->getOutputFormat(&newFormat);
460 // Not expected for an encoder; handl
568 sp<MediaCodec> encoder; local
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp158 static AMediaCodec * createAMediaCodec(const char *name, bool name_is_type, bool encoder) { argument
172 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder);
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp495 addMediaCodecFromAttributes(false /* encoder */, attrs);
506 addMediaCodecFromAttributes(true /* encoder */, attrs);
674 void MediaCodecList::setCurrentCodecInfo(bool encoder, const char *name, const char *type) { argument
681 mCurrentInfo = new MediaCodecInfo(name, encoder, type);
689 mCurrentInfo = new MediaCodecInfo(name, encoder, type);
700 bool encoder, const char **attrs) {
759 mCurrentInfo = new MediaCodecInfo(name, encoder, type);
791 mCurrentInfo->mIsEncoder ? "encoder" : "decoder");
879 const char *type, bool encoder, size_t startIndex) const {
889 if (info.isEncoder() != encoder) {
699 addMediaCodecFromAttributes( bool encoder, const char **attrs) argument
878 findCodecByType( const char *type, bool encoder, size_t startIndex) const argument
1169 findMatchingCodecs( const char *mime, bool encoder, uint32_t flags, Vector<AString> *matches) argument
[all...]
H A DMediaCodec.cpp73 static const char *kCodecEncoder = "android.media.mediacodec.encoder"; /* 0,1 */
407 const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, pid_t pid,
411 const status_t ret = codec->init(mime, true /* nameIsType */, encoder);
423 const status_t ret = codec->init(name, false /* nameIsType */, false /* encoder */);
559 status_t MediaCodec::init(const AString &name, bool nameIsType, bool encoder) { argument
565 mInitIsEncoder = encoder;
633 msg->setInt32("encoder", encoder);
645 mAnalyticsItem->setInt32(kCodecEncoder, encoder);
1908 int32_t encoder local
406 CreateByType( const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, pid_t pid, uid_t uid) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActionBar.java1419 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1420 super.encodeProperties(encoder);
1422 encoder.addProperty("gravity", gravity);
/frameworks/base/core/java/android/content/res/
H A DResources.java1655 public void encode(@NonNull ViewHierarchyEncoder encoder) { argument
1656 encoder.beginObject(this);
1659 encoder.addProperty(properties[i], properties[i+1]);
1661 encoder.endObject();
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp83 static const char *kRecorderVideoProfile = "android.media.mediarecorder.video-encoder-profile";
84 static const char *kRecorderVideoLevel = "android.media.mediarecorder.video-encoder-level";
89 // To collect the encoder usage for the battery app
270 ALOGE("Invalid audio encoder: %d", ae);
287 ALOGE("Invalid video encoder: %d", ve);
513 // range that a specific encoder supports. The mismatch between the
528 // range that a specific encoder supports. The mismatch between the
643 // Additional check will be done later when we load the encoder.
652 // Additional check will be done later when we load the encoder.
818 } else if (key == "video-param-encoder
1274 sp<MediaCodecSource> encoder; local
1748 sp<MediaCodecSource> encoder = MediaCodecSource::Create( local
1821 sp<MediaCodecSource> encoder; local
[all...]

Completed in 526 milliseconds

12