• Home
  • Raw
  • Download

Lines Matching refs:param

359     OMX_PARAM_PORTDEFINITIONTYPE *param = reinterpret_cast<OMX_PARAM_PORTDEFINITIONTYPE *>(paramIn);  in SplitParamGettingPortDefinitionVideo()  local
362 if (param->nPortIndex == INPUT_PORTINDEX) { in SplitParamGettingPortDefinitionVideo()
364 } else if (param->nPortIndex == OUTPUT_PORTINDEX) { in SplitParamGettingPortDefinitionVideo()
384 OMX_PARAM_PORTDEFINITIONTYPE *param = reinterpret_cast<OMX_PARAM_PORTDEFINITIONTYPE *>(paramIn); in SplitParamSettingPortDefinitionVideo() local
388 paramOut[index].val = (void *)&(param->nBufferSize); in SplitParamSettingPortDefinitionVideo()
389 paramOut[index].size = sizeof(param->nBufferSize); in SplitParamSettingPortDefinitionVideo()
392 param->format.video.eCompressionFormat = in SplitParamSettingPortDefinitionVideo()
393 … (OMX_VIDEO_CODINGTYPE)ConvertVideoCodingTypeToMimeType(param->format.video.eCompressionFormat); in SplitParamSettingPortDefinitionVideo()
394 paramOut[index].val = (void *)&(param->format.video.eCompressionFormat); in SplitParamSettingPortDefinitionVideo()
395 paramOut[index].size = sizeof(param->format.video.eCompressionFormat); in SplitParamSettingPortDefinitionVideo()
398 paramOut[index].val = (void *)&(param->format.video.nFrameWidth); in SplitParamSettingPortDefinitionVideo()
399 paramOut[index].size = sizeof(param->format.video.nFrameWidth); in SplitParamSettingPortDefinitionVideo()
402 paramOut[index].val = (void *)&(param->format.video.nFrameHeight); in SplitParamSettingPortDefinitionVideo()
403 paramOut[index].size = sizeof(param->format.video.nFrameHeight); in SplitParamSettingPortDefinitionVideo()
406 paramOut[index].val = (void *)&(param->format.video.nStride); in SplitParamSettingPortDefinitionVideo()
407 paramOut[index].size = sizeof(param->format.video.nStride); in SplitParamSettingPortDefinitionVideo()
410 paramOut[index].val = (void *)&(param->format.video.nBitrate); in SplitParamSettingPortDefinitionVideo()
411 paramOut[index].size = sizeof(param->format.video.nBitrate); in SplitParamSettingPortDefinitionVideo()
414 paramOut[index].val = (void *)&(param->format.video.xFramerate); in SplitParamSettingPortDefinitionVideo()
415 paramOut[index].size = sizeof(param->format.video.xFramerate); in SplitParamSettingPortDefinitionVideo()
417 param->format.video.eColorFormat = in SplitParamSettingPortDefinitionVideo()
418 …static_cast<OMX_COLOR_FORMATTYPE>(ConvertColorFormatToPixelFormat(param->format.video.eColorFormat… in SplitParamSettingPortDefinitionVideo()
419 if (static_cast<PixelFormat>(param->format.video.eColorFormat) != PIXEL_FMT_BUTT) { in SplitParamSettingPortDefinitionVideo()
421 paramOut[index].val = (void *)&(param->format.video.eColorFormat); in SplitParamSettingPortDefinitionVideo()
422 paramOut[index].size = sizeof(param->format.video.eColorFormat); in SplitParamSettingPortDefinitionVideo()
440 OMX_PARAM_PORTDEFINITIONTYPE *param = reinterpret_cast<OMX_PARAM_PORTDEFINITIONTYPE *>(paramIn); in SplitParamPortDefinitionAudio() local
443 paramOut[index].val = setMark ? (void *)&(param->nBufferSize) : nullptr; in SplitParamPortDefinitionAudio()
444 paramOut[index].size = setMark ? sizeof(param->nBufferSize) : 0; in SplitParamPortDefinitionAudio()
447 param->format.audio.eEncoding = in SplitParamPortDefinitionAudio()
448 …static_cast<OMX_AUDIO_CODINGTYPE>(ConvertAudioCodingTypeToMimeType(param->format.audio.eEncoding)); in SplitParamPortDefinitionAudio()
449 paramOut[index].val = setMark ? (void *)&(param->format.audio.eEncoding) : nullptr; in SplitParamPortDefinitionAudio()
450 paramOut[index].size = setMark ? sizeof(param->format.audio.eEncoding) : 0; in SplitParamPortDefinitionAudio()
466 …OMX_AUDIO_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_PORTFORMATTYPE *>(paramIn… in SplitParamAudioPortFormat() local
469 param->eEncoding = (OMX_AUDIO_CODINGTYPE)ConvertAudioCodingTypeToMimeType(param->eEncoding); in SplitParamAudioPortFormat()
470 paramOut[index].val = setMark ? (void *)&(param->eEncoding) : nullptr; in SplitParamAudioPortFormat()
471 paramOut[index].size = setMark ? sizeof(param->eEncoding) : 0; in SplitParamAudioPortFormat()
479 OMX_AUDIO_PARAM_PCMMODETYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_PCMMODETYPE *>(paramIn); in SplitParamAudioPcm() local
482 paramOut[index].val = setMark ? (void *)&(param->nChannels) : nullptr; in SplitParamAudioPcm()
483 paramOut[index].size = setMark ? sizeof(param->nChannels) : 0; in SplitParamAudioPcm()
486 paramOut[index].val = setMark ? (void *)&(param->nBitPerSample) : nullptr; in SplitParamAudioPcm()
487 paramOut[index].size = setMark ? sizeof(param->nBitPerSample) : 0; in SplitParamAudioPcm()
490 paramOut[index].val = setMark ? (void *)&(param->nSamplingRate) : nullptr; in SplitParamAudioPcm()
491 paramOut[index].size = setMark ? sizeof(param->nSamplingRate) : 0; in SplitParamAudioPcm()
499 …OMX_AUDIO_PARAM_AACPROFILETYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_AACPROFILETYPE *>(paramIn… in SplitParamAudioAac() local
502 paramOut[index].val = setMark ? (void *)&(param->nChannels) : nullptr; in SplitParamAudioAac()
503 paramOut[index].size = setMark ? sizeof(param->nChannels) : 0; in SplitParamAudioAac()
506 paramOut[index].val = setMark ? (void *)&(param->nSampleRate) : nullptr; in SplitParamAudioAac()
507 paramOut[index].size = setMark ? sizeof(param->nSampleRate) : 0; in SplitParamAudioAac()
510 paramOut[index].val = setMark ? (void *)&(param->nBitRate) : nullptr; in SplitParamAudioAac()
511 paramOut[index].size = setMark ? sizeof(param->nBitRate) : 0; in SplitParamAudioAac()
514 param->eAACProfile = (OMX_AUDIO_AACPROFILETYPE)ConvertAacProfileToProfile(param->eAACProfile); in SplitParamAudioAac()
515 paramOut[index].val = setMark ? (void *)&(param->eAACProfile) : nullptr; in SplitParamAudioAac()
516 paramOut[index].size = setMark ? sizeof(param->eAACProfile) : 0; in SplitParamAudioAac()
519param->eChannelMode = (OMX_AUDIO_CHANNELMODETYPE)ConvertChannelModeToSoundMode(param->eChannelMode… in SplitParamAudioAac()
520 paramOut[index].val = setMark ? (void *)&(param->eChannelMode) : nullptr; in SplitParamAudioAac()
521 paramOut[index].size = setMark ? sizeof(param->eChannelMode) : 0; in SplitParamAudioAac()
529 OMX_AUDIO_PARAM_MP3TYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_MP3TYPE *>(paramIn); in SplitParamAudioMp3() local
532 paramOut[index].val = setMark ? (void *)&(param->nChannels) : nullptr; in SplitParamAudioMp3()
533 paramOut[index].size = setMark ? sizeof(param->nChannels) : 0; in SplitParamAudioMp3()
536 paramOut[index].val = setMark ? (void *)&(param->nSampleRate) : nullptr; in SplitParamAudioMp3()
537 paramOut[index].size = setMark ? sizeof(param->nSampleRate) : 0; in SplitParamAudioMp3()
540 paramOut[index].val = setMark ? (void *)&(param->nBitRate) : nullptr; in SplitParamAudioMp3()
541 paramOut[index].size = setMark ? sizeof(param->nBitRate) : 0; in SplitParamAudioMp3()
544param->eChannelMode = (OMX_AUDIO_CHANNELMODETYPE)ConvertChannelModeToSoundMode(param->eChannelMode… in SplitParamAudioMp3()
545 paramOut[index].val = setMark ? (void *)&(param->eChannelMode) : nullptr; in SplitParamAudioMp3()
546 paramOut[index].size = setMark ? sizeof(param->eChannelMode) : 0; in SplitParamAudioMp3()
554 OMX_AUDIO_PARAM_G726TYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_G726TYPE *>(paramIn); in SplitParamAudioG726() local
557 paramOut[index].val = setMark ? (void *)&(param->nChannels) : nullptr; in SplitParamAudioG726()
558 paramOut[index].size = setMark ? sizeof(param->nChannels) : 0; in SplitParamAudioG726()
566 …OMX_IMAGE_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_IMAGE_PARAM_PORTFORMATTYPE *>(paramIn… in SplitParamImagePortFormat() local
569param->eCompressionFormat = (OMX_IMAGE_CODINGTYPE)ConvertImageCodingTypeToMimeType(param->eCompres… in SplitParamImagePortFormat()
570 paramOut[index].val = setMark ? (void *)&(param->eCompressionFormat) : nullptr; in SplitParamImagePortFormat()
571 paramOut[index].size = setMark ? sizeof(param->eCompressionFormat) : 0; in SplitParamImagePortFormat()
573param->eColorFormat = static_cast<OMX_COLOR_FORMATTYPE>(ConvertColorFormatToPixelFormat(param->eCo… in SplitParamImagePortFormat()
574 if (static_cast<PixelFormat>(param->eColorFormat) != PIXEL_FMT_BUTT || !setMark) { in SplitParamImagePortFormat()
576 paramOut[index].val = setMark ? (void *)&(param->eColorFormat) : nullptr; in SplitParamImagePortFormat()
577 paramOut[index].size = setMark ? sizeof(param->eColorFormat) : 0; in SplitParamImagePortFormat()
585 OMX_IMAGE_PARAM_QFACTORTYPE *param = reinterpret_cast<OMX_IMAGE_PARAM_QFACTORTYPE *>(paramIn); in SplitParamQfactor() local
588 paramOut[index].val = setMark ? (void *)&(param->nQFactor) : nullptr; in SplitParamQfactor()
589 paramOut[index].size = setMark ? sizeof(param->nQFactor) : 0; in SplitParamQfactor()
597 …OMX_VIDEO_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_PORTFORMATTYPE *>(paramIn… in SplitParamVideoPortFormat() local
600param->eCompressionFormat = (OMX_VIDEO_CODINGTYPE)ConvertVideoCodingTypeToMimeType(param->eCompres… in SplitParamVideoPortFormat()
601 paramOut[index].val = setMark ? (void *)&(param->eCompressionFormat) : nullptr; in SplitParamVideoPortFormat()
602 paramOut[index].size = setMark ? sizeof(param->eCompressionFormat) : 0; in SplitParamVideoPortFormat()
605 paramOut[index].val = setMark ? (void *)&(param->xFramerate) : nullptr; in SplitParamVideoPortFormat()
606 paramOut[index].size = setMark ? sizeof(param->xFramerate) : 0; in SplitParamVideoPortFormat()
608param->eColorFormat = static_cast<OMX_COLOR_FORMATTYPE>(ConvertColorFormatToPixelFormat(param->eCo… in SplitParamVideoPortFormat()
609 if (static_cast<PixelFormat>(param->eColorFormat) != PIXEL_FMT_BUTT || !setMark) { in SplitParamVideoPortFormat()
611 paramOut[index].val = setMark ? (void *)&(param->eColorFormat) : nullptr; in SplitParamVideoPortFormat()
612 paramOut[index].size = setMark ? sizeof(param->eColorFormat) : 0; in SplitParamVideoPortFormat()
621 OMX_VIDEO_PARAM_AVCTYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_AVCTYPE *>(paramIn); in SplitParamVideoAvc() local
624param->eProfile = static_cast<OMX_VIDEO_AVCPROFILETYPE>(ConvertAvcProfileToProfile(param->eProfile… in SplitParamVideoAvc()
625 paramOut[index].val = setMark ? (void *)&(param->eProfile) : nullptr; in SplitParamVideoAvc()
626 paramOut[index].size = setMark ? sizeof(param->eProfile) : 0; in SplitParamVideoAvc()
634 OMX_VIDEO_PARAM_BITRATETYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_BITRATETYPE *>(paramIn); in SplitParamVideoBitrate() local
637 param->eControlRate = (OMX_VIDEO_CONTROLRATETYPE)ConvertRateTypeToRcMode(param->eControlRate); in SplitParamVideoBitrate()
638 paramOut[index].val = setMark ? (void *)&(param->eControlRate) : nullptr; in SplitParamVideoBitrate()
639 paramOut[index].size = setMark ? sizeof(param->eControlRate) : 0; in SplitParamVideoBitrate()
647 PassthroughParam *param = reinterpret_cast<PassthroughParam *>(paramIn); in SplitParamPassthrough() local
649 paramOut[index].key = (ParamKey)param->key; in SplitParamPassthrough()
650 paramOut[index].val = param->val; in SplitParamPassthrough()
651 paramOut[index].size = param->size; in SplitParamPassthrough()
708 static int32_t GetOmxParamByKey(Param paramIn, OMX_PARAM_PORTDEFINITIONTYPE *param) in GetOmxParamByKey() argument
713 param->nBufferCountActual = *(reinterpret_cast<OMX_U32 *>(paramIn.val)); in GetOmxParamByKey()
716 param->nBufferSize = *(reinterpret_cast<OMX_U32 *>(paramIn.val)); in GetOmxParamByKey()
717 param->bEnabled = OMX_TRUE; in GetOmxParamByKey()
722 param->format.video.eCompressionFormat = (OMX_VIDEO_CODINGTYPE)codingType; in GetOmxParamByKey()
726 param->format.video.nFrameWidth = *(reinterpret_cast<OMX_U32 *>(paramIn.val)); in GetOmxParamByKey()
729 param->format.video.nFrameHeight = *(reinterpret_cast<OMX_U32 *>(paramIn.val)); in GetOmxParamByKey()
732 param->format.video.nStride = *(reinterpret_cast<OMX_U32 *>(paramIn.val)); in GetOmxParamByKey()
735 param->format.video.nBitrate = *(reinterpret_cast<OMX_U32 *>(paramIn.val)); in GetOmxParamByKey()
738 param->format.video.xFramerate = *(reinterpret_cast<OMX_U32 *>(paramIn.val)); in GetOmxParamByKey()
741 param->format.video.eColorFormat = in GetOmxParamByKey()
755 … OMX_PARAM_PORTDEFINITIONTYPE *param = reinterpret_cast<OMX_PARAM_PORTDEFINITIONTYPE *>(paramOut); in ParseParamPortDefinitionVideo() local
762 if (GetOmxParamByKey(paramIn[i], param) == HDF_FAILURE) { in ParseParamPortDefinitionVideo()
771 … OMX_PARAM_PORTDEFINITIONTYPE *param = reinterpret_cast<OMX_PARAM_PORTDEFINITIONTYPE *>(paramOut); in ParseParamPortDefinitionAudio() local
780 param->nBufferSize = in ParseParamPortDefinitionAudio()
781 param->nPortIndex == static_cast<OMX_U32>(INPUT_PORTINDEX) ? in ParseParamPortDefinitionAudio()
783 param->nBufferCountActual = in ParseParamPortDefinitionAudio()
784 param->nPortIndex == static_cast<OMX_U32>(INPUT_PORTINDEX) ? in ParseParamPortDefinitionAudio()
786 param->bEnabled = OMX_TRUE; in ParseParamPortDefinitionAudio()
791 param->format.audio.eEncoding = static_cast<OMX_AUDIO_CODINGTYPE>(codingType); in ParseParamPortDefinitionAudio()
818 …OMX_AUDIO_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_PORTFORMATTYPE *>(paramOu… in ParseParamAudioPortFormat() local
827 param->eEncoding = (OMX_AUDIO_CODINGTYPE)codingType; in ParseParamAudioPortFormat()
838 OMX_AUDIO_PARAM_PCMMODETYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_PCMMODETYPE *>(paramOut); in ParseParamAudioPcm() local
847 param->nChannels = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioPcm()
850 param->nBitPerSample = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioPcm()
853 param->nSamplingRate = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioPcm()
868 …OMX_AUDIO_PARAM_AACPROFILETYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_AACPROFILETYPE *>(paramOu… in ParseParamAudioAac() local
877 param->nChannels = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioAac()
880 param->nSampleRate = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioAac()
883 param->nBitRate = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioAac()
886 param->eAACProfile = (OMX_AUDIO_AACPROFILETYPE) in ParseParamAudioAac()
890 param->eChannelMode = in ParseParamAudioAac()
906 OMX_AUDIO_PARAM_MP3TYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_MP3TYPE *>(paramOut); in ParseParamAudioMp3() local
915 param->nChannels = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioMp3()
918 param->nSampleRate = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioMp3()
921 param->nBitRate = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioMp3()
924 param->eChannelMode = in ParseParamAudioMp3()
940 OMX_AUDIO_PARAM_G726TYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_G726TYPE *>(paramOut); in ParseParamAudioG726() local
948 param->nChannels = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamAudioG726()
959 …OMX_IMAGE_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_IMAGE_PARAM_PORTFORMATTYPE *>(paramOu… in ParseParamImagePortFormat() local
968 param->eCompressionFormat = (OMX_IMAGE_CODINGTYPE) in ParseParamImagePortFormat()
972 param->eColorFormat = in ParseParamImagePortFormat()
988 OMX_IMAGE_PARAM_QFACTORTYPE *param = reinterpret_cast<OMX_IMAGE_PARAM_QFACTORTYPE *>(paramOut); in ParseParamQfactor() local
996 param->nQFactor = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamQfactor()
1007 …OMX_VIDEO_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_PORTFORMATTYPE *>(paramOu… in ParseParamVideoPortFormat() local
1016 param->eCompressionFormat = (OMX_VIDEO_CODINGTYPE) in ParseParamVideoPortFormat()
1020 param->eColorFormat = in ParseParamVideoPortFormat()
1024 param->xFramerate = *(reinterpret_cast<OMX_U32 *>(paramIn[i].val)); in ParseParamVideoPortFormat()
1039 OMX_VIDEO_PARAM_AVCTYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_AVCTYPE *>(paramOut); in ParseParamVideoAvc() local
1047 param->eProfile = static_cast<OMX_VIDEO_AVCPROFILETYPE> in ParseParamVideoAvc()
1059 OMX_VIDEO_PARAM_BITRATETYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_BITRATETYPE *>(paramOut); in ParseParamVideoBitrate() local
1067param->eControlRate = ConvertRcModeToRateType(*(reinterpret_cast<VideoCodecRcMode *>(paramIn[i].va… in ParseParamVideoBitrate()
1078 PassthroughParam *param = reinterpret_cast<PassthroughParam *>(paramOut); in ParseParamPassthrough() local
1084 param->key = paramIn[index].key; in ParseParamPassthrough()
1085 param->val = paramIn[index].val; in ParseParamPassthrough()
1086 param->size = paramIn[index].size; in ParseParamPassthrough()