codecparsinglibs: Doc and indentation fixes

This commit is contained in:
Edward Hervey 2011-09-19 13:41:44 +02:00
parent 837500af07
commit e6212219ed
4 changed files with 114 additions and 98 deletions

View file

@ -1136,7 +1136,7 @@ gst_h264_nal_parser_new (void)
/** /**
* gst_h264_nal_parser_free: * gst_h264_nal_parser_free:
* @nalparser the #GstH264NalParser to free * @nalparser: the #GstH264NalParser to free
* *
* Frees @nalparser and sets it to %NULL * Frees @nalparser and sets it to %NULL
*/ */
@ -1270,7 +1270,7 @@ gst_h264_parser_identify_nalu_avc (GstH264NalParser * nalparser,
* @nalparser: a #GstH264NalParser * @nalparser: a #GstH264NalParser
* @nalu: The #GstH264NalUnit to parse * @nalu: The #GstH264NalUnit to parse
* *
* This function should be called in the case you don't need to * This function should be called in the case one doesn't need to
* parse a specific structure. It is necessary to do so to make * parse a specific structure. It is necessary to do so to make
* sure @nalparser is up to date. * sure @nalparser is up to date.
* *
@ -1296,8 +1296,8 @@ gst_h264_parser_parse_nal (GstH264NalParser * nalparser, GstH264NalUnit * nalu)
/** /**
* gst_h264_parser_parse_sps: * gst_h264_parser_parse_sps:
* @nalparser: a #GstH264NalParser * @nalparser: a #GstH264NalParser
* @nalu: The #GST_H264_NAL_SPS #GstH264NalUnit you want to parse * @nalu: The #GST_H264_NAL_SPS #GstH264NalUnit to parse
* @slice: The #GstH264SPS to fill. * @sps: The #GstH264SPS to fill.
* @parse_vui_params: Whether to parse the vui_params or not * @parse_vui_params: Whether to parse the vui_params or not
* *
* Parses @data, and fills the @sps structure. * Parses @data, and fills the @sps structure.
@ -1324,7 +1324,7 @@ gst_h264_parser_parse_sps (GstH264NalParser * nalparser, GstH264NalUnit * nalu,
/** /**
* gst_h264_parse_sps: * gst_h264_parse_sps:
* @nalu: The #GST_H264_NAL_SPS #GstH264NalUnit you want to parse * @nalu: The #GST_H264_NAL_SPS #GstH264NalUnit to parse
* @sps: The #GstH264SPS to fill. * @sps: The #GstH264SPS to fill.
* @parse_vui_params: Whether to parse the vui_params or not * @parse_vui_params: Whether to parse the vui_params or not
* *
@ -1502,7 +1502,7 @@ error:
/** /**
* gst_h264_parse_pps: * gst_h264_parse_pps:
* @nalparser: a #GstH264NalParser * @nalparser: a #GstH264NalParser
* @nalu: The #GST_H264_NAL_PPS #GstH264NalUnit you want to parse * @nalu: The #GST_H264_NAL_PPS #GstH264NalUnit to parse
* @pps: The #GstH264PPS to fill. * @pps: The #GstH264PPS to fill.
* *
* Parses @data, and fills the @pps structure. * Parses @data, and fills the @pps structure.
@ -1631,7 +1631,7 @@ error:
/** /**
* gst_h264_parser_parse_pps: * gst_h264_parser_parse_pps:
* @nalparser: a #GstH264NalParser * @nalparser: a #GstH264NalParser
* @nalu: The #GST_H264_NAL_PPS #GstH264NalUnit you want to parse * @nalu: The #GST_H264_NAL_PPS #GstH264NalUnit to parse
* @pps: The #GstH264PPS to fill. * @pps: The #GstH264PPS to fill.
* *
* Parses @data, and fills the @pps structure. * Parses @data, and fills the @pps structure.
@ -1657,7 +1657,7 @@ gst_h264_parser_parse_pps (GstH264NalParser * nalparser,
/** /**
* gst_h264_parser_parse_slice_hdr: * gst_h264_parser_parse_slice_hdr:
* @nalparser: a #GstH264NalParser * @nalparser: a #GstH264NalParser
* @nalu: The #GST_H264_NAL_SLICE #GstH264NalUnit you want to parse * @nalu: The #GST_H264_NAL_SLICE #GstH264NalUnit to parse
* @slice: The #GstH264SliceHdr to fill. * @slice: The #GstH264SliceHdr to fill.
* @parse_pred_weight_table: Whether to parse the pred_weight_table or not * @parse_pred_weight_table: Whether to parse the pred_weight_table or not
* @parse_dec_ref_pic_marking: Whether to parse the dec_ref_pic_marking or not * @parse_dec_ref_pic_marking: Whether to parse the dec_ref_pic_marking or not
@ -1834,7 +1834,7 @@ error:
/** /**
* gst_h264_parser_parse_sei: * gst_h264_parser_parse_sei:
* @nalparser: a #GstH264NalParser * @nalparser: a #GstH264NalParser
* @nalu: The #GST_H264_NAL_SEI #GstH264NalUnit you want to parse * @nalu: The #GST_H264_NAL_SEI #GstH264NalUnit to parse
* @sei: The #GstH264SEIMessage to fill. * @sei: The #GstH264SEIMessage to fill.
* *
* Parses @data, and fills the @sei structures. * Parses @data, and fills the @sei structures.

View file

@ -45,19 +45,19 @@ G_BEGIN_DECLS
/** /**
* GstH264NalUnitType: * GstH264NalUnitType:
* @GST_H264_NAL_UNKNOWN: Unkonw nal type * @GST_H264_NAL_UNKNOWN: Unknown nal type
* @GST_H264_NAL_SLICE: Slice nal * @GST_H264_NAL_SLICE: Slice nal
* @GST_H264_NAL_SLICE_DPA: DPA slice nal * @GST_H264_NAL_SLICE_DPA: DPA slice nal
* @GST_H264_NAL_SLICE_DPB: DPB slice nal * @GST_H264_NAL_SLICE_DPB: DPB slice nal
* @GST_H264_NAL_SLICE_DPC: DPC slice nal * @GST_H264_NAL_SLICE_DPC: DPC slice nal
* @GST_H264_NAL_SLICE_IDR: DPR slice nal * @GST_H264_NAL_SLICE_IDR: DPR slice nal
* @GST_H264_NAL_SEI: Supplemental enhancement information nal unit * @GST_H264_NAL_SEI: Supplemental enhancement information (SEI) nal unit
* @GST_H264_NAL_SPS: Sequence parameter set nal unit * @GST_H264_NAL_SPS: Sequence parameter set (SPS) nal unit
* @GST_H264_NAL_PPS: Picture parameter set nal unit * @GST_H264_NAL_PPS: Picture parameter set (PPS) nal unit
* @GST_H264_NAL_AU_DELIMITER: Access unit delimiter nal unit * @GST_H264_NAL_AU_DELIMITER: Access unit (AU) delimiter nal unit
* @GST_H264_NAL_SEQ_END: End of sequence nal unit * @GST_H264_NAL_SEQ_END: End of sequence nal unit
* @GST_H264_NAL_STREAM_END: End of stream nal unit * @GST_H264_NAL_STREAM_END: End of stream nal unit
* @GST_H264_NAL_FILLER_DATA: Filler data na lunit * @GST_H264_NAL_FILLER_DATA: Filler data nal lunit
* *
* Indicates the type of H264 Nal Units * Indicates the type of H264 Nal Units
*/ */
@ -81,13 +81,13 @@ typedef enum
/** /**
* GstH264ParserResult: * GstH264ParserResult:
* @GST_H264_PARSER_OK: The parsing succeded * @GST_H264_PARSER_OK: The parsing succeded
* @GST_H264_PARSER_BROKEN_DATA: The data we parsed where broken * @GST_H264_PARSER_BROKEN_DATA: The data to parse is broken
* @GST_H264_PARSER_BROKEN_LINK: The link to a needed struct for the parsing couldn't be found * @GST_H264_PARSER_BROKEN_LINK: The link to structure needed for the parsing couldn't be found
* @GST_H264_PARSER_ERROR: An error accured when parsing * @GST_H264_PARSER_ERROR: An error accured when parsing
* @GST_H264_PARSER_NO_NAL: No nal found during the parsing * @GST_H264_PARSER_NO_NAL: No nal found during the parsing
* @GST_H264_PARSER_NO_NAL_END: Start of the nal found, not the end. * @GST_H264_PARSER_NO_NAL_END: Start of the nal found, but not the end.
* *
* Information about how the parsing of a H264 elements went. * The result of parsing H264 data.
*/ */
typedef enum typedef enum
{ {
@ -101,11 +101,11 @@ typedef enum
/** /**
* GstH264SEIPayloadType: * GstH264SEIPayloadType:
* @GST_H264_SEI_BUF_PERIOD: The Sei Message contains a buffering period message * @GST_H264_SEI_BUF_PERIOD: Buffering Period SEI Message
* @GST_H264_SEI_PIC_TIMING: The Sei Message contains a picture timing message * @GST_H264_SEI_PIC_TIMING: Picture Timing SEI Message
* ... * ...
* *
* The type of the SEI message information * The type of SEI message.
*/ */
typedef enum typedef enum
{ {
@ -294,7 +294,7 @@ struct _GstH264HRDParams
* samples outside picture boundaries may be used in inter prediction * samples outside picture boundaries may be used in inter prediction
* @max_bytes_per_pic_denom: indicates a number of bytes not exceeded by the sum of the sizes of * @max_bytes_per_pic_denom: indicates a number of bytes not exceeded by the sum of the sizes of
* the VCL NAL units associated with any coded picture in the coded video sequence. * the VCL NAL units associated with any coded picture in the coded video sequence.
* @max_bits_per_mb_denom: indicates the maximum number of coded bits of macroblock_layer() * @max_bits_per_mb_denom: indicates the maximum number of coded bits of macroblock_layer
* @log2_max_mv_length_horizontal: indicate the maximum absolute value of a decoded horizontal * @log2_max_mv_length_horizontal: indicate the maximum absolute value of a decoded horizontal
* motion vector component * motion vector component
* @log2_max_mv_length_vertical: indicate the maximum absolute value of a decoded vertical * @log2_max_mv_length_vertical: indicate the maximum absolute value of a decoded vertical
@ -363,7 +363,7 @@ struct _GstH264VUIParams
* @id: The ID of the sequence parameter set * @id: The ID of the sequence parameter set
* @profile_idc: indicate the profile to which the coded video sequence conforms * @profile_idc: indicate the profile to which the coded video sequence conforms
* *
* * H264 Sequence Parameter Set (SPS)
*/ */
struct _GstH264SPS struct _GstH264SPS
{ {
@ -429,6 +429,11 @@ struct _GstH264SPS
gboolean valid; gboolean valid;
}; };
/**
* GstH264PPS:
*
* H264 Picture Parameter Set
*/
struct _GstH264PPS struct _GstH264PPS
{ {
gint id; gint id;

View file

@ -309,12 +309,12 @@ scan_for_start_codes (const GstByteReader * reader, guint offset, guint size)
/** /**
* gst_mpeg_video_parse: * gst_mpeg_video_parse:
* @data: The datas from which to parse * @data: The data to parse
* @size: The size of @data * @size: The size of @data
* @offset: The offset from which to start the parsing * @offset: The offset from which to start parsing
* *
* Parses @data, and detects the different packets types, offset, * Parses the MPEG 1/2 video bitstream contained in @data , and returns the
* and size, starting from @offset * detect packets as a list of #GstMpegVideoTypeOffsetSize.
* *
* Returns: a #GList of #GstMpegVideoTypeOffsetSize * Returns: a #GList of #GstMpegVideoTypeOffsetSize
*/ */
@ -373,12 +373,12 @@ gst_mpeg_video_parse (guint8 * data, gsize size, guint offset)
/** /**
* gst_mpeg_video_parse_sequence_header: * gst_mpeg_video_parse_sequence_header:
* @seqhdr: The #GstMpegVideoSequenceHdr to set * @seqhdr: (out): The #GstMpegVideoSequenceHdr structure to fill
* @data: The datas from which to parse the seqhdr * @data: The data from which to parse the sequence header
* @size: The size of @data * @size: The size of @data
* @offset: The offset in byte from which to start parsing @data * @offset: The offset in byte from which to start parsing @data
* *
* Sets the @seqhdr Mpeg Video Sequence Header structure members from @data * Parses the @seqhdr Mpeg Video Sequence Header structure members from @data
* *
* Returns: %TRUE if the seqhdr could be parsed correctly, %FALSE otherwize. * Returns: %TRUE if the seqhdr could be parsed correctly, %FALSE otherwize.
*/ */
@ -400,12 +400,12 @@ gst_mpeg_video_parse_sequence_header (GstMpegVideoSequenceHdr * seqhdr,
/** /**
* gst_mpeg_video_parse_sequence_extension: * gst_mpeg_video_parse_sequence_extension:
* @seqhdr: The #GstMpegVideoSequenceExt to set * @seqext: (out): The #GstMpegVideoSequenceExt structure to fill
* @data: The datas from which to parse the seqext * @data: The data from which to parse the sequence extension
* @size: The size of @data * @size: The size of @data
* @offset: The offset in byte from which to start parsing @data * @offset: The offset in byte from which to start parsing @data
* *
* Sets the @seqext Mpeg Video Sequence Extension structure members from @data * Parses the @seqext Mpeg Video Sequence Extension structure members from @data
* *
* Returns: %TRUE if the seqext could be parsed correctly, %FALSE otherwize. * Returns: %TRUE if the seqext could be parsed correctly, %FALSE otherwize.
*/ */
@ -464,12 +464,12 @@ gst_mpeg_video_parse_sequence_extension (GstMpegVideoSequenceExt * seqext,
/** /**
* gst_mpeg_video_parse_quant_matrix_extension: * gst_mpeg_video_parse_quant_matrix_extension:
* @ext: The #GstMpegVideoQuantMatrixExt to set * @quant: (out): The #GstMpegVideoQuantMatrixExt structure to fill
* @data: The datas from which to parse @quant * @data: The data from which to parse the Quantization Matrix extension
* @size: The size of @data * @size: The size of @data
* @offset: The offset in byte from which to start the parsing * @offset: The offset in byte from which to start the parsing
* *
* Sets the @quant Mpeg Video Quant Matrix Extension structure members from * Parses the @quant Mpeg Video Quant Matrix Extension structure members from
* @data * @data
* *
* Returns: %TRUE if the quant matrix extension could be parsed correctly, * Returns: %TRUE if the quant matrix extension could be parsed correctly,
@ -537,12 +537,12 @@ failed:
/** /**
* gst_mpeg_video_parse_picture_extension: * gst_mpeg_video_parse_picture_extension:
* @ext: The #GstMpegVideoPictureExt to set * @ext: (out): The #GstMpegVideoPictureExt structure to fill
* @data: The datas from which to parse the ext * @data: The data from which to parse the picture extension
* @size: The size of @data * @size: The size of @data
* @offset: The offset in byte from which to start the parsing * @offset: The offset in byte from which to start the parsing
* *
* Sets the @ext Mpeg Video Picture Extension structure members from @data * Parse the @ext Mpeg Video Picture Extension structure members from @data
* *
* Returns: %TRUE if the picture extension could be parsed correctly, * Returns: %TRUE if the picture extension could be parsed correctly,
* %FALSE otherwize. * %FALSE otherwize.
@ -636,14 +636,15 @@ failed:
/** /**
* gst_mpeg_video_parse_picture_header: * gst_mpeg_video_parse_picture_header:
* @hdr: The #GstMpegVideoPictureHdr to set * @hdr: (out): The #GstMpegVideoPictureHdr structure to fill
* @data: The datas from which to parse the hdr * @data: The data from which to parse the picture header
* @size: The size of @data * @size: The size of @data
* @offset: The offset in byte from which to start the parsing * @offset: The offset in byte from which to start the parsing
* *
* Sets the @hdr Mpeg Video Picture Header structure members from @data * Parsers the @hdr Mpeg Video Picture Header structure members from @data
* *
* Returns: %TRUE if the picture sequence could be parsed correctly, %FALSE otherwize. * Returns: %TRUE if the picture sequence could be parsed correctly, %FALSE
* otherwize.
*/ */
gboolean gboolean
gst_mpeg_video_parse_picture_header (GstMpegVideoPictureHdr * hdr, gst_mpeg_video_parse_picture_header (GstMpegVideoPictureHdr * hdr,
@ -708,13 +709,12 @@ failed:
/** /**
* gst_mpeg_video_parse_gop: * gst_mpeg_video_parse_gop:
* @gop: The #GstMpegVideoGop to set * @gop: (out): The #GstMpegVideoGop structure to fill
* @data: The datas from which to parse the gop * @data: The data from which to parse the gop
* @size: The size of @data * @size: The size of @data
* @offset: The offset in byte from which to start the parsing * @offset: The offset in byte from which to start the parsing
* *
* * Parses the @gop Mpeg Video Group of Picture structure members from @data
* Sets the @gop Mpeg Video Group of Picture structure members from @data
* *
* Returns: %TRUE if the gop could be parsed correctly, %FALSE otherwize. * Returns: %TRUE if the gop could be parsed correctly, %FALSE otherwize.
*/ */

View file

@ -56,33 +56,44 @@ typedef enum {
GST_MPEG_VIDEO_PACKET_NONE = 0xff GST_MPEG_VIDEO_PACKET_NONE = 0xff
} GstMpegVideoPacketTypeCode; } GstMpegVideoPacketTypeCode;
/**
* GST_MPEG_VIDEO_PACKET_IS_SLICE:
* @typecode: The MPEG video packet type code
*
* Checks whether a packet type code is a slice.
*
* Returns: %TRUE if the packet type code corresponds to a slice,
* else %FALSE.
*/
#define GST_MPEG_VIDEO_PACKET_IS_SLICE(typecode) ((typecode) >= GST_MPEG_VIDEO_PACKET_SLICE_MIN && \
(typecode) <= GST_MPEG_VIDEO_PACKET_SLICE_MAX)
/** /**
* GstMpegVideoPacketExtensionCode: * GstMpegVideoPacketExtensionCode:
* @GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE: Sequence extension code * @GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE: Sequence extension code
* @GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE_DISPLAY: Display extension code * @GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE_DISPLAY: Sequence Display extension code
* @GST_MPEG_VIDEO_PACKET_EXT_QUANT_MATRIX: Quantizer extension code * @GST_MPEG_VIDEO_PACKET_EXT_QUANT_MATRIX: Quantization Matrix extension code
* @GST_MPEG_VIDEO_PACKET_EXT_GOP: Group Of Picture extension code * @GST_MPEG_VIDEO_PACKET_EXT_PICTURE: Picture coding extension
* *
* Indicates what type of packets are in this * Indicates what type of packets are in this block, some are mutually
* block, some are mutually * exclusive though - ie, sequence packs are * exclusive though - ie, sequence packs are accumulated separately. GOP &
* accumulated separately. GOP & Picture may occur together or separately * Picture may occur together or separately.
*/ */
typedef enum { typedef enum {
GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE = 0x01, GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE = 0x01,
GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE_DISPLAY = 0x02, GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE_DISPLAY = 0x02,
GST_MPEG_VIDEO_PACKET_EXT_QUANT_MATRIX = 0x03, GST_MPEG_VIDEO_PACKET_EXT_QUANT_MATRIX = 0x03,
GST_MPEG_VIDEO_PACKET_EXT_GOP = 0x04,
GST_MPEG_VIDEO_PACKET_EXT_PICTURE = 0x08 GST_MPEG_VIDEO_PACKET_EXT_PICTURE = 0x08
} GstMpegVideoPacketExtensionCode; } GstMpegVideoPacketExtensionCode;
/** /**
* GstMpegVideoLevel: * GstMpegVideoLevel:
* @GST_MPEG_VIDEO_LEVEL_LOW: Level Low * @GST_MPEG_VIDEO_LEVEL_LOW: Low level (LL)
* @GST_MPEG_VIDEO_LEVEL_MAIN: Level Main * @GST_MPEG_VIDEO_LEVEL_MAIN: Main level (ML)
* @GST_MPEG_VIDEO_LEVEL_HIGH_1440: Level High 1440 * @GST_MPEG_VIDEO_LEVEL_HIGH_1440: High 1440 level (H-14)
* @GST_MPEG_VIDEO_LEVEL_HIGH: Level High * @GST_MPEG_VIDEO_LEVEL_HIGH: High level (HL)
* *
* Indicates the level in use * Mpeg-2 Levels.
**/ **/
typedef enum { typedef enum {
GST_MPEG_VIDEO_LEVEL_HIGH = 0x04, GST_MPEG_VIDEO_LEVEL_HIGH = 0x04,
@ -93,14 +104,14 @@ typedef enum {
/** /**
* GstMpegVideoProfile: * GstMpegVideoProfile:
* @GST_MPEG_VIDEO_PROFILE_422, * @GST_MPEG_VIDEO_PROFILE_422: 4:2:2 profile (422)
* @GST_MPEG_VIDEO_PROFILE_HIGH, * @GST_MPEG_VIDEO_PROFILE_HIGH: High profile (HP)
* @GST_MPEG_VIDEO_PROFILE_SPATIALLY_SCALABLE, * @GST_MPEG_VIDEO_PROFILE_SPATIALLY_SCALABLE: Spatially Scalable profile (Spatial)
* @GST_MPEG_VIDEO_PROFILE_SNR_SCALABLE, * @GST_MPEG_VIDEO_PROFILE_SNR_SCALABLE: SNR Scalable profile (SNR)
* @GST_MPEG_VIDEO_PROFILE_MAIN, * @GST_MPEG_VIDEO_PROFILE_MAIN: Main profile (MP)
* @GST_MPEG_VIDEO_PROFILE_SIMPLE, * @GST_MPEG_VIDEO_PROFILE_SIMPLE: Simple profile (SP)
* *
* Indicates the profile type in use * Mpeg-2 Profiles.
**/ **/
typedef enum { typedef enum {
GST_MPEG_VIDEO_PROFILE_422 = 0x00, GST_MPEG_VIDEO_PROFILE_422 = 0x00,
@ -113,12 +124,12 @@ typedef enum {
/** /**
* GstMpegVideoChromaFormat: * GstMpegVideoChromaFormat:
* @GST_MPEG_VIDEO_CHROMA_RES, * @GST_MPEG_VIDEO_CHROMA_RES: Invalid (reserved for future use)
* @GST_MPEG_VIDEO_CHROMA_420, * @GST_MPEG_VIDEO_CHROMA_420: 4:2:0 subsampling
* @GST_MPEG_VIDEO_CHROMA_422, * @GST_MPEG_VIDEO_CHROMA_422: 4:2:2 subsampling
* @GST_MPEG_VIDEO_CHROMA_444, * @GST_MPEG_VIDEO_CHROMA_444: 4:4:4 (non-subsampled)
* *
* Indicates the chroma type * Chroma subsampling type.
*/ */
typedef enum { typedef enum {
GST_MPEG_VIDEO_CHROMA_RES = 0x00, GST_MPEG_VIDEO_CHROMA_RES = 0x00,
@ -129,12 +140,12 @@ typedef enum {
/** /**
* GstMpegVideoPictureType: * GstMpegVideoPictureType:
* @GST_MPEG_VIDEO_PICTURE_TYPE_I: Type I * @GST_MPEG_VIDEO_PICTURE_TYPE_I: Intra-coded (I) frame
* @GST_MPEG_VIDEO_PICTURE_TYPE_P: Type P * @GST_MPEG_VIDEO_PICTURE_TYPE_P: Predictive-codec (P) frame
* @GST_MPEG_VIDEO_PICTURE_TYPE_B: Type B * @GST_MPEG_VIDEO_PICTURE_TYPE_B: Bidirectionally predictive-coded (B) frame
* @GST_MPEG_VIDEO_PICTURE_TYPE_D: Type D * @GST_MPEG_VIDEO_PICTURE_TYPE_D: D frame
* *
* Indicates the type of picture * Picture type.
*/ */
typedef enum { typedef enum {
GST_MPEG_VIDEO_PICTURE_TYPE_I = 0x01, GST_MPEG_VIDEO_PICTURE_TYPE_I = 0x01,
@ -147,9 +158,9 @@ typedef enum {
* GstMpegVideoPictureStructure: * GstMpegVideoPictureStructure:
* @GST_MPEG_VIDEO_PICTURE_STRUCTURE_TOP_FIELD: Top field * @GST_MPEG_VIDEO_PICTURE_STRUCTURE_TOP_FIELD: Top field
* @GST_MPEG_VIDEO_PICTURE_STRUCTURE_BOTTOM_FIELD: Bottom field * @GST_MPEG_VIDEO_PICTURE_STRUCTURE_BOTTOM_FIELD: Bottom field
* @GST_MPEG_VIDEO_PICTURE_STRUCTURE_FRAME: Frame * @GST_MPEG_VIDEO_PICTURE_STRUCTURE_FRAME: Frame picture
* *
* Indicates the structure of picture * Picture structure type.
*/ */
typedef enum { typedef enum {
GST_MPEG_VIDEO_PICTURE_STRUCTURE_TOP_FIELD = 0x01, GST_MPEG_VIDEO_PICTURE_STRUCTURE_TOP_FIELD = 0x01,
@ -184,20 +195,20 @@ typedef struct _GstMpegVideoTypeOffsetSize GstMpegVideoTypeOffsetSize;
struct _GstMpegVideoSequenceHdr struct _GstMpegVideoSequenceHdr
{ {
guint16 width, height; guint16 width, height;
guint8 aspect_ratio_info; guint8 aspect_ratio_info;
guint8 frame_rate_code; guint8 frame_rate_code;
guint32 bitrate_value; guint32 bitrate_value;
guint16 vbv_buffer_size_value; guint16 vbv_buffer_size_value;
guint8 constrained_parameters_flag; guint8 constrained_parameters_flag;
guint8 intra_quantizer_matrix[64]; guint8 intra_quantizer_matrix[64];
guint8 non_intra_quantizer_matrix[64]; guint8 non_intra_quantizer_matrix[64];
/* Calculated values */ /* Calculated values */
guint par_w, par_h; guint par_w, par_h;
guint fps_n, fps_d; guint fps_n, fps_d;
guint bitrate; guint bitrate;
}; };
/** /**
@ -210,7 +221,7 @@ struct _GstMpegVideoSequenceHdr
* @vert_size_ext: Vertical size * @vert_size_ext: Vertical size
* @bitrate_ext: The bitrate * @bitrate_ext: The bitrate
* @vbv_buffer_size_extension: Vbv vuffer size * @vbv_buffer_size_extension: Vbv vuffer size
* @low_delay: %TRUE if the sequence doesn't contain any B-pitcture, %FALSE * @low_delay: %TRUE if the sequence doesn't contain any B-pictures, %FALSE
* otherwize * otherwize
* @fps_n_ext: Framerate nominator code * @fps_n_ext: Framerate nominator code
* @fps_d_ext: Framerate denominator code * @fps_d_ext: Framerate denominator code
@ -238,14 +249,14 @@ struct _GstMpegVideoSequenceExt
/** /**
* GstMpegVideoQuantMatrixExt: * GstMpegVideoQuantMatrixExt:
* @load_intra_quantiser_matrix * @load_intra_quantiser_matrix:
* @intra_quantiser_matrix * @intra_quantiser_matrix:
* @load_non_intra_quantiser_matrix * @load_non_intra_quantiser_matrix:
* @non_intra_quantiser_matrix: * @non_intra_quantiser_matrix:
* @load_chroma_intra_quantiser_matrix * @load_chroma_intra_quantiser_matrix:
* @chroma_intra_quantiser_matrix * @chroma_intra_quantiser_matrix:
* @load_chroma_non_intra_quantiser_matrix * @load_chroma_non_intra_quantiser_matrix:
* @chroma_non_intra_quantiser_matrix * @chroma_non_intra_quantiser_matrix:
* *
* The Quant Matrix Extension structure * The Quant Matrix Extension structure
*/ */
@ -355,11 +366,11 @@ struct _GstMpegVideoGop
struct _GstMpegVideoTypeOffsetSize struct _GstMpegVideoTypeOffsetSize
{ {
guint8 type; guint8 type;
guint offset; guint offset;
gint size; gint size;
}; };
GList * gst_mpeg_video_parse (guint8 * data, gsize size, guint offset); GList *gst_mpeg_video_parse (guint8 * data, gsize size, guint offset);
gboolean gst_mpeg_video_parse_sequence_header (GstMpegVideoSequenceHdr * params, gboolean gst_mpeg_video_parse_sequence_header (GstMpegVideoSequenceHdr * params,
guint8 * data, gsize size, guint offset); guint8 * data, gsize size, guint offset);