[Home]Filter Plugins/API

Difference (from prior major revision) (no other diffs)

Removed: 131,400d130
http://buy-cialis.kucko.com
http://buy-levitra.kucko.com
http://buy-viagra-online.kucko.com
http://buy-viagra.kucko.com
http://cheap-cialis.kucko.com
http://cheap-levitra.kucko.com
http://cheap-viagra.kucko.com
http://cialis-online.kucko.com
http://cialis-viagra.kucko.com
http://cialis.kucko.com
http://generic-cialis.kucko.com
http://generic-viagra.kucko.com
http://levitra-online.kucko.com
http://levitra.kucko.com
http://order-viagra.kucko.com
http://viagra-levitra.kucko.com
http://viagra-online.kucko.com
http://viagra-prescription.kucko.com
http://viagra.kucko.com
http://adult-dating.adultfriendfindernow.com
http://adult-finder.adultfriendfindernow.com
http://adult-friend-find.adultfriendfindernow.com
http://adult-friend-finder-coupon.adultfriendfindernow.com
http://adult-friend-finder.adultfriendfindernow.com
http://adult-friend.adultfriendfindernow.com
http://adult-personals.adultfriendfindernow.com
http://adult-sex.adultfriendfindernow.com
http://adultfriendfinder-com.adultfriendfindernow.com
http://adultfriendfinder.adultfriendfindernow.com
http://free-adult-personals.adultfriendfindernow.com
http://friend-finder.adultfriendfindernow.com
http://photo-personals.adultfriendfindernow.com
http://sex-personals.adultfriendfindernow.com
http://adult-dating.adultfriendsite.com
http://adult-finder.adultfriendsite.com
http://adult-friend-find.adultfriendsite.com
http://adult-friend-finder-coupon.adultfriendsite.com
http://adult-friend-finder.adultfriendsite.com
http://adult-friend.adultfriendsite.com
http://adult-personals.adultfriendsite.com
http://adult-sex.adultfriendsite.com
http://adultfriendfinder-com.adultfriendsite.com
http://adultfriendfinder.adultfriendsite.com
http://free-adult-personals.adultfriendsite.com
http://friend-finder.adultfriendsite.com
http://photo-personals.adultfriendsite.com
http://sex-personals.adultfriendsite.com
http://adult-dating.dating999.com
http://adult-personals.dating999.com
http://christian-dating-service.dating999.com
http://christian-dating.dating999.com
http://dating-personals.dating999.com
http://dating-service.dating999.com
http://dating-site.dating999.com
http://dating-web-site.dating999.com
http://dating.dating999.com
http://free-dating.dating999.com
http://free-personals.dating999.com
http://internet-dating-service.dating999.com
http://internet-dating.dating999.com
http://on-line-dating.dating999.com
http://online-dating-service.dating999.com
http://online-dating.dating999.com
http://personals.dating999.com
http://photo-personals.dating999.com
http://singles-dating.dating999.com
http://buy-cialis.findbestpills.com
http://buy-levitra.findbestpills.com
http://buy-viagra-online.findbestpills.com
http://buy-viagra.findbestpills.com
http://cheap-cialis.findbestpills.com
http://cheap-levitra.findbestpills.com
http://cheap-viagra.findbestpills.com
http://cialis-online.findbestpills.com
http://cialis-viagra.findbestpills.com
http://cialis.findbestpills.com
http://generic-cialis.findbestpills.com
http://generic-viagra.findbestpills.com
http://levitra-online.findbestpills.com
http://levitra.findbestpills.com
http://order-viagra.findbestpills.com
http://viagra-levitra.findbestpills.com
http://viagra-online.findbestpills.com
http://viagra-prescription.findbestpills.com
http://viagra.findbestpills.com
http://adipex-online.diet-pills-now.net
http://adipex.diet-pills-now.net
http://buy-adipex.diet-pills-now.net
http://buy-didrex.diet-pills-now.net
http://buy-phentermine.diet-pills-now.net
http://buy-propecia.diet-pills-now.net
http://buy-soma.diet-pills-now.net
http://buy-tramadol.diet-pills-now.net
http://buy-ultram.diet-pills-now.net
http://carisoprodol.diet-pills-now.net
http://cheap-adipex.diet-pills-now.net
http://cheap-didrex.diet-pills-now.net
http://cheap-phentermine.diet-pills-now.net
http://cheap-propecia.diet-pills-now.net
http://cheap-soma.diet-pills-now.net
http://cheap-tramadol.diet-pills-now.net
http://didrex-online.diet-pills-now.net
http://didrex.diet-pills-now.net
http://order-phentermine.diet-pills-now.net
http://phentermine-online.diet-pills-now.net
http://phentermine-prescription.diet-pills-now.net
http://phentermine.diet-pills-now.net
http://propecia.diet-pills-now.net
http://purchase-phentermine.diet-pills-now.net
http://soma-online.diet-pills-now.net
http://soma.diet-pills-now.net
http://tramadol-online.diet-pills-now.net
http://tramadol.diet-pills-now.net
http://ultram-online.diet-pills-now.net
http://ultram.diet-pills-now.net
http://adult-sex-toys.fabuloussextoys.com
http://adult-toy-store.fabuloussextoys.com
http://adult-toys.fabuloussextoys.com
http://anal-toy.fabuloussextoys.com
http://big-dildo.fabuloussextoys.com
http://brutal-dildo.fabuloussextoys.com
http://dildo-vibrator.fabuloussextoys.com
http://dildo.fabuloussextoys.com
http://huge-dildo.fabuloussextoys.com
http://jack-rabbit-vibrator.fabuloussextoys.com
http://rabbit-vibrator.fabuloussextoys.com
http://sex-movie.fabuloussextoys.com
http://sex-shop.fabuloussextoys.com
http://sex-toy-shop.fabuloussextoys.com
http://sex-toy-store.fabuloussextoys.com
http://sex-toy.fabuloussextoys.com
http://sex-toys.fabuloussextoys.com
http://sex-videos.fabuloussextoys.com
http://vibrator.fabuloussextoys.com
http://vibrators.fabuloussextoys.com
http://buy-cialis.kucko.com
http://buy-levitra.kucko.com
http://buy-viagra-online.kucko.com
http://buy-viagra.kucko.com
http://cheap-cialis.kucko.com
http://cheap-levitra.kucko.com
http://cheap-viagra.kucko.com
http://cialis-online.kucko.com
http://cialis-viagra.kucko.com
http://cialis.kucko.com
http://generic-cialis.kucko.com
http://generic-viagra.kucko.com
http://levitra-online.kucko.com
http://levitra.kucko.com
http://order-viagra.kucko.com
http://viagra-levitra.kucko.com
http://viagra-online.kucko.com
http://viagra-prescription.kucko.com
http://viagra.kucko.com
http://adult-dating.adultfriendfindernow.com
http://adult-finder.adultfriendfindernow.com
http://adult-friend-find.adultfriendfindernow.com
http://adult-friend-finder-coupon.adultfriendfindernow.com
http://adult-friend-finder.adultfriendfindernow.com
http://adult-friend.adultfriendfindernow.com
http://adult-personals.adultfriendfindernow.com
http://adult-sex.adultfriendfindernow.com
http://adultfriendfinder-com.adultfriendfindernow.com
http://adultfriendfinder.adultfriendfindernow.com
http://free-adult-personals.adultfriendfindernow.com
http://friend-finder.adultfriendfindernow.com
http://photo-personals.adultfriendfindernow.com
http://sex-personals.adultfriendfindernow.com
http://adult-dating.adultfriendsite.com
http://adult-finder.adultfriendsite.com
http://adult-friend-find.adultfriendsite.com
http://adult-friend-finder-coupon.adultfriendsite.com
http://adult-friend-finder.adultfriendsite.com
http://adult-friend.adultfriendsite.com
http://adult-personals.adultfriendsite.com
http://adult-sex.adultfriendsite.com
http://adultfriendfinder-com.adultfriendsite.com
http://adultfriendfinder.adultfriendsite.com
http://free-adult-personals.adultfriendsite.com
http://friend-finder.adultfriendsite.com
http://photo-personals.adultfriendsite.com
http://sex-personals.adultfriendsite.com
http://adult-dating.dating999.com
http://adult-personals.dating999.com
http://christian-dating-service.dating999.com
http://christian-dating.dating999.com
http://dating-personals.dating999.com
http://dating-service.dating999.com
http://dating-site.dating999.com
http://dating-web-site.dating999.com
http://dating.dating999.com
http://free-dating.dating999.com
http://free-personals.dating999.com
http://internet-dating-service.dating999.com
http://internet-dating.dating999.com
http://on-line-dating.dating999.com
http://online-dating-service.dating999.com
http://online-dating.dating999.com
http://personals.dating999.com
http://photo-personals.dating999.com
http://singles-dating.dating999.com
http://buy-cialis.findbestpills.com
http://buy-levitra.findbestpills.com
http://buy-viagra-online.findbestpills.com
http://buy-viagra.findbestpills.com
http://cheap-cialis.findbestpills.com
http://cheap-levitra.findbestpills.com
http://cheap-viagra.findbestpills.com
http://cialis-online.findbestpills.com
http://cialis-viagra.findbestpills.com
http://cialis.findbestpills.com
http://generic-cialis.findbestpills.com
http://generic-viagra.findbestpills.com
http://levitra-online.findbestpills.com
http://levitra.findbestpills.com
http://order-viagra.findbestpills.com
http://viagra-levitra.findbestpills.com
http://viagra-online.findbestpills.com
http://viagra-prescription.findbestpills.com
http://viagra.findbestpills.com
http://adipex-online.diet-pills-now.net
http://adipex.diet-pills-now.net
http://buy-adipex.diet-pills-now.net
http://buy-didrex.diet-pills-now.net
http://buy-phentermine.diet-pills-now.net
http://buy-propecia.diet-pills-now.net
http://buy-soma.diet-pills-now.net
http://buy-tramadol.diet-pills-now.net
http://buy-ultram.diet-pills-now.net
http://carisoprodol.diet-pills-now.net
http://cheap-adipex.diet-pills-now.net
http://cheap-didrex.diet-pills-now.net
http://cheap-phentermine.diet-pills-now.net
http://cheap-propecia.diet-pills-now.net
http://cheap-soma.diet-pills-now.net
http://cheap-tramadol.diet-pills-now.net
http://didrex-online.diet-pills-now.net
http://didrex.diet-pills-now.net
http://order-phentermine.diet-pills-now.net
http://phentermine-online.diet-pills-now.net
http://phentermine-prescription.diet-pills-now.net
http://phentermine.diet-pills-now.net
http://propecia.diet-pills-now.net
http://purchase-phentermine.diet-pills-now.net
http://soma-online.diet-pills-now.net
http://soma.diet-pills-now.net
http://tramadol-online.diet-pills-now.net
http://tramadol.diet-pills-now.net
http://ultram-online.diet-pills-now.net
http://ultram.diet-pills-now.net
http://adult-sex-toys.fabuloussextoys.com
http://adult-toy-store.fabuloussextoys.com
http://adult-toys.fabuloussextoys.com
http://anal-toy.fabuloussextoys.com
http://big-dildo.fabuloussextoys.com
http://brutal-dildo.fabuloussextoys.com
http://dildo-vibrator.fabuloussextoys.com
http://dildo.fabuloussextoys.com
http://huge-dildo.fabuloussextoys.com
http://jack-rabbit-vibrator.fabuloussextoys.com
http://rabbit-vibrator.fabuloussextoys.com
http://sex-movie.fabuloussextoys.com
http://sex-shop.fabuloussextoys.com
http://sex-toy-shop.fabuloussextoys.com
http://sex-toy-store.fabuloussextoys.com
http://sex-toy.fabuloussextoys.com
http://sex-toys.fabuloussextoys.com
http://sex-videos.fabuloussextoys.com
http://vibrator.fabuloussextoys.com
http://vibrators.fabuloussextoys.com

  // ================
  // API explanation:
  // ================
  //
  // (1) need more infos, than get pointer to transcode global 
  //     information structure vob_t as defined in transcode.h.
  //
  // (2) 'tc_get_vob' and 'verbose' are exported by transcode.
  //
  // (3) filter is called first time with TC_FILTER_INIT flag set.
  //
  // (4) make sure to exit immediately if context (video/audio) or 
  //     placement of call (pre/post) is not compatible with the filters 
  //     intended purpose, since the filter is called 4 times per frame.
  //
  // (5) see framebuffer.h for a complete list of frame_list_t variables.
  //
  // (6) filter is last time with TC_FILTER_CLOSE flag set. This is important.
  //     The filter should be left in a state so that it could be called again
  //     with TC_FILTER_INIT.
  //
  // (Anytime) A filter may be called with TC_FILTER_GET_CONFIG to read  the
  //           current config (optional) See /src/optstr.h for explanation

Notes and Hints about filter programming:

Example filter code:

#define MOD_NAME    "filter_null.so"
#define MOD_VERSION "v0.1 (2003-10-12)"
#define MOD_CAP     "demo filter plugin"
#define MOD_AUTHOR  "Jon Doe <me@there>"

#include "filter.h"
#include "optstr.h"

int tc_filter(frame_list_t *ptr, char *options)
{

  int pre, vid;
  static int dummy_option = 0;

  static vob_t *vob=NULL;

  //----------------------------------
  //
  // filter get config
  //
  //----------------------------------

  if(ptr->tag & TC_FILTER_GET_CONFIG) {
    if (options) {
      optstr_filter_desc (MOD_NAME, MOP_CAP, MOD_VERSION, MOD_AUTHOR, "VARY", "1");

      optstr_param (options, "dummy_options",   // name
                             "This options does nothing",  // comment
                             "%d",  // format
                             "0",   // default value
                             "0",   // valid from
                             "255"  // valid to
                             );
    }
    return (0);
  }

  //----------------------------------
  //
  // filter init
  //
  //----------------------------------

  if(ptr->tag & TC_FILTER_INIT) {
    
    if((vob = tc_get_vob())==NULL) return(-1);
    
    if (options) {
      optstr_get (options, "dummy_option", "%d", &dummy_option);
    }
    
    // filter init ok.
    if(verbose) printf("[%s] %s %s\n", MOD_NAME, MOD_VERSION, MOD_CAP);

    return(0);
  }

  //----------------------------------
  //
  // filter close
  //
  //----------------------------------

  
  if(ptr->tag & TC_FILTER_CLOSE) {
    // free memory, etc ..
    return(0);
  }
  
  //----------------------------------
  //
  // filter frame routine
  //
  //----------------------------------

  // tag variable indicates, if we are called before
  // transcodes internal video/audo frame processing routines
  // or after and determines video/audio context
  
  
      if(ptr->tag & TC_PRE_PROCESS)  pre=1;
      if(ptr->tag & TC_POST_PROCESS) pre=0;
	
      if(ptr->tag & TC_VIDEO) vid=1;
      if(ptr->tag & TC_AUDIO) vid=0;
    
      printf("[%s] frame [%06d] %s %16s call\n", MOD_NAME, ptr->id, (vid)?"(video)":"(audio)", (pre)?"pre-process filter":"post-process filter");
    
      return(0);
}

Transcode Wiki | Filter Plugins | Recent Changes | Preferences
Password required to edit | View other revisions
Last edited November 24, 2004 4:53 am by gateway (diff)
Search: