| 1363 | } |
| 1364 | |
| 1365 | static int side_data_stereo3d_merge(AVFrameSideData *sd_frame, |
| 1366 | const AVPacketSideData *sd_pkt) |
| 1367 | { |
| 1368 | const AVStereo3D *src; |
| 1369 | AVStereo3D *dst; |
| 1370 | int ret; |
| 1371 | |
| 1372 | ret = av_buffer_make_writable(&sd_frame->buf); |
| 1373 | if (ret < 0) |
| 1374 | return ret; |
| 1375 | sd_frame->data = sd_frame->buf->data; |
| 1376 | |
| 1377 | dst = ( AVStereo3D*)sd_frame->data; |
| 1378 | src = (const AVStereo3D*)sd_pkt->data; |
| 1379 | |
| 1380 | if (dst->type == AV_STEREO3D_UNSPEC) |
| 1381 | dst->type = src->type; |
| 1382 | |
| 1383 | if (dst->view == AV_STEREO3D_VIEW_UNSPEC) |
| 1384 | dst->view = src->view; |
| 1385 | |
| 1386 | if (dst->primary_eye == AV_PRIMARY_EYE_NONE) |
| 1387 | dst->primary_eye = src->primary_eye; |
| 1388 | |
| 1389 | if (!dst->baseline) |
| 1390 | dst->baseline = src->baseline; |
| 1391 | |
| 1392 | if (!dst->horizontal_disparity_adjustment.num) |
| 1393 | dst->horizontal_disparity_adjustment = src->horizontal_disparity_adjustment; |
| 1394 | |
| 1395 | if (!dst->horizontal_field_of_view.num) |
| 1396 | dst->horizontal_field_of_view = src->horizontal_field_of_view; |
| 1397 | |
| 1398 | return 0; |
| 1399 | } |
| 1400 | |
| 1401 | static int side_data_exif_parse(AVFrame *dst, const AVPacketSideData *sd_pkt) |
| 1402 | { |
no test coverage detected