Lines Matching refs:paramOut
357 static void SplitParamGettingPortDefinitionVideo(int8_t *paramIn, Param *paramOut, int32_t ¶mCn… in SplitParamGettingPortDefinitionVideo() argument
363 paramOut[index++].key = KEY_INPUT_BUFFER_COUNT; in SplitParamGettingPortDefinitionVideo()
365 paramOut[index++].key = KEY_OUTPUT_BUFFER_COUNT; in SplitParamGettingPortDefinitionVideo()
367 paramOut[index++].key = KEY_BUFFERSIZE; in SplitParamGettingPortDefinitionVideo()
368 paramOut[index++].key = KEY_MIMETYPE; in SplitParamGettingPortDefinitionVideo()
369 paramOut[index++].key = KEY_VIDEO_WIDTH; in SplitParamGettingPortDefinitionVideo()
370 paramOut[index++].key = KEY_VIDEO_HEIGHT; in SplitParamGettingPortDefinitionVideo()
371 paramOut[index++].key = KEY_VIDEO_STRIDE; in SplitParamGettingPortDefinitionVideo()
372 paramOut[index++].key = KEY_BITRATE; in SplitParamGettingPortDefinitionVideo()
373 paramOut[index++].key = KEY_VIDEO_FRAME_RATE; in SplitParamGettingPortDefinitionVideo()
374 paramOut[index++].key = KEY_PIXEL_FORMAT; in SplitParamGettingPortDefinitionVideo()
377 paramOut[index].val = nullptr; in SplitParamGettingPortDefinitionVideo()
378 paramOut[index].size = 0; in SplitParamGettingPortDefinitionVideo()
382 static void SplitParamSettingPortDefinitionVideo(int8_t *paramIn, Param *paramOut, int32_t ¶mCn… in SplitParamSettingPortDefinitionVideo() argument
387 paramOut[index].key = KEY_BUFFERSIZE; in SplitParamSettingPortDefinitionVideo()
388 paramOut[index].val = (void *)&(param->nBufferSize); in SplitParamSettingPortDefinitionVideo()
389 paramOut[index].size = sizeof(param->nBufferSize); in SplitParamSettingPortDefinitionVideo()
391 paramOut[index].key = KEY_MIMETYPE; in SplitParamSettingPortDefinitionVideo()
394 paramOut[index].val = (void *)&(param->format.video.eCompressionFormat); in SplitParamSettingPortDefinitionVideo()
395 paramOut[index].size = sizeof(param->format.video.eCompressionFormat); in SplitParamSettingPortDefinitionVideo()
397 paramOut[index].key = KEY_VIDEO_WIDTH; in SplitParamSettingPortDefinitionVideo()
398 paramOut[index].val = (void *)&(param->format.video.nFrameWidth); in SplitParamSettingPortDefinitionVideo()
399 paramOut[index].size = sizeof(param->format.video.nFrameWidth); in SplitParamSettingPortDefinitionVideo()
401 paramOut[index].key = KEY_VIDEO_HEIGHT; in SplitParamSettingPortDefinitionVideo()
402 paramOut[index].val = (void *)&(param->format.video.nFrameHeight); in SplitParamSettingPortDefinitionVideo()
403 paramOut[index].size = sizeof(param->format.video.nFrameHeight); in SplitParamSettingPortDefinitionVideo()
405 paramOut[index].key = KEY_VIDEO_STRIDE; in SplitParamSettingPortDefinitionVideo()
406 paramOut[index].val = (void *)&(param->format.video.nStride); in SplitParamSettingPortDefinitionVideo()
407 paramOut[index].size = sizeof(param->format.video.nStride); in SplitParamSettingPortDefinitionVideo()
409 paramOut[index].key = KEY_BITRATE; in SplitParamSettingPortDefinitionVideo()
410 paramOut[index].val = (void *)&(param->format.video.nBitrate); in SplitParamSettingPortDefinitionVideo()
411 paramOut[index].size = sizeof(param->format.video.nBitrate); in SplitParamSettingPortDefinitionVideo()
413 paramOut[index].key = KEY_VIDEO_FRAME_RATE; in SplitParamSettingPortDefinitionVideo()
414 paramOut[index].val = (void *)&(param->format.video.xFramerate); in SplitParamSettingPortDefinitionVideo()
415 paramOut[index].size = sizeof(param->format.video.xFramerate); in SplitParamSettingPortDefinitionVideo()
420 paramOut[index].key = KEY_PIXEL_FORMAT; in SplitParamSettingPortDefinitionVideo()
421 paramOut[index].val = (void *)&(param->format.video.eColorFormat); in SplitParamSettingPortDefinitionVideo()
422 paramOut[index].size = sizeof(param->format.video.eColorFormat); in SplitParamSettingPortDefinitionVideo()
429 static void SplitParamPortDefinitionVideo(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool… in SplitParamPortDefinitionVideo() argument
432 SplitParamGettingPortDefinitionVideo(paramIn, paramOut, paramCnt); in SplitParamPortDefinitionVideo()
434 SplitParamSettingPortDefinitionVideo(paramIn, paramOut, paramCnt); in SplitParamPortDefinitionVideo()
438 static void SplitParamPortDefinitionAudio(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool… in SplitParamPortDefinitionAudio() argument
442 paramOut[index].key = KEY_BUFFERSIZE; in SplitParamPortDefinitionAudio()
443 paramOut[index].val = setMark ? (void *)&(param->nBufferSize) : nullptr; in SplitParamPortDefinitionAudio()
444 paramOut[index].size = setMark ? sizeof(param->nBufferSize) : 0; in SplitParamPortDefinitionAudio()
446 paramOut[index].key = KEY_MIMETYPE; 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()
455 static void SplitParamPortDefinition(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setM… in SplitParamPortDefinition() argument
458 SplitParamPortDefinitionVideo(paramIn, paramOut, paramCnt, setMark); in SplitParamPortDefinition()
460 SplitParamPortDefinitionAudio(paramIn, paramOut, paramCnt, setMark); in SplitParamPortDefinition()
464 static void SplitParamAudioPortFormat(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool set… in SplitParamAudioPortFormat() argument
468 paramOut[index].key = KEY_MIMETYPE; in SplitParamAudioPortFormat()
470 paramOut[index].val = setMark ? (void *)&(param->eEncoding) : nullptr; in SplitParamAudioPortFormat()
471 paramOut[index].size = setMark ? sizeof(param->eEncoding) : 0; in SplitParamAudioPortFormat()
477 static void SplitParamAudioPcm(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setMark) in SplitParamAudioPcm() argument
481 paramOut[index].key = KEY_AUDIO_CHANNEL_COUNT; in SplitParamAudioPcm()
482 paramOut[index].val = setMark ? (void *)&(param->nChannels) : nullptr; in SplitParamAudioPcm()
483 paramOut[index].size = setMark ? sizeof(param->nChannels) : 0; in SplitParamAudioPcm()
485 paramOut[index].key = KEY_AUDIO_POINTS_PER_FRAME; in SplitParamAudioPcm()
486 paramOut[index].val = setMark ? (void *)&(param->nBitPerSample) : nullptr; in SplitParamAudioPcm()
487 paramOut[index].size = setMark ? sizeof(param->nBitPerSample) : 0; in SplitParamAudioPcm()
489 paramOut[index].key = KEY_AUDIO_SAMPLE_RATE; in SplitParamAudioPcm()
490 paramOut[index].val = setMark ? (void *)&(param->nSamplingRate) : nullptr; in SplitParamAudioPcm()
491 paramOut[index].size = setMark ? sizeof(param->nSamplingRate) : 0; in SplitParamAudioPcm()
497 static void SplitParamAudioAac(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setMark) in SplitParamAudioAac() argument
501 paramOut[index].key = KEY_AUDIO_CHANNEL_COUNT; in SplitParamAudioAac()
502 paramOut[index].val = setMark ? (void *)&(param->nChannels) : nullptr; in SplitParamAudioAac()
503 paramOut[index].size = setMark ? sizeof(param->nChannels) : 0; in SplitParamAudioAac()
505 paramOut[index].key = KEY_AUDIO_SAMPLE_RATE; in SplitParamAudioAac()
506 paramOut[index].val = setMark ? (void *)&(param->nSampleRate) : nullptr; in SplitParamAudioAac()
507 paramOut[index].size = setMark ? sizeof(param->nSampleRate) : 0; in SplitParamAudioAac()
509 paramOut[index].key = KEY_BITRATE; in SplitParamAudioAac()
510 paramOut[index].val = setMark ? (void *)&(param->nBitRate) : nullptr; in SplitParamAudioAac()
511 paramOut[index].size = setMark ? sizeof(param->nBitRate) : 0; in SplitParamAudioAac()
513 paramOut[index].key = KEY_AUDIO_PROFILE; in SplitParamAudioAac()
515 paramOut[index].val = setMark ? (void *)&(param->eAACProfile) : nullptr; in SplitParamAudioAac()
516 paramOut[index].size = setMark ? sizeof(param->eAACProfile) : 0; in SplitParamAudioAac()
518 paramOut[index].key = KEY_AUDIO_SOUND_MODE; in SplitParamAudioAac()
520 paramOut[index].val = setMark ? (void *)&(param->eChannelMode) : nullptr; in SplitParamAudioAac()
521 paramOut[index].size = setMark ? sizeof(param->eChannelMode) : 0; in SplitParamAudioAac()
527 static void SplitParamAudioMp3(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setMark) in SplitParamAudioMp3() argument
531 paramOut[index].key = KEY_AUDIO_CHANNEL_COUNT; in SplitParamAudioMp3()
532 paramOut[index].val = setMark ? (void *)&(param->nChannels) : nullptr; in SplitParamAudioMp3()
533 paramOut[index].size = setMark ? sizeof(param->nChannels) : 0; in SplitParamAudioMp3()
535 paramOut[index].key = KEY_AUDIO_SAMPLE_RATE; in SplitParamAudioMp3()
536 paramOut[index].val = setMark ? (void *)&(param->nSampleRate) : nullptr; in SplitParamAudioMp3()
537 paramOut[index].size = setMark ? sizeof(param->nSampleRate) : 0; in SplitParamAudioMp3()
539 paramOut[index].key = KEY_BITRATE; in SplitParamAudioMp3()
540 paramOut[index].val = setMark ? (void *)&(param->nBitRate) : nullptr; in SplitParamAudioMp3()
541 paramOut[index].size = setMark ? sizeof(param->nBitRate) : 0; in SplitParamAudioMp3()
543 paramOut[index].key = KEY_AUDIO_SOUND_MODE; in SplitParamAudioMp3()
545 paramOut[index].val = setMark ? (void *)&(param->eChannelMode) : nullptr; in SplitParamAudioMp3()
546 paramOut[index].size = setMark ? sizeof(param->eChannelMode) : 0; in SplitParamAudioMp3()
552 static void SplitParamAudioG726(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setMark) in SplitParamAudioG726() argument
556 paramOut[index].key = KEY_AUDIO_CHANNEL_COUNT; in SplitParamAudioG726()
557 paramOut[index].val = setMark ? (void *)&(param->nChannels) : nullptr; in SplitParamAudioG726()
558 paramOut[index].size = setMark ? sizeof(param->nChannels) : 0; in SplitParamAudioG726()
564 static void SplitParamImagePortFormat(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool set… in SplitParamImagePortFormat() argument
568 paramOut[index].key = KEY_MIMETYPE; in SplitParamImagePortFormat()
570 paramOut[index].val = setMark ? (void *)&(param->eCompressionFormat) : nullptr; in SplitParamImagePortFormat()
571 paramOut[index].size = setMark ? sizeof(param->eCompressionFormat) : 0; in SplitParamImagePortFormat()
575 paramOut[index].key = KEY_PIXEL_FORMAT; in SplitParamImagePortFormat()
576 paramOut[index].val = setMark ? (void *)&(param->eColorFormat) : nullptr; in SplitParamImagePortFormat()
577 paramOut[index].size = setMark ? sizeof(param->eColorFormat) : 0; in SplitParamImagePortFormat()
583 static void SplitParamQfactor(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setMark) in SplitParamQfactor() argument
587 paramOut[index].key = KEY_IMAGE_Q_FACTOR; in SplitParamQfactor()
588 paramOut[index].val = setMark ? (void *)&(param->nQFactor) : nullptr; in SplitParamQfactor()
589 paramOut[index].size = setMark ? sizeof(param->nQFactor) : 0; in SplitParamQfactor()
595 static void SplitParamVideoPortFormat(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool set… in SplitParamVideoPortFormat() argument
599 paramOut[index].key = KEY_MIMETYPE; in SplitParamVideoPortFormat()
601 paramOut[index].val = setMark ? (void *)&(param->eCompressionFormat) : nullptr; in SplitParamVideoPortFormat()
602 paramOut[index].size = setMark ? sizeof(param->eCompressionFormat) : 0; in SplitParamVideoPortFormat()
604 paramOut[index].key = KEY_VIDEO_FRAME_RATE; in SplitParamVideoPortFormat()
605 paramOut[index].val = setMark ? (void *)&(param->xFramerate) : nullptr; in SplitParamVideoPortFormat()
606 paramOut[index].size = setMark ? sizeof(param->xFramerate) : 0; in SplitParamVideoPortFormat()
610 paramOut[index].key = KEY_PIXEL_FORMAT; in SplitParamVideoPortFormat()
611 paramOut[index].val = setMark ? (void *)&(param->eColorFormat) : nullptr; in SplitParamVideoPortFormat()
612 paramOut[index].size = setMark ? sizeof(param->eColorFormat) : 0; in SplitParamVideoPortFormat()
619 static void SplitParamVideoAvc(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setMark) in SplitParamVideoAvc() argument
623 paramOut[index].key = KEY_VIDEO_PROFILE; in SplitParamVideoAvc()
625 paramOut[index].val = setMark ? (void *)&(param->eProfile) : nullptr; in SplitParamVideoAvc()
626 paramOut[index].size = setMark ? sizeof(param->eProfile) : 0; in SplitParamVideoAvc()
632 static void SplitParamVideoBitrate(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setMar… in SplitParamVideoBitrate() argument
636 paramOut[index].key = KEY_VIDEO_RC_MODE; in SplitParamVideoBitrate()
638 paramOut[index].val = setMark ? (void *)&(param->eControlRate) : nullptr; in SplitParamVideoBitrate()
639 paramOut[index].size = setMark ? sizeof(param->eControlRate) : 0; in SplitParamVideoBitrate()
645 static void SplitParamPassthrough(int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, bool setMark) in SplitParamPassthrough() argument
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()
657 int32_t SplitParam(int32_t paramIndex, int8_t *paramIn, Param *paramOut, int32_t ¶mCnt, CodecTy… in SplitParam() argument
659 if (paramIn == nullptr || paramOut == nullptr) { in SplitParam()
666 SplitParamPortDefinition(paramIn, paramOut, paramCnt, setMark, type); in SplitParam()
669 SplitParamAudioPortFormat(paramIn, paramOut, paramCnt, setMark); in SplitParam()
672 SplitParamAudioPcm(paramIn, paramOut, paramCnt, setMark); in SplitParam()
675 SplitParamAudioAac(paramIn, paramOut, paramCnt, setMark); in SplitParam()
678 SplitParamAudioMp3(paramIn, paramOut, paramCnt, setMark); in SplitParam()
681 SplitParamAudioG726(paramIn, paramOut, paramCnt, setMark); in SplitParam()
684 SplitParamImagePortFormat(paramIn, paramOut, paramCnt, setMark); in SplitParam()
687 SplitParamQfactor(paramIn, paramOut, paramCnt, setMark); in SplitParam()
690 SplitParamVideoPortFormat(paramIn, paramOut, paramCnt, setMark); in SplitParam()
693 SplitParamVideoAvc(paramIn, paramOut, paramCnt, setMark); in SplitParam()
696 SplitParamVideoBitrate(paramIn, paramOut, paramCnt, setMark); in SplitParam()
699 SplitParamPassthrough(paramIn, paramOut, paramCnt, setMark); in SplitParam()
753 static int32_t ParseParamPortDefinitionVideo(Param *paramIn, int8_t *paramOut, int32_t paramCnt, Co… in ParseParamPortDefinitionVideo() argument
755 … OMX_PARAM_PORTDEFINITIONTYPE *param = reinterpret_cast<OMX_PARAM_PORTDEFINITIONTYPE *>(paramOut); in ParseParamPortDefinitionVideo()
769 static int32_t ParseParamPortDefinitionAudio(Param *paramIn, int8_t *paramOut, int32_t paramCnt, Co… in ParseParamPortDefinitionAudio() argument
771 … OMX_PARAM_PORTDEFINITIONTYPE *param = reinterpret_cast<OMX_PARAM_PORTDEFINITIONTYPE *>(paramOut); in ParseParamPortDefinitionAudio()
805 static int32_t ParseParamPortDefinition(Param *paramIn, int8_t *paramOut, int32_t paramCnt, CodecEx… in ParseParamPortDefinition() argument
809 ret = ParseParamPortDefinitionVideo(paramIn, paramOut, paramCnt, info); in ParseParamPortDefinition()
811 ret = ParseParamPortDefinitionAudio(paramIn, paramOut, paramCnt, info); in ParseParamPortDefinition()
816 static int32_t ParseParamAudioPortFormat(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamAudioPortFormat() argument
818 …X_AUDIO_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_PORTFORMATTYPE *>(paramOut); in ParseParamAudioPortFormat()
836 static int32_t ParseParamAudioPcm(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamAudioPcm() argument
838 OMX_AUDIO_PARAM_PCMMODETYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_PCMMODETYPE *>(paramOut); in ParseParamAudioPcm()
866 static int32_t ParseParamAudioAac(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamAudioAac() argument
868 …X_AUDIO_PARAM_AACPROFILETYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_AACPROFILETYPE *>(paramOut); in ParseParamAudioAac()
904 static int32_t ParseParamAudioMp3(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamAudioMp3() argument
906 OMX_AUDIO_PARAM_MP3TYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_MP3TYPE *>(paramOut); in ParseParamAudioMp3()
938 static int32_t ParseParamAudioG726(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamAudioG726() argument
940 OMX_AUDIO_PARAM_G726TYPE *param = reinterpret_cast<OMX_AUDIO_PARAM_G726TYPE *>(paramOut); in ParseParamAudioG726()
957 static int32_t ParseParamImagePortFormat(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamImagePortFormat() argument
959 …X_IMAGE_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_IMAGE_PARAM_PORTFORMATTYPE *>(paramOut); in ParseParamImagePortFormat()
986 static int32_t ParseParamQfactor(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamQfactor() argument
988 OMX_IMAGE_PARAM_QFACTORTYPE *param = reinterpret_cast<OMX_IMAGE_PARAM_QFACTORTYPE *>(paramOut); in ParseParamQfactor()
1005 static int32_t ParseParamVideoPortFormat(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamVideoPortFormat() argument
1007 …X_VIDEO_PARAM_PORTFORMATTYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_PORTFORMATTYPE *>(paramOut); in ParseParamVideoPortFormat()
1037 static int32_t ParseParamVideoAvc(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamVideoAvc() argument
1039 OMX_VIDEO_PARAM_AVCTYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_AVCTYPE *>(paramOut); in ParseParamVideoAvc()
1057 static int32_t ParseParamVideoBitrate(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamVideoBitrate() argument
1059 OMX_VIDEO_PARAM_BITRATETYPE *param = reinterpret_cast<OMX_VIDEO_PARAM_BITRATETYPE *>(paramOut); in ParseParamVideoBitrate()
1076 static int32_t ParseParamPassthrough(Param *paramIn, int8_t *paramOut, int32_t paramCnt) in ParseParamPassthrough() argument
1078 PassthroughParam *param = reinterpret_cast<PassthroughParam *>(paramOut); in ParseParamPassthrough()
1090 int32_t ParseParam(int32_t paramIndex, Param *paramIn, int32_t paramCnt, int8_t *paramOut, CodecExI… in ParseParam() argument
1092 if (paramIn == nullptr || paramOut == nullptr) { in ParseParam()
1099 ret = ParseParamPortDefinition(paramIn, paramOut, paramCnt, info); in ParseParam()
1102 ret = ParseParamAudioPortFormat(paramIn, paramOut, paramCnt); in ParseParam()
1105 ret = ParseParamAudioPcm(paramIn, paramOut, paramCnt); in ParseParam()
1108 ret = ParseParamAudioAac(paramIn, paramOut, paramCnt); in ParseParam()
1111 ret = ParseParamAudioMp3(paramIn, paramOut, paramCnt); in ParseParam()
1114 ret = ParseParamAudioG726(paramIn, paramOut, paramCnt); in ParseParam()
1117 ret = ParseParamImagePortFormat(paramIn, paramOut, paramCnt); in ParseParam()
1120 ret = ParseParamQfactor(paramIn, paramOut, paramCnt); in ParseParam()
1123 ret = ParseParamVideoPortFormat(paramIn, paramOut, paramCnt); in ParseParam()
1126 ret = ParseParamVideoAvc(paramIn, paramOut, paramCnt); in ParseParam()
1129 ret = ParseParamVideoBitrate(paramIn, paramOut, paramCnt); in ParseParam()
1132 ret = ParseParamPassthrough(paramIn, paramOut, paramCnt); in ParseParam()