Lines Matching full:status
133 uhdr_error_info_t status; in apply_effects() local
134 status.error_code = UHDR_CODEC_INVALID_PARAM; in apply_effects()
135 status.has_detail = 1; in apply_effects()
136 snprintf(status.detail, sizeof status.detail, in apply_effects()
140 return status; in apply_effects()
147 uhdr_error_info_t status; in apply_effects() local
148 status.error_code = UHDR_CODEC_INVALID_PARAM; in apply_effects()
149 status.has_detail = 1; in apply_effects()
150 snprintf(status.detail, sizeof status.detail, in apply_effects()
154 return status; in apply_effects()
167 uhdr_error_info_t status; in apply_effects() local
168 status.error_code = UHDR_CODEC_INVALID_PARAM; in apply_effects()
169 snprintf(status.detail, sizeof status.detail, in apply_effects()
173 return status; in apply_effects()
187 uhdr_error_info_t status; in apply_effects() local
188 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in apply_effects()
189 status.has_detail = 1; in apply_effects()
190 snprintf(status.detail, sizeof status.detail, in apply_effects()
192 return status; in apply_effects()
237 uhdr_error_info_t status; in apply_effects() local
238 status.error_code = UHDR_CODEC_INVALID_PARAM; in apply_effects()
239 status.has_detail = 1; in apply_effects()
241 status.detail, sizeof status.detail, in apply_effects()
244 return status; in apply_effects()
250 uhdr_error_info_t status; in apply_effects() local
251 status.error_code = UHDR_CODEC_INVALID_PARAM; in apply_effects()
252 status.has_detail = 1; in apply_effects()
254 status.detail, sizeof status.detail, in apply_effects()
257 return status; in apply_effects()
265 uhdr_error_info_t status; in apply_effects() local
266 status.error_code = UHDR_CODEC_INVALID_PARAM; in apply_effects()
267 status.has_detail = 1; in apply_effects()
268 snprintf(status.detail, sizeof status.detail, in apply_effects()
272 return status; in apply_effects()
278 uhdr_error_info_t status; in apply_effects() local
279 status.error_code = UHDR_CODEC_INVALID_PARAM; in apply_effects()
280 status.has_detail = 1; in apply_effects()
281 snprintf(status.detail, sizeof status.detail, in apply_effects()
285 return status; in apply_effects()
302 uhdr_error_info_t status; in apply_effects() local
303 status.error_code = UHDR_CODEC_INVALID_PARAM; in apply_effects()
304 snprintf(status.detail, sizeof status.detail, in apply_effects()
308 return status; in apply_effects()
317 uhdr_error_info_t status; in apply_effects() local
318 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in apply_effects()
319 status.has_detail = 1; in apply_effects()
320 snprintf(status.detail, sizeof status.detail, in apply_effects()
322 return status; in apply_effects()
394 uhdr_error_info_t& status) { in map_internal_error_status_to_error_info() argument
396 status = g_no_error; in map_internal_error_status_to_error_info()
398 status.has_detail = 1; in map_internal_error_status_to_error_info()
400 status.error_code = UHDR_CODEC_INVALID_PARAM; in map_internal_error_status_to_error_info()
401 snprintf(status.detail, sizeof status.detail, in map_internal_error_status_to_error_info()
404 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in map_internal_error_status_to_error_info()
405 snprintf(status.detail, sizeof status.detail, "encountered unknown error during encoding"); in map_internal_error_status_to_error_info()
407 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in map_internal_error_status_to_error_info()
408 snprintf(status.detail, sizeof status.detail, "encountered unknown error during decoding"); in map_internal_error_status_to_error_info()
410 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in map_internal_error_status_to_error_info()
411 snprintf(status.detail, sizeof status.detail, "input uhdr image does not any valid images"); in map_internal_error_status_to_error_info()
413 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in map_internal_error_status_to_error_info()
414 snprintf(status.detail, sizeof status.detail, in map_internal_error_status_to_error_info()
417 status.error_code = UHDR_CODEC_MEM_ERROR; in map_internal_error_status_to_error_info()
418 snprintf(status.detail, sizeof status.detail, in map_internal_error_status_to_error_info()
421 status.error_code = UHDR_CODEC_INVALID_OPERATION; in map_internal_error_status_to_error_info()
422 snprintf(status.detail, sizeof status.detail, in map_internal_error_status_to_error_info()
426 status.error_code = UHDR_CODEC_UNSUPPORTED_FEATURE; in map_internal_error_status_to_error_info()
427 snprintf(status.detail, sizeof status.detail, in map_internal_error_status_to_error_info()
431 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in map_internal_error_status_to_error_info()
432 status.has_detail = 0; in map_internal_error_status_to_error_info()
440 uhdr_error_info_t status = g_no_error; in uhdr_enc_validate_and_set_compressed_img() local
443 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_validate_and_set_compressed_img()
444 status.has_detail = 1; in uhdr_enc_validate_and_set_compressed_img()
445 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_enc_validate_and_set_compressed_img()
447 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_validate_and_set_compressed_img()
448 status.has_detail = 1; in uhdr_enc_validate_and_set_compressed_img()
449 snprintf(status.detail, sizeof status.detail, "received nullptr for compressed image handle"); in uhdr_enc_validate_and_set_compressed_img()
451 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_validate_and_set_compressed_img()
452 status.has_detail = 1; in uhdr_enc_validate_and_set_compressed_img()
453 snprintf(status.detail, sizeof status.detail, in uhdr_enc_validate_and_set_compressed_img()
456 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_validate_and_set_compressed_img()
457 status.has_detail = 1; in uhdr_enc_validate_and_set_compressed_img()
458 snprintf(status.detail, sizeof status.detail, "img->capacity %d is less than img->data_sz %d", in uhdr_enc_validate_and_set_compressed_img()
461 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_enc_validate_and_set_compressed_img()
465 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_enc_validate_and_set_compressed_img()
466 status.has_detail = 1; in uhdr_enc_validate_and_set_compressed_img()
467 snprintf(status.detail, sizeof status.detail, in uhdr_enc_validate_and_set_compressed_img()
470 return status; in uhdr_enc_validate_and_set_compressed_img()
479 return status; in uhdr_enc_validate_and_set_compressed_img()
500 uhdr_error_info_t status = g_no_error; in uhdr_enc_set_raw_image() local
503 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
504 status.has_detail = 1; in uhdr_enc_set_raw_image()
505 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_enc_set_raw_image()
507 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
508 status.has_detail = 1; in uhdr_enc_set_raw_image()
509 snprintf(status.detail, sizeof status.detail, "received nullptr for raw image handle"); in uhdr_enc_set_raw_image()
511 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
512 status.has_detail = 1; in uhdr_enc_set_raw_image()
513 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
517 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
518 status.has_detail = 1; in uhdr_enc_set_raw_image()
519 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
525 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
526 status.has_detail = 1; in uhdr_enc_set_raw_image()
527 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
533 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
534 status.has_detail = 1; in uhdr_enc_set_raw_image()
535 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
540 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
541 status.has_detail = 1; in uhdr_enc_set_raw_image()
542 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
546 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
547 status.has_detail = 1; in uhdr_enc_set_raw_image()
548 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
553 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
554 status.has_detail = 1; in uhdr_enc_set_raw_image()
555 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
558 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
559 status.has_detail = 1; in uhdr_enc_set_raw_image()
560 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
564 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
565 status.has_detail = 1; in uhdr_enc_set_raw_image()
566 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
571 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
572 status.has_detail = 1; in uhdr_enc_set_raw_image()
573 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
577 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
578 status.has_detail = 1; in uhdr_enc_set_raw_image()
579 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
583 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
584 status.has_detail = 1; in uhdr_enc_set_raw_image()
585 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
592 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
593 status.has_detail = 1; in uhdr_enc_set_raw_image()
594 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
598 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
599 status.has_detail = 1; in uhdr_enc_set_raw_image()
600 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
604 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
605 status.has_detail = 1; in uhdr_enc_set_raw_image()
606 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
610 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
611 status.has_detail = 1; in uhdr_enc_set_raw_image()
612 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
617 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_enc_set_raw_image()
624 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
625 status.has_detail = 1; in uhdr_enc_set_raw_image()
626 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
629 return status; in uhdr_enc_set_raw_image()
636 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_raw_image()
637 status.has_detail = 1; in uhdr_enc_set_raw_image()
638 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
641 return status; in uhdr_enc_set_raw_image()
645 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_enc_set_raw_image()
646 status.has_detail = 1; in uhdr_enc_set_raw_image()
647 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
650 return status; in uhdr_enc_set_raw_image()
655 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in uhdr_enc_set_raw_image()
656 status.has_detail = 1; in uhdr_enc_set_raw_image()
657 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_raw_image()
659 return status; in uhdr_enc_set_raw_image()
664 return status; in uhdr_enc_set_raw_image()
670 uhdr_error_info_t status = g_no_error; in uhdr_enc_set_compressed_image() local
673 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_compressed_image()
674 status.has_detail = 1; in uhdr_enc_set_compressed_image()
675 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_compressed_image()
686 uhdr_error_info_t status = g_no_error; in uhdr_enc_set_gainmap_image() local
689 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_gainmap_image()
690 status.has_detail = 1; in uhdr_enc_set_gainmap_image()
691 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_gainmap_image()
694 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_gainmap_image()
695 status.has_detail = 1; in uhdr_enc_set_gainmap_image()
696 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_gainmap_image()
700 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_gainmap_image()
701 status.has_detail = 1; in uhdr_enc_set_gainmap_image()
702 snprintf(status.detail, sizeof status.detail, "received bad value for gamma %f, expects > 0.0f", in uhdr_enc_set_gainmap_image()
705 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_gainmap_image()
706 status.has_detail = 1; in uhdr_enc_set_gainmap_image()
707 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_gainmap_image()
710 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_gainmap_image()
711 status.has_detail = 1; in uhdr_enc_set_gainmap_image()
712 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_gainmap_image()
715 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_gainmap_image()
716 status.has_detail = 1; in uhdr_enc_set_gainmap_image()
717 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_gainmap_image()
721 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_gainmap_image()
722 status.has_detail = 1; in uhdr_enc_set_gainmap_image()
723 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_gainmap_image()
727 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_enc_set_gainmap_image()
729 status = uhdr_enc_validate_and_set_compressed_img(enc, img, UHDR_GAIN_MAP_IMG); in uhdr_enc_set_gainmap_image()
730 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_enc_set_gainmap_image()
735 return status; in uhdr_enc_set_gainmap_image()
740 uhdr_error_info_t status = g_no_error; in uhdr_enc_set_quality() local
743 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_quality()
744 status.has_detail = 1; in uhdr_enc_set_quality()
745 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_enc_set_quality()
747 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_quality()
748 status.has_detail = 1; in uhdr_enc_set_quality()
749 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_quality()
753 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_quality()
754 status.has_detail = 1; in uhdr_enc_set_quality()
755 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_quality()
760 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_enc_set_quality()
764 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_enc_set_quality()
765 status.has_detail = 1; in uhdr_enc_set_quality()
766 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_quality()
769 return status; in uhdr_enc_set_quality()
774 return status; in uhdr_enc_set_quality()
778 uhdr_error_info_t status = g_no_error; in uhdr_enc_set_exif_data() local
781 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_exif_data()
782 status.has_detail = 1; in uhdr_enc_set_exif_data()
783 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_enc_set_exif_data()
785 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_exif_data()
786 status.has_detail = 1; in uhdr_enc_set_exif_data()
787 snprintf(status.detail, sizeof status.detail, "received nullptr for exif image handle"); in uhdr_enc_set_exif_data()
789 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_exif_data()
790 status.has_detail = 1; in uhdr_enc_set_exif_data()
791 snprintf(status.detail, sizeof status.detail, "received nullptr for exif->data field"); in uhdr_enc_set_exif_data()
793 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_exif_data()
794 status.has_detail = 1; in uhdr_enc_set_exif_data()
795 snprintf(status.detail, sizeof status.detail, "exif->capacity %d is less than exif->data_sz %d", in uhdr_enc_set_exif_data()
798 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_enc_set_exif_data()
802 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_enc_set_exif_data()
803 status.has_detail = 1; in uhdr_enc_set_exif_data()
804 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_exif_data()
807 return status; in uhdr_enc_set_exif_data()
814 return status; in uhdr_enc_set_exif_data()
818 uhdr_error_info_t status = g_no_error; in uhdr_enc_set_output_format() local
821 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_enc_set_output_format()
822 status.has_detail = 1; in uhdr_enc_set_output_format()
823 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_enc_set_output_format()
825 status.error_code = UHDR_CODEC_UNSUPPORTED_FEATURE; in uhdr_enc_set_output_format()
826 status.has_detail = 1; in uhdr_enc_set_output_format()
827 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_output_format()
830 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_enc_set_output_format()
834 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_enc_set_output_format()
835 status.has_detail = 1; in uhdr_enc_set_output_format()
836 snprintf(status.detail, sizeof status.detail, in uhdr_enc_set_output_format()
839 return status; in uhdr_enc_set_output_format()
844 return status; in uhdr_enc_set_output_format()
849 uhdr_error_info_t status; in uhdr_encode() local
850 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_encode()
851 status.has_detail = 1; in uhdr_encode()
852 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_encode()
853 return status; in uhdr_encode()
864 uhdr_error_info_t& status = handle->m_encode_call_status; in uhdr_encode() local
869 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_encode()
870 status.has_detail = 1; in uhdr_encode()
871 snprintf(status.detail, sizeof status.detail, in uhdr_encode()
873 return status; in uhdr_encode()
880 status = ultrahdr::apply_effects(handle); in uhdr_encode()
881 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_encode()
887 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_encode()
888 status.has_detail = 1; in uhdr_encode()
889 snprintf(status.detail, sizeof status.detail, in uhdr_encode()
891 return status; in uhdr_encode()
896 status = ultrahdr::apply_effects(handle); in uhdr_encode()
897 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_encode()
901 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_encode()
902 status.has_detail = 1; in uhdr_encode()
903 snprintf(status.detail, sizeof status.detail, in uhdr_encode()
905 return status; in uhdr_encode()
956 map_internal_error_status_to_error_info(internal_status, status); in uhdr_encode()
1029 map_internal_error_status_to_error_info(internal_status, status); in uhdr_encode()
1031 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_encode()
1032 status.has_detail = 1; in uhdr_encode()
1033 snprintf(status.detail, sizeof status.detail, in uhdr_encode()
1036 if (status.error_code == UHDR_CODEC_OK) { in uhdr_encode()
1042 return status; in uhdr_encode()
1084 uhdr_error_info_t status = (x); \ in is_uhdr_image()
1085 if (status.error_code != UHDR_CODEC_OK) { \ in is_uhdr_image()
1126 uhdr_error_info_t status = g_no_error; in uhdr_dec_set_image() local
1129 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_image()
1130 status.has_detail = 1; in uhdr_dec_set_image()
1131 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_dec_set_image()
1133 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_image()
1134 status.has_detail = 1; in uhdr_dec_set_image()
1135 snprintf(status.detail, sizeof status.detail, "received nullptr for compressed image handle"); in uhdr_dec_set_image()
1137 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_image()
1138 status.has_detail = 1; in uhdr_dec_set_image()
1139 snprintf(status.detail, sizeof status.detail, in uhdr_dec_set_image()
1142 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_image()
1143 status.has_detail = 1; in uhdr_dec_set_image()
1144 snprintf(status.detail, sizeof status.detail, "img->capacity %d is less than img->data_sz %d", in uhdr_dec_set_image()
1147 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_dec_set_image()
1151 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_dec_set_image()
1152 status.has_detail = 1; in uhdr_dec_set_image()
1153 snprintf(status.detail, sizeof status.detail, in uhdr_dec_set_image()
1156 return status; in uhdr_dec_set_image()
1164 return status; in uhdr_dec_set_image()
1168 uhdr_error_info_t status = g_no_error; in uhdr_dec_set_out_img_format() local
1171 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_out_img_format()
1172 status.has_detail = 1; in uhdr_dec_set_out_img_format()
1173 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_dec_set_out_img_format()
1176 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_out_img_format()
1177 status.has_detail = 1; in uhdr_dec_set_out_img_format()
1178 snprintf(status.detail, sizeof status.detail, in uhdr_dec_set_out_img_format()
1183 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_dec_set_out_img_format()
1187 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_dec_set_out_img_format()
1188 status.has_detail = 1; in uhdr_dec_set_out_img_format()
1189 snprintf(status.detail, sizeof status.detail, in uhdr_dec_set_out_img_format()
1192 return status; in uhdr_dec_set_out_img_format()
1197 return status; in uhdr_dec_set_out_img_format()
1202 uhdr_error_info_t status = g_no_error; in uhdr_dec_set_out_color_transfer() local
1205 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_out_color_transfer()
1206 status.has_detail = 1; in uhdr_dec_set_out_color_transfer()
1207 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_dec_set_out_color_transfer()
1209 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_out_color_transfer()
1210 status.has_detail = 1; in uhdr_dec_set_out_color_transfer()
1211 snprintf(status.detail, sizeof status.detail, in uhdr_dec_set_out_color_transfer()
1216 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_dec_set_out_color_transfer()
1220 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_dec_set_out_color_transfer()
1221 status.has_detail = 1; in uhdr_dec_set_out_color_transfer()
1222 snprintf(status.detail, sizeof status.detail, in uhdr_dec_set_out_color_transfer()
1225 return status; in uhdr_dec_set_out_color_transfer()
1230 return status; in uhdr_dec_set_out_color_transfer()
1235 uhdr_error_info_t status = g_no_error; in uhdr_dec_set_out_max_display_boost() local
1238 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_out_max_display_boost()
1239 status.has_detail = 1; in uhdr_dec_set_out_max_display_boost()
1240 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_dec_set_out_max_display_boost()
1242 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_set_out_max_display_boost()
1243 status.has_detail = 1; in uhdr_dec_set_out_max_display_boost()
1244 snprintf(status.detail, sizeof status.detail, in uhdr_dec_set_out_max_display_boost()
1247 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_dec_set_out_max_display_boost()
1251 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_dec_set_out_max_display_boost()
1252 status.has_detail = 1; in uhdr_dec_set_out_max_display_boost()
1253 snprintf(status.detail, sizeof status.detail, in uhdr_dec_set_out_max_display_boost()
1256 return status; in uhdr_dec_set_out_max_display_boost()
1261 return status; in uhdr_dec_set_out_max_display_boost()
1266 uhdr_error_info_t status; in uhdr_dec_probe() local
1267 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_dec_probe()
1268 status.has_detail = 1; in uhdr_dec_probe()
1269 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_dec_probe()
1270 return status; in uhdr_dec_probe()
1274 uhdr_error_info_t& status = handle->m_probe_call_status; in uhdr_dec_probe() local
1280 status.error_code = UHDR_CODEC_INVALID_OPERATION; in uhdr_dec_probe()
1281 status.has_detail = 1; in uhdr_dec_probe()
1282 snprintf(status.detail, sizeof status.detail, "did not receive any image for decoding"); in uhdr_dec_probe()
1283 return status; in uhdr_dec_probe()
1299 map_internal_error_status_to_error_info(internal_status, status); in uhdr_dec_probe()
1300 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_dec_probe()
1313 status.error_code = UHDR_CODEC_UNKNOWN_ERROR; in uhdr_dec_probe()
1314 status.has_detail = 1; in uhdr_dec_probe()
1315 snprintf(status.detail, sizeof status.detail, "encountered error while parsing metadata"); in uhdr_dec_probe()
1316 return status; in uhdr_dec_probe()
1333 return status; in uhdr_dec_probe()
1429 uhdr_error_info_t status; in uhdr_decode() local
1430 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_decode()
1431 status.has_detail = 1; in uhdr_decode()
1432 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_decode()
1433 return status; in uhdr_decode()
1442 uhdr_error_info_t& status = handle->m_decode_call_status; in uhdr_decode() local
1443 status = uhdr_dec_probe(dec); in uhdr_decode()
1444 if (status.error_code != UHDR_CODEC_OK) return status; in uhdr_decode()
1451 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_decode()
1452 status.has_detail = 1; in uhdr_decode()
1453 snprintf(status.detail, sizeof status.detail, in uhdr_decode()
1455 return status; in uhdr_decode()
1482 map_internal_error_status_to_error_info(internal_status, status); in uhdr_decode()
1483 if (status.error_code == UHDR_CODEC_OK) { in uhdr_decode()
1487 if (status.error_code == UHDR_CODEC_OK && dec->m_effects.size() != 0) { in uhdr_decode()
1488 status = ultrahdr::apply_effects(handle); in uhdr_decode()
1491 return status; in uhdr_decode()
1555 uhdr_error_info_t status = g_no_error; in uhdr_add_effect_mirror() local
1558 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_add_effect_mirror()
1559 status.has_detail = 1; in uhdr_add_effect_mirror()
1560 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_add_effect_mirror()
1561 return status; in uhdr_add_effect_mirror()
1565 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_add_effect_mirror()
1566 status.has_detail = 1; in uhdr_add_effect_mirror()
1568 status.detail, sizeof status.detail, in uhdr_add_effect_mirror()
1570 return status; in uhdr_add_effect_mirror()
1575 return status; in uhdr_add_effect_mirror()
1579 uhdr_error_info_t status = g_no_error; in uhdr_add_effect_rotate() local
1582 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_add_effect_rotate()
1583 status.has_detail = 1; in uhdr_add_effect_rotate()
1584 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_add_effect_rotate()
1585 return status; in uhdr_add_effect_rotate()
1589 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_add_effect_rotate()
1590 status.has_detail = 1; in uhdr_add_effect_rotate()
1591 snprintf(status.detail, sizeof status.detail, in uhdr_add_effect_rotate()
1593 return status; in uhdr_add_effect_rotate()
1598 return status; in uhdr_add_effect_rotate()
1603 uhdr_error_info_t status = g_no_error; in uhdr_add_effect_crop() local
1606 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_add_effect_crop()
1607 status.has_detail = 1; in uhdr_add_effect_crop()
1608 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_add_effect_crop()
1609 return status; in uhdr_add_effect_crop()
1614 return status; in uhdr_add_effect_crop()
1618 uhdr_error_info_t status = g_no_error; in uhdr_add_effect_resize() local
1621 status.error_code = UHDR_CODEC_INVALID_PARAM; in uhdr_add_effect_resize()
1622 status.has_detail = 1; in uhdr_add_effect_resize()
1623 snprintf(status.detail, sizeof status.detail, "received nullptr for uhdr codec instance"); in uhdr_add_effect_resize()
1624 return status; in uhdr_add_effect_resize()
1629 return status; in uhdr_add_effect_resize()