[Bug 728045] New: omxvideodec: support cropping information

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Apr 11 09:15:04 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=728045
  GStreamer | gst-omx | git

           Summary: omxvideodec: support cropping information
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gst-omx
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: aurelien.zanelli at parrot.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Some video decoder components could provide cropping information in order to
remove padding inserted by the encoder. For instance when the video size is not
a multiple of macroblocks. Since I have an OMX video decoder which doesn't
remove padding, I propose to have omxvideodec support cropping information.

I intend to implement it in this way:
- Add a structure to store crop information: GstOMXVideoCrop.
- Get output port crop information at port reconfiguration time using the index
OMX_IndexConfigCommonOutputCrop and set the GstOMXVideoCrop structure
accordingly.
- During allocation query/answer, we can check if downstream elements supports
GstVideoCropMeta (for instance when chained with a videocrop or v4l2sink). If
so omxvideodec will attach GstVideoCropMeta to buffer and let these elements do
the job. Otherwise, we may do the crop in omxvideodec element, for instance
when filling the output buffer.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list