crystalhd-video:crystalhd-video.git
6 years agoextra/wrapper: dump buffer on DtsProcOutput() master
Victor Tseng [Wed, 22 Dec 2010 21:48:21 +0000 (05:48 +0800)]
extra/wrapper: dump buffer on DtsProcOutput()

6 years agoadd a queue implementation
Victor Tseng [Wed, 22 Dec 2010 21:47:15 +0000 (05:47 +0800)]
add a queue implementation

6 years agotweak to pass vlc va init codes
Victor Tseng [Wed, 22 Dec 2010 21:44:47 +0000 (05:44 +0800)]
tweak to pass vlc va init codes

return VA_STATUS_SUCCESS on GetImage() even when surface is not
rendered. vlc GetImage() to check for colorspace format support.

6 years agompeg2: do not free buffer not alloc-ed by us.
Victor Tseng [Wed, 22 Dec 2010 21:39:33 +0000 (05:39 +0800)]
mpeg2: do not free buffer not alloc-ed by us.

6 years agovarius update for error handling
Victor Tseng [Mon, 20 Dec 2010 06:21:15 +0000 (14:21 +0800)]
varius update for error handling

6 years agompeg2: improving mpeg2 support
Victor Tseng [Mon, 20 Dec 2010 06:19:52 +0000 (14:19 +0800)]
mpeg2: improving mpeg2 support

`vaapi_mpeg2 --getimage' from hwdecode-demo new renders the frame
correctly.

6 years agodo not free data that's not mallec()-ed by CreateSurface()
Victor Tseng [Sun, 19 Dec 2010 00:40:42 +0000 (08:40 +0800)]
do not free data that's not mallec()-ed by CreateSurface()

6 years agoextra: support running code both before and after calling a function
Victor Tseng [Sat, 18 Dec 2010 23:26:00 +0000 (07:26 +0800)]
extra: support running code both before and after calling a function

6 years agompeg2: initial support for mpeg2 (WIP)
Victor Tseng [Sat, 18 Dec 2010 23:24:26 +0000 (07:24 +0800)]
mpeg2: initial support for mpeg2 (WIP)

vaapi_mpeg2 from hwdecode-demo renders the frame into the buffer.

but since we don't have a proper vaPutSurface() impl, the image bets no
path to the screen...

the content of decoded image is correct.

6 years agouse config profile for h264 instead of guessing
Victor Tseng [Fri, 17 Dec 2010 23:57:35 +0000 (07:57 +0800)]
use config profile for h264 instead of guessing

6 years agoextra: print 16bytes for pointer in crystalhd_wrapper
Victor Tseng [Fri, 17 Dec 2010 23:28:19 +0000 (07:28 +0800)]
extra: print 16bytes for pointer in crystalhd_wrapper

6 years agomove codec dependent codes to their own files
Victor Tseng [Fri, 17 Dec 2010 21:45:25 +0000 (05:45 +0800)]
move codec dependent codes to their own files

DtsSetInputFormat() or DtsSetInputParams() should be called before
DtsStartDecoder(), and is codec dependent. move these calls from
crystalhd_CreateContext() into each codec's seperate function.

6 years agoextra: use dirname in set_LD_PRELOAD.sh
Victor Tseng [Fri, 17 Dec 2010 00:03:43 +0000 (08:03 +0800)]
extra: use dirname in set_LD_PRELOAD.sh

I actually meant `dirname' but typed `basename' for no reason...

6 years agoextra: add h264 NALU debugger (WIP)
Victor Tseng [Fri, 17 Dec 2010 00:01:57 +0000 (08:01 +0800)]
extra: add h264 NALU debugger (WIP)

for debugging purpose, it only decodes sequence parameter set for the
moment.

6 years agoextra: move .gitignore for crystalhd_wrapper to extra/
Victor Tseng [Thu, 16 Dec 2010 17:54:47 +0000 (01:54 +0800)]
extra: move .gitignore for crystalhd_wrapper to extra/

6 years agoextra: use `basename ${0}` when exporting set_LD_PRELOAD.sh
Victor Tseng [Thu, 16 Dec 2010 17:51:32 +0000 (01:51 +0800)]
extra: use `basename ${0}` when exporting set_LD_PRELOAD.sh

use `basename ${0}` instead of `pwd` for set_LD_PRELOAD.sh.
sometimes the script is called elsewhere, and LD_PRELOAD isn't properly
set.

6 years agoh264: move creating of sps+pps to end_picture()
Victor Tseng [Thu, 16 Dec 2010 17:37:18 +0000 (01:37 +0800)]
h264: move creating of sps+pps to end_picture()

crystalhd_render_slice_data_buffer_h264() is actually called by
vaRenderPicture(), which is in data-sending phrase.

crystalhd_end_picture_h264() called by vaEndPicture() shall actually do
this right before it passes the data to the HW.

6 years agodump data in wrapper instead of crystalhd-video
Victor Tseng [Thu, 16 Dec 2010 17:36:00 +0000 (01:36 +0800)]
dump data in wrapper instead of crystalhd-video

6 years agouse `ALWAYS_INLINE' instead of `inline' for b_*()
Victor Tseng [Thu, 16 Dec 2010 10:13:49 +0000 (18:13 +0800)]
use `ALWAYS_INLINE' instead of `inline' for b_*()

