v4l2codecs: Cleanup alpha decodebin class header

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5555>
This commit is contained in:
Nicolas Dufresne 2023-12-14 15:48:43 -05:00 committed by GStreamer Marge Bot
parent d13a414ddc
commit 3b9fc2a29e
2 changed files with 8 additions and 11 deletions

View File

@ -27,6 +27,14 @@
#include "gstv4l2codecalphadecodebin.h"
#include "gstv4l2decoder.h"
/* When wrapping, use the original rank plus this offset. The ad-hoc rules is
* that hardware implementation will use PRIMARY+1 or +2 to override the
* software decoder, so the offset must be large enough to jump over those.
* This should also be small enough so that a marginal (64) or secondary
* wrapper does not cross the PRIMARY line.
*/
#define GST_V4L2_CODEC_ALPHA_DECODE_BIN_RANK_OFFSET 10
GST_DEBUG_CATEGORY_STATIC (v4l2_codecalphadecodebin_debug);
#define GST_CAT_DEFAULT (v4l2_codecalphadecodebin_debug)

View File

@ -20,17 +20,8 @@
#pragma once
#include <gst/gst.h>
#include <gstv4l2decoder.h>
/* When wrapping, use the original rank plus this offset. The ad-hoc rules is
* that hardware implementation will use PRIMARY+1 or +2 to override the
* software decoder, so the offset must be large enough to jump over those.
* This should also be small enough so that a marginal (64) or secondary
* wrapper does not cross the PRIMARY line.
*/
#define GST_V4L2_CODEC_ALPHA_DECODE_BIN_RANK_OFFSET 10
G_BEGIN_DECLS
#define GST_TYPE_V4L2_CODEC_ALPHA_DECODE_BIN (gst_v4l2_codec_alpha_decode_bin_get_type())
@ -50,6 +41,4 @@ void gst_v4l2_codec_alpha_decode_bin_register (GstPlugin * plugin,
GstV4l2CodecDevice * device,
guint rank);
G_END_DECLS