Searched defs:codec (Results 1 - 25 of 28) 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;
H A DAudioGroup.cpp100 AudioCodec *codec, int sampleRate, int sampleCount,
166 AudioCodec *codec, int sampleRate, int sampleCount,
202 if (codec) {
204 mCodec = codec;
222 (codec ? codec->name : "RAW"), mSampleRate, mInterval, mMode);
943 AudioCodec *codec = NULL; local
969 // Create audio codec.
974 codec = newAudioCodec(codecName);
975 int sampleCount = (codec
165 set(int mode, int socket, sockaddr_storage *remote, AudioCodec *codec, int sampleRate, int sampleCount, int codecType, int dtmfType) argument
[all...]
/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.cpp110 sp<SoftOMXComponent> codec = local
113 if (codec == NULL) {
120 OMX_ERRORTYPE err = codec->initCheck();
128 codec->incStrong(this);
129 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/base/media/java/android/media/
H A DMediaCodecList.java29 * find a codec supporting a given format and query the capabilities
30 * of a given codec.
51 * Return the {@link MediaCodecInfo} object for the codec at
85 Log.e(TAG, "Could not get codec capabilities", e);
117 /* package private */ static native final int findCodecByName(String codec); argument
120 public static MediaCodecInfo getInfoFor(String codec) { argument
122 return sAllCodecInfos[findCodecByName(codec)];
190 * requests, or {@code null} if no such codec has been found.
204 * 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;
H A DMediaCodec.java41 * MediaCodec class can be used to access low-level media codec, i.e.
46 * MediaCodec codec = MediaCodec.createDecoderByType(type);
47 * codec.configure(format, ...);
48 * codec.start();
51 * ByteBuffer[] inputBuffers = codec.getInputBuffers();
52 * ByteBuffer[] outputBuffers = codec.getOutputBuffers();
54 * int inputBufferIndex = codec.dequeueInputBuffer(timeoutUs);
57 * ByteBuffer inputBuffer = codec.getInputBuffer(inputBufferIndex);
60 * codec.queueInputBuffer(inputBufferIndex, ...);
63 * int outputBufferIndex = codec
343 EventHandler(MediaCodec codec, Looper looper) argument
1630 onInputBufferAvailable(MediaCodec codec, int index) argument
1639 onOutputBufferAvailable(MediaCodec codec, int index, BufferInfo info) argument
1647 onError(MediaCodec codec, CodecException e) argument
1655 onOutputFormatChanged(MediaCodec codec, MediaFormat format) argument
[all...]
/frameworks/av/cmds/stagefright/
H A Dcodec.cpp18 #define LOG_TAG "codec"
143 sp<MediaCodec> codec = state->mCodec; local
145 CHECK_EQ((status_t)OK, codec->start());
147 CHECK_EQ((status_t)OK, codec->getInputBuffers(&state->mInBuffers));
148 CHECK_EQ((status_t)OK, codec->getOutputBuffers(&state->mOutBuffers));
H A Drecordvideo.cpp46 fprintf(stderr, " -v video codec: [0] AVC [1] M4V [2] H263 (default: 0)\n");
47 fprintf(stderr, " -s(oftware) prefer software codec\n");
169 int codec = 0; local
236 codec = atoi(optarg);
237 if (codec < 0 || codec > 2) {
272 switch (codec) {
/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/webm/
H A DWebmElement.cpp62 const char *codec,
69 ls.push_back(new WebmString(kMkvCodecId, codec));
57 populateCommonTrackEntries( int num, uint64_t uid, bool lacing, const char *lang, const char *codec, TrackTypes type, List<sp<WebmElement> > &ls) argument
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp143 * from the codec.
166 ALOGV("Creating codec");
167 sp<MediaCodec> codec = MediaCodec::CreateByType(looper, kMimeTypeAvc, true); local
168 if (codec == NULL) {
169 fprintf(stderr, "ERROR: unable to create %s codec instance\n",
174 err = codec->configure(format, NULL, NULL,
177 fprintf(stderr, "ERROR: unable to configure %s codec at %dx%d (err=%d)\n",
179 codec->release();
185 err = codec->createInputSurface(&bufferProducer);
189 codec
[all...]
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp600 sp<MediaSource> codec = OMXCodec::Create( local
604 CHECK(codec != NULL);
606 CHECK_EQ(codec->start(), (status_t)OK);
670 err = codec->read(&buffer, &options);
729 CHECK_EQ(codec->stop(), (status_t)OK);
739 CHECK_EQ(codec->stop(), (status_t)OK);
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp62 CodecHandler(AMediaCodec *codec);
66 typedef void (*OnCodecEvent)(AMediaCodec *codec, void *userdata);
79 CodecHandler::CodecHandler(AMediaCodec *codec) { argument
80 mCodec = codec;
138 static void requestActivityNotification(AMediaCodec *codec) { argument
139 (new AMessage(kWhatRequestActivityNotifications, codec->mHandler->id()))->post();
372 AMediaCodec* codec,
386 status_t err = codec->mCodec->queueSecureInputBuffer(idx,
371 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp169 SkImageDecoder* codec = SkImageDecoder::Factory(&stream); local
170 if (codec) {
171 codec->setDitherImage(false);
172 codec->decode(&stream, &bitmap,
175 delete codec;
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp100 MediaProfiles::logVideoCodec(const MediaProfiles::VideoCodec& codec UNUSED)
102 ALOGV("video codec:");
103 ALOGV("codec = %d", codec.mCodec);
104 ALOGV("bit rate: %d", codec.mBitRate);
105 ALOGV("frame width: %d", codec.mFrameWidth);
106 ALOGV("frame height: %d", codec.mFrameHeight);
107 ALOGV("frame rate: %d", codec.mFrameRate);
111 MediaProfiles::logAudioCodec(const MediaProfiles::AudioCodec& codec UNUSED)
113 ALOGV("audio codec
188 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
210 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local
230 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); local
246 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); local
270 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
294 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); local
409 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); local
534 VideoCodec *codec = NULL; local
[all...]
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp117 sp<MediaCodec> codec = new MediaCodec(looper); local
119 const status_t ret = codec->init(mime, true /* nameIsType */, encoder);
123 return ret == OK ? codec : NULL; // NULL deallocates codec.
129 sp<MediaCodec> codec = new MediaCodec(looper); local
131 const status_t ret = codec->init(name, false /* nameIsType */, false /* encoder */);
135 return ret == OK ? codec : NULL; // NULL deallocates codec.
277 // To maintain backward-compatibility, do a reset() to put codec
988 ALOGV("codec outpu
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp387 AString codec(codecs, offset, commaPos - offset);
388 codec.trim();
389 // return true only if a codec of type `key` ("audio"/"video")
391 if (codecIsType(codec, key)) {
1194 bool M3UParser::codecIsType(const AString &codec, const char *type) { argument
1195 if (codec.size() < 4) {
1198 const char *c = codec.c_str();
/frameworks/av/include/media/
H A DMediaProfiles.h105 * vid.codec - video encoder. see mediarecorder.h for details.
106 * aud.codec - audio encoder. see mediarecorder.h for details.
148 int getVideoEncoderParamByName(const char *name, video_encoder codec) const;
164 * Returns the value for the given param name for the video editor export codec format
169 * Supported param codec are:
174 int getVideoEditorExportParamByName(const char *name, int codec) const;
193 int getAudioEncoderParamByName(const char *name, audio_encoder codec) const;
228 VideoCodec(video_encoder codec, int bitRate, int frameWidth, int frameHeight, int frameRate) argument
229 : mCodec(codec),
253 AudioCodec(audio_encoder codec, in argument
307 VideoEncoderCap(video_encoder codec, int minBitRate, int maxBitRate, int minFrameWidth, int maxFrameWidth, int minFrameHeight, int maxFrameHeight, int minFrameRate, int maxFrameRate) argument
329 AudioEncoderCap(audio_encoder codec, int minBitRate, int maxBitRate, int minSampleRate, int maxSampleRate, int minChannels, int maxChannels) argument
347 VideoDecoderCap(video_decoder codec) argument
354 AudioDecoderCap(audio_decoder codec) argument
370 ExportVideoProfile(int codec, int profile, int level) argument
[all...]

Completed in 2854 milliseconds

12