6 years agoa wrapper to check output from libcrystalhd
Victor Tseng [Thu, 16 Dec 2010 04:45:08 +0000 (12:45 +0800)]
a wrapper to check output from libcrystalhd

so I don't mess around with other peaple's source code.

6 years agotaking h264 sps and pps handling functions from x264
Victor Tseng [Thu, 16 Dec 2010 04:40:45 +0000 (12:40 +0800)]
taking h264 sps and pps handling functions from x264

almost got it right!

6 years agobeautify the printing of VABufferType
Victor Tseng [Thu, 16 Dec 2010 04:39:57 +0000 (12:39 +0800)]
beautify the printing of VABufferType

prints text instead of enum numbers.

6 years agomove codes from osdep.h to bitstream.h
Victor Tseng [Thu, 16 Dec 2010 04:38:19 +0000 (12:38 +0800)]
move codes from osdep.h to bitstream.h

only bitstream.h is using codes inside osdep.h, no reason to keep 2
files around.

6 years agomake APIs return proper VAStatus, some CrystalHD specific update
Victor Tseng [Thu, 16 Dec 2010 04:06:18 +0000 (12:06 +0800)]
make APIs return proper VAStatus, some CrystalHD specific update

1. return VA_STATUS_UNIMPLEMENTED instead of VA_STATUS_SUCCESS for TODO
   functions.
2. make internal-use-only codes static inline, and move them to the top
   of the file.
3. use DtsSetInputFormat() instead of calling DtsSetVideoParams() by
   ourselves.

6 years agomake use of common.h
Victor Tseng [Thu, 16 Dec 2010 04:03:55 +0000 (12:03 +0800)]
make use of common.h

6 years agoadd .gitignore file
Victor Tseng [Thu, 16 Dec 2010 01:03:51 +0000 (09:03 +0800)]
add .gitignore file

6 years agoadd function declarations to header files
Victor Tseng [Wed, 15 Dec 2010 03:30:26 +0000 (11:30 +0800)]
add function declarations to header files

6 years agofix compilation warnings
Victor Tseng [Tue, 14 Dec 2010 19:43:37 +0000 (03:43 +0800)]
fix compilation warnings

6 years agoremoving instrument codes
Victor Tseng [Tue, 14 Dec 2010 19:37:30 +0000 (03:37 +0800)]
removing instrument codes

6 years agoadd "-lcrystalhd" to CFLAGS in configure.ac
Victor Tseng [Tue, 14 Dec 2010 19:23:17 +0000 (03:23 +0800)]
add "-lcrystalhd" to CFLAGS in configure.ac

6 years agofix the checking for Crystal HD in configure.ac
Victor Tseng [Tue, 14 Dec 2010 14:20:24 +0000 (22:20 +0800)]
fix the checking for Crystal HD in configure.ac

avoid deprecated AC_TRY_LINK() with AC_CHECK_HEADER() and
AC_CHECK_LIB().

7 years agodebug: only insert instrument when USE_DEBUG.
Victor Tseng [Sun, 25 Jul 2010 07:04:51 +0000 (15:04 +0800)]
debug: only insert instrument when USE_DEBUG.

7 years agoh264 experiments... doesn't work tho......
Victor Tseng [Tue, 20 Jul 2010 22:27:26 +0000 (06:27 +0800)]
h264 experiments... doesn't work tho......

7 years agoremove config.h (autoheader generated file)
Victor Tseng [Tue, 13 Jul 2010 17:22:58 +0000 (01:22 +0800)]
remove config.h (autoheader generated file)

7 years agofix crash with ffmpeg-vaapi based programs
Victor Tseng [Tue, 13 Jul 2010 17:22:28 +0000 (01:22 +0800)]
fix crash with ffmpeg-vaapi based programs

7 years agofix whitespace
Victor Tseng [Tue, 13 Jul 2010 17:20:59 +0000 (01:20 +0800)]
fix whitespace

7 years agocode cleanup
Victor Tseng [Fri, 9 Jul 2010 19:42:09 +0000 (03:42 +0800)]
code cleanup

7 years agoruns hwdecode-demo/vaapi_h264 --getimage now.
Victor Tseng [Fri, 9 Jul 2010 09:18:22 +0000 (17:18 +0800)]
runs hwdecode-demo/vaapi_h264 --getimage now.

doesn't work with vlc, yet.

7 years agoadd instrument after call and before return
Victor Tseng [Tue, 6 Jul 2010 16:12:09 +0000 (00:12 +0800)]
add instrument after call and before return

7 years agoadd an image heap
Victor Tseng [Tue, 6 Jul 2010 16:11:56 +0000 (00:11 +0800)]
add an image heap

7 years agoadd copyright informations
Victor Tseng [Mon, 5 Jul 2010 12:22:16 +0000 (20:22 +0800)]
add copyright informations

7 years agofix whitespaces
Victor Tseng [Mon, 5 Jul 2010 09:13:32 +0000 (17:13 +0800)]
fix whitespaces

7 years agoopen/close device
Victor Tseng [Mon, 5 Jul 2010 09:03:21 +0000 (17:03 +0800)]
open/close device

use DtsDeviceOpen() and DtsDeviceClose() to open and close device.

7 years agoinitial commit
Victor Tseng [Fri, 2 Jul 2010 15:18:11 +0000 (23:18 +0800)]
initial commit

copied from dummy, modified for crystalhd.

only vainfo works for now.