Commit e01d2c00 authored by James Almer's avatar James Almer

avcodec/h264_slice: use H264_SEI_FpaType enum constants

Cosmetic change.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 5e9b39b3
...@@ -1205,28 +1205,28 @@ static int h264_export_frame_props(H264Context *h) ...@@ -1205,28 +1205,28 @@ static int h264_export_frame_props(H264Context *h)
AVStereo3D *stereo = av_stereo3d_create_side_data(cur->f); AVStereo3D *stereo = av_stereo3d_create_side_data(cur->f);
if (stereo) { if (stereo) {
switch (fp->arrangement_type) { switch (fp->arrangement_type) {
case 0: case H264_SEI_FPA_TYPE_CHECKERBOARD:
stereo->type = AV_STEREO3D_CHECKERBOARD; stereo->type = AV_STEREO3D_CHECKERBOARD;
break; break;
case 1: case H264_SEI_FPA_TYPE_INTERLEAVE_COLUMN:
stereo->type = AV_STEREO3D_COLUMNS; stereo->type = AV_STEREO3D_COLUMNS;
break; break;
case 2: case H264_SEI_FPA_TYPE_INTERLEAVE_ROW:
stereo->type = AV_STEREO3D_LINES; stereo->type = AV_STEREO3D_LINES;
break; break;
case 3: case H264_SEI_FPA_TYPE_SIDE_BY_SIDE:
if (fp->quincunx_sampling_flag) if (fp->quincunx_sampling_flag)
stereo->type = AV_STEREO3D_SIDEBYSIDE_QUINCUNX; stereo->type = AV_STEREO3D_SIDEBYSIDE_QUINCUNX;
else else
stereo->type = AV_STEREO3D_SIDEBYSIDE; stereo->type = AV_STEREO3D_SIDEBYSIDE;
break; break;
case 4: case H264_SEI_FPA_TYPE_TOP_BOTTOM:
stereo->type = AV_STEREO3D_TOPBOTTOM; stereo->type = AV_STEREO3D_TOPBOTTOM;
break; break;
case 5: case H264_SEI_FPA_TYPE_INTERLEAVE_TEMPORAL:
stereo->type = AV_STEREO3D_FRAMESEQUENCE; stereo->type = AV_STEREO3D_FRAMESEQUENCE;
break; break;
case 6: case H264_SEI_FPA_TYPE_2D:
stereo->type = AV_STEREO3D_2D; stereo->type = AV_STEREO3D_2D;
break; break;
} }
...@@ -1234,7 +1234,7 @@ static int h264_export_frame_props(H264Context *h) ...@@ -1234,7 +1234,7 @@ static int h264_export_frame_props(H264Context *h)
if (fp->content_interpretation_type == 2) if (fp->content_interpretation_type == 2)
stereo->flags = AV_STEREO3D_FLAG_INVERT; stereo->flags = AV_STEREO3D_FLAG_INVERT;
if (fp->arrangement_type == 5) { if (fp->arrangement_type == H264_SEI_FPA_TYPE_INTERLEAVE_TEMPORAL) {
if (fp->current_frame_is_frame0_flag) if (fp->current_frame_is_frame0_flag)
stereo->view = AV_STEREO3D_VIEW_LEFT; stereo->view = AV_STEREO3D_VIEW_LEFT;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment