Utils - Remove the call to rocDecGetDecodeStatus after rocDecGetVideoFrame (#600)

* Utils - Remove the call to rocDecGetDecodeStatus after rocDecGetVideoFrame

* Remove other occurrences of rocDecGetDecodeStatus that are not necessary

* Update the description of the rocDecGetDecodeStatus and rocDecGetVideoFrame APIs

* Add missing including thread in avcodec_videodecoder.h for fixing the Azure build issue

[ROCm/rocdecode commit: bf4922060d]
Bu işleme şunda yer alıyor:
Aryan Salmanpour
2025-06-11 11:44:20 -04:00
işlemeyi yapan: GitHub
ebeveyn 5b1ebe013c
işleme a480fb183b
6 değiştirilmiş dosya ile 13 ekleme ve 29 silme
-8
Dosyayı Görüntüle
@@ -515,14 +515,6 @@ int ROCDECAPI handle_picture_display(void* user_data, RocdecParserDispInfo* disp
RocdecProcParams params = {};
params.progressive_frame = disp_info->progressive_frame;
params.top_field_first = disp_info->top_field_first;
// check if decoding is complete
RocdecDecodeStatus dec_status;
memset(&dec_status, 0, sizeof(dec_status));
CHECK(rocDecGetDecodeStatus(p_dec_info->decoder, disp_info->picture_index, &dec_status));
if ((dec_status.decode_status == rocDecodeStatus_Error || dec_status.decode_status == rocDecodeStatus_Error_Concealed)) {
std::cerr << "Decode Error occurred for picture: " << disp_info->picture_index << std::endl;
return 0;
}
// get device memory pointer for decoded output surface
void* dev_mem_ptr[3] = { 0 };
uint32_t pitch[3] = { 0 };