• About
    • About WebM
    • FAQ
    • Discuss
    • Supporters
  • Developer
    • Overview & Code Repos
    • Contribute
    • Submitting Patches
    • Code Reviews
    • Workflow
    • Conventions
    • Bug Reporting
    • Build Prerequisites
    • Repository Layout
    • Releases
    • Roadmap
    • Hardware
  • Docs
    • libvpx API
    • RFC 6386: VP8 Data Format
    • WebM Container Format
    • VP8 RTP Proposal (Draft)
    • Encoder Examples
    • Wiki
  • Tools
  • Licenses
  • Blog
  • Home >
  • Docs >
  • VP8 SDK
  • Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files

Frame-Based Decoding Functions
[Decoder Algorithm Interface]

Typedefs

typedef void(*  vpx_codec_put_frame_cb_fn_t )(void *user_priv, const vpx_image_t *img)
  put frame callback prototype

Functions

vpx_codec_err_t  vpx_codec_register_put_frame_cb (vpx_codec_ctx_t *ctx, vpx_codec_put_frame_cb_fn_t cb, void *user_priv)
  Register for notification of frame completion.

Detailed Description

The following functions are required to be implemented for all decoders that advertise the VPX_CODEC_CAP_PUT_FRAME capability. Calling these functions for codecs that don't advertise this capability will result in an error code being returned, usually VPX_CODEC_ERROR


Typedef Documentation

typedef void(* vpx_codec_put_frame_cb_fn_t)(void *user_priv, const vpx_image_t *img)

put frame callback prototype

This callback is invoked by the decoder to notify the application of the availability of decoded image data.


Function Documentation

vpx_codec_err_t vpx_codec_register_put_frame_cb ( vpx_codec_ctx_t *  ctx,
vpx_codec_put_frame_cb_fn_t  cb,
void *  user_priv  
)

Register for notification of frame completion.

Registers a given function to be called when a decoded frame is available.

Parameters:
[in]  ctx  Pointer to this instance's context
[in]  cb  Pointer to the callback function
[in]  user_priv  User's private data
Return values:
VPX_CODEC_OK  Callback successfully registered.
VPX_CODEC_ERROR  Decoder context not initialized, or algorithm not capable of posting slice completion.

Generated on Mon Jan 28 14:14:22 2013 for WebM VP8 Codec SDK by  doxygen 1.6.3
About
  • About WebM
  • FAQ
  • Discuss
  • Supporters
More
  • Tools
  • Hardware
  • Licenses
  • Downloads
Developer
  • Overview
  • Contribute
  • Submitting Patches
  • Code Reviews
  • Workflow
  • Conventions
  • Bug Reporting
  • Build Prerequisites
  • Repository Layout
  • Releases
  • Roadmap
Docs
  • libvpx API
  • RFC 6386: VP8 Data Format
  • WebM Container Format
  • VP8 RTP Proposal (Draft)
  • Encoder Examples
  • Wiki
Copyright 2010 - 2013
The WebM Project
HTML5 Powered with CSS3 / Styling, and Semantics
Follow @WebM
webmaster@webmproject.org