Commit Graph

30 Commits

Author SHA1 Message Date
wang-bin 8595a4bc39 set color range for sws
this can fix output black rgb frame from yuv seems gray
2016-05-22 14:02:47 +08:00
wang-bin 98f6e1a6ff fix qt4 build error 2015-11-06 19:27:30 +08:00
wang-bin 4a14fe73a9 remove useless functions 2015-10-19 14:15:44 +08:00
wang-bin a8e330d1c9 fix image converter data ptr alignment 2015-10-15 13:11:39 +08:00
wang-bin 2edbf5fe7e sws: user defined out buffer. fix out ptrs error 2015-10-12 12:56:32 +08:00
wang-bin 42e496b58a set alignment 16 to sws. remove AVPicture 2015-09-25 01:05:16 +08:00
wang-bin 8058ac5a46 no stl types that break abi
most algorithms and containers are fine. no std::string, exception
2015-09-13 22:48:32 +08:00
wang-bin 92c57fd68b move ImageConverter from public class to internal
use higher level VideoFrameConverter instead
2015-01-30 13:09:52 +08:00
wang-bin cbbe4ebbb3 make sws based converter public 2015-01-30 11:03:19 +08:00
wang-bin 23f5a8bb43 add methods for VideoFrame to get a image or frame with another format
old convertTo() is a bad idea because VideoFrame now is explicitly
shared and will be removed
2015-01-08 23:04:06 +08:00
wang-bin 64c791949d mv some non-public headers to private or other places. rename AVCompat.h 2014-07-26 15:29:35 +08:00
wang-bin cbb78a20aa add prefix QtAV to all include to avoid potential build error
why it happens? e.g. meego toolchain
2014-03-18 12:44:47 +08:00
wang-bin c94dbb8e4b build error for old ffmpeg.
avpicture_fill 2nd is not const in some versions.
2014-03-10 19:18:33 +08:00
wang-bin 529dc2767c data()=>constData() to avoid potential copy 2014-03-09 23:18:51 +08:00
wang-bin c19eb3fc4c no include ipp by default 2014-03-08 18:07:42 +08:00
wang-bin a9b083e0f1 return correct VideoFrame::planeCount
TODO:
resize ImageConverter.outPlanes()?
2014-02-12 10:18:56 +08:00
wang-bin 45545318ce video eq support: brightness, contrast, saturation
use swscale. so all video renderer get the same value.
TODO:
call setupColorspaceDetails() less. what if sws_ctx changes?
2013-12-14 01:27:42 +08:00
wang-bin 3bbc11528d fix include 2013-11-27 22:56:11 +08:00
wang-bin 44b5355879 compat pixfmt and funcs. support libav>=0.8(tested 0.8.8) & ffmpeg>= 0.9 2013-11-13 19:29:30 +08:00
wang-bin 094c66ac5c convenience functions for VideoFormat 2013-11-11 22:41:15 +08:00
wang-bin 70a810817a fix wrong video format. add image format 2013-11-10 14:47:06 +08:00
wang-bin 5f87499e5c add api to get plane data ptr and line size from ImageConverter 2013-11-09 18:47:07 +08:00
wang-bin 4cb42dc530 change the way to register a new class in factory 2013-02-20 12:16:34 +08:00
wang-bin 73248df9ab Merge branch 'factory'
Conflicts:
	src/QtAV/ImageConverter.h
2013-02-08 21:34:11 +08:00
wang-bin 7c71b5dac3 warnings and misc 2013-02-08 21:28:03 +08:00
wang-bin 8dd03464c6 Add factory template which will be used in the future. ImageConverter
use it now
2013-02-08 21:18:14 +08:00
wang-bin d4c178dd4e License change to LGPL v2.1 2013-02-04 01:45:42 +08:00
LucasWang d2ba2d40df realloc memory for image converter if format changed 2013-01-31 18:40:42 +08:00
wang-bin 25b67647ef image converter & decoder resize to renderer size, etc
resizing in ImageConverter is supported, we compare qt resizing with hwa
or ipp (color convertion and )resizing.
before this, resizing in ImageConverter will cause a crash when resizing
the renderer, because of the data of image changes in video thread when
it is painting in main thread. But locking is not enough, because the
data passed to renderer is ref which (address) may changed in video
thread's ImageConverter, so a copy of that data is required.
2013-01-27 00:48:46 +08:00
wang-bin b9d196aba5 Add ImageConverter class so that we can use hwa support for convertion
Now only a converter based on FFMpeg swscale is implemented. Maybe the
interfaces are not good. It's ready for using ipp
TODO:
1. if in_fmt to out_fmt is not supported by hwa, then use ff(in base
class?)
2. move ImageConverter from decoder to video thread. decoder only do the
decoding
2013-01-14 00:41:26 +08:00