Lines Matching refs:muxer
313 * Exactly one of muxer or rawFp must be non-null.
315 * The muxer must *not* have been started before calling.
318 const sp<MediaMuxer>& muxer, FILE* rawFp, const sp<IBinder>& mainDpy,
328 assert((rawFp == NULL && muxer != NULL) || (rawFp != NULL && muxer == NULL));
362 if (muxer != NULL) {
399 if (muxer == NULL) {
416 err = muxer->writeSampleData(buffers[bufIndex], trackIdx,
420 "Failed writing data to muxer (err=%d)\n", err);
443 // Format includes CSD, which we must provide to muxer.
447 if (muxer != NULL) {
448 trackIdx = muxer->addTrack(newFormat);
449 ALOGV("Starting muxer");
450 err = muxer->start();
452 fprintf(stderr, "Unable to start muxer (err=%d)\n", err);
528 * Configures codec, muxer, and virtual display, then starts moving bits
637 sp<MediaMuxer> muxer = NULL;
641 // Configure muxer. We have to wait for the CSD blob from the encoder
648 muxer = new MediaMuxer(fd, MediaMuxer::OUTPUT_FORMAT_MPEG_4);
651 muxer->setOrientationHint(90); // TODO: does this do anything?
701 err = runEncoder(encoder, muxer, rawFp, mainDpy, dpy,
709 printf("Stopping encoder and muxer\n");
718 if (muxer != NULL) {
719 // If we don't stop muxer explicitly, i.e. let the destructor run,
721 muxer->stop();
988 // learn about the failure until muxer.start(), which returns a generic