Package bdsup2sub.supstream.dvd
Class SubDvdWriter
java.lang.Object
bdsup2sub.supstream.dvd.SubDvdWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Configuration
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
createSubFrame
(SubPictureDVD pic, Bitmap bm) Create the binary stream representation of one captionstatic void
writeIdx
(String fname, SubPicture pic, int[] offsets, int[] timestamps, Palette palette) Create VobSub IDX file
-
Field Details
-
configuration
-
PACK_HEADER
private static final byte[] PACK_HEADER -
HEADER_FIRST
private static final byte[] HEADER_FIRST -
HEADER_NEXT
private static final byte[] HEADER_NEXT -
CONTROL_HEADER
private static final byte[] CONTROL_HEADER
-
-
Constructor Details
-
SubDvdWriter
private SubDvdWriter()
-
-
Method Details
-
createSubFrame
Create the binary stream representation of one caption- Parameters:
pic
- SubPicture object containing caption infobm
- bitmap- Returns:
- byte buffer containing the binary stream representation of one caption
-
writeIdx
public static void writeIdx(String fname, SubPicture pic, int[] offsets, int[] timestamps, Palette palette) throws CoreException Create VobSub IDX file- Parameters:
fname
- file namepic
- a SubPicture object used to read screen width and heightoffsets
- array of offsets (one for each caption)timestamps
- array of PTS time stamps (one for each caption)palette
- 16 color main Palette- Throws:
CoreException
-