mirror of
git://nv-tegra.nvidia.com/tegra/gst-src/libgstnvvideosinks.git
synced 2025-12-22 09:22:49 +03:00
Compare commits
2 Commits
jetson_35.
...
jetson_36.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60683d560e | ||
|
|
677753a9ee |
@@ -1,25 +1,25 @@
|
|||||||
Updating prebuilts and/or headers
|
Updating prebuilts and/or headers
|
||||||
|
|
||||||
ed8273ff6102bb0b4fa7975a401b12b3e95a7187 - nvbufsurface.h
|
cf95aafffccb74b1cef48bfdbe954fb0410dbe77 - nvbufsurface.h
|
||||||
9a172f748a2b8f4d6d15648ea353989ccc7aeba6 - gst-plugins-nv-video-sinks/Makefile
|
9a172f748a2b8f4d6d15648ea353989ccc7aeba6 - gst-plugins-nv-video-sinks/Makefile
|
||||||
9825d8a113dbf7dd16f791ff1ca66f2de3047b22 - gst-plugins-nv-video-sinks/LICENSE.libgstnvvideosinks
|
9825d8a113dbf7dd16f791ff1ca66f2de3047b22 - gst-plugins-nv-video-sinks/LICENSE.libgstnvvideosinks
|
||||||
7ef56486c9e6b3e354473a2959d274517dd709da - gst-plugins-nv-video-sinks/gstnvvideosinks.c
|
7ef56486c9e6b3e354473a2959d274517dd709da - gst-plugins-nv-video-sinks/gstnvvideosinks.c
|
||||||
4f86ed5c7d6dfa6e6e4df4fd2945993655fc3409 - gst-plugins-nv-video-sinks/common/context.c
|
f96de71f9cbd5c40ed3eb5979f56f9267659c504 - gst-plugins-nv-video-sinks/nv3dsink/gstnv3dsink.c
|
||||||
a0debde9b0fd5bc6ac9c5fac7f1a14745a2b0617 - gst-plugins-nv-video-sinks/common/display.c
|
9b7125a2d7ebe2ea647c43d2eb43e8d04cd16c47 - gst-plugins-nv-video-sinks/nv3dsink/gstnv3dsink.h
|
||||||
fcb1b73054a1c8ff8ce614878ee46880273656f4 - gst-plugins-nv-video-sinks/common/renderer.c
|
835dc89a20f2a95bea9c4033e40bf6787148ab08 - gst-plugins-nv-video-sinks/common/window.c
|
||||||
|
b38008a552820bac7742888cd4bc2610bca722eb - gst-plugins-nv-video-sinks/common/display.c
|
||||||
96b0b4d38692a0aecf70944749684ac938ff192f - gst-plugins-nv-video-sinks/common/display.h
|
96b0b4d38692a0aecf70944749684ac938ff192f - gst-plugins-nv-video-sinks/common/display.h
|
||||||
|
3b014cb69f5042fd9752fd4bf06a5873fe08b41c - gst-plugins-nv-video-sinks/common/renderer.c
|
||||||
6e77d54ffc5d1a49d5bad768cdf5cfadf458f1f7 - gst-plugins-nv-video-sinks/common/window.h
|
6e77d54ffc5d1a49d5bad768cdf5cfadf458f1f7 - gst-plugins-nv-video-sinks/common/window.h
|
||||||
d48e1dae85e3c6a0ba7623be7ee306b8e1ef6695 - gst-plugins-nv-video-sinks/common/gstnvvideofwd.h
|
de3e1e648709f765fbe78b5c365017f573ca1988 - gst-plugins-nv-video-sinks/common/context.c
|
||||||
ad360a668f0f494ebd2bb630c3faaf93078c6e0d - gst-plugins-nv-video-sinks/common/window.c
|
|
||||||
72f9a4b823c4162c9f22cedb7c1cb1764d06fcb6 - gst-plugins-nv-video-sinks/common/renderer.h
|
72f9a4b823c4162c9f22cedb7c1cb1764d06fcb6 - gst-plugins-nv-video-sinks/common/renderer.h
|
||||||
|
d48e1dae85e3c6a0ba7623be7ee306b8e1ef6695 - gst-plugins-nv-video-sinks/common/gstnvvideofwd.h
|
||||||
5e13200e9cba5f45d74cf6899dd3356d5f5d1c8e - gst-plugins-nv-video-sinks/common/context.h
|
5e13200e9cba5f45d74cf6899dd3356d5f5d1c8e - gst-plugins-nv-video-sinks/common/context.h
|
||||||
638b0da4ea65d02818289e89bc1d635ddbcdaec5 - gst-plugins-nv-video-sinks/common/x11/window_x11.h
|
707a36267f329bb22afdd19b947be5a99478ec7a - gst-plugins-nv-video-sinks/common/renderer/renderer_gl.c
|
||||||
|
f528404a796de5a23dab281588feb72f42343e59 - gst-plugins-nv-video-sinks/common/renderer/renderer_gl.h
|
||||||
|
35b1e9d33b1f8bb8fc7065ab57696696128e042d - gst-plugins-nv-video-sinks/common/egl/context_egl.c
|
||||||
|
536a072a8ef84b3c91307777f88121fb88df2c4f - gst-plugins-nv-video-sinks/common/egl/context_egl.h
|
||||||
b3f1b67cae0b4643f6a676b362ceaa61abc9c40f - gst-plugins-nv-video-sinks/common/x11/display_x11.c
|
b3f1b67cae0b4643f6a676b362ceaa61abc9c40f - gst-plugins-nv-video-sinks/common/x11/display_x11.c
|
||||||
d692399c6d94dbc7814770b08baf9271ed97f8e0 - gst-plugins-nv-video-sinks/common/x11/display_x11.h
|
d692399c6d94dbc7814770b08baf9271ed97f8e0 - gst-plugins-nv-video-sinks/common/x11/display_x11.h
|
||||||
c98945083e215dff26507c1e10b0ebf62a2c6fb7 - gst-plugins-nv-video-sinks/common/x11/window_x11.c
|
c98945083e215dff26507c1e10b0ebf62a2c6fb7 - gst-plugins-nv-video-sinks/common/x11/window_x11.c
|
||||||
536a072a8ef84b3c91307777f88121fb88df2c4f - gst-plugins-nv-video-sinks/common/egl/context_egl.h
|
638b0da4ea65d02818289e89bc1d635ddbcdaec5 - gst-plugins-nv-video-sinks/common/x11/window_x11.h
|
||||||
35b1e9d33b1f8bb8fc7065ab57696696128e042d - gst-plugins-nv-video-sinks/common/egl/context_egl.c
|
|
||||||
707a36267f329bb22afdd19b947be5a99478ec7a - gst-plugins-nv-video-sinks/common/renderer/renderer_gl.c
|
|
||||||
f528404a796de5a23dab281588feb72f42343e59 - gst-plugins-nv-video-sinks/common/renderer/renderer_gl.h
|
|
||||||
9b7125a2d7ebe2ea647c43d2eb43e8d04cd16c47 - gst-plugins-nv-video-sinks/nv3dsink/gstnv3dsink.h
|
|
||||||
a02ed68d624ec0fc13349cbf5c4e675dfdfec1b9 - gst-plugins-nv-video-sinks/nv3dsink/gstnv3dsink.c
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@@ -260,7 +260,7 @@ GstNvVideoContext *
|
|||||||
gst_nv_video_context_new (GstNvVideoDisplay * display)
|
gst_nv_video_context_new (GstNvVideoDisplay * display)
|
||||||
{
|
{
|
||||||
GstNvVideoContext *context = NULL;
|
GstNvVideoContext *context = NULL;
|
||||||
static volatile gsize debug_init = 0;
|
static gsize debug_init = 0;
|
||||||
const gchar *context_name = NULL;
|
const gchar *context_name = NULL;
|
||||||
|
|
||||||
if (g_once_init_enter (&debug_init)) {
|
if (g_once_init_enter (&debug_init)) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@@ -84,7 +84,7 @@ gst_nv_video_display_class_init (GstNvVideoDisplayClass * klass)
|
|||||||
gboolean
|
gboolean
|
||||||
gst_nv_video_display_new (GstNvVideoDisplay ** display)
|
gst_nv_video_display_new (GstNvVideoDisplay ** display)
|
||||||
{
|
{
|
||||||
static volatile gsize debug_init = 0;
|
static gsize debug_init = 0;
|
||||||
const gchar *winsys_name = NULL;
|
const gchar *winsys_name = NULL;
|
||||||
|
|
||||||
if (g_once_init_enter (&debug_init)) {
|
if (g_once_init_enter (&debug_init)) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@@ -44,7 +44,7 @@ GstNvVideoRenderer *
|
|||||||
gst_nv_video_renderer_new (GstNvVideoContext * context, const char *name)
|
gst_nv_video_renderer_new (GstNvVideoContext * context, const char *name)
|
||||||
{
|
{
|
||||||
GstNvVideoRenderer *renderer = NULL;
|
GstNvVideoRenderer *renderer = NULL;
|
||||||
static volatile gsize debug_init = 0;
|
static gsize debug_init = 0;
|
||||||
|
|
||||||
if (g_once_init_enter (&debug_init)) {
|
if (g_once_init_enter (&debug_init)) {
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_debug_nv_video_renderer, "nvvideorenderer", 0,
|
GST_DEBUG_CATEGORY_INIT (gst_debug_nv_video_renderer, "nvvideorenderer", 0,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@@ -54,7 +54,7 @@ GstNvVideoWindow *
|
|||||||
gst_nv_video_window_new (GstNvVideoDisplay * display)
|
gst_nv_video_window_new (GstNvVideoDisplay * display)
|
||||||
{
|
{
|
||||||
GstNvVideoWindow *window = NULL;
|
GstNvVideoWindow *window = NULL;
|
||||||
static volatile gsize debug_init = 0;
|
static gsize debug_init = 0;
|
||||||
const gchar *winsys_name = NULL;
|
const gchar *winsys_name = NULL;
|
||||||
|
|
||||||
if (g_once_init_enter (&debug_init)) {
|
if (g_once_init_enter (&debug_init)) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@@ -331,8 +331,10 @@ gst_nv3dsink_get_caps (GstBaseSink * bsink, GstCaps * filter)
|
|||||||
|
|
||||||
caps = gst_nv_video_context_get_caps (nv3dsink->context);
|
caps = gst_nv_video_context_get_caps (nv3dsink->context);
|
||||||
if (caps) {
|
if (caps) {
|
||||||
|
tmp = result;
|
||||||
result = gst_caps_intersect (result, caps);
|
result = gst_caps_intersect (result, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
gst_caps_unref (tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (bsink, "returning caps: %" GST_PTR_FORMAT, result);
|
GST_DEBUG_OBJECT (bsink, "returning caps: %" GST_PTR_FORMAT, result);
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved.
|
* SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||||
|
* SPDX-License-Identifier: LicenseRef-NvidiaProprietary
|
||||||
*
|
*
|
||||||
* NVIDIA Corporation and its licensors retain all intellectual property
|
* NVIDIA CORPORATION and its licensors retain all intellectual property
|
||||||
* and proprietary rights in and to this software, related documentation
|
* and proprietary rights in and to this software, related documentation
|
||||||
* and any modifications thereto. Any use, reproduction, disclosure or
|
* and any modifications thereto. Any use, reproduction, disclosure or
|
||||||
* distribution of this software and related documentation without an express
|
* distribution of this software and related documentation without an express
|
||||||
* license agreement from NVIDIA Corporation is strictly prohibited.
|
* license agreement from NVIDIA CORPORATION is strictly prohibited.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -30,6 +31,9 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
#include <cutils/native_handle.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
@@ -278,6 +282,16 @@ typedef enum
|
|||||||
NVBUF_COLOR_FORMAT_NV12_12LE_709,
|
NVBUF_COLOR_FORMAT_NV12_12LE_709,
|
||||||
/** Specifies BT.709 colorspace - Y/CbCr ER 4:2:0 12-bit multi-planar. */
|
/** Specifies BT.709 colorspace - Y/CbCr ER 4:2:0 12-bit multi-planar. */
|
||||||
NVBUF_COLOR_FORMAT_NV12_12LE_709_ER,
|
NVBUF_COLOR_FORMAT_NV12_12LE_709_ER,
|
||||||
|
/** Specifies 8 bit GRAY scale ER - single plane */
|
||||||
|
NVBUF_COLOR_FORMAT_GRAY8_ER,
|
||||||
|
/** Specifies BT.709 colorspace - Y/CbCr 4:2:2 planar */
|
||||||
|
NVBUF_COLOR_FORMAT_UYVY_709,
|
||||||
|
/** Specifies BT.709 colorspace - Y/CbCr ER 4:2:2 planar */
|
||||||
|
NVBUF_COLOR_FORMAT_UYVY_709_ER,
|
||||||
|
/** Specifies BT.2020 colorspace - Y/CbCr 4:2:2 planar */
|
||||||
|
NVBUF_COLOR_FORMAT_UYVY_2020,
|
||||||
|
/** Specifies 16 bit GRAY scale - single plane */
|
||||||
|
NVBUF_COLOR_FORMAT_GRAY16_LE,
|
||||||
NVBUF_COLOR_FORMAT_LAST
|
NVBUF_COLOR_FORMAT_LAST
|
||||||
} NvBufSurfaceColorFormat;
|
} NvBufSurfaceColorFormat;
|
||||||
|
|
||||||
@@ -341,8 +355,9 @@ typedef struct NvBufSurfacePlaneParamsEx
|
|||||||
uint32_t physicaladdress[NVBUF_MAX_PLANES];
|
uint32_t physicaladdress[NVBUF_MAX_PLANES];
|
||||||
/** flags associated with planes */
|
/** flags associated with planes */
|
||||||
uint64_t flags[NVBUF_MAX_PLANES];
|
uint64_t flags[NVBUF_MAX_PLANES];
|
||||||
|
/** DRM modifier for plane */
|
||||||
void * _reserved[STRUCTURE_PADDING * NVBUF_MAX_PLANES];
|
uint64_t drmModifier[NVBUF_MAX_PLANES];
|
||||||
|
void * _reserved[(STRUCTURE_PADDING - 1) * NVBUF_MAX_PLANES];
|
||||||
} NvBufSurfacePlaneParamsEx;
|
} NvBufSurfacePlaneParamsEx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -371,6 +386,10 @@ typedef struct NvBufSurfacePlaneParams
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds Chroma Subsampling parameters for NvBufSurface allocation.
|
* Holds Chroma Subsampling parameters for NvBufSurface allocation.
|
||||||
|
* The members chromaLocHoriz and chromaLocVert accept these values:
|
||||||
|
* 0: Left horizontal or top vertical position
|
||||||
|
* 1: Center horizontal or center vertical position
|
||||||
|
* 2: Right horizontal or bottom vertical position
|
||||||
*/
|
*/
|
||||||
typedef struct NvBufSurfaceChromaSubsamplingParams
|
typedef struct NvBufSurfaceChromaSubsamplingParams
|
||||||
{
|
{
|
||||||
@@ -699,7 +718,7 @@ int NvBufSurfaceCopy (NvBufSurface *srcSurf, NvBufSurface *dstSurf);
|
|||||||
* This function can be used to copy plane memory content from source raw buffer pointer
|
* This function can be used to copy plane memory content from source raw buffer pointer
|
||||||
* to specific destination batch buffer of supported memory type.
|
* to specific destination batch buffer of supported memory type.
|
||||||
*
|
*
|
||||||
* @param[in] surf pointer to NvBufSurface structure.
|
* @param[in] Surf pointer to NvBufSurface structure.
|
||||||
* @param[in] index index of buffer in the batch.
|
* @param[in] index index of buffer in the batch.
|
||||||
* @param[in] plane index of plane in buffer.
|
* @param[in] plane index of plane in buffer.
|
||||||
* @param[in] out_width aligned width of the raw data plane.
|
* @param[in] out_width aligned width of the raw data plane.
|
||||||
@@ -708,7 +727,7 @@ int NvBufSurfaceCopy (NvBufSurface *srcSurf, NvBufSurface *dstSurf);
|
|||||||
*
|
*
|
||||||
* @return 0 for success, -1 for failure.
|
* @return 0 for success, -1 for failure.
|
||||||
*/
|
*/
|
||||||
int NvBufSurface2Raw (NvBufSurface *Surf, unsigned int index, unsigned int plane, unsigned int outwidth, unsigned int outheight, unsigned char *ptr);
|
int NvBufSurface2Raw (NvBufSurface *Surf, unsigned int index, unsigned int plane, unsigned int out_width, unsigned int out_height, unsigned char *ptr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Copies the raw buffer plane memory content to the NvBufSurface plane memory of a specific
|
* \brief Copies the raw buffer plane memory content to the NvBufSurface plane memory of a specific
|
||||||
@@ -722,11 +741,11 @@ int NvBufSurface2Raw (NvBufSurface *Surf, unsigned int index, unsigned int plane
|
|||||||
* @param[in] plane index of plane in buffer.
|
* @param[in] plane index of plane in buffer.
|
||||||
* @param[in] in_width aligned width of the raw data plane.
|
* @param[in] in_width aligned width of the raw data plane.
|
||||||
* @param[in] in_height aligned height of the raw data plane.
|
* @param[in] in_height aligned height of the raw data plane.
|
||||||
* @param[in] surf pointer to NvBufSurface structure.
|
* @param[in] Surf pointer to NvBufSurface structure.
|
||||||
*
|
*
|
||||||
* @return 0 for success, -1 for failure.
|
* @return 0 for success, -1 for failure.
|
||||||
*/
|
*/
|
||||||
int Raw2NvBufSurface (unsigned char *ptr, unsigned int index, unsigned int plane, unsigned int inwidth, unsigned int inheight, NvBufSurface *Surf);
|
int Raw2NvBufSurface (unsigned char *ptr, unsigned int index, unsigned int plane, unsigned int in_width, unsigned int in_height, NvBufSurface *Surf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Syncs the HW memory cache for the CPU.
|
* Syncs the HW memory cache for the CPU.
|
||||||
@@ -848,6 +867,21 @@ int NvBufSurfaceImport (NvBufSurface **out_nvbuf_surf, const NvBufSurfaceMapPara
|
|||||||
*
|
*
|
||||||
* @return 0 for success, -1 for failure.
|
* @return 0 for success, -1 for failure.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
/**
|
||||||
|
* Extracts the surface from android native buffer handle. Returns the DMA buffer FD for the surface.
|
||||||
|
* Fills the extended parameters which are extracted from surface.
|
||||||
|
*
|
||||||
|
* @param[out] out_dmabuf_fd Returns the Output hardware DMABUF FD.
|
||||||
|
* @param[in] handle Android native buffer handle.
|
||||||
|
* @param[out] exparams A pointer to the structure to fill with extended parameters.
|
||||||
|
*
|
||||||
|
* @returns 0 for success, -1 for failure
|
||||||
|
*/
|
||||||
|
int NvBufSurfaceImportGraphicBufferFd(int *out_dmabuf_fd, buffer_handle_t *handle, NvBufSurfaceMapParams *exparams);
|
||||||
|
#endif
|
||||||
|
|
||||||
int NvBufSurfaceGetMapParams (const NvBufSurface *surf, int index, NvBufSurfaceMapParams *params);
|
int NvBufSurfaceGetMapParams (const NvBufSurface *surf, int index, NvBufSurfaceMapParams *params);
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
jetson_35.5_APT1
|
jetson_36.4.4
|
||||||
|
|||||||
Reference in New Issue
Block a user