Searched refs:encoder (Results 1 - 25 of 49) sorted by relevance

12

/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/base/core/tests/coretests/src/android/util/
H A DBase64Test.java245 Base64.Encoder encoder = new Base64.Encoder(Base64.NO_PADDING | Base64.NO_WRAP,
248 encoder.process(input, 0, 3, false);
249 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op);
250 assertEquals(0, encoder.tailLen);
252 encoder.process(input, 0, 3, false);
253 assertEquals("YWJj".getBytes(), 4, encoder.output, encoder.op);
254 assertEquals(0, encoder.tailLen);
256 encoder
[all...]
/frameworks/av/include/media/stagefright/
H A DMediaCodecList.h43 const char *type, bool encoder, size_t startIndex = 0) const;
120 status_t addMediaCodecFromAttributes(bool encoder, const char **attrs);
121 void addMediaCodec(bool encoder, const char *name, const char *type = NULL);
123 void setCurrentCodecInfo(bool encoder, const char *name, const char *type);
H A DACodec.h337 bool encoder,
343 status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
345 status_t setupEAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate);
350 status_t setupAMRCodec(bool encoder, bool isWAMR, int32_t bitRate);
351 status_t setupG711Codec(bool encoder, int32_t sampleRate, int32_t numChannels);
354 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel);
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DMainActivityTest.java34 Object encoder = createEncoder(baos);
35 invokeMethod(View.class, view, "encode", encoder);
36 invokeMethod(encoder.getClass(), encoder, "endStream");
/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/cmds/stagefright/
H A Drecord.cpp226 sp<MediaSource> encoder =
232 writer->addSource(encoder);
241 CHECK_EQ((status_t)OK, encoder->start());
244 while (encoder->read(&buffer) == OK) {
259 err = encoder->stop();
328 sp<MediaSource> encoder = local
331 encoder->start();
336 while ((err = encoder->read(&buffer)) == OK) {
349 encoder->stop();
H A Daudioloop.cpp112 sp<MediaSource> encoder = OMXCodec::Create( local
125 writer->addSource(encoder);
134 encoder);
H A Drecordvideo.cpp48 fprintf(stderr, " -l encoder level. see omx il header (default: encoder specific)\n");
49 fprintf(stderr, " -p encoder profile. see omx il header (default: encoder specific)\n");
104 // We don't care about the contents. we just test video encoder
302 sp<MediaSource> encoder = local
314 writer->addSource(encoder);
/frameworks/av/include/media/
H A DIMediaCodecList.h41 const char *type, bool encoder, size_t startIndex = 0) const = 0;
H A DMediaCodecInfo.h106 MediaCodecInfo(AString name, bool encoder, const char *mime);
/frameworks/av/media/libstagefright/codecs/avcenc/
H A DAndroid.mk12 LOCAL_C_INCLUDES := $(TOP)/external/libavc/encoder
/frameworks/base/core/java/android/util/
H A DBase64.java29 * Default values for encoder/decoder flags.
510 Encoder encoder = new Encoder(flags, null);
516 if (encoder.do_padding) {
529 if (encoder.do_newline && len > 0) {
531 (encoder.do_cr ? 2 : 1);
534 encoder.output = new byte[output_len];
535 encoder.process(input, offset, len, true);
537 assert encoder.op == output_len;
539 return encoder.output;
604 // Using local variables makes the encoder abou
[all...]
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.h77 // FLAC encoder callbacks
80 const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[],
88 // before passing the input data to the encoder
/frameworks/base/core/java/android/widget/
H A DFrameLayout.java414 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
415 super.encodeProperties(encoder);
417 encoder.addProperty("measurement:measureAllChildren", mMeasureAllChildren);
418 encoder.addProperty("padding:foregroundPaddingLeft", mForegroundPaddingLeft);
419 encoder.addProperty("padding:foregroundPaddingTop", mForegroundPaddingTop);
420 encoder.addProperty("padding:foregroundPaddingRight", mForegroundPaddingRight);
421 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);
/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/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
/frameworks/base/media/java/android/media/
H A DMediaCodecList.java207 return findCodecForFormat(false /* encoder */, format);
211 * Find an encoder supporting a given {@link MediaFormat} in the list
221 * @param format An encoder media format with optional feature directives.
224 * @return the name of an encoder that supports the given format and feature
228 return findCodecForFormat(true /* encoder */, format);
231 private String findCodecForFormat(boolean encoder, MediaFormat format) { argument
234 if (info.isEncoder() != encoder) {
/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/base/core/java/android/app/
H A DActionBar.java1385 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
1386 super.encodeProperties(encoder);
1388 encoder.addProperty("gravity", gravity);
/frameworks/base/core/java/android/view/
H A DWindowManager.java2109 protected void encodeProperties(@NonNull ViewHierarchyEncoder encoder) { argument
2110 super.encodeProperties(encoder);
2112 encoder.addProperty("x", x);
2113 encoder.addProperty("y", y);
2114 encoder.addProperty("horizontalWeight", horizontalWeight);
2115 encoder.addProperty("verticalWeight", verticalWeight);
2116 encoder.addProperty("type", type);
2117 encoder.addProperty("flags", flags);

Completed in 2749 milliseconds

12