Coder Social home page Coder Social logo

videopowerproto's Introduction

VideoPowerProto

Simple Application for Testing Video Playback Power Consumption

This application sets up different types of video pipelines for the purposes of comparing power usage. The options available are reflective of the video pipeline options used by Firefox. No actual power monitoring is done within the application; use a tool like Intel Power Gadget, or the macOS Activity Monitor for that.

Pipeline Options

Layer Class

This popup provides a way to choose the way that the video samples are displayed.

  • CALayer: Display the video content in a CALayer, using the setContents method.
  • AVSampleBufferDisplayLayer: Display the video content in a AVSampleBufferDisplayLayer, using the enqueueSampleBuffer method.

Buffering

This popup determines how the decoded samples are processed before they are displayed in the layer.

  • Direct: Do as little processing of samples as possible before putting them into the layer.
  • Recreated: Each sample is denatured into raw pixel data, then recreated as a CVPixelBuffer before displaying it. When recreated, the Pixel Buffer Attributes (below) are applied again.

Pixel Buffer Attributes

The Core Animation API allows a CVPixelBuffer to be annotated with attributes that affect how the buffers are processed by other API calls.

Future Work

  • Embed videos of different codecs as assets into the project; add a popup menu to select amongst them.
  • Add label to display details of the currently playing video.
  • Add more pixel buffer attribute options.

videopowerproto's People

Contributors

bradwalton avatar bradwerth avatar mstange avatar

Watchers

 avatar  avatar

Forkers

mstange

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.