gst_ffmpegcsp_transform_caps (GstBaseTransform * btrans,
GstPadDirection direction, GstCaps * caps)
{
- GstFFMpegCsp *space;
GstCaps *template;
GstCaps *result;
- space = GST_FFMPEGCSP (btrans);
-
template = gst_ffmpegcsp_codectype_to_caps (CODEC_TYPE_VIDEO, NULL);
result = gst_caps_intersect (caps, template);
gst_caps_unref (template);
gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
guint * size)
{
- GstFFMpegCsp *space = NULL;
GstStructure *structure = NULL;
AVCodecContext *ctx = NULL;
gboolean ret = TRUE;
g_assert (size);
- space = GST_FFMPEGCSP (btrans);
-
structure = gst_caps_get_structure (caps, 0);
gst_structure_get_int (structure, "width", &width);
gst_structure_get_int (structure, "height", &height);
int pix_fmt, int width, int height)
{
int bwidth, bits, i;
- PixFmtInfo *pf = get_pix_fmt_info (pix_fmt);
+ const PixFmtInfo *pf;
pf = get_pix_fmt_info (pix_fmt);
switch (pf->pixel_type) {
int
img_get_alpha_info (const AVPicture * src, int pix_fmt, int width, int height)
{
- PixFmtInfo *pf = get_pix_fmt_info (pix_fmt);
+ const PixFmtInfo *pf;
int ret;
pf = get_pix_fmt_info (pix_fmt);