FS-7500: initial idea to decode video in core

This commit is contained in:
Seven Du
2013-09-25 02:39:29 +08:00
committed by Anthony Minessale
parent 9498f60853
commit 464d18029b
6 changed files with 52 additions and 15 deletions
+11
View File
@@ -611,6 +611,13 @@ struct switch_codec_fmtp {
};
struct switch_picture {
uint32_t width; /* the picture width */
uint32_t height; /* the picture height */
uint8_t *planes[4]; /* pointer to the top left pixel for each plane */
uint32_t stride[4]; /* stride between rows for each plane */
};
/*! an abstract handle to a codec module */
struct switch_codec {
/*! the codec interface table this handle uses */
@@ -632,6 +639,10 @@ struct switch_codec {
struct switch_codec *next;
switch_core_session_t *session;
switch_frame_t *cur_frame;
/*! raw picture for encode */
switch_picture_t enc_picture;
/*! decoded picture */
switch_picture_t dec_picture;
};
/*! \brief A table of settings and callbacks that define a paticular implementation of a codec */