Lines Matching refs:status

380     int status;
394 status = CMBlockBufferCopyDataBytes(block,
473 int status;
474 status = vtctx->get_param_set_func(vid_fmt,
480 if (status) {
483 status = 0;
489 status = vtctx->get_param_set_func(vid_fmt,
495 if (status) {
497 * When ps_count is invalid, status != 0 ends the loop normally
500 if (i > 0 && is_count_bad) status = 0;
508 if (status) {
509 av_log(avctx, AV_LOG_ERROR, "Error getting parameter set sizes: %d\n", status);
526 int status;
530 status = vtctx->get_param_set_func(vid_fmt,
536 if (status) {
539 status = 0;
548 status = vtctx->get_param_set_func(vid_fmt,
554 if (status) {
555 if (i > 0 && is_count_bad) status = 0;
573 if (status) {
574 av_log(avctx, AV_LOG_ERROR, "Error getting parameter set data: %d\n", status);
586 int status;
595 status = get_params_size(avctx, vid_fmt, &total_size);
596 if (status) {
598 return status;
607 status = copy_param_sets(avctx, vid_fmt, avctx->extradata, total_size);
609 if (status) {
611 return status;
633 OSStatus status,
645 if (status) {
646 av_log(avctx, AV_LOG_ERROR, "Error encoding frame: %d\n", (int)status);
674 int status;
682 status = vtctx->get_param_set_func(vid_fmt,
688 if (status) {
689 av_log(avctx, AV_LOG_ERROR, "Error getting length code size: %d\n", status);
882 int status = get_cv_pixel_format(avctx,
887 if (status) return status;
1097 int status = VTCompressionSessionCreate(kCFAllocatorDefault,
1108 if (status || !vtctx->session) {
1109 av_log(avctx, AV_LOG_ERROR, "Error: cannot create compression session: %d\n", status);
1132 status = VTSessionSetProperty(vtctx->session,
1142 status = VTSessionSetProperty(vtctx->session,
1148 if (status) {
1149 av_log(avctx, AV_LOG_ERROR, "Error setting bitrate property: %d\n", status);
1154 status = VTSessionSetProperty(vtctx->session,
1157 if (status) {
1191 status = VTSessionSetProperty(vtctx->session,
1199 if (status) {
1200 av_log(avctx, AV_LOG_ERROR, "Error setting max bitrate property: %d\n", status);
1216 status = VTSessionSetProperty(vtctx->session,
1224 status = VTSessionSetProperty(vtctx->session,
1227 if (status) {
1228 av_log(avctx, AV_LOG_ERROR, "Error setting profile/level property: %d. Output will be encoded using a supported profile/level combination.\n", status);
1240 status = VTSessionSetProperty(vtctx->session,
1245 if (status) {
1246 av_log(avctx, AV_LOG_ERROR, "Error setting 'max key-frame interval' property: %d\n", status);
1252 status = VTSessionSetProperty(vtctx->session,
1256 if (status == kVTPropertyNotSupportedErr) {
1258 } else if (status) {
1259 av_log(avctx, AV_LOG_ERROR, "Error setting frames_before property: %d\n", status);
1264 status = VTSessionSetProperty(vtctx->session,
1268 if (status == kVTPropertyNotSupportedErr) {
1270 } else if (status) {
1271 av_log(avctx, AV_LOG_ERROR, "Error setting frames_after property: %d\n", status);
1318 status = VTSessionSetProperty(vtctx->session,
1326 if (status) {
1332 status);
1340 status = VTSessionSetProperty(vtctx->session,
1344 if (status) {
1345 av_log(avctx, AV_LOG_WARNING, "Could not set transfer function: %d\n", status);
1351 status = VTSessionSetProperty(vtctx->session,
1355 if (status) {
1356 av_log(avctx, AV_LOG_WARNING, "Could not set ycbcr matrix: %d\n", status);
1362 status = VTSessionSetProperty(vtctx->session,
1366 if (status) {
1367 av_log(avctx, AV_LOG_WARNING, "Could not set color primaries: %d\n", status);
1372 status = VTSessionSetProperty(vtctx->session,
1376 if (status) {
1377 av_log(avctx, AV_LOG_WARNING, "Could not set gamma level: %d\n", status);
1382 status = VTSessionSetProperty(vtctx->session,
1386 if (status) {
1387 av_log(avctx, AV_LOG_ERROR, "Error setting 'allow frame reordering' property: %d\n", status);
1397 status = VTSessionSetProperty(vtctx->session,
1401 if (status) {
1402 av_log(avctx, AV_LOG_ERROR, "Error setting entropy property: %d\n", status);
1407 status = VTSessionSetProperty(vtctx->session,
1411 if (status) {
1412 av_log(avctx, AV_LOG_ERROR, "Error setting realtime property: %d\n", status);
1416 status = VTCompressionSessionPrepareToEncodeFrames(vtctx->session);
1417 if (status) {
1418 av_log(avctx, AV_LOG_ERROR, "Error: cannot prepare encoder: %d\n", status);
1433 int status;
1502 status = create_cv_pixel_buffer_info(avctx, &pixel_buffer_info);
1503 if (status)
1517 status = vtenc_populate_extradata(avctx,
1523 if (status)
1527 status = vtenc_create_encoder(avctx,
1544 return status;
1551 int status;
1559 status = vtenc_configure_encoder(avctx);
1560 if (status) return status;
1562 status = VTSessionCopyProperty(vtctx->session,
1567 if (!status && has_b_frames_cfbool) {
1820 int status;
1837 status = CMBlockBufferCopyDataBytes(block,
1841 if (status) {
1842 av_log(avctx, AV_LOG_ERROR, "Cannot copy length: %d\n", status);
1846 status = CMBlockBufferCopyDataBytes(block,
1851 if (status) {
1852 av_log(avctx, AV_LOG_ERROR, "Cannot copy type: %d\n", status);
1911 status = CMBlockBufferCopyDataBytes(block,
1916 if (status) {
1917 av_log(avctx, AV_LOG_ERROR, "Cannot copy data: %d\n", status);
1929 return status;
1989 int status;
2007 status = get_length_code_size(avctx, sample_buffer, &length_code_size);
2008 if (status) return status;
2019 int status = get_params_size(avctx, vid_fmt, &header_size);
2020 if (status) return status;
2023 status = count_nalus(length_code_size, sample_buffer, &nalu_count);
2024 if(status)
2025 return status;
2040 status = ff_get_encode_buffer(avctx, pkt, out_buf_size, 0);
2041 if (status < 0)
2042 return status;
2045 status = copy_param_sets(avctx, vid_fmt, pkt->data, out_buf_size);
2046 if(status) return status;
2049 status = copy_replace_length_codes(
2058 if (status) {
2059 av_log(avctx, AV_LOG_ERROR, "Error copying packet data: %d\n", status);
2060 return status;
2072 status = ff_get_encode_buffer(avctx, pkt, len, 0);
2073 if (status < 0)
2074 return status;
2076 status = CMBlockBufferCopyDataBytes(buf, 0, len, pkt->data);
2077 if (status) {
2078 av_log(avctx, AV_LOG_ERROR, "Error copying packet data: %d\n", status);
2127 int status;
2132 status = get_cv_pixel_format(avctx, av_format, av_color_range, color, &range_guessed);
2133 if (status) {
2193 int status;
2201 status = CVPixelBufferLockBaseAddress(cv_img, 0);
2202 if (status) {
2207 status
2268 status = CVPixelBufferUnlockBaseAddress(cv_img, 0);
2269 if (status) {
2270 av_log(avctx, AV_LOG_ERROR, "Error: Could not unlock CVPixelBuffer base address: %d.\n", status);
2286 int status;
2305 status = get_cv_pixel_info(
2316 if (status) {
2323 status
2341 status = vtenc_configure_encoder(avctx);
2342 if (status == 0)
2354 status = CVPixelBufferPoolCreatePixelBuffer(NULL,
2359 if (status) {
2360 av_log(avctx, AV_LOG_ERROR, "Could not create pixel buffer from pool: %d.\n", status);
2364 status = copy_avframe_to_pixel_buffer(avctx, frame, *cv_img, strides, heights);
2365 if (status) {
2368 return status;
2399 int status = create_cv_pixel_buffer(avctx, frame, &cv_img);
2401 if (status) return status;
2403 status = create_encoder_dict_h264(frame, &frame_dict);
2404 if (status) {
2406 return status;
2427 status = VTCompressionSessionEncodeFrame(
2440 if (status) {
2441 av_log(avctx, AV_LOG_ERROR, "Error: cannot encode frame: %d\n", status);
2456 int status;
2461 status = vtenc_send_frame(avctx, vtctx, frame);
2463 if (status) {
2464 status = AVERROR_EXTERNAL;
2478 status = VTCompressionSessionCompleteFrames(vtctx->session,
2481 if (status) {
2482 av_log(avctx, AV_LOG_ERROR, "Error flushing frames: %d\n", status);
2483 status = AVERROR_EXTERNAL;
2491 status = 0;
2495 status = vtenc_q_pop(vtctx, !frame, &buf, &sei);
2496 if (status) goto end_nopkt;
2499 status = vtenc_cm_to_avpacket(avctx, buf, pkt, sei);
2505 if (status) goto end_nopkt;
2512 return status;
2523 int status;
2529 status = vtenc_create_encoder(avctx,
2536 if (status)
2545 status = CVPixelBufferPoolCreatePixelBuffer(NULL,
2549 if(status != kCVReturnSuccess){
2550 av_log(avctx, AV_LOG_ERROR, "Error creating frame from pool: %d\n", status);
2555 status = VTCompressionSessionEncodeFrame(vtctx->session,
2563 if (status) {
2567 status);
2573 status = VTCompressionSessionCompleteFrames(vtctx->session,
2576 if (status)
2579 status = vtenc_q_pop(vtctx, 0, &buf, NULL);
2580 if (status) {
2581 av_log(avctx, AV_LOG_ERROR, "popping: %d\n", status);
2597 av_assert0(status != 0 || (avctx->extradata && avctx->extradata_size > 0));
2599 return status;