History

media: add Sorenson Spark video format

Sorenson Spark is an implementation of H.263 for use in Flash Video and Adobe Flash files. Sorenson Spark is an incomplete implementation of H.263. It differs mostly in header structure and ranges of the coefficients.

Ming Qian committed 3 years ago

Commit ae77d131 parent 68c7df53 files · +7 −0Browse files

Unified · Split

3 files
  1. Documentation/userspace-api/media/v4l/pixfmt-compressed.rst +5 −0
  2. drivers/media/v4l2-core/v4l2-ioctl.c +1 −0
  3. include/uapi/linux/videodev2.h +1 −0
Documentation/userspace-api/media/v4l/pixfmt-compressed.rst+5−0
@@ -88,6 +88,11 @@ Compressed Formats · 87 unmodified lines
8888 - ``V4L2_PIX_FMT_H263``
8989 - 'H263'
9090 - H263 video elementary stream.
91+ * .. _V4L2-PIX-FMT-SPK:
92+
93+ - ``V4L2_PIX_FMT_SPK``
94+ - 'SPK0'
95+ - Sorenson Spark is an implementation of H.263 for use in Flash Video and Adobe Flash files
9196 * .. _V4L2-PIX-FMT-MPEG1:
9297
9398 - ``V4L2_PIX_FMT_MPEG1``
drivers/media/v4l2-core/v4l2-ioctl.c+1−0
@@ -1475,6 +1475,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) · 1474 unmodified lines
14751475 case V4L2_PIX_FMT_HEVC_SLICE: descr = "HEVC Parsed Slice Data"; break;
14761476 case V4L2_PIX_FMT_FWHT: descr = "FWHT"; break; /* used in vicodec */
14771477 case V4L2_PIX_FMT_FWHT_STATELESS: descr = "FWHT Stateless"; break; /* used in vicodec */
1478+ case V4L2_PIX_FMT_SPK: descr = "Sorenson Spark"; break;
14781479 case V4L2_PIX_FMT_CPIA1: descr = "GSPCA CPiA YUV"; break;
14791480 case V4L2_PIX_FMT_WNVA: descr = "WNVA"; break;
14801481 case V4L2_PIX_FMT_SN9C10X: descr = "GSPCA SN9C10X"; break;
include/uapi/linux/videodev2.h+1−0
@@ -750,6 +750,7 @@ struct v4l2_pix_format { · 749 unmodified lines
750750 #define V4L2_PIX_FMT_FWHT_STATELESS v4l2_fourcc('S', 'F', 'W', 'H') /* Stateless FWHT (vicodec) */
751751 #define V4L2_PIX_FMT_H264_SLICE v4l2_fourcc('S', '2', '6', '4') /* H264 parsed slices */
752752 #define V4L2_PIX_FMT_HEVC_SLICE v4l2_fourcc('S', '2', '6', '5') /* HEVC parsed slices */
753+#define V4L2_PIX_FMT_SPK v4l2_fourcc('S', 'P', 'K', '0') /* Sorenson Spark */
753754
754755 /* Vendor-specific formats */
755756 #define V4L2_PIX_FMT_CPIA1 v4l2_fourcc('C', 'P', 'I', 'A') /* cpia1 YUV */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t