Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
63530987 by Petri Hintukainen at 2026-01-30T19:07:53+02:00
BD-J: use constant for aspect ratio byte values

- - - - -
d5486ea5 by Petri Hintukainen at 2026-01-30T19:09:02+02:00
BD-J: ti: Add S3D and UHD stream types

- - - - -


3 changed files:

- src/libbluray/bdj/java/org/videolan/StreamInfo.java
- 
src/libbluray/bdj/java/org/videolan/media/content/playlist/VideoFormatControlImpl.java
- src/libbluray/bdj/java/org/videolan/ti/CodingTypeHelper.java


Changes:

=====================================
src/libbluray/bdj/java/org/videolan/StreamInfo.java
=====================================
@@ -25,6 +25,10 @@ import org.bluray.ti.CodingType;
 import org.videolan.ti.CodingTypeHelper;
 
 public class StreamInfo {
+
+    public static final byte ASPECT_4_3  = 2;
+    public static final byte ASPECT_16_9 = 3;
+
     public StreamInfo(byte coding_type, byte format, byte rate,
                       char char_code, String lang, byte aspect, byte 
subpath_id) {
         this.coding_type = coding_type;
@@ -66,6 +70,9 @@ public class StreamInfo {
             width = 1920;
             height = 1080;
             break;
+        case (byte)0x08:
+            width = 3840;
+            height = 2160;
         default:
                 return null;
         }


=====================================
src/libbluray/bdj/java/org/videolan/media/content/playlist/VideoFormatControlImpl.java
=====================================
@@ -27,7 +27,9 @@ import org.dvb.media.VideoFormatListener;
 import org.dvb.media.VideoTransformation;
 import org.havi.ui.HScreen;
 import org.havi.ui.HVideoConfiguration;
+
 import org.videolan.TIClip;
+import org.videolan.StreamInfo;
 
 public class VideoFormatControlImpl implements VideoFormatControl {
     protected VideoFormatControlImpl(Handler player) {
@@ -45,9 +47,9 @@ public class VideoFormatControlImpl implements 
VideoFormatControl {
 
         byte aspect = ci.getVideoStreams()[0].getVideoAspectRatioCode();
         switch (aspect) {
-            case (byte)0x02:
+            case StreamInfo.ASPECT_4_3:
                 return org.dvb.media.VideoFormatControl.ASPECT_RATIO_4_3;
-            case (byte)0x03:
+            case StreamInfo.ASPECT_16_9:
                 return org.dvb.media.VideoFormatControl.ASPECT_RATIO_16_9;
             default:
                 return org.dvb.media.VideoFormatControl.ASPECT_RATIO_UNKNOWN;


=====================================
src/libbluray/bdj/java/org/videolan/ti/CodingTypeHelper.java
=====================================
@@ -21,6 +21,8 @@ package org.videolan.ti;
 
 import javax.tv.service.navigation.StreamType;
 import org.bluray.ti.CodingType;
+import org.blurayx.uhd.ti.UHDCodingType;
+import org.blurayx.s3d.ti.StereoscopicCodingType;
 
 public class CodingTypeHelper {
     public static CodingType getCodingType(byte coding_type_byte) {
@@ -29,6 +31,10 @@ public class CodingTypeHelper {
             return CodingType.MPEG2_VIDEO;
         case (byte)0x1b:
             return CodingType.MPEG4_AVC_VIDEO;
+       case (byte)0x20:
+           return StereoscopicCodingType.MPEG4_MVC_VIDEO;
+       case (byte)0x24:
+           return UHDCodingType.HEVC_VIDEO;
         case (byte)0xea:
             return CodingType.SMPTE_VC1_VIDEO;
         case (byte)0x80:



View it on GitLab: 
https://code.videolan.org/videolan/libbluray/-/compare/120f39c1c0116c893886e342be722d575f7cdd20...d5486ea5843cd781752b6ca16eb90a59fb6e115f

-- 
View it on GitLab: 
https://code.videolan.org/videolan/libbluray/-/compare/120f39c1c0116c893886e342be722d575f7cdd20...d5486ea5843cd781752b6ca16eb90a59fb6e115f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel

Reply via email to