Commit Graph

23 Commits

Author SHA1 Message Date
Quentin Renard
09052ff745 Added hardware filtering 2024-12-03 12:20:17 +01:00
oldma3095
299b04bcb3 codec_context.go and format_context.go (#111)
* Update codec_context.go

HardwareFrameContext

* Update format_context.go

DumpFormat and HardwareFrameContext

* fix with same convention

* fix with same convention

* fix with same convention

* fix with same convention
2024-11-26 10:29:39 +01:00
Quentin Renard
b15d5d0e04 Added links to C doc 2024-11-14 09:01:26 +01:00
l0rem1psum
0d3622405a Expose pointer to underlying AVCodecContext (#95)
* feat: expose pointer to underlying C object

* feat: add ut
2024-11-05 08:58:34 +01:00
Quentin Renard
bc148523bc L0rem1psum feat hardware frame ctx (#92)
* feat: add hardware frame context

* fix: pr comments

* feat(example): add hardware encoding example

* Clean up

* Clean up

---------

Co-authored-by: Wu Wenxuan <sunshine.xuan5960@gmail.com>
2024-10-23 15:45:39 +02:00
Quentin Renard
3e7aa4e83f Making classers.del safer + FilterGraph now stores its FilterContexts to remove them from classers properly 2024-10-04 15:29:54 +02:00
Quentin Renard
680b5f933c Now removing from classers after the free method 2024-10-04 11:36:47 +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
e986c9e6d4 Now compatible with n7.0 2024-08-21 11:34:53 +02:00
Quentin Renard
26ff0f1b02 Added extra data to codec context 2024-04-13 10:30:20 +02:00
Cacsjep
5661da7b25 Add setters for profile and level to cc and cp (#58) 2024-04-01 10:16:59 +02:00
Quentin Renard
443a5f5207 Added codec context to/from codec parameters 2024-03-27 18:23:21 +01:00
l0rem1psum
a4f27be76e feat: add setter and getter for extra_hw_frames (#52) 2024-03-12 08:59:46 +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
Quentin Renard
7d9b077fce Fixed hard device context unref 2024-01-31 16:34:00 +01:00
Quentin Renard
d4abd8ded6 Fixed hardware device context buffer unref 2024-01-31 14:52:23 +01:00
Quentin Renard
659c2ca53e Added codec context pixel format callback 2024-01-26 15:13:23 +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
0b571e741b Bumped ffmpeg version to n5.1.2 2023-03-23 14:59:40 +01:00
Quentin Renard
17b4d5963c Added codec context qmin 2023-02-16 14:37:17 +01:00
Quentin Renard
477b147104 Initial commit 2022-02-13 19:08:18 +01:00