فهرست منبع

support tagging 3d as mvc

Luke Pulverenti 9 سال پیش
والد
کامیت
1a2867ea55

+ 4 - 0
MediaBrowser.Controller/Providers/BaseItemXmlParser.cs

@@ -889,6 +889,10 @@ namespace MediaBrowser.Controller.Providers
                             {
                             {
                                 video.Video3DFormat = Video3DFormat.FullSideBySide;
                                 video.Video3DFormat = Video3DFormat.FullSideBySide;
                             }
                             }
+                            else if (string.Equals("MVC", val, StringComparison.OrdinalIgnoreCase))
+                            {
+                                video.Video3DFormat = Video3DFormat.MVC;
+                            }
                         }
                         }
                         break;
                         break;
                     }
                     }

+ 3 - 0
MediaBrowser.LocalMetadata/Savers/XmlSaverHelpers.cs

@@ -736,6 +736,9 @@ namespace MediaBrowser.LocalMetadata.Savers
                         case Video3DFormat.HalfTopAndBottom:
                         case Video3DFormat.HalfTopAndBottom:
                             builder.Append("<Format3D>HTAB</Format3D>");
                             builder.Append("<Format3D>HTAB</Format3D>");
                             break;
                             break;
+                        case Video3DFormat.MVC:
+                            builder.Append("<Format3D>MVC</Format3D>");
+                            break;
                     }
                     }
                 }
                 }
             }
             }

+ 2 - 0
MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs

@@ -557,6 +557,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
                         vf = "crop=iw:ih/2:0:0,setdar=dar=a,crop=min(iw\\,ih*dar):min(ih\\,iw/dar):(iw-min(iw\\,iw*sar))/2:(ih - min (ih\\,ih/sar))/2,setsar=sar=1,scale=600:trunc(600/dar/2)*2";
                         vf = "crop=iw:ih/2:0:0,setdar=dar=a,crop=min(iw\\,ih*dar):min(ih\\,iw/dar):(iw-min(iw\\,iw*sar))/2:(ih - min (ih\\,ih/sar))/2,setsar=sar=1,scale=600:trunc(600/dar/2)*2";
                         // ftab crop heigt in half, set the display aspect,crop out any black bars we may have made the scale width to 600
                         // ftab crop heigt in half, set the display aspect,crop out any black bars we may have made the scale width to 600
                         break;
                         break;
+                    default:
+                        break;
                 }
                 }
             }
             }
 
 

+ 2 - 1
MediaBrowser.Model/Entities/Video3DFormat.cs

@@ -6,6 +6,7 @@ namespace MediaBrowser.Model.Entities
         HalfSideBySide,
         HalfSideBySide,
         FullSideBySide,
         FullSideBySide,
         FullTopAndBottom,
         FullTopAndBottom,
-        HalfTopAndBottom
+        HalfTopAndBottom,
+        MVC
     }
     }
 }
 }

+ 4 - 0
MediaBrowser.Server.Implementations/Library/Resolvers/BaseVideoResolver.cs

@@ -242,6 +242,10 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers
                 {
                 {
                     video.Video3DFormat = Video3DFormat.HalfTopAndBottom;
                     video.Video3DFormat = Video3DFormat.HalfTopAndBottom;
                 }
                 }
+                else if (string.Equals(format3D, "mvc", StringComparison.OrdinalIgnoreCase))
+                {
+                    video.Video3DFormat = Video3DFormat.MVC;
+                }
             }
             }
         }
         }
 
 

+ 4 - 0
MediaBrowser.XbmcMetadata/Parsers/BaseNfoParser.cs

@@ -1173,6 +1173,10 @@ namespace MediaBrowser.XbmcMetadata.Parsers
                                     {
                                     {
                                         video.Video3DFormat = Video3DFormat.FullSideBySide;
                                         video.Video3DFormat = Video3DFormat.FullSideBySide;
                                     }
                                     }
+                                    else if (string.Equals("MVC", val, StringComparison.OrdinalIgnoreCase))
+                                    {
+                                        video.Video3DFormat = Video3DFormat.MVC;
+                                    }
                                 }
                                 }
                                 break;
                                 break;
                             }
                             }

+ 3 - 0
MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs

@@ -404,6 +404,9 @@ namespace MediaBrowser.XbmcMetadata.Savers
                                 case Video3DFormat.HalfTopAndBottom:
                                 case Video3DFormat.HalfTopAndBottom:
                                     writer.WriteElementString("format3d", "HTAB");
                                     writer.WriteElementString("format3d", "HTAB");
                                     break;
                                     break;
+                                case Video3DFormat.MVC:
+                                    writer.WriteElementString("format3d", "MVC");
+                                    break;
                             }
                             }
                         }
                         }
                     }
                     }