| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef __GST_MPEG_VIDEO_META_H__ |
| 21 |
#define __GST_MPEG_VIDEO_META_H__ |
| 22 |
|
| 23 |
#ifndef GST_USE_UNSTABLE_API |
| 24 |
#warning "The Mpeg video parsing library is unstable API and may change in future." |
| 25 |
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." |
| 26 |
#endif |
| 27 |
|
| 28 |
#include <gst/gst.h> |
| 29 |
#include <gst/codecparsers/gstmpegvideoparser.h> |
| 30 |
|
| 31 |
G_BEGIN_DECLS |
| 32 |
|
| 33 |
typedef struct _GstMpegVideoMeta GstMpegVideoMeta; |
| 34 |
|
| 35 |
GST_CODEC_PARSERS_API |
| 36 |
GType gst_mpeg_video_meta_api_get_type (void); |
| 37 |
#define GST_MPEG_VIDEO_META_API_TYPE (gst_mpeg_video_meta_api_get_type()) |
| 38 |
#define GST_MPEG_VIDEO_META_INFO (gst_mpeg_video_meta_get_info()) |
| 39 |
GST_CODEC_PARSERS_API |
| 40 |
const GstMetaInfo * gst_mpeg_video_meta_get_info (void); |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
struct _GstMpegVideoMeta { |
| 64 |
GstMeta meta; |
| 65 |
|
| 66 |
GstMpegVideoSequenceHdr *sequencehdr; |
| 67 |
GstMpegVideoSequenceExt *sequenceext; |
| 68 |
GstMpegVideoSequenceDisplayExt *sequencedispext; |
| 69 |
GstMpegVideoPictureHdr *pichdr; |
| 70 |
GstMpegVideoPictureExt *picext; |
| 71 |
GstMpegVideoQuantMatrixExt *quantext; |
| 72 |
|
| 73 |
guint num_slices; |
| 74 |
gsize slice_offset; |
| 75 |
}; |
| 76 |
|
| 77 |
|
| 78 |
#define gst_buffer_get_mpeg_video_meta(b) ((GstMpegVideoMeta*)gst_buffer_get_meta((b),GST_MPEG_VIDEO_META_API_TYPE)) |
| 79 |
|
| 80 |
GST_CODEC_PARSERS_API |
| 81 |
GstMpegVideoMeta * |
| 82 |
gst_buffer_add_mpeg_video_meta (GstBuffer * buffer, |
| 83 |
const GstMpegVideoSequenceHdr *seq_hdr, |
| 84 |
const GstMpegVideoSequenceExt *seq_ext, |
| 85 |
const GstMpegVideoSequenceDisplayExt *disp_ext, |
| 86 |
const GstMpegVideoPictureHdr *pic_hdr, |
| 87 |
const GstMpegVideoPictureExt *pic_ext, |
| 88 |
const GstMpegVideoQuantMatrixExt *quant_ext); |
| 89 |
|
| 90 |
G_END_DECLS |
| 91 |
|
| 92 |
#endif |