mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
Media:Wave5: Add contiguous planes format support (YUV420/NV12/NV21)
Signed-off-by: Som Qin <som.qin@starfivetech.com>
This commit is contained in:
parent
2ffa2120fa
commit
67d21f678f
2 changed files with 22 additions and 22 deletions
|
@ -11,7 +11,7 @@
|
|||
#include "wave5-vpu.h"
|
||||
|
||||
#define FMT_TYPES 2
|
||||
#define MAX_FMTS 3
|
||||
#define MAX_FMTS 6
|
||||
|
||||
void wave5_cleanup_instance(struct vpu_instance *inst);
|
||||
int wave5_vpu_release_device(struct file *filp,
|
||||
|
|
|
@ -29,27 +29,6 @@ static const struct vpu_format dec_fmt_list[FMT_TYPES][MAX_FMTS] = {
|
|||
},
|
||||
},
|
||||
[VPU_FMT_TYPE_RAW] = {
|
||||
/*{
|
||||
.v4l2_pix_fmt = V4L2_PIX_FMT_YUV420,
|
||||
.max_width = 8192,
|
||||
.min_width = 8,
|
||||
.max_height = 4320,
|
||||
.min_height = 8,
|
||||
},
|
||||
{
|
||||
.v4l2_pix_fmt = V4L2_PIX_FMT_NV12,
|
||||
.max_width = 8192,
|
||||
.min_width = 8,
|
||||
.max_height = 4320,
|
||||
.min_height = 8,
|
||||
},
|
||||
{
|
||||
.v4l2_pix_fmt = V4L2_PIX_FMT_NV21,
|
||||
.max_width = 8192,
|
||||
.min_width = 8,
|
||||
.max_height = 4320,
|
||||
.min_height = 8,
|
||||
},*/
|
||||
{
|
||||
.v4l2_pix_fmt = V4L2_PIX_FMT_YUV420M,
|
||||
.max_width = 8192,
|
||||
|
@ -71,6 +50,27 @@ static const struct vpu_format dec_fmt_list[FMT_TYPES][MAX_FMTS] = {
|
|||
.max_height = 4320,
|
||||
.min_height = 8,
|
||||
},
|
||||
{
|
||||
.v4l2_pix_fmt = V4L2_PIX_FMT_YUV420,
|
||||
.max_width = 8192,
|
||||
.min_width = 8,
|
||||
.max_height = 4320,
|
||||
.min_height = 8,
|
||||
},
|
||||
{
|
||||
.v4l2_pix_fmt = V4L2_PIX_FMT_NV12,
|
||||
.max_width = 8192,
|
||||
.min_width = 8,
|
||||
.max_height = 4320,
|
||||
.min_height = 8,
|
||||
},
|
||||
{
|
||||
.v4l2_pix_fmt = V4L2_PIX_FMT_NV21,
|
||||
.max_width = 8192,
|
||||
.min_width = 8,
|
||||
.max_height = 4320,
|
||||
.min_height = 8,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue