mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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:
parent
467f8d360a
commit
27d4061c6c
2 changed files with 196 additions and 590 deletions
File diff suppressed because it is too large
Load diff
|
@ -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
|
||||
unsigned char *p[4]; /* pointers to first byte of each component
|
||||
* for both packed/planar YUV and RGB */
|
||||
int astride, ystride, ustride, vstride;
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue