Commit Graph

22 Commits

Author SHA1 Message Date
Quentin Renard
084f11b493 Added missing ColorSpace + ColorRange methods 2024-09-19 18:13:05 +02:00
Quentin Renard
dde447cb62 Minor audio fifo tweaks 2024-09-05 14:06:03 +02:00
Quentin Renard
09a88834bb Moved all c code to .h and .c files + removed struc_ prefix when not needed 2024-09-05 11:38:25 +02:00
Quentin Renard
e7c92c0115 Moved #cgo directives to a unique file 2024-09-05 10:26:52 +02:00
Quentin Renard
deecc33c50 Replaced cULong/cLong with C.size_t/C.ptrdiff_t 2024-03-29 09:14:27 +01:00
l0rem1psum
91fcb0b829 feat: return unsafe pointer instead of raw C struct (#54) 2024-03-18 08:43:35 +01:00
Quentin Renard
b5db8fb22f Added Classer + now logs returns a Classer + tests are now done in astiav package 2024-02-28 18:05:36 +01:00
l0rem1psum
e31d5abcc1 Add method to expose underlying Frame C struct (#44)
* feat: add method to expose underlying Frame C struct

* feat(frame): rename method name and add unit test for C struct exposure function
2024-02-07 18:04:52 +01:00
Quentin Renard
89578faef1 Unexported NewFrameData and FrameDataFrame 2024-01-26 13:25:08 +01:00
Quentin Renard
7c941fea03 Replaced FrameData.Image() with FrameData.GuessImageFormat() + now handling premultiplied image formats 2024-01-26 11:21:21 +01:00
Cacsjep
767f28bc3d Implementation for HW Context (#32)
* Adding HW Context

* Check for hw pixel format and transfer data on ReciveFrame when its hw pixel format

* Remove hw_decoding example and update demuxing_dec example

* unref hw_device_ctx, and improve example

Unref correctly hw_device_ctx on free
decoding example has now a flag for hw decoding
Use error on hw context because its good to know the error that happen
Add a method to list supported hw codecs so user could check if system has a specif hwcodec before the create a hw context

* Fix test to use err, and update hw with device to also return error

* revert changes in demux example

* Add/Modify according to review

Seperate Hardware Device Context and Test
Renaming HW to Hardware
Create dedicated hardware_decoding Example
Update Readme
Add TransferHardwareData to frame.go
Add SetHardwareDeviceContext to codec_context.go

* Review changes

add HardwareConfigs to codec
create codec_hardware_config
create codec_hardware_config_method_flag
update example
update flags
better error handling in TransferHardwareData
update CreateHardwareDeviceContext, better null handling
remove hw ctx test because it fails when no nvidia is present
some reordering of conss in hardware_device_type

* Minor tweaks (review changes)

HardwareConfigs only returns a slice an no error anymore
remove if HardwareDeviceType checking in codec.go this should be done by user
order codec hw_config_method_flags constants alphabetically
some small changes in example
##  hardware_device_context.go
change link
update optionsC
2024-01-24 18:23:12 +01:00
Quentin Renard
7048b09f25 Removed pointer on ChannelLayout + now cloning channel layouts in getters 2023-09-28 15:21:32 +02:00
Quentin Renard
63a083bcad Added FrameData 2023-09-02 17:26:25 +02:00
Quentin Renard
202271beb6 Added github action 2023-08-13 10:42:10 +02:00
Quentin Renard
310e023f71 Added sample aspect ratio to frame 2023-04-23 11:24:16 +02:00
Quentin Renard
dfb8a26d40 Added frame color range + image fill black 2023-03-31 17:01:19 +02:00
Quentin Renard
0b571e741b Bumped ffmpeg version to n5.1.2 2023-03-23 14:59:40 +01:00
Quentin Renard
7a047cd37a Added frame alloc image 2022-10-10 11:52:15 +02:00
Quentin Renard
7412da73bd Added frame side data 2022-09-18 17:48:10 +02:00
Quentin Renard
f65fb3c9a2 Simplified frame alloc samples 2022-05-23 09:57:44 +02:00
Quentin Renard
12f9a2e067 Added FindPixelFormatByName + frame.AllocSamples 2022-02-20 11:23:28 +01:00
Quentin Renard
477b147104 Initial commit 2022-02-13 19:08:18 +01:00