Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtizonia: add a specialised processor class for filters #70

Closed
juanrubio opened this issue May 10, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@juanrubio
Copy link
Collaborator

commented May 10, 2014

There is a bit of common functionality that is always required in every filter component (e.g. decoders, encoders). It will be useful to abstract this logic as methods of a new class, a filter processor class (e.g.: tizfilterprc). This way decoders/encoders processing functions can derive from it and re-use this logic.

Typically, the stuff that can be abstracted into the filter processor are things like getters and setters for the in/out header members, the port disable flags and the end of stream flags

E.g.:

typedef struct tiz_filter_prc tiz_filter_prc_t;
struct tiz_filter_prc
{
  /* Object */
  const tiz_prc_t _;
  OMX_BUFFERHEADERTYPE *p_in_hdr_;
  OMX_BUFFERHEADERTYPE *p_out_hdr_;
  bool eos_;
  bool in_port_disabled_;
  bool out_port_disabled_;
};

@juanrubio juanrubio added this to the OpenMAX IL 0.1.0 milestone May 10, 2014

@juanrubio juanrubio self-assigned this May 10, 2014

@juanrubio juanrubio added the bug label May 10, 2014

@juanrubio juanrubio closed this in a711d66 May 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.