Functions
core/vidl/vidl_ffmpeg_convert.cxx File Reference
#include "vidl_ffmpeg_convert.h"
#include "vidl_frame.h"
#include <vcl_cstring.h>

Go to the source code of this file.

Functions

bool vidl_ffmpeg_convert (const vidl_frame_sptr &in_frame, vidl_frame_sptr &out_frame)
 Convert the pixel format of a frame using FFMPEG.
vidl_pixel_format vidl_pixel_format_from_ffmpeg (PixelFormat ffmpeg_pix_fmt)
 Find the vidl pixel format that matches a FFMPEG one.
PixelFormat vidl_pixel_format_to_ffmpeg (vidl_pixel_format vidl_pix_fmt)
 Find the FFMPEG pixel format that matches a vidl one.

Detailed Description

Author:
Matt Leotta
Date:
19 Jan 2006

Definition in file vidl_ffmpeg_convert.cxx.


Function Documentation

bool vidl_ffmpeg_convert ( const vidl_frame_sptr in_frame,
vidl_frame_sptr out_frame 
)

Convert the pixel format of a frame using FFMPEG.

The in_frame->data() is converted from in_frame->pixel_format() to out_frame->pixel_format() and stored in out_frame->data() If the output frame data is not the correct size new memory will be allocated

Definition at line 38 of file vidl_ffmpeg_convert.cxx.

vidl_pixel_format vidl_pixel_format_from_ffmpeg ( PixelFormat  ffmpeg_pix_fmt)

Find the vidl pixel format that matches a FFMPEG one.

Definition at line 93 of file vidl_ffmpeg_convert.cxx.

PixelFormat vidl_pixel_format_to_ffmpeg ( vidl_pixel_format  vidl_pix_fmt)

Find the FFMPEG pixel format that matches a vidl one.

Definition at line 124 of file vidl_ffmpeg_convert.cxx.