Searched defs:codec (Results 1 - 25 of 41) sorted by relevance

12

/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioCodec.cpp44 AudioCodec *codec = type->create(); local
45 codec->name = type->name;
46 return codec;
/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DDataStreamFileCodec.java42 public DataStreamFileCodec(File file, DataStreamCodec<T> codec) { argument
44 mCodec = codec;
/frameworks/opt/net/voip/src/java/android/net/rtp/
H A DAudioStream.java115 * @param codec The AudioCodec to be used.
119 public void setCodec(AudioCodec codec) { argument
123 if (codec.type == mDtmfType) {
126 mCodec = codec;
149 * @throws IllegalArgumentException if the type is invalid or used by codec.
162 throw new IllegalArgumentException("The type is used by codec");
/frameworks/av/media/libstagefright/omx/
H A DSoftOMXPlugin.cpp99 // -- the codec process (where this happens) will have a slightly larger
132 sp<SoftOMXComponent> codec = local
135 if (codec == NULL) {
142 OMX_ERRORTYPE err = codec->initCheck();
150 codec->incStrong(this);
151 codec->setLibHandle(libHandle);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaProfileReader.java98 public static int getMinFrameRateForCodec(int codec) { argument
99 return getMinOrMaxFrameRateForCodec(codec, false);
102 public static int getMaxFrameRateForCodec(int codec) { argument
103 return getMinOrMaxFrameRateForCodec(codec, true);
106 private static int getMinOrMaxFrameRateForCodec(int codec, boolean max) { argument
108 if (cap.mCodec == codec) {
114 throw new IllegalArgumentException("Unsupported video codec " + codec);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioTrackDecoder.java77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
96 codec.releaseOutputBuffer(bufferIndex, false);
76 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
H A DCpuVideoTrackDecoder.java67 // Find a codec for our video that can output to one of our supported color-spaces
81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
87 mColorFormat = codec.getOutputFormat().getInteger(MediaFormat.KEY_COLOR_FORMAT);
96 codec.releaseOutputBuffer(bufferIndex, false);
169 * Looks for a codec with the specified requirements.
173 * <li>The codec is a decoder.</li>
174 * <li>The codec can decode a video of the specified format.</li>
175 * <li>The codec can decode to one of the specified color formats.</li>
180 * @param format The format the codec must decode.
182 * @return A codec tha
80 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
[all...]
H A DGpuVideoTrackDecoder.java107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) {
113 codec.releaseOutputBuffer(bufferIndex, textureAvailable);
106 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
H A DTrackDecoder.java67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info);
66 onDataAvailable( MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) argument
/frameworks/av/media/libstagefright/
H A DOmxInfoBuilder.cpp62 sp<ACodec> codec = new ACodec(); local
63 status_t err = codec->queryCapabilities(
109 ALOGE("Fail to obtain codec roles from IOmxStore.");
136 // codec name -> index into swCodecs/hwCodecs
201 ALOGW("Fail to add mime %s to codec %s",
233 ALOGW("Fail to add mime %s to codec %s "
H A DSimpleDecodingSource.cpp69 sp<MediaCodec> codec; local
70 auto configure = [=](const sp<MediaCodec> &codec, const AString &componentName)
72 if (codec != NULL) {
73 ALOGI("Successfully allocated codec '%s'", componentName.c_str());
75 status_t err = codec->configure(format, surface, NULL /* crypto */, 0 /* flags */);
78 err = codec->getOutputFormat(&outFormat);
81 return new SimpleDecodingSource(codec, source, looper,
87 ALOGD("Failed to configure codec '%s'", componentName.c_str());
88 codec->release();
94 codec
120 SimpleDecodingSource( const sp<MediaCodec> &codec, const sp<MediaSource> &source, const sp<ALooper> &looper, bool usingSurface, bool isVorbis, const sp<AMessage> &format) argument
[all...]
H A DMediaCodecListOverrides.cpp45 // a limit to avoid allocating unreasonable number of codec instances in the measurement.
143 ALOGV("doProfileCodecs for codec #%zu", codecs.size());
148 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); local
150 ALOGV("Failed to create codec: %s", name.c_str());
157 err = codec->configure(format, nativeWindow, crypto, flags);
159 ALOGV("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str());
160 codec->release();
164 err = codec->start();
166 ALOGV("Failed to start codec: %s with mime: %s", name.c_str(), mime.c_str());
167 codec
290 AString codec = local
[all...]
/frameworks/av/media/libstagefright/omx/1.0/
H A DOmx.cpp119 const auto& codec = mParser.getCodecMap().find(name.c_str()); local
120 if (codec == mParser.getCodecMap().cend()) {
126 for (const auto& quirk : codec->second.quirkSet) {
/frameworks/base/media/java/android/media/
H A DMediaCodecList.java28 * find a codec supporting a given format and query the capabilities
29 * of a given codec.
50 * Return the {@link MediaCodecInfo} object for the codec at
94 Log.e(TAG, "Could not get codec capabilities", e);
128 /* package private */ static native final int findCodecByName(String codec); argument
131 public static MediaCodecInfo getInfoFor(String codec) { argument
133 return sAllCodecInfos[findCodecByName(codec)];
211 * requests, or {@code null} if no such codec has been found.
235 * requests, or {@code null} if no such codec has been found.
H A DEncoderCapabilities.java52 private VideoEncoderCap(int codec, argument
57 mCodec = codec;
88 private AudioEncoderCap(int codec, argument
92 mCodec = codec;
/frameworks/av/cmds/stagefright/
H A Dcodec.cpp18 #define LOG_TAG "codec"
147 sp<MediaCodec> codec = state->mCodec; local
149 CHECK_EQ((status_t)OK, codec->start());
151 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers));
152 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
H A Drecordvideo.cpp53 fprintf(stderr, " -v video codec: [0] AVC [1] M4V [2] H263 (default: 0)\n");
54 fprintf(stderr, " -s(oftware) prefer software codec\n");
176 int codec = 0; local
243 codec = atoi(optarg);
244 if (codec < 0 || codec > 2) {
276 switch (codec) {
H A Dmediafilter.cpp474 sp<MediaCodec> codec = state->mCodec; local
476 CHECK_EQ((status_t)OK, codec->start());
478 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers));
479 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DDisplaySourceService.java195 MediaCodec codec;
197 codec = MediaCodec.createEncoderByType("video/avc");
202 codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
203 Surface surface = codec.createInputSurface();
204 codec.start();
212 stream(codec);
219 codec.signalEndOfInputStream();
220 codec.stop();
227 private void stream(MediaCodec codec) { argument
231 int index = codec
[all...]
/frameworks/wilhelm/tests/examples/
H A DxaVideoDecoderCapabilities.cpp52 sprintf(unknown, "Video codec %d unknown to OpenMAX AL", decoderId);
95 // Map a video codec and profile to string
97 const char *videoProfileToString(XAuint32 codec, XAuint32 profile) { argument
155 return id_pair_to_string(codec, profile, table, sizeof(table) / sizeof(table[0]));
158 // Map a video codec and level to string
160 const char* videoLevelToString(XAuint32 codec, XAuint32 level) { argument
219 return id_pair_to_string(codec, level, table, sizeof(table) / sizeof(table[0]));
/frameworks/av/media/libstagefright/codecs/hevcdec/
H A DSoftHEVC.cpp38 /** Function and structure definitions to keep code similar for each codec */
73 // INPUT_BUF_SIZE is given by HEVC codec as minimum input size
238 /* Set number of cores/threads to be used by the codec */
335 /* Set number of cores/threads to be used by the codec */
338 /* Get codec version */
661 /* If in flush mode and no output is returned by the codec,
666 * from the codec, then signal EOS on output port */
711 android::SoftHEVC *codec = new android::SoftHEVC(name, callbacks, appData, component); local
712 if (codec->init() != android::OK) {
713 android::sp<android::SoftOMXComponent> release = codec;
[all...]
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp615 sp<MediaSource> codec = SimpleDecodingSource::Create( local
618 CHECK(codec != NULL);
620 CHECK_EQ(codec->start(), (status_t)OK);
684 err = codec->read(&buffer, &options);
743 CHECK_EQ(codec->stop(), (status_t)OK);
753 CHECK_EQ(codec->stop(), (status_t)OK);
/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp64 const char *codec,
71 ls.push_back(new WebmString(kMkvCodecId, codec));
343 const char *codec,
360 codec,
59 populateCommonTrackEntries( int num, uint64_t uid, bool lacing, const char *lang, const char *codec, TrackTypes type, List<sp<WebmElement> > &ls) argument
342 VideoTrackEntry( const char *codec, uint64_t width, uint64_t height, const sp<MetaData> &meta, uint64_t uid, bool lacing, const char *lang) argument
H A DWebmWriter.cpp94 const char *codec; local
99 codec = "V_VP8";
104 codec = "V_VP9";
106 ALOGE("Unsupported codec: %s", mimeType);
109 return WebmElement::VideoTrackEntry(codec, width, height, md);
/frameworks/base/core/jni/android/graphics/
H A DImageDecoder.cpp87 auto codec = SkCodec::MakeFromStream(std::move(stream), &result, decoder->mPeeker.get()); local
91 if (!codec) {
105 const bool animated = codec->getFrameCount() > 1;
110 decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec),
207 SkAndroidCodec* codec = decoder->mCodec.get(); local
210 const int sampleSize = codec->computeSampleSize(&decodeSize);
212 SkImageInfo decodeInfo = codec->getInfo().makeWH(decodeSize.width(), decodeSize.height());
257 colorType = codec->computeOutputColorType(colorType);
260 colorSpace = codec->computeOutputColorSpace(colorType, colorSpace);
292 auto result = codec
499 auto* codec = reinterpret_cast<ImageDecoder*>(nativePtr)->mCodec.get(); local
[all...]

Completed in 533 milliseconds

12