Lines Matching refs:nv_ret
457 NVENCSTATUS nv_ret; in gst_nv_base_enc_open_encode_session() local
463 nv_ret = NvEncOpenEncodeSessionEx (¶ms, &nvenc->encoder); in gst_nv_base_enc_open_encode_session()
465 return nv_ret == NV_ENC_SUCCESS; in gst_nv_base_enc_open_encode_session()
1137 NVENCSTATUS nv_ret; in gst_nv_base_enc_bitstream_thread() local
1166 nv_ret = NvEncLockBitstream (nvenc->encoder, &lock_bs); in gst_nv_base_enc_bitstream_thread()
1167 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_bitstream_thread()
1172 lock_bs.outputBitstream, nv_ret)); in gst_nv_base_enc_bitstream_thread()
1190 nv_ret = NvEncUnlockBitstream (nvenc->encoder, state->out_buf); in gst_nv_base_enc_bitstream_thread()
1192 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_bitstream_thread()
1197 lock_bs.outputBitstream, nv_ret)); in gst_nv_base_enc_bitstream_thread()
1216 nv_ret = in gst_nv_base_enc_bitstream_thread()
1221 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_bitstream_thread()
1223 resource, nv_ret); in gst_nv_base_enc_bitstream_thread()
1407 NVENCSTATUS nv_ret; in gst_nv_base_enc_free_buffers() local
1429 nv_ret = in gst_nv_base_enc_free_buffers()
1433 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_free_buffers()
1435 in_buf, nv_ret); in gst_nv_base_enc_free_buffers()
1439 nv_ret = in gst_nv_base_enc_free_buffers()
1442 if (nv_ret != NV_ENC_SUCCESS) in gst_nv_base_enc_free_buffers()
1444 in_buf, nv_ret); in gst_nv_base_enc_free_buffers()
1455 nv_ret = NvEncDestroyBitstreamBuffer (nvenc->encoder, out_buf); in gst_nv_base_enc_free_buffers()
1456 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_free_buffers()
1458 out_buf, nv_ret); in gst_nv_base_enc_free_buffers()
1651 NVENCSTATUS nv_ret; in gst_nv_base_enc_set_format() local
1721 nv_ret = in gst_nv_base_enc_set_format()
1724 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_set_format()
1731 nv_ret = in gst_nv_base_enc_set_format()
1734 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_set_format()
1766 nv_ret = in gst_nv_base_enc_set_format()
1769 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_set_format()
1771 ("Failed to get encode preset configuration: %d", nv_ret)); in gst_nv_base_enc_set_format()
1836 nv_ret = NvEncReconfigureEncoder (nvenc->encoder, &reconfigure_params); in gst_nv_base_enc_set_format()
1838 nv_ret = NvEncInitializeEncoder (nvenc->encoder, params); in gst_nv_base_enc_set_format()
1842 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_set_format()
1844 ("Failed to %sinit encoder: %d", reconfigure ? "re" : "", nv_ret)); in gst_nv_base_enc_set_format()
1922 nv_ret = NvEncRegisterResource (nvenc->encoder, &resource->nv_resource); in gst_nv_base_enc_set_format()
1923 if (nv_ret != NV_ENC_SUCCESS) in gst_nv_base_enc_set_format()
1925 resource, nv_ret); in gst_nv_base_enc_set_format()
1943 nv_ret = NvEncCreateBitstreamBuffer (nvenc->encoder, &cout_buf); in gst_nv_base_enc_set_format()
1946 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_set_format()
1947 GST_WARNING_OBJECT (enc, "Failed to allocate input buffer: %d", nv_ret); in gst_nv_base_enc_set_format()
1973 nv_ret = NvEncGetSequenceParams (nvenc->encoder, &seq_param); in gst_nv_base_enc_set_format()
1974 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_set_format()
1975 GST_WARNING_OBJECT (enc, "Failed to retrieve SPS/PPS: %d", nv_ret); in gst_nv_base_enc_set_format()
2304 NVENCSTATUS nv_ret; in _submit_input_buffer() local
2352 nv_ret = NvEncEncodePicture (nvenc->encoder, &pic_params); in _submit_input_buffer()
2356 if (nv_ret == NV_ENC_SUCCESS) { in _submit_input_buffer()
2358 } else if (nv_ret == NV_ENC_ERR_NEED_MORE_INPUT) { in _submit_input_buffer()
2361 GST_ERROR_OBJECT (nvenc, "Failed to encode picture: %d", nv_ret); in _submit_input_buffer()
2371 if (nv_ret == NV_ENC_SUCCESS) { in _submit_input_buffer()
2410 NVENCSTATUS nv_ret; in gst_nv_base_enc_handle_frame() local
2522 nv_ret = in gst_nv_base_enc_handle_frame()
2526 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_handle_frame()
2528 resource, nv_ret); in gst_nv_base_enc_handle_frame()
2572 NVENCSTATUS nv_ret; in gst_nv_base_enc_drain_encoder() local
2595 nv_ret = NvEncEncodePicture (nvenc->encoder, &pic_params); in gst_nv_base_enc_drain_encoder()
2597 if (nv_ret != NV_ENC_SUCCESS) { in gst_nv_base_enc_drain_encoder()
2598 GST_LOG_OBJECT (nvenc, "Failed to drain encoder, ret %d", nv_ret); in gst_nv_base_enc_drain_encoder()