Definition in file vidl2_ffmpeg_convert.cxx.
#include "vidl2_ffmpeg_convert.h"
#include "vidl2_frame.h"
#include <vcl_cstring.h>
Go to the source code of this file.
Defines | |
| #define | PIX_FMT_NONE PixelFormat(-1) |
Functions | |
| bool | vidl2_ffmpeg_convert (const vidl2_frame_sptr &in_frame, vidl2_frame_sptr &out_frame) |
| Convert the pixel format of a frame using FFMPEG. | |
| vidl2_pixel_format | vidl2_pixel_format_from_ffmpeg (PixelFormat ffmpeg_pix_fmt) |
| Find the vidl2 pixel format that matches a FFMPEG one. | |
| PixelFormat | vidl2_pixel_format_to_ffmpeg (vidl2_pixel_format vidl2_pix_fmt) |
| Find the FFMPEG pixel format that matches a vidl2 one. | |
| #define PIX_FMT_NONE PixelFormat(-1) |
Definition at line 18 of file vidl2_ffmpeg_convert.cxx.
| bool vidl2_ffmpeg_convert | ( | const vidl2_frame_sptr & | in_frame, | |
| vidl2_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 30 of file vidl2_ffmpeg_convert.cxx.
| vidl2_pixel_format vidl2_pixel_format_from_ffmpeg | ( | PixelFormat | ffmpeg_pix_fmt | ) |
Find the vidl2 pixel format that matches a FFMPEG one.
Definition at line 74 of file vidl2_ffmpeg_convert.cxx.
| PixelFormat vidl2_pixel_format_to_ffmpeg | ( | vidl2_pixel_format | vidl2_pix_fmt | ) |
Find the FFMPEG pixel format that matches a vidl2 one.
Definition at line 107 of file vidl2_ffmpeg_convert.cxx.
1.5.1