|
10 | 10 | #include "vdec_1.h"
|
11 | 11 | #include "vdec_hevc.h"
|
12 | 12 | #include "codec_mpeg12.h"
|
| 13 | +#include "codec_mpeg4.h" |
13 | 14 | #include "codec_h264.h"
|
14 | 15 | #include "codec_hevc.h"
|
15 | 16 | #include "codec_vp9.h"
|
16 | 17 |
|
17 | 18 | static const struct amvdec_format vdec_formats_gxbb[] = {
|
18 | 19 | {
|
| 20 | + .pixfmt = V4L2_PIX_FMT_MPEG4, |
| 21 | + .min_buffers = 8, |
| 22 | + .max_buffers = 8, |
| 23 | + .max_width = 1920, |
| 24 | + .max_height = 1080, |
| 25 | + .vdec_ops = &vdec_1_ops, |
| 26 | + .codec_ops = &codec_mpeg4_ops, |
| 27 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 28 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 29 | + }, { |
| 30 | + .pixfmt = V4L2_PIX_FMT_H263, |
| 31 | + .min_buffers = 8, |
| 32 | + .max_buffers = 8, |
| 33 | + .max_width = 1920, |
| 34 | + .max_height = 1080, |
| 35 | + .vdec_ops = &vdec_1_ops, |
| 36 | + .codec_ops = &codec_mpeg4_ops, |
| 37 | + .firmware_path = "meson/vdec/gxl_h263.bin", |
| 38 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 39 | + }, { |
| 40 | + .pixfmt = V4L2_PIX_FMT_XVID, |
| 41 | + .min_buffers = 8, |
| 42 | + .max_buffers = 8, |
| 43 | + .max_width = 1920, |
| 44 | + .max_height = 1080, |
| 45 | + .vdec_ops = &vdec_1_ops, |
| 46 | + .codec_ops = &codec_mpeg4_ops, |
| 47 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 48 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 49 | + }, { |
19 | 50 | .pixfmt = V4L2_PIX_FMT_H264,
|
20 | 51 | .min_buffers = 2,
|
21 | 52 | .max_buffers = 24,
|
@@ -54,6 +85,36 @@ static const struct amvdec_format vdec_formats_gxbb[] = {
|
54 | 85 |
|
55 | 86 | static const struct amvdec_format vdec_formats_gxl[] = {
|
56 | 87 | {
|
| 88 | + .pixfmt = V4L2_PIX_FMT_MPEG4, |
| 89 | + .min_buffers = 8, |
| 90 | + .max_buffers = 8, |
| 91 | + .max_width = 1920, |
| 92 | + .max_height = 1080, |
| 93 | + .vdec_ops = &vdec_1_ops, |
| 94 | + .codec_ops = &codec_mpeg4_ops, |
| 95 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 96 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 97 | + }, { |
| 98 | + .pixfmt = V4L2_PIX_FMT_H263, |
| 99 | + .min_buffers = 8, |
| 100 | + .max_buffers = 8, |
| 101 | + .max_width = 1920, |
| 102 | + .max_height = 1080, |
| 103 | + .vdec_ops = &vdec_1_ops, |
| 104 | + .codec_ops = &codec_mpeg4_ops, |
| 105 | + .firmware_path = "meson/vdec/gxl_h263.bin", |
| 106 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 107 | + }, { |
| 108 | + .pixfmt = V4L2_PIX_FMT_XVID, |
| 109 | + .min_buffers = 8, |
| 110 | + .max_buffers = 8, |
| 111 | + .max_width = 1920, |
| 112 | + .max_height = 1080, |
| 113 | + .vdec_ops = &vdec_1_ops, |
| 114 | + .codec_ops = &codec_mpeg4_ops, |
| 115 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 116 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 117 | + }, { |
57 | 118 | .pixfmt = V4L2_PIX_FMT_VP9,
|
58 | 119 | .min_buffers = 16,
|
59 | 120 | .max_buffers = 24,
|
@@ -116,6 +177,36 @@ static const struct amvdec_format vdec_formats_gxl[] = {
|
116 | 177 |
|
117 | 178 | static const struct amvdec_format vdec_formats_gxm[] = {
|
118 | 179 | {
|
| 180 | + .pixfmt = V4L2_PIX_FMT_MPEG4, |
| 181 | + .min_buffers = 8, |
| 182 | + .max_buffers = 8, |
| 183 | + .max_width = 1920, |
| 184 | + .max_height = 1080, |
| 185 | + .vdec_ops = &vdec_1_ops, |
| 186 | + .codec_ops = &codec_mpeg4_ops, |
| 187 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 188 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 189 | + }, { |
| 190 | + .pixfmt = V4L2_PIX_FMT_H263, |
| 191 | + .min_buffers = 8, |
| 192 | + .max_buffers = 8, |
| 193 | + .max_width = 1920, |
| 194 | + .max_height = 1080, |
| 195 | + .vdec_ops = &vdec_1_ops, |
| 196 | + .codec_ops = &codec_mpeg4_ops, |
| 197 | + .firmware_path = "meson/vdec/gxl_h263.bin", |
| 198 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 199 | + }, { |
| 200 | + .pixfmt = V4L2_PIX_FMT_XVID, |
| 201 | + .min_buffers = 8, |
| 202 | + .max_buffers = 8, |
| 203 | + .max_width = 1920, |
| 204 | + .max_height = 1080, |
| 205 | + .vdec_ops = &vdec_1_ops, |
| 206 | + .codec_ops = &codec_mpeg4_ops, |
| 207 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 208 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 209 | + }, { |
119 | 210 | .pixfmt = V4L2_PIX_FMT_H264,
|
120 | 211 | .min_buffers = 2,
|
121 | 212 | .max_buffers = 24,
|
@@ -166,6 +257,36 @@ static const struct amvdec_format vdec_formats_gxm[] = {
|
166 | 257 |
|
167 | 258 | static const struct amvdec_format vdec_formats_g12a[] = {
|
168 | 259 | {
|
| 260 | + .pixfmt = V4L2_PIX_FMT_MPEG4, |
| 261 | + .min_buffers = 8, |
| 262 | + .max_buffers = 8, |
| 263 | + .max_width = 1920, |
| 264 | + .max_height = 1080, |
| 265 | + .vdec_ops = &vdec_1_ops, |
| 266 | + .codec_ops = &codec_mpeg4_ops, |
| 267 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 268 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 269 | + }, { |
| 270 | + .pixfmt = V4L2_PIX_FMT_H263, |
| 271 | + .min_buffers = 8, |
| 272 | + .max_buffers = 8, |
| 273 | + .max_width = 1920, |
| 274 | + .max_height = 1080, |
| 275 | + .vdec_ops = &vdec_1_ops, |
| 276 | + .codec_ops = &codec_mpeg4_ops, |
| 277 | + .firmware_path = "meson/vdec/gxl_h263.bin", |
| 278 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 279 | + }, { |
| 280 | + .pixfmt = V4L2_PIX_FMT_XVID, |
| 281 | + .min_buffers = 8, |
| 282 | + .max_buffers = 8, |
| 283 | + .max_width = 1920, |
| 284 | + .max_height = 1080, |
| 285 | + .vdec_ops = &vdec_1_ops, |
| 286 | + .codec_ops = &codec_mpeg4_ops, |
| 287 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 288 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 289 | + }, { |
169 | 290 | .pixfmt = V4L2_PIX_FMT_VP9,
|
170 | 291 | .min_buffers = 16,
|
171 | 292 | .max_buffers = 24,
|
@@ -228,6 +349,36 @@ static const struct amvdec_format vdec_formats_g12a[] = {
|
228 | 349 |
|
229 | 350 | static const struct amvdec_format vdec_formats_sm1[] = {
|
230 | 351 | {
|
| 352 | + .pixfmt = V4L2_PIX_FMT_MPEG4, |
| 353 | + .min_buffers = 8, |
| 354 | + .max_buffers = 8, |
| 355 | + .max_width = 1920, |
| 356 | + .max_height = 1080, |
| 357 | + .vdec_ops = &vdec_1_ops, |
| 358 | + .codec_ops = &codec_mpeg4_ops, |
| 359 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 360 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 361 | + }, { |
| 362 | + .pixfmt = V4L2_PIX_FMT_H263, |
| 363 | + .min_buffers = 8, |
| 364 | + .max_buffers = 8, |
| 365 | + .max_width = 1920, |
| 366 | + .max_height = 1080, |
| 367 | + .vdec_ops = &vdec_1_ops, |
| 368 | + .codec_ops = &codec_mpeg4_ops, |
| 369 | + .firmware_path = "meson/vdec/gxl_h263.bin", |
| 370 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 371 | + }, { |
| 372 | + .pixfmt = V4L2_PIX_FMT_XVID, |
| 373 | + .min_buffers = 8, |
| 374 | + .max_buffers = 8, |
| 375 | + .max_width = 1920, |
| 376 | + .max_height = 1080, |
| 377 | + .vdec_ops = &vdec_1_ops, |
| 378 | + .codec_ops = &codec_mpeg4_ops, |
| 379 | + .firmware_path = "meson/vdec/gxl_mpeg4_5.bin", |
| 380 | + .pixfmts_cap = { V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_YUV420M, 0 }, |
| 381 | + }, { |
231 | 382 | .pixfmt = V4L2_PIX_FMT_VP9,
|
232 | 383 | .min_buffers = 16,
|
233 | 384 | .max_buffers = 24,
|
|
0 commit comments