summaryrefslogtreecommitdiff
path: root/streaminfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'streaminfo.h')
-rw-r--r--streaminfo.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/streaminfo.h b/streaminfo.h
index 7b94e21..bb54373 100644
--- a/streaminfo.h
+++ b/streaminfo.h
@@ -17,23 +17,35 @@
class cMarkAdStreamInfo
{
private:
- // taken from femon
+ // taken from ffmpeg
enum
{
- NAL_SEI = 0x06, // Supplemental Enhancement Information
- NAL_SPS = 0x07, // Sequence Parameter Set
- NAL_AUD = 0x09, // Access Unit Delimiter
- NAL_END_SEQ = 0x0A // End of Sequence
+ NAL_SLICE = 0x01, // Slice
+ NAL_IDR_SLICE = 0x05, // IDR-Slice
+ NAL_SEI = 0x06, // Supplemental Enhancement Information
+ NAL_SPS = 0x07, // Sequence Parameter Set
+ NAL_PPS = 0x08, // Picture Parameter Set
+ NAL_AUD = 0x09, // Access Unit Delimiter
+ NAL_END_SEQ = 0x0A, // End of Sequence
+ NAL_SPS_EXT = 0x0D, // Sequence Parameter Set Extension
+ NAL_AUX_SLICE = 0x19 // Auxilary Slice
};
+
+ struct H264
+ {
+ bool separate_colour_plane_flag;
+ bool frame_mbs_only_flag;
+ int log2_max_frame_num;
+ } H264;
+
int nalUnescape(uint8_t *dst, const uint8_t *src, int len);
const uint8_t *nextStartCode(const uint8_t *start, const uint8_t *end);
bool FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
bool FindH262VideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
public:
+ cMarkAdStreamInfo();
bool FindVideoInfos(MarkAdContext *maContext, uchar *pkt, int len);
bool FindAC3AudioInfos(MarkAdContext *maContext, uchar *espkt, int eslen);
-
-
};
// taken from femon
@@ -96,4 +108,4 @@ public:
}
};
-#endif \ No newline at end of file
+#endif