Skip to content

Commit

Permalink
jpegenc: Remove arbitrary encoding size limitation
Browse files Browse the repository at this point in the history
The encoder is happy to encode with sizes less then 16x16, so remove this
arbitrary limitation. This also fixes the fact the sink and src template caps
disagree.

Fixes #888

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/998>
  • Loading branch information
ndufresne committed Jun 2, 2021
1 parent 21c90af commit be83a52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/gst_plugins_cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -8606,7 +8606,7 @@
"presence": "always"
},
"src": {
"caps": "image/jpeg:\n width: [ 16, 65535 ]\n height: [ 16, 65535 ]\n framerate: [ 0/1, 2147483647/1 ]\n sof-marker: { (int)0, (int)1, (int)2, (int)4, (int)9 }\n",
"caps": "image/jpeg:\n width: [ 1, 65535 ]\n height: [ 1, 65535 ]\n framerate: [ 0/1, 2147483647/1 ]\n sof-marker: { (int)0, (int)1, (int)2, (int)4, (int)9 }\n",
"direction": "src",
"presence": "always"
}
Expand Down
4 changes: 2 additions & 2 deletions ext/jpeg/gstjpegenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("image/jpeg, "
"width = (int) [ 16, 65535 ], "
"height = (int) [ 16, 65535 ], "
"width = (int) [ 1, 65535 ], "
"height = (int) [ 1, 65535 ], "
"framerate = (fraction) [ 0/1, MAX ], "
"sof-marker = (int) { 0, 1, 2, 4, 9 }")
);
Expand Down

0 comments on commit be83a52

Please sign in to comment.