videotestsrc: add support for I420_10 format

Add support for the I420_10 formats
Use the video frame api to get pixels and strides instead of our own
custom versions. Fixes the YVU9 format and probably some others.
This commit is contained in:
Wim Taymans 2012-05-28 16:16:24 +02:00
parent 467f8d360a
commit 27d4061c6c
2 changed files with 196 additions and 590 deletions

File diff suppressed because it is too large Load diff

View file

@ -46,9 +46,9 @@ struct vts_color_struct {
typedef struct paintinfo_struct paintinfo;
struct paintinfo_struct
{
unsigned char *ap, *yp, *up, *vp; /* pointers to first byte of each component
* for both packed/planar YUV and RGB */
int astride, ystride, ustride, vstride;
unsigned char *p[4]; /* pointers to first byte of each component
* for both packed/planar YUV and RGB */
int stride[4];
int size; /* size of a frame */
int width;
@ -71,6 +71,7 @@ struct paintinfo_struct
struct vts_color_struct foreground_color;
struct vts_color_struct background_color;
};
#define PAINT_INFO_INIT { { NULL, }, }
struct format_list_struct
{