Add support for ROCJPEG_OUTPUT_RGB_PLANAR output format (#15)

* Add support for ROCJPEG_OUTPUT_RGB_PLANAR output format

* update the jpegdecode sample based on the review comments

* use make_float3 when it's possible
이 커밋은 다음에 포함됨:
Aryan Salmanpour 작성하고 GitHub가 2024-04-16 18:27:22 -04:00를 커밋함
1 부모 63dc882415
커밋 c591c342aa
10 파일이 변경됨
+937 -224

검색과 일치하는 파일 없음

+4 -2
파일 보기
@@ -109,10 +109,12 @@ typedef enum {
ROCJPEG_OUTPUT_YUV_PLANAR = 1,
// return luma component (Y) and write to first channel of RocJpegImage
ROCJPEG_OUTPUT_Y = 2,
// convert to interleaved RGB using HIP kernels and write to first channel of RocJpegImage
// convert to interleaved RGB using VCN JPEG decoder (on MI300+) or using HIP kernels and write to first channel of RocJpegImage
ROCJPEG_OUTPUT_RGB = 3,
// convert to RGB PLANAR using VCN JPEG decoder (on MI300+) or HIP kernels and write to first, second, and thrid channel of RocJpegImage.
ROCJPEG_OUTPUT_RGB_PLANAR = 4,
// maximum allowed value
ROCJPEG_OUTPUT_FORMAT_MAX = 4
ROCJPEG_OUTPUT_FORMAT_MAX = 5
} RocJpegOutputFormat;
/*****************************************************/