import type {StillImageFormat, VideoImageFormat} from '@remotion/renderer'; import React from 'react'; import {VERTICAL_SCROLLBAR_CLASSNAME} from '../Menu/is-menu-item'; import type {SegmentedControlItem} from '../SegmentedControl'; import {SegmentedControl} from '../SegmentedControl'; import {JpegQualitySetting} from './JpegQualitySetting'; import {label, optionRow, rightRow} from './layout'; import type {RenderType} from './RenderModalAdvanced'; import {RenderModalHr} from './RenderModalHr'; import {ScaleSetting} from './ScaleSetting'; const container: React.CSSProperties = { flex: 1, overflowY: 'auto', }; export const RenderModalPicture: React.FC<{ readonly renderMode: RenderType; readonly scale: number; readonly setScale: React.Dispatch>; readonly imageFormatOptions: SegmentedControlItem[]; readonly videoImageFormat: VideoImageFormat; readonly usesSharedMemoryCapture: boolean; readonly stillImageFormat: StillImageFormat; readonly setJpegQuality: React.Dispatch>; readonly jpegQuality: number; readonly compositionWidth: number; readonly compositionHeight: number; }> = ({ renderMode, scale, setScale, imageFormatOptions, videoImageFormat, usesSharedMemoryCapture, setJpegQuality, jpegQuality, stillImageFormat, compositionWidth, compositionHeight, }) => { return (
{renderMode === 'video' && !usesSharedMemoryCapture ? (
Image Format
) : null} {renderMode === 'video' && !usesSharedMemoryCapture && videoImageFormat === 'jpeg' ? ( ) : null} {renderMode === 'still' && stillImageFormat === 'jpeg' ? ( ) : null} {renderMode === 'video' && !usesSharedMemoryCapture ? ( ) : null}
); };