Add some debug
This commit is contained in:
parent
286a5a72a3
commit
ee8f940acf
|
@ -223,7 +223,7 @@ Image::Image(const AVFrame *frame) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Image::Assign(const AVFrame *frame) {
|
void Image::Assign(const AVFrame *frame) {
|
||||||
/* Assume the dimensions etc are correct. FIXME */
|
/* Assume the dimensions etc are correct. FIXME */
|
||||||
|
|
||||||
AVPixelFormat format = (AVPixelFormat)AVPixFormat();
|
AVPixelFormat format = (AVPixelFormat)AVPixFormat();
|
||||||
|
|
||||||
|
@ -236,11 +236,11 @@ void Image::Assign(const AVFrame *frame) {
|
||||||
format, width, height);
|
format, width, height);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Debug(1, "Beforecaling freeing dest frame");
|
||||||
#if HAVE_LIBSWSCALE
|
#if HAVE_LIBSWSCALE
|
||||||
sws_convert_context = sws_getCachedContext(
|
sws_convert_context = sws_getCachedContext(
|
||||||
sws_convert_context,
|
sws_convert_context,
|
||||||
width,
|
width, height,
|
||||||
height,
|
|
||||||
(AVPixelFormat)frame->format,
|
(AVPixelFormat)frame->format,
|
||||||
width, height,
|
width, height,
|
||||||
format, SWS_BICUBIC, nullptr,
|
format, SWS_BICUBIC, nullptr,
|
||||||
|
@ -254,6 +254,7 @@ void Image::Assign(const AVFrame *frame) {
|
||||||
#else // HAVE_LIBSWSCALE
|
#else // HAVE_LIBSWSCALE
|
||||||
Fatal("You must compile ffmpeg with the --enable-swscale option to use ffmpeg cameras");
|
Fatal("You must compile ffmpeg with the --enable-swscale option to use ffmpeg cameras");
|
||||||
#endif // HAVE_LIBSWSCALE
|
#endif // HAVE_LIBSWSCALE
|
||||||
|
Debug(1, "Done scaling freeing dest frame");
|
||||||
av_frame_free(&dest_frame);
|
av_frame_free(&dest_frame);
|
||||||
update_function_pointers();
|
update_function_pointers();
|
||||||
} // end Image::Image(const AVFrame *frame)
|
} // end Image::Image(const AVFrame *frame)
|
||||||
|
|
Loading…
Reference in New Issue