Home | History | Annotate | Download | only in test

Lines Matching refs:mTestContext

1245     err = mTestContext->mViVVid.codec->getOutputBuffers(
1246 &mTestContext->mViVVid.buffers);
1252 err = mTestContext->mViVVid.codec->dequeueOutputBuffer(
1278 err = mTestContext->mViVVid.muxer->writeSampleData(
1279 mTestContext->mViVVid.buffers[bufIndex],
1289 err = mTestContext->mViVVid.codec->releaseOutputBuffer(bufIndex);
1307 mTestContext->mViVVid.codec->getOutputFormat(&newFormat);
1308 trackIdx = mTestContext->mViVVid.muxer->addTrack(newFormat);
1309 err = mTestContext->mViVVid.muxer->start();
1318 err = mTestContext->mViVVid.codec->getOutputBuffers(
1319 &mTestContext->mViVVid.buffers);
1673 mTestContext = instance;
2948 if (mTestContext->mViVVid.VideoSizes[0].width *
2949 mTestContext->mViVVid.VideoSizes[0].height >=
2950 mTestContext->mViVVid.VideoSizes[1].width *
2951 mTestContext->mViVVid.VideoSizes[1].height) {
2953 mTestContext->mViVVid.VideoSizes[0].width,
2954 mTestContext->mViVVid.VideoSizes[0].height,
2955 mTestContext->mViVVid.ViVIdx++);
2956 format->setInt32("width", mTestContext->mViVVid.VideoSizes[0].width);
2957 format->setInt32("height", mTestContext->mViVVid.VideoSizes[0].height);
2960 mTestContext->mViVVid.VideoSizes[1].width,
2961 mTestContext->mViVVid.VideoSizes[1].height,
2962 mTestContext->mViVVid.ViVIdx++);
2963 format->setInt32("width", mTestContext->mViVVid.VideoSizes[1].width);
2964 format->setInt32("height", mTestContext->mViVVid.VideoSizes[1].height);
2971 mTestContext->mViVVid.muxer = new MediaMuxer(
2984 mTestContext->mViVVid.codec = MediaCodec::CreateByType(
2986 if (mTestContext->mViVVid.codec == NULL) {
2990 ret = mTestContext->mViVVid.codec->configure(format, NULL, NULL,
2993 mTestContext->mViVVid.codec->release();
2994 mTestContext->mViVVid.codec.clear();
3001 ret = mTestContext->mViVVid.codec->createInputSurface(
3002 &mTestContext->mViVVid.bufferProducer);
3004 mTestContext->mViVVid.codec->release();
3005 mTestContext->mViVVid.codec.clear();
3012 ret = mTestContext->mViVVid.codec->start();
3014 mTestContext->mViVVid.codec->release();
3015 mTestContext->mViVVid.codec.clear();
3022 mTestContext->mViVVid.surface = new Surface(
3023 mTestContext->mViVVid.bufferProducer);
3024 mTestContext->mViVVid.ANW = mTestContext->mViVVid.surface;
3025 ret = native_window_api_connect(mTestContext->mViVVid.ANW.get(),
3027 if (mTestContext->mViVVid.VideoSizes[0].width *
3028 mTestContext->mViVVid.VideoSizes[0].height >=
3029 mTestContext->mViVVid.VideoSizes[1].width *
3030 mTestContext->mViVVid.VideoSizes[1].height) {
3031 native_window_set_buffers_format(mTestContext->mViVVid.ANW.get(),
3033 native_window_set_buffers_dimensions(mTestContext->mViVVid.ANW.get(),
3034 mTestContext->mViVVid.VideoSizes[0].width,
3035 mTestContext->mViVVid.VideoSizes[0].height);
3037 native_window_set_buffers_format(mTestContext->mViVVid.ANW.get(),
3039 native_window_set_buffers_dimensions(mTestContext->mViVVid.ANW.get(),
3040 mTestContext->mViVVid.VideoSizes[1].width,
3041 mTestContext->mViVVid.VideoSizes[1].height);
3043 native_window_set_usage(mTestContext->mViVVid.ANW.get(),
3045 native_window_set_buffer_count(mTestContext->mViVVid.ANW.get(),
3046 mTestContext->mViVVid.buff_cnt);
3068 ret = native_window_api_disconnect(mTestContext->mViVVid.ANW.get(),
3070 mTestContext->mViVVid.bufferProducer = NULL;
3071 mTestContext->mViVVid.codec->stop();
3073 mTestContext->mViVVid.muxer->stop();
3074 mTestContext->mViVVid.codec->release();
3075 mTestContext->mViVVid.codec.clear();
3076 mTestContext->mViVVid.muxer.clear();
3077 mTestContext->mViVVid.surface.clear();
3344 free(mTestContext->mViVBuff.buff);
3345 mTestContext->mViVBuff.buff = NULL;