diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-05-20 08:55:40 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-05-26 15:31:54 +0100 |
commit | 4e847cb4acd356112f56a101132d8438abe9fa03 (patch) | |
tree | 20c10a71131bcd6463cdf807ba659715b999ee6a /gst/dvdspu/gstdvdspu.h | |
parent | 78cd406a76c71b2ebe5457e838471cd209afd6d0 (diff) | |
download | gst-plugins-bad-4e847cb4acd356112f56a101132d8438abe9fa03.tar.gz gst-plugins-bad-4e847cb4acd356112f56a101132d8438abe9fa03.tar.bz2 gst-plugins-bad-4e847cb4acd356112f56a101132d8438abe9fa03.zip |
dvdspu: Add simple PGS handler that dumps the packet info
Add setcaps logic on the subpicture sink pad for configuring
which subpicture format is arriving.
Add the first piece of PGS subpicture handling by dumping the stream
contents out to the terminal as the packets arrive.
Add some more debug.
Don't calculate the running time for our subpicture packets twice,
once is enough.
Diffstat (limited to 'gst/dvdspu/gstdvdspu.h')
-rw-r--r-- | gst/dvdspu/gstdvdspu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/dvdspu/gstdvdspu.h b/gst/dvdspu/gstdvdspu.h index dfc51f9e..1bbc7d3a 100644 --- a/gst/dvdspu/gstdvdspu.h +++ b/gst/dvdspu/gstdvdspu.h @@ -45,6 +45,7 @@ typedef struct SpuPixCtrlI SpuPixCtrlI; typedef struct SpuLineCtrlI SpuLineCtrlI; typedef struct SpuColour SpuColour; typedef enum SpuStateFlags SpuStateFlags; +typedef enum SpuInputType SpuInputType; typedef struct SpuState SpuState; typedef struct SpuPacket SpuPacket; typedef enum SpuCmd SpuCmd; @@ -106,6 +107,12 @@ enum SpuStateFlags { SPU_STATE_FORCED_ONLY = 0x100 }; +enum SpuInputType { + SPU_INPUT_TYPE_NONE = 0x00, + SPU_INPUT_TYPE_VOBSUB = 0x01, + SPU_INPUT_TYPE_PGS = 0x02 +}; + #define SPU_STATE_FLAGS_MASK (0xff) struct SpuState { @@ -198,6 +205,7 @@ struct _GstDVDSpu { GstSegment subp_seg; SpuState spu_state; + SpuInputType spu_input_type; /* GQueue of SpuBuf structures */ GQueue *pending_spus; |