nvcodec: Fix various typos
authorSeungha Yang <seungha@centricular.com>
Fri, 20 Aug 2021 17:20:11 +0000 (02:20 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 21 Aug 2021 13:09:15 +0000 (13:09 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2481>

sys/nvcodec/cuda-converter.c
sys/nvcodec/gstcudaconvert.c
sys/nvcodec/gstnvbaseenc.c
sys/nvcodec/gstnvdec.c
sys/nvcodec/gstnvdecoder.c
sys/nvcodec/gstnvenc.c
sys/nvcodec/gstnvenc.h

index 5b81acc..614ca0c 100644 (file)
@@ -37,7 +37,7 @@
  *  * Add more interpolation method and make it selectable,
  *    currently default bi-linear interpolation only
  *  * Add fast-path for conversion like videoconvert
- *  * Full colorimetiry and chroma-siting support
+ *  * Full colorimetry and chroma-siting support
  *  * cropping, and x, y position support
  */
 
@@ -110,7 +110,7 @@ static const gchar READ_CHROMA_FROM_SEMI_PLANAR[] =
 /**
  * read_chroma:
  * @tex1: a CUDA texture object representing a chroma planar plane
- * @tex2: a CUDA texture object representing the orher planar plane
+ * @tex2: a CUDA texture object representing the other planar plane
  * @x: the x coordinate to read data from @tex1 and @tex2
  * @y: the y coordinate to read data from @tex1 and @tex2
  *
@@ -133,8 +133,8 @@ static const gchar READ_CHROMA_FROM_PLANAR[] =
  * @dst2: dummy
  * @u: a pixel value to write @dst1
  * @v: a pixel value to write @dst1
- * @x: the x coordinate to wrtie data into @tex1
- * @x: the y coordinate to wrtie data into @tex1
+ * @x: the x coordinate to write data into @tex1
+ * @x: the y coordinate to write data into @tex1
  * @pstride: the pixel stride of @dst1
  * @mask: bitmask to be applied to high bitdepth plane
  *
@@ -160,8 +160,8 @@ static const gchar WRITE_CHROMA_TO_SEMI_PLANAR[] =
  * @dst2: a CUDA global memory pointing to a the other planar chroma plane
  * @u: a pixel value to write @dst1
  * @v: a pixel value to write @dst1
- * @x: the x coordinate to wrtie data into @tex1
- * @x: the y coordinate to wrtie data into @tex1
+ * @x: the x coordinate to write data into @tex1
+ * @x: the y coordinate to write data into @tex1
  * @pstride: the pixel stride of @dst1
  * @mask: bitmask to be applied to high bitdepth plane
  *
index 76de2a8..03c7837 100644 (file)
@@ -114,9 +114,9 @@ gst_cuda_convert_caps_remove_format_info (GstCaps * caps)
  * PAL            1      3       2     6     4       6      7      8      9      0    10
  * GRAY           1      4       3     2     1       5      6      7      8      9    0
  *
- * PAL or GRAY are never prefered, if we can we would convert to PAL instead
+ * PAL or GRAY are never preferred, if we can we would convert to PAL instead
  * of GRAY, though
- * less subsampling is prefered and if any, preferably horizontal
+ * less subsampling is preferred and if any, preferably horizontal
  * We would like to keep the alpha, even if we would need to to colorspace conversion
  * or lose depth.
  */
index 34bbffa..4299f5a 100644 (file)
@@ -1908,7 +1908,7 @@ gst_nv_base_enc_set_format (GstVideoEncoder * enc, GstVideoCodecState * state)
       }
 
       resource->nv_resource.version =
-          gst_nvenc_get_registure_resource_version ();
+          gst_nvenc_get_register_resource_version ();
       resource->nv_resource.resourceType =
           NV_ENC_INPUT_RESOURCE_TYPE_CUDADEVICEPTR;
       resource->nv_resource.width = input_width;
@@ -2049,7 +2049,7 @@ register_cuda_resource (GstGLContext * context,
     gl_buf_obj = gl_mem->pbo;
 
     GST_LOG_OBJECT (nvenc,
-        "registure glbuffer %d to CUDA resource", gl_buf_obj->id);
+        "register glbuffer %d to CUDA resource", gl_buf_obj->id);
 
     if (gst_cuda_graphics_resource_register_gl_buffer (resource,
             gl_buf_obj->id, CU_GRAPHICS_REGISTER_FLAGS_NONE)) {
index 2ccb696..cdb0169 100644 (file)
@@ -1075,7 +1075,7 @@ gst_nvdec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state)
       gst_buffer_replace (&nvdec->codec_data, codec_data);
     }
 
-    /* For all CODEC we get completre picture ... */
+    /* For all CODEC we get complete picture ... */
     nvdec->recv_complete_picture = TRUE;
 
     /* Except for JPEG, for which it depends on the caps */
index ccf09b0..a6cbcca 100644 (file)
@@ -717,7 +717,7 @@ gst_nv_decoder_copy_frame_to_system (GstNvDecoder * decoder,
   }
 
   if (!gst_cuda_context_push (decoder->context)) {
-    GST_ERROR_OBJECT (decoder, "Failed to pust CUDA context");
+    GST_ERROR_OBJECT (decoder, "Failed to push CUDA context");
     gst_video_frame_unmap (&video_frame);
     return FALSE;
   }
@@ -788,7 +788,7 @@ gst_nv_decoder_copy_frame_to_cuda (GstNvDecoder * decoder,
   }
 
   if (!gst_cuda_context_push (decoder->context)) {
-    GST_ERROR_OBJECT (decoder, "Failed to pust CUDA context");
+    GST_ERROR_OBJECT (decoder, "Failed to push CUDA context");
     return FALSE;
   }
 
index 252e9ab..4218369 100644 (file)
@@ -1091,7 +1091,7 @@ gst_nvenc_get_map_input_resource_version (void)
 }
 
 guint32
-gst_nvenc_get_registure_resource_version (void)
+gst_nvenc_get_register_resource_version (void)
 {
   /* NV_ENC_REGISTER_RESOURCE_VER == NVENCAPI_STRUCT_VERSION(3) */
   return GST_NVENCAPI_STRUCT_VERSION (3, gst_nvenc_api_version);
index 839223d..cd7af19 100644 (file)
@@ -76,7 +76,7 @@ guint32                 gst_nvenc_get_lock_input_buffer_version (void);
 
 guint32                 gst_nvenc_get_map_input_resource_version (void);
 
-guint32                 gst_nvenc_get_registure_resource_version (void);
+guint32                 gst_nvenc_get_register_resource_version (void);
 
 guint32                 gst_nvenc_get_stat_version (void);