@@ -57,7 +57,7 @@ struct encoder_struct_svt
57
57
};
58
58
uint8_t tune = Tune_PSNR;
59
59
60
- heif_chroma chroma = heif_chroma_420;
60
+ heif_chroma chroma = heif_chroma_420; // SVT-AV1 only supports 4:2:0 as of v3.0.0
61
61
62
62
// --- output
63
63
@@ -205,6 +205,7 @@ static void svt_init_parameters()
205
205
d[i++] = p++;
206
206
#endif
207
207
208
+ #if 0
208
209
assert(i < MAX_NPARAMETERS);
209
210
p->version = 2;
210
211
p->name = kParam_chroma;
@@ -213,6 +214,7 @@ static void svt_init_parameters()
213
214
p->has_default = true;
214
215
p->string.valid_values = kParam_chroma_valid_values;
215
216
d[i++] = p++;
217
+ #endif
216
218
217
219
assert (i < MAX_NPARAMETERS);
218
220
p->version = 2 ;
@@ -470,6 +472,7 @@ struct heif_error svt_set_parameter_string(void* encoder_raw, const char* name,
470
472
{
471
473
auto * encoder = (struct encoder_struct_svt *) encoder_raw;
472
474
475
+ #if 0
473
476
if (strcmp(name, kParam_chroma) == 0) {
474
477
if (strcmp(value, "420") == 0) {
475
478
encoder->chroma = heif_chroma_420;
@@ -487,6 +490,7 @@ struct heif_error svt_set_parameter_string(void* encoder_raw, const char* name,
487
490
return heif_error_invalid_parameter_value;
488
491
}
489
492
}
493
+ #endif
490
494
491
495
if (strcmp (name, kParam_tune ) == 0 ) {
492
496
if (strcmp (value, " vq" ) == 0 ) {
@@ -519,6 +523,7 @@ struct heif_error svt_get_parameter_string(void* encoder_raw, const char* name,
519
523
{
520
524
auto * encoder = (struct encoder_struct_svt *) encoder_raw;
521
525
526
+ #if 0
522
527
if (strcmp(name, kParam_chroma) == 0) {
523
528
switch (encoder->chroma) {
524
529
case heif_chroma_420:
@@ -536,6 +541,7 @@ struct heif_error svt_get_parameter_string(void* encoder_raw, const char* name,
536
541
}
537
542
return heif_error_ok;
538
543
}
544
+ #endif
539
545
540
546
if (strcmp (name, kParam_tune ) == 0 ) {
541
547
switch (encoder->tune ) {
@@ -592,10 +598,10 @@ void svt_query_input_colorspace(heif_colorspace* colorspace, heif_chroma* chroma
592
598
593
599
void svt_query_input_colorspace2 (void * encoder_raw, heif_colorspace* colorspace, heif_chroma* chroma)
594
600
{
595
- auto * encoder = (struct encoder_struct_svt *) encoder_raw;
601
+ // auto* encoder = (struct encoder_struct_svt*) encoder_raw;
596
602
597
603
*colorspace = heif_colorspace_YCbCr;
598
- *chroma = encoder-> chroma ;
604
+ *chroma = heif_chroma_420 ;
599
605
}
600
606
601
607
0 commit comments