Skip to content

Commit

Permalink
StVideoQueue - handle AV_SPHERICAL_HALF_EQUIRECTANGULAR in the switch
Browse files Browse the repository at this point in the history
  • Loading branch information
gkv311 committed Oct 1, 2024
1 parent 74ff892 commit 6e2e86f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions StMoviePlayer/StVideo/StVideoQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,14 @@ bool StVideoQueue::init(AVFormatContext* theFormatCtx,
switch(aSpherical->projection) {
case AV_SPHERICAL_EQUIRECTANGULAR: {
theNewParams->ViewingMode = StViewSurface_Sphere;
if(sizeX() == sizeY()) {
// TODO - hemisphere information should be somewhere in the file
//theNewParams->ViewingMode = StViewSurface_Hemisphere;
}
break;
}
#if(LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(59, 23, 100))
case AV_SPHERICAL_HALF_EQUIRECTANGULAR: {
theNewParams->ViewingMode = StViewSurface_Hemisphere;
break;
}
#endif
case AV_SPHERICAL_CUBEMAP: {
theNewParams->ViewingMode = StViewSurface_Cubemap;
//spherical->padding
Expand Down

0 comments on commit 6e2e86f

Please sign in to comment.