May 24th, 2010

WebM HD Video Example VP8 HTML 5
The purpose of this post is to provide general information about the new webm open video format and VP8 High-Quality Video Codec.
Define webm
WebM is an open, royalty-free media file format designed for the web. WebM files consist of video streams compressed with the VP8 video codec and audio streams compressed with the Vorbis audio codec. The WebM file structure is based on the Matroska media container.
Define VP8
VP8 is a highly efficient video compression technology that was developed by On2 Technologies. Google acquired On2 in February, 2010.
webm Browser Support
Google Chrome — Currently only available in Chromium
Firefox — Grab a Firefox WebM nightly build
Opera — Opera 10.54 has WebM support
HTML 5 webm Implementation
<video src="video_name.webm" controls="controls">
Your browser does not support the video tag!
</video>
webm VP8 HTML 5 DEMO
Demo Page
Download Sample webm vp8 video
How To Build FFMpeg for Windows and Linux with VP8 WebM Guides
Build FFMpeg for Linux with VP8 WebM support
Build FFMpeg for Windows with VP8 WebM support
Thanks for reading!
Uncategorized |
No Comments »
May 8th, 2010
This C++ program illustrates how to use the Standard Template Library (STL) vector class
#include < vector >
#include < iostream >
using namespace std;
int main()
{
// vector is a template, the <int> means it is a vector of ints
vector<int> numbers;
// push_back() puts a new value at the end (or back) of the vector
for (int i = 0; i < 10; i++)
numbers.push_back(i);
cout << "print all elements in vector" << endl;
// This is one way to iterate through a vector and print all the values
for (int i = 0; i < numbers.size(); i++)
cout << numbers[i] << endl;
// This is the preferred way to iterate through a vector
// an iterator is a special object used to keep track of internal structures
vector<int>::iterator iter;
for (iter = numbers.begin(); iter != numbers.end(); iter++)
cout << *iter << endl;
cout << "now print it backwards" << endl;
iter = numbers.end();
for (iter--; iter != numbers.begin(); iter--)
cout << *iter << endl;
cout << *iter << endl;
}
// In order to motivate why the iterator mechanism show above is more
// efficient that using the index method (the numbers[i] method)
// consider how you would implement finding a specific element of a
// linked list. Each time this function is called it has to start
// at the head of the list.
/*
bool List::index(int i, int &value)
{
Node *ptr;
for (ptr = m_head; i > 0; ptr = ptr->m_next, i--)
;
if (ptr != NULL)
{
value = ptr->m_value;
return true;
}
else return false;
}
*/
C++ |
No Comments »
May 8th, 2010
Simple C++ program that waits for a key to be pressed to continue execution of the program.
#include " stdafx.h "
#include < iostream >
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Press 'n' and then ENTER to continue!" << endl;
while (1)
{
if ('n' == getchar())
break;
}
}
C++ |
No Comments »
December 21st, 2009
/* preprocessor directive */
#include <stdio.h>
/* main() function: beginning */
int main()
{
float x,y,z;
x = 4.0;
y = 5.0;
z = x/y;
printf(”%f\n”, z);
return 0;
}
/* end of main() function */
SOURCE CODE
Programming |
2 Comments »
December 13th, 2009

Sexy Xmas Chick
with a header and footer. Most common solution for this used
be table layout but now as you can see it is really easy to do with
CSS Liquid Layout. The bes future of this example is the the right
column is expandable as the widow of the browser changes.
DEMO LINK
HTML SOURCE FILE
CSS SOURCE FILE
CSS |
1 Comment »