Samples - updates & fixes (#47)

* Samples - updates & fixes

* use std::cerr
Bu işleme şunda yer alıyor:
Aryan Salmanpour
2024-07-25 14:04:20 -04:00
işlemeyi yapan: GitHub
ebeveyn 92d545f42b
işleme 45b7944064
3 değiştirilmiş dosya ile 29 ekleme ve 6 silme
+10 -1
Dosyayı Görüntüle
@@ -104,7 +104,16 @@ int main(int argc, char **argv) {
CHECK_ROCJPEG(rocJpegGetImageInfo(rocjpeg_handle, rocjpeg_stream_handles[index], &num_components, &subsamplings[index], widths[index].data(), heights[index].data()));
rocjpeg_utils.GetChromaSubsamplingStr(subsamplings[index], chroma_sub_sampling);
if (subsamplings[index] == ROCJPEG_CSS_411) {
if (widths[index][0] < 64 || heights[index][0] < 64) {
std::cerr << "The image resolution is not supported by VCN Hardware" << std::endl;
if (is_dir) {
std::cout << std::endl;
continue;
} else
return EXIT_FAILURE;
}
if (subsamplings[index] == ROCJPEG_CSS_411 || subsamplings[index] == ROCJPEG_CSS_UNKNOWN) {
std::cerr << "The chroma sub-sampling is not supported by VCN Hardware" << std::endl;
if (is_dir) {
std::cout << std::endl;