Definition in file vidl_ffmpeg_convert.h.
#include "vidl_frame_sptr.h"
#include "vidl_pixel_format.h"
#include <vidl/vidl_config.h>
#include <ffmpeg/avcodec.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. | |
| 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 36 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 91 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 121 of file vidl_ffmpeg_convert.cxx.
1.5.1