Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADM_videoEncoder] VA-API AV1 encoder #518

Merged
merged 1 commit into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

class ADM_VA_GlobalAV1
{
public:
ADM_VA_GlobalAV1() { profile = VAProfileNone; }
VAProfile profile;
};

const ADM_VA_GlobalAV1 *vaGetAV1EncoderProfile();
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,18 @@
#include "ADM_coreLibVA_encodingContext.h"
#include "ADM_coreLibVA_h264Encoding.h"
#include "ADM_coreLibVA_hevcEncoding.h"
#include "ADM_coreLibVA_av1Encoding.h"


bool ADM_initLibVAEncoder(void);
static bool initDone=false;

ADM_VA_GlobalH264 globalH264Caps;
ADM_VA_GlobalHEVC globalHevcCaps;
ADM_VA_GlobalAV1 globalAV1Caps;
const ADM_VA_GlobalH264 *vaGetH264EncoderProfile() {return &globalH264Caps;};
const ADM_VA_GlobalHEVC *vaGetHevcEncoderProfile() {return &globalHevcCaps;};
const ADM_VA_GlobalAV1 *vaGetAV1EncoderProfile() {return &globalAV1Caps;};

#if 0

Expand Down Expand Up @@ -113,6 +116,11 @@ static bool lookupSupportedFormat(VAProfile profile)
bool ADM_initLibVAEncoder(void)
{
ADM_info("initializing VA encoder\n");
if(lookupSupportedFormat(VAProfileAV1Profile0))
{
ADM_info("AV1 Profile0 is supported\n");
globalAV1Caps.profile=VAProfileAV1Profile0;
}
if(lookupSupportedFormat(VAProfileHEVCMain))
{
ADM_info("HEVC Main is supported\n");
Expand Down
1 change: 1 addition & 0 deletions avidemux_plugins/ADM_videoEncoder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ IF(DO_COMMON)
ADD_SUBDIRECTORY(directVaEnc)
ADD_SUBDIRECTORY(ffVaH264)
ADD_SUBDIRECTORY(ffVaHEVC)
ADD_SUBDIRECTORY(ffVaAV1)
ENDIF(USE_LIBVA)
IF(USE_VIDEOTOOLBOX)
ADD_SUBDIRECTORY(ffVTEnc)
Expand Down
Loading