Definition in file vidl2_ffmpeg_convert.h.
#include "vidl2_frame_sptr.h"
#include "vidl2_pixel_format.h"
#include <vidl2/vidl2_config.h>
#include <ffmpeg/avcodec.h>
Go to the source code of this file.
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. | |
| 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