Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Add webdownload element
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoch committed Oct 29, 2024
1 parent f6b7130 commit 112211a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ gst_web_utils_element_set_context (
}

GstVideoFormat
gst_web_utils_convert_video_frame_format (const char *vf_format)
gst_web_utils_video_format_from_web_format (const char *vf_format)
{
GstVideoFormat format = GST_VIDEO_FORMAT_UNKNOWN;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ gboolean gst_web_utils_element_handle_context_query (
GstElement *element, GstQuery *query, GstWebCanvas *canvas);
gboolean gst_web_utils_element_set_context (
GstElement *element, GstContext *context, GstWebCanvas **canvas);
GstVideoFormat gst_web_utils_convert_video_frame_format (
GstVideoFormat gst_web_utils_video_format_from_web_format (
const char *vf_format);
const char *gst_web_utils_convert_video_format (GstVideoFormat format);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ gst_web_video_frame_allocator_map_cpu_access (gpointer data)
self, cdata->info, cdata->data, cdata->size);
}

// #if 0
gboolean
gst_web_video_frame_copy_to (
GstWebVideoFrame *self, GstVideoInfo *info, guint8 *data, gsize size)
Expand All @@ -184,7 +183,6 @@ gst_web_video_frame_copy_to (

return cdata.result;
}
// #endif

static gpointer
gst_web_video_frame_allocator_map_full (
Expand Down
12 changes: 6 additions & 6 deletions gst.wasm/subprojects/gst-plugins-web/gst/web/gstwebdownload.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ static GstStaticPadTemplate gst_web_download_src_pad_template =
GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
GST_STATIC_CAPS (DEFAULT_STATIC_CAPS));

static void
gst_web_download_init (GstWebDownload *self)
{
gst_base_transform_set_prefer_passthrough (GST_BASE_TRANSFORM (self), TRUE);
}

static GstCaps *
gst_web_download_transform_caps (GstBaseTransform *bt,
GstPadDirection direction, GstCaps *caps, GstCaps *filter)
Expand Down Expand Up @@ -165,6 +159,12 @@ gst_web_download_transform (
return GST_FLOW_OK;
}

static void
gst_web_download_init (GstWebDownload *self)
{
gst_base_transform_set_prefer_passthrough (GST_BASE_TRANSFORM (self), TRUE);
}

static void
gst_web_download_class_init (GstWebDownloadClass *klass)
{
Expand Down

0 comments on commit 112211a

Please sign in to comment.