Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_scene_types.h
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | typedef struct QuicktimeCodecSettings { | ||||
| int audioSampleRate; | int audioSampleRate; | ||||
| short audioBitDepth; | short audioBitDepth; | ||||
| short audioChannels; | short audioChannels; | ||||
| int audioCodecFlags; | int audioCodecFlags; | ||||
| int audioBitRate; | int audioBitRate; | ||||
| int pad1; | int pad1; | ||||
| } QuicktimeCodecSettings; | } QuicktimeCodecSettings; | ||||
| typedef enum FFMpegPreset { | |||||
| FFM_PRESET_NONE, | |||||
| FFM_PRESET_ULTRAFAST, | |||||
| FFM_PRESET_SUPERFAST, | |||||
| FFM_PRESET_VERYFAST, | |||||
| FFM_PRESET_FASTER, | |||||
| FFM_PRESET_FAST, | |||||
| FFM_PRESET_MEDIUM, | |||||
| FFM_PRESET_SLOW, | |||||
| FFM_PRESET_SLOWER, | |||||
| FFM_PRESET_VERYSLOW, | |||||
| } FFMpegPreset; | |||||
| /* Mapping from easily-understandable descriptions to CRF values. | |||||
| * Assumes we output 8-bit video. Needs to be remapped if 10-bit | |||||
| * is output. | |||||
| * We use a slightly wider than "subjectively sane range" according | |||||
| * to https://trac.ffmpeg.org/wiki/Encode/H.264#a1.ChooseaCRFvalue | |||||
| */ | |||||
| typedef enum FFMpegCrf { | |||||
| FFM_CRF_NONE = -1, | |||||
| FFM_CRF_LOSSLESS = 0, | |||||
| FFM_CRF_PERC_LOSSLESS = 17, | |||||
| FFM_CRF_HIGH = 20, | |||||
| FFM_CRF_MEDIUM = 23, | |||||
| FFM_CRF_LOW = 26, | |||||
| FFM_CRF_VERYLOW = 29, | |||||
| FFM_CRF_LOWEST = 32, | |||||
| } FFMpegCrf; | |||||
| typedef struct FFMpegCodecData { | typedef struct FFMpegCodecData { | ||||
| int type; | int type; | ||||
| int codec; | int codec; | ||||
| int audio_codec; | int audio_codec; | ||||
| int video_bitrate; | int video_bitrate; | ||||
| int audio_bitrate; | int audio_bitrate; | ||||
| int audio_mixrate; | int audio_mixrate; | ||||
| int audio_channels; | int audio_channels; | ||||
| int audio_pad; | int audio_pad; | ||||
| float audio_volume; | float audio_volume; | ||||
| int gop_size; | int gop_size; | ||||
| int max_b_frames; /* only used if FFMPEG_USE_MAX_B_FRAMES flag is set. */ | |||||
| int flags; | int flags; | ||||
| int constant_rate_factor; | |||||
| int ffmpeg_preset; /* see FFMpegPreset */ | |||||
| int rc_min_rate; | int rc_min_rate; | ||||
| int rc_max_rate; | int rc_max_rate; | ||||
| int rc_buffer_size; | int rc_buffer_size; | ||||
| int mux_packet_size; | int mux_packet_size; | ||||
| int mux_rate; | int mux_rate; | ||||
| int pad1; | |||||
| IDProperty *properties; | IDProperty *properties; | ||||
| } FFMpegCodecData; | } FFMpegCodecData; | ||||
| /* ************************************************************* */ | /* ************************************************************* */ | ||||
| /* Audio */ | /* Audio */ | ||||
| typedef struct AudioData { | typedef struct AudioData { | ||||
| int mixrate; // 2.5: now in FFMpegCodecData: audio_mixrate | int mixrate; // 2.5: now in FFMpegCodecData: audio_mixrate | ||||
| ▲ Show 20 Lines • Show All 1,813 Lines • ▼ Show 20 Lines | |||||
| #define AUDIO_VOLUME_ANIMATED (1<<3) | #define AUDIO_VOLUME_ANIMATED (1<<3) | ||||
| enum { | enum { | ||||
| #ifdef DNA_DEPRECATED | #ifdef DNA_DEPRECATED | ||||
| FFMPEG_MULTIPLEX_AUDIO = 1, /* deprecated, you can choose none as audiocodec now */ | FFMPEG_MULTIPLEX_AUDIO = 1, /* deprecated, you can choose none as audiocodec now */ | ||||
| #endif | #endif | ||||
| FFMPEG_AUTOSPLIT_OUTPUT = 2, | FFMPEG_AUTOSPLIT_OUTPUT = 2, | ||||
| FFMPEG_LOSSLESS_OUTPUT = 4, | FFMPEG_LOSSLESS_OUTPUT = 4, | ||||
| FFMPEG_USE_MAX_B_FRAMES = (1 << 3), | |||||
| }; | }; | ||||
| /* Paint.flags */ | /* Paint.flags */ | ||||
| typedef enum { | typedef enum { | ||||
| PAINT_SHOW_BRUSH = (1 << 0), | PAINT_SHOW_BRUSH = (1 << 0), | ||||
| PAINT_FAST_NAVIGATE = (1 << 1), | PAINT_FAST_NAVIGATE = (1 << 1), | ||||
| PAINT_SHOW_BRUSH_ON_SURFACE = (1 << 2), | PAINT_SHOW_BRUSH_ON_SURFACE = (1 << 2), | ||||
| PAINT_USE_CAVITY_MASK = (1 << 3) | PAINT_USE_CAVITY_MASK = (1 << 3) | ||||
| ▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines | |||||