diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Input/in_flv/FLVVideoHeader.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Plugins/Input/in_flv/FLVVideoHeader.h')
-rw-r--r-- | Src/Plugins/Input/in_flv/FLVVideoHeader.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Src/Plugins/Input/in_flv/FLVVideoHeader.h b/Src/Plugins/Input/in_flv/FLVVideoHeader.h new file mode 100644 index 00000000..6a40d886 --- /dev/null +++ b/Src/Plugins/Input/in_flv/FLVVideoHeader.h @@ -0,0 +1,32 @@ +#ifndef NULLSOFT_FLVVIDEOHEADER_H +#define NULLSOFT_FLVVIDEOHEADER_H + +namespace FLV +{ + const int VIDEO_FORMAT_JPEG = 1; + const int VIDEO_FORMAT_SORENSON = 2; // H.263 + const int VIDEO_FORMAT_SCREEN = 3; + const int VIDEO_FORMAT_VP6 = 4; + const int VIDEO_FORMAT_VP62 = 5; + const int VIDEO_FORMAT_SCREEN_V2 = 6; + const int VIDEO_FORMAT_AVC = 7; // MPEG-4 Part 10 + + const int VIDEO_FRAMETYPE_KEYFRAME = 1; + const int VIDEO_FRAMETYPE_IFRAME = 2; + const int VIDEO_FRAMETYPE_IFRAME_DISPOSABLE = 3; + const int VIDEO_FRAMETYPE_GENERATED = 4; + const int VIDEO_FRAMETYPE_INFO = 5; +}; + + +class FLVVideoHeader +{ +public: + bool Read(unsigned __int8 *data, size_t size); // size must be >=1, returns "true" if this was a valid header + + // attributes, consider these read-only + int format; + int frameType; +}; + +#endif
\ No newline at end of file |