module Encoder:sig
..end
type
t
val create : Schroedinger.video_format -> t
val get_video_format : t -> Schroedinger.video_format
val encode_header : t -> Ogg.Stream.t -> unit
val encode_frame : t -> Schroedinger.frame -> Ogg.Stream.t -> unit
val encoded_of_granulepos : Int64.t -> t -> Int64.t
val eos : t -> Ogg.Stream.t -> unit
type
rate_control =
| |
Constant_noise_threshold |
| |
Constant_bitrate |
| |
Low_delay |
| |
Lossless |
| |
Constant_lambda |
| |
Constant_error |
type
gop_structure =
| |
Adaptive |
| |
Intra_only |
| |
Backref |
| |
Chained_backref |
| |
Biref |
| |
Chained_biref |
type
perceptual_weighting =
| |
None |
| |
Ccir959 |
| |
Moo |
| |
Manos_sakrison |
type
filtering =
| |
None |
| |
Center_weighted_median |
| |
Gaussian |
| |
Add_noise |
| |
Adaptive_gaussian |
type
wavelet =
| |
Desl_dubuc_9_7 |
| |
Le_gall_5_3 |
| |
Desl_dubuc_13_7 |
| |
Haar_0 |
| |
Haar_1 |
| |
Fidelity |
| |
Daub_9_7 |
type
block_size =
| |
Automatic |
| |
Small |
| |
Medium |
| |
Large |
type
block_overlap =
| |
Automatic |
| |
None |
| |
Partial |
| |
Full |
type
settings = {
|
rate_control : |
|
bitrate : |
|
max_bitrate : |
|
min_bitrate : |
|
buffer_size : |
|
buffer_level : |
|
noise_threshold : |
|
gop_structure : |
|
queue_depth : |
|
perceptual_weighting : |
|
perceptual_distance : |
|
filtering : |
|
filter_value : |
|
profile : |
|
level : |
|
au_distance : |
|
enable_psnr : |
|
enable_ssim : |
|
ref_distance : |
|
transform_depth : |
|
intra_wavelet : |
|
inter_wavelet : |
|
mv_precision : |
|
motion_block_size : |
|
motion_block_overlap : |
|
interlaced_coding : |
|
enable_internal_testing : |
|
enable_noarith : |
|
enable_md5 : |
|
enable_fullscan_estimation : |
|
enable_hierarchical_estimation : |
|
enable_zero_estimation : |
|
enable_phasecorr_estimation : |
|
enable_bigblock_estimation : |
|
horiz_slices : |
|
vert_slices : |
|
magic_dc_metric_offset : |
|
magic_subband0_lambda_scale : |
|
magic_chroma_lambda_scale : |
|
magic_nonref_lambda_scale : |
|
magic_allocation_scale : |
|
magic_keyframe_weight : |
|
magic_scene_change_threshold : |
|
magic_inter_p_weight : |
|
magic_inter_b_weight : |
|
magic_mc_bailout_limit : |
|
magic_bailout_weight : |
|
magic_error_power : |
|
magic_mc_lambda : |
|
magic_subgroup_length : |
|
magic_lambda : |
val get_settings : t -> settings
val set_settings : t -> settings -> unit