Lines Matching refs:ConfigMapper
79 struct ConfigMapper { struct
88 ConfigMapper(std::string mediaKey, C2String c2struct, C2String c2field) in ConfigMapper() function
92 ConfigMapper &limitTo(uint32_t domain) { in limitTo() argument
99 ConfigMapper &withMapper(Mapper mapper) { in withMapper() argument
107 ConfigMapper &withMappers(Mapper mapper, Mapper reverse) { in withMappers() argument
117 ConfigMapper &withC2Mappers() { in withC2Mappers() argument
239 static const std::vector<ConfigMapper> NO_MAPPERS;
242 const std::vector<ConfigMapper> &getConfigMappersForSdkKey(std::string key) const { in getConfigMappersForSdkKey()
262 void add(const ConfigMapper &cm) { in add()
276 std::vector<ConfigMapper> eqs = { cm }; in add()
295 for (const ConfigMapper &cm : mappers) { in getPathsForDomain()
311 const std::map<SdkKey, std::vector<ConfigMapper>> getKeys() const { in getKeys()
316 std::map<SdkKey, std::vector<ConfigMapper>> mConfigMappers;
320 const std::vector<ConfigMapper> StandardParams::NO_MAPPERS;
332 std::function<void(const ConfigMapper &)> add = in initializeStandardParams()
333 [params = mStandardParams](const ConfigMapper &cm) { in initializeStandardParams()
336 std::function<void(const ConfigMapper &)> deprecated = add; in initializeStandardParams()
339 ConfigMapper::Mapper makeFloat = [](C2Value v) -> C2Value { in initializeStandardParams()
351 ConfigMapper::Mapper negate = [](C2Value v) -> C2Value { in initializeStandardParams()
359 add(ConfigMapper(KEY_MIME, C2_PARAMKEY_INPUT_MEDIA_TYPE, "value") in initializeStandardParams()
361 add(ConfigMapper(KEY_MIME, C2_PARAMKEY_OUTPUT_MEDIA_TYPE, "value") in initializeStandardParams()
364 add(ConfigMapper(KEY_BIT_RATE, C2_PARAMKEY_BITRATE, "value") in initializeStandardParams()
367 add(ConfigMapper(KEY_BIT_RATE, C2_PARAMKEY_BITRATE, "value") in initializeStandardParams()
370 add(ConfigMapper(KEY_MAX_BIT_RATE, C2_PARAMKEY_BITRATE, "value") in initializeStandardParams()
372 add(ConfigMapper(PARAMETER_KEY_VIDEO_BITRATE, C2_PARAMKEY_BITRATE, "value") in initializeStandardParams()
374 add(ConfigMapper(KEY_BITRATE_MODE, C2_PARAMKEY_BITRATE_MODE, "value") in initializeStandardParams()
378 deprecated(ConfigMapper(KEY_BITRATE_MODE, "coded.bitrate-mode", "value") in initializeStandardParams()
380 add(ConfigMapper(KEY_FRAME_RATE, C2_PARAMKEY_FRAME_RATE, "value") in initializeStandardParams()
391 add(ConfigMapper(KEY_MAX_INPUT_SIZE, C2_PARAMKEY_INPUT_MAX_BUFFER_SIZE, "value") in initializeStandardParams()
394 deprecated(ConfigMapper(KEY_MAX_INPUT_SIZE, "coded.max-frame-size", "value") in initializeStandardParams()
399 add(ConfigMapper(KEY_ROTATION, C2_PARAMKEY_VUI_ROTATION, "value") in initializeStandardParams()
402 add(ConfigMapper(KEY_ROTATION, C2_PARAMKEY_ROTATION, "value") in initializeStandardParams()
407 add(ConfigMapper("android._video-scaling", C2_PARAMKEY_SURFACE_SCALING_MODE, "value") in initializeStandardParams()
413 add(ConfigMapper(KEY_COLOR_RANGE, C2_PARAMKEY_DEFAULT_COLOR_ASPECTS, "range") in initializeStandardParams()
416 add(ConfigMapper(KEY_COLOR_TRANSFER, C2_PARAMKEY_DEFAULT_COLOR_ASPECTS, "transfer") in initializeStandardParams()
419 add(ConfigMapper("color-primaries", C2_PARAMKEY_DEFAULT_COLOR_ASPECTS, "primaries") in initializeStandardParams()
421 add(ConfigMapper("color-matrix", C2_PARAMKEY_DEFAULT_COLOR_ASPECTS, "matrix") in initializeStandardParams()
427 add(ConfigMapper("default-color-range", C2_PARAMKEY_DEFAULT_COLOR_ASPECTS, "range") in initializeStandardParams()
430 add(ConfigMapper("default-color-transfer", C2_PARAMKEY_DEFAULT_COLOR_ASPECTS, "transfer") in initializeStandardParams()
433 add(ConfigMapper("default-color-primaries", C2_PARAMKEY_DEFAULT_COLOR_ASPECTS, "primaries") in initializeStandardParams()
435 add(ConfigMapper("default-color-matrix", C2_PARAMKEY_DEFAULT_COLOR_ASPECTS, "matrix") in initializeStandardParams()
441 add(ConfigMapper(KEY_COLOR_RANGE, C2_PARAMKEY_COLOR_ASPECTS, "range") in initializeStandardParams()
444 add(ConfigMapper(KEY_COLOR_TRANSFER, C2_PARAMKEY_COLOR_ASPECTS, "transfer") in initializeStandardParams()
447 add(ConfigMapper("color-primaries", C2_PARAMKEY_COLOR_ASPECTS, "primaries") in initializeStandardParams()
449 add(ConfigMapper("color-matrix", C2_PARAMKEY_COLOR_ASPECTS, "matrix") in initializeStandardParams()
453 add(ConfigMapper("color-transfer-request", C2_PARAMKEY_COLOR_ASPECTS, "transfer") in initializeStandardParams()
459 add(ConfigMapper(KEY_COLOR_RANGE, C2_PARAMKEY_COLOR_ASPECTS, "range") in initializeStandardParams()
462 add(ConfigMapper(KEY_COLOR_TRANSFER, C2_PARAMKEY_COLOR_ASPECTS, "transfer") in initializeStandardParams()
465 add(ConfigMapper("color-primaries", C2_PARAMKEY_COLOR_ASPECTS, "primaries") in initializeStandardParams()
467 add(ConfigMapper("color-matrix", C2_PARAMKEY_COLOR_ASPECTS, "matrix") in initializeStandardParams()
472 add(ConfigMapper(KEY_COLOR_RANGE, C2_PARAMKEY_VUI_COLOR_ASPECTS, "range") in initializeStandardParams()
475 add(ConfigMapper(KEY_COLOR_TRANSFER, C2_PARAMKEY_VUI_COLOR_ASPECTS, "transfer") in initializeStandardParams()
478 add(ConfigMapper("color-primaries", C2_PARAMKEY_VUI_COLOR_ASPECTS, "primaries") in initializeStandardParams()
480 add(ConfigMapper("color-matrix", C2_PARAMKEY_VUI_COLOR_ASPECTS, "matrix") in initializeStandardParams()
484 add(ConfigMapper("android._dataspace", C2_PARAMKEY_DATA_SPACE, "value") in initializeStandardParams()
488 add(ConfigMapper("smpte2086.red.x", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.red.x") in initializeStandardParams()
490 add(ConfigMapper("smpte2086.red.y", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.red.y") in initializeStandardParams()
492 add(ConfigMapper("smpte2086.green.x", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.green.x") in initializeStandardParams()
494 add(ConfigMapper("smpte2086.green.y", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.green.y") in initializeStandardParams()
496 add(ConfigMapper("smpte2086.blue.x", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.blue.x") in initializeStandardParams()
498 add(ConfigMapper("smpte2086.blue.y", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.blue.y") in initializeStandardParams()
500 add(ConfigMapper("smpte2086.white.x", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.white.x") in initializeStandardParams()
502 add(ConfigMapper("smpte2086.white.y", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.white.y") in initializeStandardParams()
504 …add(ConfigMapper("smpte2086.max-luminance", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.max-luminance") in initializeStandardParams()
506 …add(ConfigMapper("smpte2086.min-luminance", C2_PARAMKEY_HDR_STATIC_INFO, "mastering.min-luminance") in initializeStandardParams()
508 add(ConfigMapper("cta861.max-cll", C2_PARAMKEY_HDR_STATIC_INFO, "max-cll") in initializeStandardParams()
510 add(ConfigMapper("cta861.max-fall", C2_PARAMKEY_HDR_STATIC_INFO, "max-fall") in initializeStandardParams()
513 add(ConfigMapper(std::string(KEY_FEATURE_) + FEATURE_SecurePlayback, in initializeStandardParams()
516 add(ConfigMapper(KEY_PREPEND_HEADER_TO_SYNC_FRAMES, in initializeStandardParams()
540 deprecated(ConfigMapper(KEY_PREPEND_HEADER_TO_SYNC_FRAMES, in initializeStandardParams()
544 add(ConfigMapper(KEY_I_FRAME_INTERVAL, C2_PARAMKEY_SYNC_FRAME_INTERVAL, "value") in initializeStandardParams()
558 deprecated(ConfigMapper("i-frame-period", "coding.gop", "intra-period") in initializeStandardParams()
560 add(ConfigMapper(KEY_INTRA_REFRESH_PERIOD, C2_PARAMKEY_INTRA_REFRESH, "period") in initializeStandardParams()
570 deprecated(ConfigMapper(PARAMETER_KEY_REQUEST_SYNC_FRAME, in initializeStandardParams()
574 add(ConfigMapper(PARAMETER_KEY_REQUEST_SYNC_FRAME, in initializeStandardParams()
579 add(ConfigMapper(KEY_OPERATING_RATE, C2_PARAMKEY_OPERATING_RATE, "value") in initializeStandardParams()
583 add(ConfigMapper(KEY_PRIORITY, C2_PARAMKEY_PRIORITY, "value") in initializeStandardParams()
586 deprecated(ConfigMapper(KEY_OPERATING_RATE, "ctrl.operating-rate", "value") in initializeStandardParams()
588 deprecated(ConfigMapper(KEY_PRIORITY, "ctrl.priority", "value")); in initializeStandardParams()
590 add(ConfigMapper(KEY_WIDTH, C2_PARAMKEY_PICTURE_SIZE, "width") in initializeStandardParams()
592 add(ConfigMapper(KEY_HEIGHT, C2_PARAMKEY_PICTURE_SIZE, "height") in initializeStandardParams()
595 add(ConfigMapper("crop-left", C2_PARAMKEY_CROP_RECT, "left") in initializeStandardParams()
597 add(ConfigMapper("crop-top", C2_PARAMKEY_CROP_RECT, "top") in initializeStandardParams()
599 add(ConfigMapper("crop-width", C2_PARAMKEY_CROP_RECT, "width") in initializeStandardParams()
601 add(ConfigMapper("crop-height", C2_PARAMKEY_CROP_RECT, "height") in initializeStandardParams()
604 add(ConfigMapper(KEY_MAX_WIDTH, C2_PARAMKEY_MAX_PICTURE_SIZE, "width") in initializeStandardParams()
606 add(ConfigMapper(KEY_MAX_HEIGHT, C2_PARAMKEY_MAX_PICTURE_SIZE, "height") in initializeStandardParams()
609 add(ConfigMapper("csd-0", C2_PARAMKEY_INIT_DATA, "value") in initializeStandardParams()
612 add(ConfigMapper(KEY_HDR10_PLUS_INFO, C2_PARAMKEY_INPUT_HDR10_PLUS_INFO, "value") in initializeStandardParams()
615 add(ConfigMapper(KEY_HDR10_PLUS_INFO, C2_PARAMKEY_OUTPUT_HDR10_PLUS_INFO, "value") in initializeStandardParams()
618 add(ConfigMapper(C2_PARAMKEY_TEMPORAL_LAYERING, C2_PARAMKEY_TEMPORAL_LAYERING, "") in initializeStandardParams()
623 add(ConfigMapper("android._color-format", C2_PARAMKEY_PIXEL_FORMAT, "value") in initializeStandardParams()
645 add(ConfigMapper(KEY_PIXEL_ASPECT_RATIO_WIDTH, C2_PARAMKEY_PIXEL_ASPECT_RATIO, "width") in initializeStandardParams()
647 add(ConfigMapper(KEY_PIXEL_ASPECT_RATIO_HEIGHT, C2_PARAMKEY_PIXEL_ASPECT_RATIO, "height") in initializeStandardParams()
650 add(ConfigMapper(KEY_CHANNEL_COUNT, C2_PARAMKEY_CHANNEL_COUNT, "value") in initializeStandardParams()
652 add(ConfigMapper(KEY_CHANNEL_COUNT, C2_PARAMKEY_CODED_CHANNEL_COUNT, "value") in initializeStandardParams()
655 add(ConfigMapper(KEY_SAMPLE_RATE, C2_PARAMKEY_SAMPLE_RATE, "value") in initializeStandardParams()
657 add(ConfigMapper(KEY_SAMPLE_RATE, C2_PARAMKEY_CODED_SAMPLE_RATE, "value") in initializeStandardParams()
660 add(ConfigMapper(KEY_PCM_ENCODING, C2_PARAMKEY_PCM_ENCODING, "value") in initializeStandardParams()
679 add(ConfigMapper(KEY_IS_ADTS, C2_PARAMKEY_AAC_PACKAGING, "value") in initializeStandardParams()
698 add(ConfigMapper(KEY_PROFILE, C2_PARAMKEY_PROFILE_LEVEL, "profile") in initializeStandardParams()
717 add(ConfigMapper(KEY_LEVEL, C2_PARAMKEY_PROFILE_LEVEL, "level") in initializeStandardParams()
736 add(ConfigMapper(KEY_AAC_PROFILE, C2_PARAMKEY_PROFILE_LEVEL, "profile") in initializeStandardParams()
748 …add(ConfigMapper(KEY_AAC_DRC_TARGET_REFERENCE_LEVEL, C2_PARAMKEY_DRC_TARGET_REFERENCE_LEVEL, "valu… in initializeStandardParams()
765 add(ConfigMapper(KEY_AAC_DRC_ATTENUATION_FACTOR, C2_PARAMKEY_DRC_ATTENUATION_FACTOR, "value") in initializeStandardParams()
784 add(ConfigMapper(KEY_AAC_DRC_BOOST_FACTOR, C2_PARAMKEY_DRC_BOOST_FACTOR, "value") in initializeStandardParams()
803 add(ConfigMapper(KEY_AAC_DRC_HEAVY_COMPRESSION, C2_PARAMKEY_DRC_COMPRESSION_MODE, "value") in initializeStandardParams()
814 add(ConfigMapper(KEY_AAC_ENCODED_TARGET_LEVEL, C2_PARAMKEY_DRC_ENCODED_TARGET_LEVEL, "value") in initializeStandardParams()
833 add(ConfigMapper(KEY_AAC_DRC_EFFECT_TYPE, C2_PARAMKEY_DRC_EFFECT_TYPE, "value") in initializeStandardParams()
856 add(ConfigMapper(KEY_AAC_DRC_ALBUM_MODE, C2_PARAMKEY_DRC_ALBUM_MODE, "value") in initializeStandardParams()
878 add(ConfigMapper(KEY_AAC_DRC_OUTPUT_LOUDNESS, C2_PARAMKEY_DRC_OUTPUT_LOUDNESS, "value") in initializeStandardParams()
894 add(ConfigMapper(KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT, C2_PARAMKEY_MAX_CHANNEL_COUNT, "value") in initializeStandardParams()
897 add(ConfigMapper(KEY_AAC_SBR_MODE, C2_PARAMKEY_AAC_SBR_MODE, "value") in initializeStandardParams()
912 add(ConfigMapper("android._encoding-quality-level", C2_PARAMKEY_ENCODING_QUALITY_LEVEL, "value") in initializeStandardParams()
914 add(ConfigMapper(KEY_QUALITY, C2_PARAMKEY_QUALITY, "value") in initializeStandardParams()
916 add(ConfigMapper(KEY_FLAC_COMPRESSION_LEVEL, C2_PARAMKEY_COMPLEXITY, "value") in initializeStandardParams()
918 add(ConfigMapper("complexity", C2_PARAMKEY_COMPLEXITY, "value") in initializeStandardParams()
921 add(ConfigMapper(KEY_GRID_COLUMNS, C2_PARAMKEY_TILE_LAYOUT, "columns") in initializeStandardParams()
923 add(ConfigMapper(KEY_GRID_ROWS, C2_PARAMKEY_TILE_LAYOUT, "rows") in initializeStandardParams()
925 add(ConfigMapper(KEY_TILE_WIDTH, C2_PARAMKEY_TILE_LAYOUT, "tile.width") in initializeStandardParams()
927 add(ConfigMapper(KEY_TILE_HEIGHT, C2_PARAMKEY_TILE_LAYOUT, "tile.height") in initializeStandardParams()
930 add(ConfigMapper(KEY_LATENCY, C2_PARAMKEY_PIPELINE_DELAY_REQUEST, "value") in initializeStandardParams()
933 add(ConfigMapper(C2_PARAMKEY_INPUT_TIME_STRETCH, C2_PARAMKEY_INPUT_TIME_STRETCH, "value")); in initializeStandardParams()
935 add(ConfigMapper(KEY_LOW_LATENCY, C2_PARAMKEY_LOW_LATENCY_MODE, "value") in initializeStandardParams()
943 add(ConfigMapper("android._trigger-tunnel-peek", C2_PARAMKEY_TUNNEL_START_RENDER, "value") in initializeStandardParams()
1231 for (const ConfigMapper &cm : mappers) { in getFormatForDomain()
1714 for (const ConfigMapper &cm : mStandardParams->getConfigMappersForSdkKey(name.c_str())) { in getReflectedFormat()