Skip to content

Commit 423d1e8

Browse files
slkanthiarjunbinu
authored andcommitted
Update aspect ratio mapping to tvDisplayMode_t
1 parent 98ace42 commit 423d1e8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

AVOutput/AVOutputTVHelper.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2699,12 +2699,13 @@ tvError_t AVOutputTV::GetAspectRatioCaps(tvAspectRatio_t** aspect_ratio, size_t*
26992699

27002700
for (size_t i = 0; i < *num_aspect_ratio; ++i) {
27012701
std::string aspectStr = optionsArray[i].String();
2702-
if (aspectStr == "TV AUTO") (*aspect_ratio)[i] = tvAspectRatio_Auto;
2703-
else if (aspectStr == "TV DIRECT") (*aspect_ratio)[i] = tvAspectRatio_Direct;
2704-
else if (aspectStr == "TV NORMAL") (*aspect_ratio)[i] = tvAspectRatio_Normal;
2705-
else if (aspectStr == "TV 16X9 STRETCH") (*aspect_ratio)[i] = tvAspectRatio_16X9_Stretch;
2706-
else if (aspectStr == "TV 4X3 PILLARBOX") (*aspect_ratio)[i] = tvAspectRatio_4X3_Pillarbox;
2707-
else if (aspectStr == "TV ZOOM") (*aspect_ratio)[i] = tvAspectRatio_Zoom;
2702+
if (aspectStr == "TV AUTO") (*aspect_ratio)[i] = tvDisplayMode_AUTO;
2703+
else if (aspectStr == "TV DIRECT") (*aspect_ratio)[i] = tvDisplayMode_DIRECT;
2704+
else if (aspectStr == "TV FULL") (*aspect_ratio)[i] = tvDisplayMode_FULL;
2705+
else if (aspectStr == "TV NORMAL") (*aspect_ratio)[i] = tvDisplayMode_NORMAL;
2706+
else if (aspectStr == "TV 16X9 STRETCH") (*aspect_ratio)[i] = tvDisplayMode_16x9;
2707+
else if (aspectStr == "TV 4X3 PILLARBOX") (*aspect_ratio)[i] = tvDisplayMode_4x3;
2708+
else if (aspectStr == "TV ZOOM") (*aspect_ratio)[i] = tvDisplayMode_ZOOM;
27082709
else (*aspect_ratio)[i] = tvAspectRatio_MAX;
27092710
}
27102711

0 commit comments

Comments
 (0)